text: /*
   * This is a RANDOMLY GENERATED PROGRAM.
   *
   * Generator: csmith 2.2.0
   * Git version: dcef523
   * Options:   (none)
   * Seed:      3512802240
   */
  
  #include "csmith.h"
  
  
  static long __undefined;
  
  /* --- Struct/Union Declarations --- */
  union U0 {
     int8_t  f0;
     int8_t  f1;
  };
  
  /* --- GLOBAL VARIABLES --- */
  static uint16_t g_13 = 65535UL;
  static volatile int32_t g_19 = (-5L);/* VOLATILE GLOBAL g_19 */
  static volatile int32_t g_20[10][5] = {{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,0xE17C1097L,0x0C3414B5L,0x0C3414B5L,0xE17C1097L},{0L,1L,0xE17C1097L,0xE17C1097L,1L}};
  static int32_t g_21 = 2L;
  static uint64_t g_35 = 0x8AAE07EA4C5706B3LL;
  static volatile uint16_t g_45[4][1] = {{3UL},{0x811FL},{3UL},{0x811FL}};
  static volatile uint16_t * volatile g_44 = &g_45[3][0];/* VOLATILE GLOBAL g_44 */
  static uint16_t *g_46 = (void*)0;
  static volatile int32_t ** volatile g_47 = (void*)0;/* VOLATILE GLOBAL g_47 */
  static volatile int32_t *g_49 = &g_20[6][0];
  static volatile int32_t ** const  volatile g_48 = &g_49;/* VOLATILE GLOBAL g_48 */
  static union U0 g_53 = {0x03L};
  static union U0 *g_54[9][1] = {{&g_53},{&g_53},{&g_53},{&g_53},{&g_53},{&g_53},{&g_53},{&g_53},{&g_53}};
  static const int32_t g_59 = 0xD5762CC6L;
  static uint16_t g_70 = 1UL;
  static int32_t g_86 = 0x29ADBE56L;
  static union U0 g_103 = {0x5BL};
  static uint32_t g_111 = 0xDA819422L;
  static uint32_t g_126 = 18446744073709551608UL;
  static uint32_t *g_136 = &g_126;
  static int8_t g_165 = 0x3CL;
  static int32_t g_167 = 0x735A7C04L;
  static uint32_t g_190 = 4294967289UL;
  static int32_t g_195 = 0x1AF41016L;
  static int32_t *g_204[4][3] = {{(void*)0,&g_167,(void*)0},{&g_86,&g_21,(void*)0},{&g_86,&g_86,&g_21},{(void*)0,&g_21,&g_21}};
  static int32_t * const *g_203 = &g_204[1][0];
  static volatile int8_t g_348 = 0x54L;/* VOLATILE GLOBAL g_348 */
  static volatile int8_t *g_347 = &g_348;
  static const uint32_t *g_350 = &g_126;
  static const uint32_t **g_349 = &g_350;
  static uint16_t g_394 = 0xF0A7L;
  static uint8_t * volatile *g_451 = (void*)0;
  static int32_t g_469 = (-1L);
  static int32_t ** volatile g_472 = &g_204[3][2];/* VOLATILE GLOBAL g_472 */
  static union U0 **g_487 = (void*)0;
  static union U0 ***g_486 = &g_487;
  static union U0 ****g_485[7] = {&g_486,&g_486,&g_486,&g_486,&g_486,&g_486,&g_486};
  static const uint32_t g_522[6] = {4294967286UL,4294967286UL,4294967286UL,4294967286UL,4294967286UL,4294967286UL};
  static uint32_t g_528 = 0xA608220EL;
  static int32_t ** volatile g_541 = (void*)0;/* VOLATILE GLOBAL g_541 */
  static int16_t g_611 = 0xE4D3L;
  static const int16_t g_659 = 0xB085L;
  static const int16_t g_661 = 1L;
  static const int32_t *g_670 = (void*)0;
  static union U0 *****g_684 = &g_485[4];
  static union U0 ******g_683 = &g_684;
  static uint32_t *g_727[5][4][9] = {{{&g_190,&g_190,(void*)0,(void*)0,&g_190,&g_190,&g_190,(void*)0,&g_190},{&g_190,(void*)0,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190},{&g_190,&g_190,(void*)0,(void*)0,&g_190,&g_190,&g_190,&g_190,&g_190},{(void*)0,&g_190,&g_190,(void*)0,&g_190,&g_190,&g_190,&g_190,&g_190}},{{&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190},{&g_190,(void*)0,&g_190,&g_190,&g_190,&g_190,(void*)0,&g_190,(void*)0},{&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,(void*)0,&g_190,(void*)0},{(void*)0,(void*)0,(void*)0,&g_190,&g_190,&g_190,(void*)0,&g_190,(void*)0}},{{&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190},{&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,(void*)0,&g_190,&g_190},{&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190},{&g_190,&g_190,&g_190,&g_190,&g_190,(void*)0,(void*)0,&g_190,&g_190}},{{(void*)0,&g_190,(void*)0,(void*)0,&g_190,(void*)0,&g_190,&g_190,&g_190},{(void*)0,&g_190,&g_190,(void*)0,(void*)0,(void*)0,(void*)0,&g_190,&g_190},{(void*)0,&g_190,&g_190,&g_190,&g_190,&g_190,(void*)0,&g_190,(void*)0},{(void*)0,&g_190,&g_190,(void*)0,(void*)0,&g_190,(void*)0,&g_190,(void*)0}},{{&g_190,(void*)0,&g_190,(void*)0,&g_190,&g_190,&g_190,&g_190,&g_190},{&g_190,&g_190,(void*)0,&g_190,&g_190,(void*)0,&g_190,&g_190,&g_190},{(void*)0,&g_190,&g_190,&g_190,&g_190,(void*)0,&g_190,&g_190,&g_190},{&g_190,&g_190,(void*)0,&g_190,&g_190,&g_190,&g_190,&g_190,&g_190}}};
  static uint32_t **g_726 = &g_727[0][3][3];
  static int64_t g_747 = 5L;
  static int32_t ** const  volatile g_761 = &g_204[1][0];/* VOLATILE GLOBAL g_761 */
  static uint8_t g_780 = 247UL;
  static int32_t * volatile * volatile **g_899[2] = {(void*)0,(void*)0};
  static int16_t *g_973[4] = {&g_611,&g_611,&g_611,&g_611};
  static int16_t * const  volatile *g_972[6] = {&g_973[0],&g_973[0],&g_973[0],&g_973[0],&g_973[0],&g_973[0]};
  static int16_t * const  volatile * const * volatile g_971[9] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
  static const int32_t g_1004 = (-1L);
  static uint64_t g_1153 = 18446744073709551615UL;
  static uint8_t g_1179 = 0UL;
  static const uint64_t g_1278 = 0x7EF4AF7FDF982CD4LL;
  static const uint64_t *g_1277 = &g_1278;
  static volatile int64_t ** volatile g_1309 = (void*)0;/* VOLATILE GLOBAL g_1309 */
  static volatile int64_t ** volatile *g_1308 = &g_1309;
  static int64_t *g_1314[9] = {&g_747,&g_747,&g_747,&g_747,&g_747,&g_747,&g_747,&g_747,&g_747};
  static int64_t **g_1313 = &g_1314[4];
  static int64_t ***g_1312 = &g_1313;
  static uint64_t **g_1357 = (void*)0;
  static int32_t ** volatile g_1394 = &g_204[1][0];/* VOLATILE GLOBAL g_1394 */
  static union U0 g_1400 = {6L};
  static volatile uint16_t g_1721 = 0x7E49L;/* VOLATILE GLOBAL g_1721 */
  static uint32_t g_1724[4] = {18446744073709551615UL,18446744073709551615UL,18446744073709551615UL,18446744073709551615UL};
  static int16_t g_1725 = 0L;
  static const int32_t ** volatile g_1730 = &g_670;/* VOLATILE GLOBAL g_1730 */
  static uint16_t **g_1733[10] = {&g_46,&g_46,&g_46,&g_46,&g_46,&g_46,&g_46,&g_46,&g_46,&g_46};
  static uint16_t *** volatile g_1732 = &g_1733[8];/* VOLATILE GLOBAL g_1732 */
  static union U0 g_1770 = {1L};
  static uint32_t **g_1793 = &g_136;
  static uint32_t *** volatile g_1792 = &g_1793;/* VOLATILE GLOBAL g_1792 */
  static volatile union U0 ** volatile * volatile g_1830 = (void*)0;/* VOLATILE GLOBAL g_1830 */
  static volatile union U0 ** volatile * volatile *g_1829 = &g_1830;
  static volatile union U0 ** volatile * volatile ** volatile g_1828 = &g_1829;/* VOLATILE GLOBAL g_1828 */
  static volatile union U0 ** volatile * volatile ** volatile * volatile g_1827 = &g_1828;/* VOLATILE GLOBAL g_1827 */
  static volatile union U0 ** volatile * volatile ** volatile * volatile *g_1826 = &g_1827;
  static volatile union U0 ** volatile * volatile ** volatile * volatile **g_1825 = &g_1826;
  static int32_t *g_1865 = (void*)0;
  static int32_t **g_1864 = &g_1865;
  static volatile int32_t g_1897 = (-2L);/* VOLATILE GLOBAL g_1897 */
  static int8_t g_1937 = 1L;
  static int8_t g_2032[4] = {0x3BL,0x3BL,0x3BL,0x3BL};
  static uint64_t g_2036 = 0xB13084465DA35B96LL;
  static volatile uint8_t g_2128[5][1][5] = {{{255UL,255UL,0x41L,255UL,255UL}},{{0x79L,0x7DL,0x79L,0x79L,0x7DL}},{{255UL,0x9FL,0x9FL,255UL,0x9FL}},{{0x7DL,0x7DL,0x02L,0x7DL,0x7DL}},{{0x9FL,255UL,0x9FL,0x9FL,255UL}}};
  static int32_t *g_2142 = &g_469;
  static int32_t ** volatile g_2141 = &g_2142;/* VOLATILE GLOBAL g_2141 */
  static int32_t g_2266[10][4][6] = {{{(-5L),0x210832D3L,0x39B10F69L,0x8B6D45FDL,8L,7L},{6L,(-9L),(-5L),(-8L),8L,(-8L)},{0x8D79026CL,0x210832D3L,8L,0x4830FDD4L,0xCCA12EB3L,0x1125B10CL},{(-1L),(-1L),0x22EDCF21L,0x66EFB71EL,8L,(-5L)}},{{0xE04F2AB3L,0xB50A04E6L,0xCCA12EB3L,0x8DD115A7L,(-1L),(-5L)},{(-8L),(-8L),0x22EDCF21L,0xE04F2AB3L,(-8L),0x1125B10CL},{0x35E18CF2L,0L,8L,7L,(-5L),(-8L)},{0x8B6D45FDL,0xCCA12EB3L,(-5L),0x17D8D780L,(-9L),7L}},{{0x8B6D45FDL,0xE1E557F3L,0x39B10F69L,7L,0x39B10F69L,0xE1E557F3L},{0x35E18CF2L,(-5L),(-1L),0xE04F2AB3L,0xE1E557F3L,8L},{(-8L),0xEAB8E050L,8L,0x8DD115A7L,(-5L),0x39B10F69L},{0xE04F2AB3L,0xEAB8E050L,0xB50A04E6L,0x66EFB71EL,0xE1E557F3L,0xB50A04E6L}},{{(-1L),(-5L),0xEAB8E050L,0x4830FDD4L,0x39B10F69L,0L},{0x8D79026CL,0xE1E557F3L,7L,(-8L),(-9L),0xEAB8E050L},{6L,0xCCA12EB3L,0L,0xB50A04E6L,0xEA613857L,0x1A13D167L},{(-1L),0x1A13D167L,0L,0xEAB8E050L,(-1L),0L}},{{0xEAB8E050L,(-1L),0L,7L,1L,(-6L)},{(-1L),0L,1L,7L,0x1F64B323L,0x1F64B323L},{0xEAB8E050L,0x97E16480L,0x97E16480L,0xEAB8E050L,0xA2B01F9DL,(-1L)},{(-1L),0x4F31DD7AL,(-6L),0xB50A04E6L,1L,0L}},{{0xAFC4F8D3L,0xDB7C578EL,0xEA613857L,8L,1L,(-1L)},{0x210832D3L,0x4F31DD7AL,0x1F64B323L,(-1L),0xA2B01F9DL,0x2B7489E8L},{(-5L),0x97E16480L,(-1L),0x39B10F69L,0x1F64B323L,0xE7DC7126L},{8L,0L,0xA2B01F9DL,(-5L),1L,0xE7DC7126L}},{{8L,(-1L),(-1L),8L,(-1L),0x2B7489E8L},{0xE1E557F3L,0x1A13D167L,0x1F64B323L,0x22EDCF21L,0xEA613857L,(-1L)},{0xB50A04E6L,0xA2B01F9DL,0xEA613857L,0xCCA12EB3L,0xDB7C578EL,0L},{0xB50A04E6L,(-1L),(-6L),0x22EDCF21L,(-6L),(-1L)}},{{0xE1E557F3L,0xEA613857L,0x97E16480L,8L,(-1L),0x1F64B323L},{8L,0L,1L,(-5L),0xE7DC7126L,(-6L)},{8L,0L,0L,0x39B10F69L,(-1L),0L},{(-5L),0xEA613857L,0L,(-1L),(-6L),0x1A13D167L}},{{0x210832D3L,(-1L),0L,8L,0xDB7C578EL,0L},{0xAFC4F8D3L,0xA2B01F9DL,0L,0xB50A04E6L,0xEA613857L,0x1A13D167L},{(-1L),0x1A13D167L,0L,0xEAB8E050L,(-1L),0L},{0xEAB8E050L,(-1L),0L,7L,1L,(-6L)}},{{(-1L),0L,1L,7L,0x1F64B323L,0x1F64B323L},{0xEAB8E050L,0x97E16480L,0x97E16480L,0xEAB8E050L,0xA2B01F9DL,(-1L)},{(-1L),0x4F31DD7AL,(-6L),0xB50A04E6L,1L,0L},{0xAFC4F8D3L,0xDB7C578EL,0xEA613857L,8L,1L,(-1L)}}};
  static int32_t * const *g_2267 = (void*)0;
  static int32_t * const ** volatile g_2362 = &g_2267;/* VOLATILE GLOBAL g_2362 */
  static const int32_t ** const  volatile g_2531 = &g_670;/* VOLATILE GLOBAL g_2531 */
  static int8_t *g_2601 = (void*)0;
  static const uint16_t **g_2615 = (void*)0;
  static const uint16_t ***g_2614 = &g_2615;
  static const uint16_t **** const g_2613 = &g_2614;
  static int32_t * const **g_2635[10][6] = {{&g_2267,&g_2267,&g_2267,&g_2267,&g_2267,&g_2267},{&g_2267,&g_2267,&g_2267,&g_2267,(void*)0,&g_2267},{&g_2267,(void*)0,&g_2267,&g_2267,&g_2267,&g_2267},{&g_2267,&g_2267,&g_2267,&g_2267,&g_2267,&g_2267},{&g_2267,(void*)0,&g_2267,&g_2267,(void*)0,&g_2267},{&g_2267,&g_2267,&g_2267,&g_2267,&g_2267,&g_2267},{&g_2267,&g_2267,&g_2267,&g_2267,&g_2267,&g_2267},{&g_2267,&g_2267,&g_2267,&g_2267,&g_2267,&g_2267},{&g_2267,&g_2267,&g_2267,(void*)0,&g_2267,&g_2267},{&g_2267,&g_2267,(void*)0,(void*)0,&g_2267,&g_2267}};
  static union U0 ** volatile g_2693[8] = {&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]};
  static int64_t g_2698 = 0xF858CAD3445E5A8ALL;
  static const volatile uint32_t g_2745 = 4294967291UL;/* VOLATILE GLOBAL g_2745 */
  static int64_t g_2809 = 0xAB90168A9B21BA90LL;
  static int8_t g_3066[1][3][5] = {{{0x9FL,0x9FL,0xCAL,1L,0xCAL},{0x9FL,0x9FL,0xCAL,1L,0xCAL},{0x9FL,0x9FL,0xCAL,1L,0xCAL}}};
  static union U0 ***g_3156 = &g_487;
  static const uint32_t *** const  volatile g_3159 = &g_349;/* VOLATILE GLOBAL g_3159 */
  static int32_t g_3227 = 0L;
  static int32_t ** volatile g_3235 = &g_204[1][0];/* VOLATILE GLOBAL g_3235 */
  static const int32_t ** volatile g_3236 = &g_670;/* VOLATILE GLOBAL g_3236 */
  static uint32_t g_3252 = 0x0601B86DL;
  static int32_t ** volatile g_3325[1][3] = {{&g_204[0][0],&g_204[0][0],&g_204[0][0]}};
  static volatile uint8_t g_3357 = 0x8FL;/* VOLATILE GLOBAL g_3357 */
  static int32_t ** volatile g_3367 = &g_204[2][2];/* VOLATILE GLOBAL g_3367 */
  static int64_t ** volatile *g_3381 = &g_1313;
  static int64_t ** volatile **g_3380 = &g_3381;
  static int8_t **g_3391 = &g_2601;
  static int32_t ** volatile g_3398 = &g_2142;/* VOLATILE GLOBAL g_3398 */
  
  
  /* --- FORWARD DECLARATIONS --- */
  static uint64_t  func_1(void);
  static int16_t  func_6(uint8_t  p_7, uint32_t  p_8, union U0  p_9);
  static union U0  func_17(uint16_t * p_18);
  static const int32_t  func_62(int32_t ** const  p_63, const uint16_t * p_64, uint64_t  p_65, int16_t  p_66);
  static uint32_t  func_71(union U0 ** p_72);
  static int64_t  func_83(int32_t  p_84);
  static uint32_t  func_99(union U0  p_100, union U0 ** p_101);
  static union U0 ** func_105(uint32_t  p_106, union U0  p_107, int32_t ** p_108);
  static union U0  func_114(uint32_t * p_115, uint32_t * p_116, uint64_t  p_117, const uint32_t  p_118, int64_t  p_119);
  static uint32_t * func_120(int32_t  p_121, union U0 * p_122, union U0 *** p_123);
  
  
  /* --- FUNCTIONS --- */
  /* ------------------------------------------ */
  /* 
   * reads : g_13 g_21 g_35 g_19 g_44 g_46 g_20 g_48 g_49 g_45 g_70 g_86 g_1792 g_1793 g_2142 g_469 g_1312 g_1313 g_1314 g_747 g_2141 g_53.f1 g_472 g_204 g_347 g_348 g_54 g_1400 g_53 g_1277 g_1278 g_1400.f1 g_2266 g_1730 g_670 g_2531 g_780 g_136 g_167 g_761 g_684 g_485 g_486 g_103.f1 g_2613 g_683 g_126 g_2745 g_1394 g_1153 g_611 g_2614 g_2615 g_1179 g_190 g_1004 g_1724 g_59 g_195 g_3066 g_2036 g_103.f0 g_2128 g_528 g_3156 g_3159 g_3235 g_3236 g_3252 g_973 g_3357 g_3367 g_1825 g_1826 g_1827 g_1828 g_1829 g_3380 g_165 g_3381 g_3398 g_1725 g_394 g_2032
   * writes: g_13 g_21 g_35 g_20 g_19 g_45 g_49 g_54 g_53.f1 g_86 g_165 g_469 g_1314 g_2142 g_1770.f1 g_611 g_1725 g_204 g_103.f0 g_747 g_1179 g_1400.f1 g_1937 g_670 g_780 g_394 g_136 g_126 g_195 g_2601 g_972 g_103.f1 g_2635 g_1733 g_487 g_1153 g_1400.f0 g_190 g_2698 g_2809 g_1770.f0 g_2032 g_1724 g_167 g_349 g_3227 g_3252 g_3391 g_46
   */
  static uint64_t  func_1(void)
  { /* block id: 0 */
      uint16_t *l_12 = &g_13;
      int32_t l_2758 = 0x15341CC7L;
      int8_t *l_2759 = (void*)0;
      uint64_t *l_2760 = (void*)0;
      uint64_t *l_2761 = &g_1153;
      union U0 l_2766[1][4] = {{{1L},{1L},{1L},{1L}}};
      uint64_t l_3056 = 0x3B484AC9055E20D3LL;
      int8_t l_3098 = 0xBFL;
      uint32_t l_3099 = 1UL;
      union U0 ** const *l_3125 = (void*)0;
      union U0 ** const **l_3124 = &l_3125;
      union U0 ** const ***l_3123 = &l_3124;
      union U0 ** const ****l_3122 = &l_3123;
      int32_t ***l_3128 = &g_1864;
      int32_t l_3165 = 0xDE288C82L;
      union U0 ***l_3234[8][3] = {{&g_487,(void*)0,(void*)0},{&g_487,&g_487,(void*)0},{(void*)0,(void*)0,(void*)0},{(void*)0,&g_487,(void*)0},{(void*)0,&g_487,(void*)0},{&g_487,(void*)0,(void*)0},{&g_487,&g_487,(void*)0},{(void*)0,(void*)0,(void*)0}};
      int32_t l_3256 = 4L;
      int32_t l_3257 = 0xC6396025L;
      int32_t l_3258 = 0xF8CA723DL;
      int32_t l_3259 = 0xA50B2703L;
      int32_t l_3262 = (-1L);
      int32_t l_3264 = (-2L);
      int32_t l_3292 = 0xF53231B1L;
      int32_t *l_3332 = &g_86;
      uint16_t *l_3424[6];
      uint16_t **l_3425 = &g_46;
      int16_t *l_3436 = &g_611;
      uint8_t l_3437[9][10] = {{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL},{1UL,0x5CL,0UL,0UL,0x5CL,1UL,0x5CL,0UL,0UL,0x5CL}};
      int8_t *l_3438 = &g_2032[0];
      int16_t l_3439 = 1L;
      uint32_t l_3440 = 0UL;
      int8_t l_3441 = (-4L);
      int i, j;
      for (i = 0; i < 6; i++)
          l_3424[i] = &g_70;
      if ((safe_mod_func_int8_t_s_s(((safe_div_func_int16_t_s_s(func_6((safe_div_func_int32_t_s_s(((--(*l_12)) == (~(func_17(l_12) , (((safe_mod_func_int16_t_s_s((9L >= ((g_1400.f1 = (l_2758 , l_2758)) || (-2L))), l_2758)) , (((*l_2761)--) == 0x55CEE898E9E7447CLL)) || (safe_sub_func_uint64_t_u_u(((*l_2761) ^= (l_2766[0][0] , 2UL)), (*g_1277))))))), 0xFBFFFF29L)), l_2766[0][0].f1, l_2766[0][0]), g_59)) == 0UL), l_2766[0][0].f1)))
      { /* block id: 1204 */
          int64_t l_3050 = 0x3141B40D276A28EDLL;
          uint64_t ***l_3063 = &g_1357;
          int32_t **l_3072 = &g_204[0][1];
          int32_t ***l_3071 = &l_3072;
          int8_t *l_3075 = (void*)0;
          int32_t l_3081 = 1L;
          int32_t l_3082[1];
          int64_t l_3096 = 0x2F570EFB962701B9LL;
          int16_t *l_3097 = &g_611;
          int i;
          for (i = 0; i < 1; i++)
              l_3082[i] = (-7L);
          for (g_195 = 0; (g_195 >= (-1)); g_195 = safe_sub_func_uint64_t_u_u(g_195, 9))
          { /* block id: 1207 */
              const int64_t l_3048 = 0xB646560D59D6448ELL;
              int32_t l_3079 = 0L;
              int32_t l_3080 = 0L;
              if (((*g_1277) < (l_3048 , 0UL)))
              { /* block id: 1208 */
                  uint8_t l_3073 = 0x65L;
                  if ((safe_unary_minus_func_uint8_t_u(l_3050)))
                  { /* block id: 1209 */
                      int32_t *l_3051 = &g_167;
                      int32_t *l_3052 = &g_167;
                      int32_t *l_3053 = &g_469;
                      int32_t *l_3054 = &g_167;
                      int32_t l_3055 = 0x2220A0D8L;
                      ++l_3056;
                      (*g_2142) &= l_3048;
                      return (*g_1277);
                  }
                  else
                  { /* block id: 1213 */
                      uint32_t ***l_3060[4];
                      uint32_t ****l_3059 = &l_3060[3];
                      int32_t l_3074 = 1L;
                      uint8_t *l_3076 = &g_1179;
                      int i;
                      for (i = 0; i < 4; i++)
                          l_3060[i] = &g_1793;
                      (**l_3071) = func_120(((((*l_3076) |= (((((((*l_3059) = &g_1793) == &g_349) | ((safe_mod_func_uint16_t_u_u((((&g_1357 == l_3063) != (safe_sub_func_uint8_t_u_u(g_3066[0][2][2], l_3048))) || (safe_mod_func_uint8_t_u_u((g_780 = (safe_sub_func_int8_t_s_s(((l_3071 == (void*)0) || 0x83240EBEL), 0L))), l_3073))), l_2766[0][0].f0)) || l_3074)) , l_3075) != &g_2032[2]) <= l_3048)) | l_3074) && l_2766[0][0].f1), &l_2766[0][0], (***g_683));
                  }
              }
              else
              { /* block id: 1219 */
                  int32_t *l_3077 = &g_469;
                  int32_t *l_3078[6][4];
                  uint64_t l_3083 = 0xC2FE9CD82070FBC2LL;
                  int i, j;
                  for (i = 0; i < 6; i++)
                  {
                      for (j = 0; j < 4; j++)
                          l_3078[i][j] = (void*)0;
                  }
                  l_3083--;
              }
          }
          (*g_2142) = ((((safe_add_func_uint8_t_u_u((safe_mul_func_int16_t_s_s(((void*)0 != &g_1732), ((((((((&g_1312 != ((~(l_3098 = ((*g_1277) < (safe_div_func_int16_t_s_s((((-8L) > (*g_1277)) && 65535UL), (((safe_div_func_int16_t_s_s(((*l_3097) &= (3L < (safe_unary_minus_func_uint32_t_u(l_3096)))), l_2758)) ^ l_2766[0][0].f1) & 0xD8F9F3F1L)))))) , &g_1312)) ^ l_3050) ^ l_2766[0][0].f0) , 0x37L) , l_2766[0][0]) , 0x786373E6F161CED7LL) < (*g_1277)) == 247UL))), g_2036)) | (*g_2142)) == l_2758) , l_3099);
          for (g_103.f1 = 0; (g_103.f1 <= 0); ++g_103.f1)
          { /* block id: 1228 */
              (*l_3072) = (*g_2141);
          }
      }
      else
      { /* block id: 1231 */
          int32_t *l_3111 = &g_195;
          int32_t l_3119 = 0x92ED24ACL;
          union U0 ******l_3121 = &g_684;
          uint64_t l_3140 = 3UL;
          int32_t *l_3157 = (void*)0;
          int32_t l_3160[10] = {5L,0x47AC7FC2L,0xA1D54D4AL,0xA1D54D4AL,0x47AC7FC2L,5L,0x47AC7FC2L,0xA1D54D4AL,0xA1D54D4AL,0x47AC7FC2L};
          int16_t *l_3362 = &g_1725;
          int64_t ****l_3382 = &g_1312;
          uint32_t *l_3383 = (void*)0;
          uint32_t *l_3384[3];
          int32_t l_3392 = 0x5B851A3AL;
          int32_t l_3393 = 0x4448740DL;
          uint32_t *l_3394[8] = {&g_528,&g_528,&g_528,&g_528,&g_528,&g_528,&g_528,&g_528};
          uint16_t l_3395 = 0x805CL;
          int32_t *l_3396 = &l_3258;
          union U0 *l_3397 = &g_1770;
          int32_t l_3409[1];
          int8_t *l_3416 = (void*)0;
          int8_t *l_3417[4] = {&g_165,&g_165,&g_165,&g_165};
          int i;
          for (i = 0; i < 3; i++)
              l_3384[i] = &g_190;
          for (i = 0; i < 1; i++)
              l_3409[i] = 0xB82D244AL;
          for (g_195 = 4; (g_195 >= 0); g_195 -= 1)
          { /* block id: 1234 */
              int32_t * const **l_3102[3][6][1];
              int32_t l_3114 = 0x1EA1DEA7L;
              union U0 *******l_3120[9][7][3] = {{{(void*)0,(void*)0,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{(void*)0,(void*)0,&g_683},{&g_683,&g_683,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,(void*)0},{&g_683,&g_683,(void*)0},{&g_683,(void*)0,&g_683},{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,(void*)0,&g_683},{&g_683,&g_683,(void*)0},{(void*)0,&g_683,&g_683},{&g_683,(void*)0,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{(void*)0,(void*)0,&g_683},{&g_683,&g_683,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,(void*)0},{&g_683,&g_683,(void*)0},{&g_683,(void*)0,&g_683},{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,(void*)0,&g_683},{&g_683,&g_683,(void*)0},{(void*)0,&g_683,&g_683},{&g_683,(void*)0,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{(void*)0,(void*)0,&g_683},{&g_683,&g_683,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,(void*)0},{&g_683,&g_683,(void*)0},{&g_683,(void*)0,&g_683},{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683}},{{(void*)0,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,&g_683,&g_683},{&g_683,(void*)0,&g_683},{&g_683,&g_683,(void*)0},{(void*)0,&g_683,&g_683},{&g_683,(void*)0,&g_683}}};
              int32_t ***l_3126 = &g_1864;
              int32_t ****l_3127[4];
              int32_t l_3162 = (-1L);
              int32_t l_3163[3][8][3] = {{{0x207F2992L,0xA782F1EAL,0x98C22FA3L},{0x8D5CED6CL,0x2E8DDBA0L,6L},{0x98C22FA3L,6L,6L},{6L,0x8D5CED6CL,0x767311F8L},{0x98C22FA3L,0x207F2992L,0x98C22FA3L},{0x2E8DDBA0L,6L,0x767311F8L},{0xA782F1EAL,0xA782F1EAL,6L},{(-2L),6L,6L}},{{6L,0x207F2992L,0xA7144CC9L},{(-2L),0x8D5CED6CL,(-2L)},{0xA782F1EAL,6L,0xA7144CC9L},{0x2E8DDBA0L,0x2E8DDBA0L,6L},{0x98C22FA3L,6L,6L},{6L,0x8D5CED6CL,0x767311F8L},{0x98C22FA3L,0x207F2992L,0x98C22FA3L},{0x2E8DDBA0L,6L,0x767311F8L}},{{0xA782F1EAL,0xA782F1EAL,6L},{(-2L),6L,6L},{6L,0x207F2992L,0xA7144CC9L},{(-2L),0x8D5CED6CL,(-2L)},{0xA782F1EAL,6L,0xA7144CC9L},{0x2E8DDBA0L,0x2E8DDBA0L,6L},{0x98C22FA3L,6L,6L},{6L,0x8D5CED6CL,0x767311F8L}}};
              uint8_t l_3166 = 1UL;
              union U0 *l_3233 = &g_1400;
              int16_t l_3263 = 5L;
              uint64_t l_3303[6] = {0x16D1E69B613C1DB7LL,0x16D1E69B613C1DB7LL,0x16D1E69B613C1DB7LL,0x16D1E69B613C1DB7LL,0x16D1E69B613C1DB7LL,0x16D1E69B613C1DB7LL};
              int8_t l_3323 = 0xEFL;
              union U0 *l_3331 = (void*)0;
              uint32_t l_3349 = 0x87018813L;
              int i, j, k;
              for (i = 0; i < 3; i++)
              {
                  for (j = 0; j < 6; j++)
                  {
                      for (k = 0; k < 1; k++)
                          l_3102[i][j][k] = &g_2267;
                  }
              }
              for (i = 0; i < 4; i++)
                  l_3127[i] = (void*)0;
              l_2758 = ((g_2635[1][0] = l_3102[1][3][0]) == (l_3128 = ((safe_mod_func_uint16_t_u_u(((safe_sub_func_int32_t_s_s((safe_add_func_uint32_t_u_u(1UL, ((l_3114 = (((((0xC1L <= (safe_rshift_func_int16_t_s_s(((void*)0 == l_3111), (((safe_rshift_func_uint16_t_u_u((l_3114 && (((safe_sub_func_uint16_t_u_u(0xF24AL, (((l_3121 = (((safe_sub_func_int32_t_s_s(((((l_3056 , (*g_347)) , l_3119) || 0x100F0391L) , l_2766[0][0].f0), l_2758)) <= 0x6EFFL) , (void*)0)) != (void*)0) & l_3114))) , (void*)0) != l_3122)), 1)) , 1UL) , l_3119)))) || l_3114) > l_3099) < l_3114) ^ 1UL)) | 18446744073709551615UL))), 1L)) > l_3119), 0x7EA7L)) , l_3126)));
              (*g_2142) = (safe_sub_func_int8_t_s_s(l_3114, l_3114));
              for (g_126 = 1; (g_126 <= 5); g_126 += 1)
              { /* block id: 1243 */
                  uint32_t l_3133[10] = {0UL,6UL,0UL,0UL,6UL,0UL,0UL,6UL,0UL,0UL};
                  union U0 *l_3155 = &g_53;
                  int32_t l_3161[3];
                  int32_t l_3164 = 0xC289FCE9L;
                  uint16_t l_3182 = 0x27B5L;
                  uint8_t l_3186[7] = {250UL,250UL,3UL,250UL,250UL,3UL,250UL};
                  uint8_t l_3228 = 247UL;
                  int i;
                  for (i = 0; i < 3; i++)
                      l_3161[i] = 0xB3DD4645L;
                  for (g_103.f0 = 0; (g_103.f0 <= 0); g_103.f0 += 1)
                  { /* block id: 1246 */
                      const uint32_t l_3153[5][3] = {{0xBA23C2C7L,0x8550EB1EL,0x8550EB1EL},{0xBA23C2C7L,0x8550EB1EL,0x8550EB1EL},{0xBA23C2C7L,0x8550EB1EL,0x8550EB1EL},{0xBA23C2C7L,0x8550EB1EL,0x8550EB1EL},{0xBA23C2C7L,0x8550EB1EL,0x8550EB1EL}};
                      int32_t ** const l_3154[10] = {&g_204[1][0],&g_204[0][0],&g_204[0][0],&g_204[1][0],&g_204[0][0],&g_204[0][0],&g_204[1][0],&g_204[0][0],&g_204[0][0],&g_204[1][0]};
                      const uint32_t **l_3158 = &g_350;
                      uint32_t *l_3173 = &g_190;
                      int16_t *l_3183 = &g_1725;
                      uint8_t *l_3184 = (void*)0;
                      uint8_t *l_3185 = (void*)0;
                      uint64_t **l_3187 = (void*)0;
                      uint64_t **l_3188 = &l_2760;
                      int i, j, k;
                      l_3157 = func_120((g_2128[g_195][g_103.f0][(g_103.f0 + 1)] || (safe_add_func_uint64_t_u_u(((*l_2761) = l_3133[3]), ((l_3119 == (safe_div_func_uint8_t_u_u((((((safe_rshift_func_int8_t_s_s((-6L), (l_3133[3] == ((func_114(((safe_lshift_func_int8_t_s_s((l_3140 , ((safe_mod_func_int64_t_s_s((safe_add_func_uint16_t_u_u(((safe_lshift_func_uint8_t_u_s((((0xDA85L && 9L) < ((((((safe_lshift_func_uint16_t_u_u((((safe_mod_func_uint64_t_u_u((safe_sub_func_int32_t_s_s((**g_2141), 0x4D73E220L)), 1UL)) < 0L) == g_195), l_3140)) , (*g_1277)) <= 0x378BC8AC75BC2210LL) != (-9L)) || 0xC785L) , 0x81L)) == l_3114), g_528)) && l_3153[0][2]), 3L)), l_3119)) , l_3133[3])), 6)) , (void*)0), (*g_1793), l_3098, l_3140, l_3114) , (void*)0) == l_3154[8])))) || 65535UL) >= l_3099) == l_3114) , l_3114), l_2758))) > l_3119)))), l_3155, g_3156);
                      for (g_167 = 4; (g_167 >= 0); g_167 -= 1)
                      { /* block id: 1251 */
                          (*g_3159) = l_3158;
                      }
                      l_3166--;
                      (**g_48) = (((*l_3188) = (((((0xD5BDL | ((safe_lshift_func_int8_t_s_u(((((l_3161[1] | ((safe_div_func_uint32_t_u_u(((*l_3173)--), (safe_mul_func_int8_t_s_s(0x81L, (g_1179 = (safe_add_func_uint64_t_u_u(l_2766[0][0].f1, ((*l_2761) &= (safe_add_func_int64_t_s_s(((((l_3182 , ((*l_12) ^= ((void*)0 == l_3173))) <= l_3099) <= ((*l_3183) = ((***g_1312) && l_3163[2][5][2]))) , 0x141A9E9C5B56F838LL), l_2766[0][0].f1)))))))))) | (*g_1277))) & (*g_1277)) <= l_3161[0]) | 9L), 6)) != 1UL)) | 9L) || l_3186[1]) < (*g_347)) , &g_2036)) != &g_1278);
                  }
                  for (l_3166 = 0; (l_3166 <= 1); l_3166 += 1)
                  { /* block id: 1265 */
                      uint64_t l_3209 = 0UL;
                      int32_t l_3225 = 0xC459D223L;
                      for (g_1937 = 0; (g_1937 <= 3); g_1937 += 1)
                      { /* block id: 1268 */
                          int i;
                          (*g_49) ^= l_3119;
                      }
                      for (g_2809 = 1; (g_2809 >= 0); g_2809 -= 1)
                      { /* block id: 1273 */
                          union U0 l_3213[8][8] = {{{0L},{0L},{0L},{0xD3L},{-5L},{1L},{0x86L},{0x3CL}},{{0xD3L},{0x22L},{0xCEL},{0x3FL},{1L},{0xF9L},{0x36L},{0x3CL}},{{0x22L},{0x86L},{0xE5L},{0xD3L},{0x9BL},{0x59L},{7L},{0x0DL}},{{0xCEL},{0xE5L},{-5L},{0xE5L},{0x3AL},{0xE5L},{-5L},{0xE5L}},{{0x3FL},{0xD3L},{0xE5L},{0x22L},{0x59L},{0x86L},{5L},{0L}},{{1L},{0x9BL},{0x3AL},{0x59L},{0x3FL},{0x36L},{5L},{0L}},{{0xF9L},{0x59L},{0xE5L},{0x86L},{0x36L},{7L},{-5L},{5L}},{{0x36L},{7L},{-5L},{5L},{5L},{-5L},{7L},{0x36L}}};
                          uint8_t *l_3226[1];
                          uint32_t l_3229 = 4294967295UL;
                          int i, j;
                          for (i = 0; i < 1; i++)
                              l_3226[i] = &g_1179;
                          l_3164 = ((*g_1277) != ((safe_mul_func_int16_t_s_s(((safe_mul_func_uint8_t_u_u((g_1179 = (safe_sub_func_int64_t_s_s(((l_3114 = (0x5A732CE66A4DA417LL ^ (safe_lshift_func_uint8_t_u_u(((((((safe_mul_func_int8_t_s_s((-1L), (((l_3165 = ((**g_1313) = (((((safe_div_func_int32_t_s_s((((safe_rshift_func_uint8_t_u_u((((((g_3227 = (safe_lshift_func_int8_t_s_u(((safe_mul_func_int16_t_s_s(((1UL == (safe_rshift_func_int8_t_s_s((l_3209 && (+0x97L)), (((safe_add_func_uint8_t_u_u((((((l_3213[5][7] , (safe_unary_minus_func_uint16_t_u(((safe_lshift_func_uint16_t_u_u((((safe_div_func_int8_t_s_s((safe_mod_func_uint32_t_u_u((safe_lshift_func_int8_t_s_s(0x26L, ((safe_add_func_uint32_t_u_u(((*l_3155) , l_3161[0]), l_3225)) > 0UL))), l_3133[3])), 0x22L)) | l_3209) , l_3186[1]), 8)) | l_2758)))) <= (*g_347)) , l_3163[2][5][0]) ^ l_3114) && l_3182), l_3114)) >= 1L) , l_3209)))) > l_2758), 0x2D4DL)) | (*g_1277)), l_2766[0][0].f1))) | l_3161[0]) || l_3133[3]) | l_3228) >= 0x01A3L), 2)) || 0xCA39887BL) >= l_3166), l_3161[1])) == 6UL) , l_3182) != (*g_1277)) , (**g_1313)))) , (*g_347)) != l_3229))) == 1UL) == 255UL) | 0xFE8438A78C025A89LL) <= l_3229) && l_3186[1]), 0)))) >= l_3166), 1UL))), (-1L))) | l_3213[5][7].f1), l_3186[4])) > l_3119));
                          if (l_3133[3])
                              break;
                          if (l_3209)
                              continue;
                      }
                  }
              }
              for (l_2758 = 5; (l_2758 >= 1); l_2758 -= 1)
              { /* block id: 1287 */
                  int32_t l_3255 = (-1L);
                  int32_t l_3260 = 0x34896974L;
                  int32_t l_3261 = 0L;
                  union U0 *l_3268 = &g_1770;
                  uint32_t l_3297 = 0x8280E05DL;
                  uint64_t l_3304 = 0x4E3424F3EBB9D729LL;
                  int8_t l_3306 = 0x2FL;
                  union U0 ***l_3324 = (void*)0;
                  for (g_747 = 0; (g_747 <= 3); g_747 += 1)
                  { /* block id: 1290 */
                      uint8_t l_3230 = 0UL;
                      l_3230++;
                      for (g_190 = 0; (g_190 <= 0); g_190 += 1)
                      { /* block id: 1294 */
                          int i;
                          (*g_3235) = func_120(g_1724[(g_190 + 2)], (l_3233 = (void*)0), l_3234[2][0]);
                      }
                  }
                  for (l_3165 = 0; (l_3165 <= 0); l_3165 += 1)
                  { /* block id: 1301 */
                      int32_t l_3237 = 0x7C64E1B3L;
                      int32_t l_3238 = 0x94CB0DEFL;
                      int32_t l_3246 = 0xADDC59C7L;
                      int32_t l_3251[9][7][4] = {{{(-5L),0L,(-1L),0x9C535723L},{0x020399AAL,(-9L),0L,0L},{0xD41FDEFCL,0x171787DDL,(-1L),0L},{(-1L),0xB4DF04DCL,0xC0EFD77EL,0x09F96982L},{0L,(-1L),0L,(-9L)},{(-3L),0L,0x0A8F5459L,(-1L)},{0xB75BB15DL,(-1L),(-1L),0L}},{{0xB0C8F6D6L,0L,0L,0xB0C8F6D6L},{(-1L),0xB75BB15DL,0x94D4ED8DL,(-1L)},{(-1L),(-1L),0L,(-1L)},{(-1L),0x5C7F75D3L,(-3L),(-1L)},{0x071560C4L,(-1L),(-1L),(-1L)},{0x31C6329EL,0xB75BB15DL,0xF9E1AF24L,0xB0C8F6D6L},{0xD41FDEFCL,0L,0x071560C4L,0L}},{{0x5C7F75D3L,(-1L),(-9L),(-1L)},{0xF874E24CL,0L,0x171787DDL,(-9L)},{0xD41FDEFCL,(-1L),0xE2555B0AL,0x09F96982L},{0xB7DB2B7AL,0xB4DF04DCL,(-1L),0L},{(-9L),(-1L),0L,(-1L)},{(-1L),0x94D4ED8DL,(-1L),0xB75BB15DL},{0x94D4ED8DL,0xB4DF04DCL,0x94D4ED8DL,0x0A8F5459L}},{{0L,0xD41FDEFCL,0L,(-9L)},{0xB0C8F6D6L,(-1L),0x0A8F5459L,0xD41FDEFCL},{0L,(-1L),0x0A8F5459L,(-9L)},{0xB0C8F6D6L,0L,0L,0xB0C8F6D6L},{0L,0L,0x94D4ED8DL,(-1L)},{0x94D4ED8DL,(-1L),(-1L),0L},{(-1L),0xF874E24CL,0L,(-1L)}},{{(-9L),(-1L),(-1L),(-1L)},{0xB7DB2B7AL,0xB75BB15DL,0xE2555B0AL,(-3L)},{0xD41FDEFCL,0L,0x171787DDL,0L},{0xF874E24CL,0L,(-9L),0xD41FDEFCL},{0x5C7F75D3L,0L,0x071560C4L,0x071560C4L},{0xD41FDEFCL,0xD41FDEFCL,0xF9E1AF24L,0x09F96982L},{0x31C6329EL,0xE2555B0AL,(-1L),0xB75BB15DL}},{{0x071560C4L,(-1L),(-3L),(-1L)},{(-1L),(-1L),0L,0xB75BB15DL},{(-1L),0xE2555B0AL,0x94D4ED8DL,0x09F96982L},{(-1L),0xD41FDEFCL,0L,0x071560C4L},{0xB0C8F6D6L,0L,(-1L),0xD41FDEFCL},{0xB75BB15DL,0L,0x0A8F5459L,0L},{(-3L),0L,0L,(-3L)}},{{0L,0xB75BB15DL,0xC0EFD77EL,(-1L)},{(-1L),(-1L),(-1L),(-1L)},{(-1L),0xF874E24CL,(-3L),0L},{(-9L),(-1L),0x9C535723L,(-1L)},{0x31C6329EL,0L,0xE2555B0AL,0xB0C8F6D6L},{(-1L),0L,0x071560C4L,(-9L)},{0xF874E24CL,(-1L),0x020399AAL,0xD41FDEFCL}},{{0xF874E24CL,(-1L),0x071560C4L,(-9L)},{(-1L),(-1L),0xA8B25337L,2L},{0x0A8F5459L,0L,0xB75BB15DL,(-3L)},{0x94D4ED8DL,0L,0x020399AAL,0L},{0x919E1869L,0xF510FE3EL,0x9C535723L,(-5L)},{0xF510FE3EL,0L,0x9E968D07L,(-1L)},{0L,0x9C535723L,0L,0x94D4ED8DL}},{{0x5ADBFEA1L,0L,2L,0x9C535723L},{(-3L),0x5C7F75D3L,0L,0x071560C4L},{0xB7DB2B7AL,0L,0L,0xB7DB2B7AL},{0L,(-3L),0L,0L},{0xF510FE3EL,(-1L),(-1L),0x5C7F75D3L},{0L,(-1L),0x020399AAL,0x5C7F75D3L},{0xC0EFD77EL,(-1L),0x919E1869L,0L}}};
                      uint64_t l_3265 = 18446744073709551606UL;
                      int i, j, k;
                      for (g_1400.f0 = 0; (g_1400.f0 >= 0); g_1400.f0 -= 1)
                      { /* block id: 1304 */
                          int32_t *l_3239 = &l_3237;
                          int32_t *l_3240 = (void*)0;
                          int32_t *l_3241 = &l_3160[6];
                          int16_t l_3242[10];
                          int32_t *l_3243 = &l_3238;
                          int32_t *l_3244 = &l_3237;
                          int32_t *l_3245 = &l_3160[8];
                          int32_t *l_3247 = &g_21;
                          int32_t *l_3248 = (void*)0;
                          int32_t *l_3249 = &g_21;
                          int32_t *l_3250[6][9][4] = {{{&l_3165,&g_167,&l_3160[0],&g_469},{&l_3165,&l_3160[0],&l_3165,(void*)0},{&g_167,&g_469,(void*)0,(void*)0},{&l_3160[0],&l_3160[0],(void*)0,&g_469},{&g_469,&g_167,(void*)0,&g_167},{&l_3160[0],&l_3165,(void*)0,(void*)0},{&g_167,&l_3165,&l_3165,&g_167},{&l_3165,&g_167,&l_3160[0],&g_469},{&l_3165,&l_3160[0],&l_3165,(void*)0}},{{&g_167,&g_469,(void*)0,(void*)0},{&l_3160[0],&l_3160[0],(void*)0,&g_469},{&g_469,&g_167,(void*)0,&g_167},{&l_3160[0],&l_3165,(void*)0,(void*)0},{&g_167,&l_3165,&l_3165,&g_167},{&l_3165,&g_167,&l_3160[0],&g_469},{&l_3165,&l_3160[0],&l_3165,(void*)0},{&g_167,&g_469,(void*)0,(void*)0},{&l_3160[0],&l_3160[0],(void*)0,&g_469}},{{&g_469,&g_167,(void*)0,&g_167},{&l_3160[0],&l_3165,(void*)0,(void*)0},{&g_167,&l_3165,&l_3165,&g_167},{&l_3165,&g_167,&l_3160[0],&g_469},{&l_3165,&l_3160[0],&l_3165,(void*)0},{&g_167,&g_469,(void*)0,(void*)0},{&l_3160[0],&l_3160[0],(void*)0,&g_469},{&g_469,&g_167,(void*)0,&g_167},{&l_3160[0],&l_3165,(void*)0,(void*)0}},{{&g_167,&l_3165,&l_3165,&g_167},{&l_3165,&g_167,&l_3160[0],&g_469},{&l_3165,&l_3160[0],&l_3165,(void*)0},{&g_167,&g_469,(void*)0,(void*)0},{&l_3160[0],&l_3160[0],(void*)0,&g_469},{&g_469,&g_167,(void*)0,&g_167},{&l_3160[0],&l_3165,(void*)0,(void*)0},{&g_167,&l_3165,&l_3165,&g_167},{&g_469,&l_3165,&l_3160[(g_195 + 4)],(void*)0}},{{&g_469,&l_3160[(g_195 + 4)],&g_469,(void*)0},{&l_3165,(void*)0,(void*)0,(void*)0},{&l_3160[(g_195 + 4)],&l_3160[(g_195 + 4)],&l_3160[0],(void*)0},{(void*)0,&l_3165,&l_3160[0],&l_3165},{&l_3160[(g_195 + 4)],&g_469,(void*)0,&l_3160[0]},{&l_3165,&g_469,&g_469,&l_3165},{&g_469,&l_3165,&l_3160[(g_195 + 4)],(void*)0},{&g_469,&l_3160[(g_195 + 4)],&g_469,(void*)0},{&l_3165,(void*)0,(void*)0,(void*)0}},{{&l_3160[(g_195 + 4)],&l_3160[(g_195 + 4)],&l_3160[0],(void*)0},{(void*)0,&l_3165,&l_3160[0],&l_3165},{&l_3160[(g_195 + 4)],&g_469,(void*)0,&l_3160[0]},{&l_3165,&g_469,&g_469,&l_3165},{&g_469,&l_3165,&l_3160[(g_195 + 4)],(void*)0},{&g_469,&l_3160[(g_195 + 4)],&g_469,(void*)0},{&l_3165,(void*)0,(void*)0,(void*)0},{&l_3160[(g_195 + 4)],&l_3160[(g_195 + 4)],&l_3160[0],(void*)0},{(void*)0,&l_3165,&l_3160[0],&l_3165}}};
                          int i, j, k;
                          for (i = 0; i < 10; i++)
                              l_3242[i] = 0L;
                          (*g_3236) = (*g_2531);
                          g_3252++;
                          ++l_3265;
                      }
                  }
                  for (l_3119 = 0; (l_3119 <= 5); l_3119 += 1)
                  { /* block id: 1312 */
                      const int8_t l_3289 = (-10L);
                      int32_t l_3294[4][9][2] = {{{0xD076EC1FL,(-1L)},{0xF6BC27AEL,0xAA11720CL},{3L,3L},{(-1L),8L},{0xFC91D86FL,0x0C5696E1L},{0xBEF416B7L,1L},{4L,0xBEF416B7L},{(-4L),0xD076EC1FL},{(-4L),0xBEF416B7L}},{{4L,1L},{0xBEF416B7L,0x0C5696E1L},{0xFC91D86FL,8L},{(-1L),3L},{3L,0xAA11720CL},{0xF6BC27AEL,(-1L)},{0xD076EC1FL,(-1L)},{8L,(-1L)},{0xD076EC1FL,(-1L)}},{{0xF6BC27AEL,0xAA11720CL},{3L,3L},{(-1L),8L},{0xFC91D86FL,0x0C5696E1L},{0xBEF416B7L,1L},{4L,0xBEF416B7L},{(-4L),0xD076EC1FL},{(-4L),0xBEF416B7L},{4L,1L}},{{0xBEF416B7L,0x0C5696E1L},{0xFC91D86FL,8L},{(-1L),3L},{3L,0xAA11720CL},{0xF6BC27AEL,(-1L)},{0xD076EC1FL,(-1L)},{8L,(-1L)},{0xD076EC1FL,(-1L)},{0xF6BC27AEL,0xAA11720CL}}};
                      uint16_t *l_3296[6] = {&g_394,&g_394,(void*)0,&g_394,&g_394,(void*)0};
                      int i, j, k;
                      for (g_1153 = 0; (g_1153 <= 3); g_1153 += 1)
                      { /* block id: 1315 */
                          int16_t l_3279 = (-1L);
                          int16_t *l_3293 = &g_611;
                          int16_t l_3295[2];
                          int i;
                          for (i = 0; i < 2; i++)
                              l_3295[i] = 0x62C4L;
                          l_3268 = l_3268;
                          l_3157 = &l_3264;
                          (*g_2142) ^= (((((safe_add_func_int8_t_s_s((l_3294[2][2][1] |= (((*l_3293) = ((safe_mod_func_int16_t_s_s((&g_1357 != (void*)0), (safe_sub_func_int16_t_s_s((safe_lshift_func_uint8_t_u_s((safe_add_func_int64_t_s_s((l_3279 <= 0L), ((safe_div_func_uint64_t_u_u((+(((l_3260 = (safe_mul_func_int8_t_s_s(l_3163[0][4][2], ((*l_3157) && (safe_rshift_func_int8_t_s_s((safe_div_func_uint16_t_u_u(0x1BBBL, (l_3289 , (safe_lshift_func_int8_t_s_s((*g_347), 1))))), l_3289)))))) != (*l_3157)) >= l_3292)), 0xBC9BE8ED42379CDCLL)) && 0UL))), 4)), (-1L))))) == l_3261)) > (*l_3157))), l_2766[0][0].f1)) && l_3295[0]) , g_973[g_1153]) != l_3296[0]) > l_3297);
                      }
                  }
                  for (g_103.f0 = 0; (g_103.f0 <= 5); g_103.f0 += 1)
                  { /* block id: 1326 */
                      uint8_t *l_3300[4];
                      int32_t l_3301 = 0x8418F000L;
                      int16_t *l_3302[9][9][3] = {{{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263}},{{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263}},{{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263}},{{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611}},{{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263}},{{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263}},{{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263}},{{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611}},{{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&l_3263,&l_3263,&l_3263},{&g_611,&l_3263,&g_611},{&l_3263,&l_3263,&l_3263}}};
                      int32_t l_3351[3];
                      int i, j, k;
                      for (i = 0; i < 4; i++)
                          l_3300[i] = &g_780;
                      for (i = 0; i < 3; i++)
                          l_3351[i] = 1L;
                      if ((((0UL >= (safe_mod_func_uint16_t_u_u((((g_1179 = (((**g_1312) = (**g_1312)) == (void*)0)) , (l_3303[5] |= (l_3163[2][5][0] = l_3301))) && 0UL), l_3263))) | l_3304) != 0x45L))
                      { /* block id: 1331 */
                          return l_3163[2][5][0];
                      }
                      else
                      { /* block id: 1333 */
                          uint8_t l_3313 = 5UL;
                          uint32_t l_3322[7];
                          int32_t **l_3326 = &g_2142;
                          int i;
                          for (i = 0; i < 7; i++)
                              l_3322[i] = 0xD08E852DL;
                          (*l_3326) = (l_3157 = func_120(((((~(l_3306 | (safe_sub_func_int64_t_s_s(l_3297, (safe_mul_func_int8_t_s_s((*g_347), ((l_3056 < (safe_add_func_uint8_t_u_u((l_3313 ^ l_3162), (l_3264 <= ((*l_12) |= 0x672CL))))) <= (safe_div_func_int64_t_s_s((safe_sub_func_uint64_t_u_u(((safe_rshift_func_int16_t_s_s((safe_sub_func_uint8_t_u_u(l_3322[3], g_1724[3])), 1)) | l_3165), (*g_1277))), (*g_1277)))))))))) & l_3301) && l_3259) <= l_3323), l_3268, l_3324));
                          if ((*l_3157))
                              break;
                      }
                      for (g_1400.f1 = 5; (g_1400.f1 >= 1); g_1400.f1 -= 1)
                      { /* block id: 1341 */
                          int32_t l_3330 = 0xE7F3432AL;
                          uint8_t l_3333 = 0UL;
                          l_3332 = func_120(((!l_3162) , (safe_unary_minus_func_uint8_t_u(((((!l_3301) && l_3255) > (*g_44)) , (l_3301 = (*l_3157)))))), (l_3330 , l_3331), ((((*l_2761) = 0x35FD695D33E48C83LL) < l_3259) , (void*)0));
                          l_3333 ^= (*l_3157);
                      }
                      for (g_190 = 0; (g_190 <= 6); g_190 += 1)
                      { /* block id: 1349 */
                          uint16_t l_3336 = 0x7584L;
                          const uint16_t l_3350 = 65535UL;
                          l_3351[2] ^= (safe_add_func_int32_t_s_s(((l_3336 != (((safe_lshift_func_int16_t_s_u((((**g_1313) = l_3301) || ((((**g_1313) ^= (safe_add_func_int16_t_s_s(l_3336, (((-1L) >= 9UL) , l_3304)))) > ((*l_3332) , (((safe_add_func_int16_t_s_s(((*l_3332) = (*l_3157)), (safe_div_func_uint64_t_u_u((safe_div_func_uint16_t_u_u((--(*l_12)), l_3349)), (*g_1277))))) || (*l_3332)) != 0x369DF50FL))) & l_3336)), 3)) | (-7L)) | l_3350)) == 1UL), l_3301));
                          (*l_3157) = (l_3262 &= (*l_3332));
                      }
                  }
              }
          }
          (*g_3367) = ((safe_lshift_func_int8_t_s_u(((*l_3332) | ((safe_div_func_uint16_t_u_u(((*l_12) &= l_3160[2]), (+g_3357))) > (safe_rshift_func_int16_t_s_s(((*l_3362) = (safe_lshift_func_uint16_t_u_s((18446744073709551615UL < (l_3160[8] & (*l_3332))), 7))), ((safe_rshift_func_int16_t_s_s((safe_mod_func_uint32_t_u_u((*l_3332), 0xCB026900L)), 12)) == 0xF861L))))), 5)) , &l_3258);
          (*g_3398) = func_120((safe_mul_func_uint8_t_u_u(((*l_3332) | (!(+(((*l_3332) , ((*l_3362) = ((((*l_2761) = ((****g_1825) == ((((*l_3396) = (safe_rshift_func_uint16_t_u_s((((g_1724[3] = ((safe_sub_func_uint32_t_u_u((safe_sub_func_uint8_t_u_u(((l_3119 ^= (safe_add_func_uint16_t_u_u((g_3380 == l_3382), 0xF96DL))) > (l_3392 = ((safe_rshift_func_uint8_t_u_u((safe_rshift_func_int8_t_s_s((safe_sub_func_int8_t_s_s(((*l_3332) || ((g_3391 = &g_2601) == (void*)0)), 0x6CL)), (*l_3332))), g_165)) , (*l_3332)))), l_3393)), (*l_3332))) != l_3140)) , (****g_3380)) , l_3395), 7))) , 0x563A4A5C11C1B531LL) , (**g_683)))) > 0L) && (*g_1277)))) < (*l_3332))))), 255UL)), l_3397, (**g_684));
          (*g_49) &= (safe_mul_func_uint8_t_u_u((safe_lshift_func_int8_t_s_s((0x497DL & (safe_rshift_func_int16_t_s_s((safe_rshift_func_int16_t_s_s(((*l_3332) || (safe_lshift_func_int16_t_s_u((*l_3396), 1))), (*l_3332))), ((*l_3362) &= l_3409[0])))), (l_3256 = (safe_sub_func_uint64_t_u_u(0x5CAB0963F6BB160DLL, ((*l_3332) <= (safe_mod_func_int32_t_s_s(((*l_3332) < (l_3257 = (safe_mul_func_uint16_t_u_u((*l_3332), 65534UL)))), (*l_3396))))))))), g_394));
      }
      (*g_49) = (safe_sub_func_int8_t_s_s((((*l_3332) <= (safe_sub_func_uint8_t_u_u((((++(*l_12)) , ((*l_3332) , l_3424[1])) == ((*l_3425) = l_12)), (*l_3332)))) & ((safe_sub_func_uint64_t_u_u((*l_3332), (safe_mul_func_int16_t_s_s((((safe_sub_func_int8_t_s_s((((*l_3332) , (((*l_3438) &= ((*l_3332) ^ (l_3437[7][0] = ((*l_3436) = ((safe_mod_func_uint16_t_u_u((((0x03L < 0x30L) , 1UL) > 0x6CL), (*l_3332))) <= (-9L)))))) && (*l_3332))) <= (*l_3332)), (*l_3332))) && l_3439) == l_3440), (*l_3332))))) >= l_3441)), 250UL));
      return (*g_1277);
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_2142 g_469 g_611 g_1312 g_1313 g_1314 g_747 g_1793 g_1277 g_1278 g_54 g_1400 g_53 g_13 g_2614 g_2615 g_49 g_1179 g_190 g_46 g_347 g_348 g_683 g_684 g_485 g_486 g_48 g_472 g_126 g_44 g_45 g_1004 g_1153 g_1724
   * writes: g_469 g_611 g_136 g_19 g_20 g_13 g_1400.f0 g_1179 g_747 g_190 g_103.f0 g_2698 g_2809 g_1770.f0 g_49 g_204 g_2032 g_2601 g_126 g_1153 g_1724
   */
  static int16_t  func_6(uint8_t  p_7, uint32_t  p_8, union U0  p_9)
  { /* block id: 1109 */
      uint8_t l_2767 = 255UL;
      uint16_t *l_2772 = &g_13;
      uint16_t **l_2773[8][4] = {{(void*)0,(void*)0,&g_46,(void*)0},{&l_2772,&l_2772,&l_2772,(void*)0},{&g_46,(void*)0,(void*)0,&l_2772},{&g_46,&l_2772,(void*)0,(void*)0},{&l_2772,&l_2772,(void*)0,&l_2772},{&g_46,&g_46,(void*)0,&l_2772},{&g_46,(void*)0,&l_2772,(void*)0},{&l_2772,(void*)0,&g_46,&l_2772}};
      uint16_t *l_2774 = &g_70;
      int16_t *l_2775 = &g_611;
      uint32_t **l_2776 = &g_727[0][3][3];
      int32_t l_2789 = (-7L);
      const uint64_t l_2790 = 18446744073709551615UL;
      uint32_t *l_2791 = &g_126;
      uint32_t *l_2792 = &g_1724[3];
      union U0 ***l_2793 = &g_487;
      union U0 ***l_2794 = &g_487;
      union U0 ***l_2795 = &g_487;
      union U0 ***l_2796 = &g_487;
      union U0 ***l_2797 = &g_487;
      union U0 ***l_2798 = &g_487;
      union U0 ***l_2799 = &g_487;
      union U0 ***l_2800[4][6][1] = {{{&g_487},{&g_487},{&g_487},{(void*)0},{&g_487},{(void*)0}},{{&g_487},{(void*)0},{&g_487},{(void*)0},{&g_487},{&g_487}},{{&g_487},{&g_487},{(void*)0},{&g_487},{(void*)0},{&g_487}},{{(void*)0},{&g_487},{(void*)0},{&g_487},{&g_487},{&g_487}}};
      union U0 **l_2801 = &g_54[6][0];
      const union U0 *l_2803 = &g_1400;
      const union U0 **l_2802 = &l_2803;
      uint64_t *l_2841 = &g_1153;
      uint64_t **l_2840 = &l_2841;
      uint32_t l_2876[2][7] = {{0x8CB20F40L,0x8CB20F40L,0x8CB20F40L,0x8CB20F40L,0x8CB20F40L,0x8CB20F40L,0x8CB20F40L},{0x5A4CA25BL,0x5A4CA25BL,0x5A4CA25BL,0x5A4CA25BL,0x5A4CA25BL,0x5A4CA25BL,0x5A4CA25BL}};
      uint32_t l_2926 = 0x90CADEEEL;
      int8_t *l_2935 = &g_2032[2];
      int32_t l_2944 = (-8L);
      int32_t l_2949 = (-7L);
      int32_t l_2951 = 5L;
      uint32_t ** const **l_2970 = (void*)0;
      int32_t l_2975 = 0x7EFF4E3CL;
      int32_t l_2977 = 0xAA15CB2CL;
      int32_t l_2980 = 7L;
      int32_t l_2984 = 0x74876761L;
      int32_t l_2985 = (-1L);
      int32_t *l_2991[6][6][4] = {{{&g_21,&g_86,&g_21,&l_2949},{&l_2984,&l_2985,&g_21,&g_86},{&l_2951,&g_167,&l_2985,&l_2985},{&g_469,&g_469,&l_2985,&g_21},{&l_2951,&g_21,&g_21,&g_167},{&l_2984,&g_21,&g_21,&g_21}},{{&g_21,&g_21,&l_2984,&g_167},{&g_21,&g_21,&l_2951,&g_21},{&l_2985,&g_469,&g_469,&l_2985},{&l_2985,&g_167,&l_2951,&g_86},{&g_21,&l_2985,&l_2984,&l_2949},{&g_21,&g_86,&g_21,&l_2949}},{{&l_2984,&l_2985,&g_21,&g_86},{&l_2951,&g_167,&l_2985,&l_2985},{&g_469,&g_469,&l_2985,&g_21},{&l_2951,&g_21,&g_21,&g_167},{&l_2984,&g_21,&g_21,&g_21},{&g_21,&g_21,&l_2984,&g_167}},{{&g_21,&g_21,&l_2951,&g_21},{&l_2985,&g_469,&g_469,&l_2985},{&l_2985,&g_167,&l_2951,&g_86},{&g_21,&l_2985,&l_2984,&l_2949},{&g_21,&g_86,&g_21,&l_2949},{&l_2984,&l_2985,&g_21,&g_86}},{{&l_2951,&g_167,&l_2985,&l_2985},{&g_469,&g_469,&l_2985,&g_21},{&l_2951,&l_2984,&g_86,&l_2985},{&l_2951,&g_86,&g_167,&g_86},{&g_167,&g_86,&l_2951,&l_2985},{&g_86,&l_2984,&g_21,&g_167}},{{&g_469,&l_2949,&l_2949,&g_469},{&g_469,&l_2985,&g_21,&g_21},{&g_86,&g_469,&l_2951,&g_21},{&g_167,&g_86,&g_167,&g_21},{&l_2951,&g_469,&g_86,&g_21},{&g_21,&l_2985,&g_469,&g_469}}};
      uint32_t l_3015 = 2UL;
      uint16_t l_3040 = 0xD29BL;
      int i, j, k;
      (*g_2142) |= l_2767;
      (*g_2142) |= ((l_2801 = ((safe_add_func_uint8_t_u_u((p_7 == (safe_div_func_int16_t_s_s(((*l_2775) |= (l_2772 != (l_2774 = l_2772))), ((func_114((l_2791 = ((*g_1793) = (((l_2776 != l_2776) < (safe_sub_func_int64_t_s_s((***g_1312), (safe_mul_func_uint16_t_u_u((safe_add_func_int8_t_s_s((safe_rshift_func_int8_t_s_u((-1L), p_7)), (safe_add_func_uint8_t_u_u(((((safe_mul_func_int16_t_s_s((l_2789 = p_9.f0), p_8)) != l_2790) , 0x7FA9L) , 5UL), p_7)))), 0x255BL))))) , (void*)0))), l_2792, (*g_1277), p_7, p_9.f0) , 255UL) & l_2767)))), p_9.f1)) , (void*)0)) != l_2802);
      for (g_13 = (-26); (g_13 <= 55); g_13 = safe_add_func_uint64_t_u_u(g_13, 7))
      { /* block id: 1120 */
          int32_t l_2810[3][9][2] = {{{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL},{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL},{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL}},{{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL},{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL},{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL}},{{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL},{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL},{(-1L),0x6BDC8026L},{(-1L),0xE13B7ACEL},{0L,0xE13B7ACEL}}};
          int16_t l_2811 = (-1L);
          uint32_t l_2812 = 0UL;
          uint16_t **l_2815 = &g_46;
          int32_t ***l_2870 = &g_1864;
          int64_t l_2877 = 0x6D6A6E9F69AF2C0FLL;
          uint32_t l_2897 = 4UL;
          union U0 **l_2920 = &g_54[6][0];
          int32_t l_2945 = 0xB131B836L;
          int32_t l_2948 = 0xCD341480L;
          int32_t l_2954 = (-10L);
          uint32_t l_2956[3];
          int32_t l_2976 = 0L;
          int32_t l_2979[10][10][2] = {{{0x7F798A06L,1L},{0xFBCFB63FL,0x04782FF2L},{1L,0x11B49234L},{0x2326834FL,1L},{0L,1L},{0L,1L},{0x2326834FL,0x11B49234L},{1L,0x04782FF2L},{0xFBCFB63FL,1L},{0x7F798A06L,0x78068214L}},{{0x78068214L,0xDEBDB564L},{0xD7B97E03L,1L},{1L,0x7F798A06L},{7L,0xE2D71CFDL},{0xDEBDB564L,1L},{0xFBCFB63FL,0L},{0xDBE2B76EL,0x2326834FL},{0x11B49234L,0xFD8E6DA9L},{0xFAA7E179L,1L},{0x04782FF2L,0xDBE2B76EL}},{{0L,4L},{0xFD8E6DA9L,0L},{0xFBCFB63FL,0xFAA7E179L},{0x0798AA0DL,7L},{0xE2D71CFDL,0x23F059A2L},{0L,1L},{1L,0x0798AA0DL},{4L,0L},{0x23F059A2L,0xD7B97E03L},{0xFBCFB63FL,0xD7B97E03L}},{{0x23F059A2L,0L},{4L,0x0798AA0DL},{1L,1L},{0L,0x23F059A2L},{0xE2D71CFDL,7L},{0x0798AA0DL,0xFAA7E179L},{0xFBCFB63FL,0L},{0xFD8E6DA9L,4L},{0L,0xDBE2B76EL},{0x04782FF2L,1L}},{{0xFAA7E179L,0xFD8E6DA9L},{0x11B49234L,0x2326834FL},{0xDBE2B76EL,0L},{0xFBCFB63FL,1L},{0xDEBDB564L,0xE2D71CFDL},{7L,0x7F798A06L},{1L,1L},{0xD7B97E03L,0xDEBDB564L},{0x78068214L,0x99B5265CL},{(-4L),0x0798AA0DL}},{{1L,0xDEBDB564L},{0x85BED784L,1L},{0x8F89F029L,0x85BED784L},{0xFD8E6DA9L,0x45EED898L},{0xFD8E6DA9L,0x85BED784L},{0x8F89F029L,1L},{0x85BED784L,0xDEBDB564L},{1L,0x0798AA0DL},{(-4L),0x99B5265CL},{0x99B5265CL,(-1L)}},{{0x7F798A06L,0x45EED898L},{0xDBE2B76EL,(-4L)},{1L,0xA59A79C1L},{(-1L),0xDBE2B76EL},{1L,1L},{0xFBCFB63FL,0x8F89F029L},{1L,1L},{0x23F059A2L,0x45EED898L},{0xDEBDB564L,0xFBCFB63FL},{4L,0x76CCCCFDL}},{{1L,0xFD8E6DA9L},{1L,0x23F059A2L},{0xE75795D2L,1L},{0xA59A79C1L,1L},{1L,0x45EED898L},{0x0798AA0DL,0xE75795D2L},{0x76CCCCFDL,4L},{1L,0x7F798A06L},{1L,0x7F798A06L},{1L,4L}},{{0x76CCCCFDL,0xE75795D2L},{0x0798AA0DL,0x45EED898L},{1L,1L},{0xA59A79C1L,1L},{0xE75795D2L,0x23F059A2L},{1L,0xFD8E6DA9L},{1L,0x76CCCCFDL},{4L,0xFBCFB63FL},{0xDEBDB564L,0x45EED898L},{0x23F059A2L,1L}},{{1L,0x8F89F029L},{0xFBCFB63FL,1L},{1L,0xDBE2B76EL},{(-1L),0xA59A79C1L},{1L,(-4L)},{0xDBE2B76EL,0x45EED898L},{0x7F798A06L,(-1L)},{0x99B5265CL,0x99B5265CL},{(-4L),0x0798AA0DL},{1L,0xDEBDB564L}}};
          int32_t *l_2992 = &l_2949;
          const int8_t *l_2994 = &g_1770.f0;
          uint32_t l_3035 = 18446744073709551607UL;
          uint16_t l_3045 = 1UL;
          int i, j, k;
          for (i = 0; i < 3; i++)
              l_2956[i] = 0xFE2F4648L;
          (*g_2142) &= p_9.f0;
          for (l_2767 = (-27); (l_2767 <= 54); l_2767 = safe_add_func_int16_t_s_s(l_2767, 5))
          { /* block id: 1124 */
              int32_t *l_2808[8][9][3] = {{{&g_86,&g_21,&g_469},{(void*)0,&g_167,&g_167},{&g_21,(void*)0,&g_86},{&g_86,(void*)0,&g_167},{&g_21,&g_469,&g_469},{&g_21,(void*)0,&g_86},{&g_21,&g_86,&g_86},{&g_21,&g_86,&g_167},{&g_86,&g_21,&l_2789}},{{&g_21,&g_86,&g_469},{(void*)0,&g_86,(void*)0},{&g_86,(void*)0,(void*)0},{&g_21,&g_469,&g_469},{(void*)0,(void*)0,&l_2789},{(void*)0,(void*)0,&g_167},{(void*)0,&g_167,&g_86},{&g_21,&g_21,&g_86},{&g_86,&g_21,&g_469}},{{(void*)0,&g_167,&g_167},{&g_21,(void*)0,&g_86},{&g_86,(void*)0,&g_167},{&g_21,&g_469,&g_469},{&g_21,(void*)0,&g_86},{&g_21,&g_86,&g_86},{&g_21,&g_86,&g_167},{&g_86,&g_21,&l_2789},{&g_21,&g_86,&g_469}},{{(void*)0,&g_86,(void*)0},{&g_86,(void*)0,(void*)0},{&g_21,&g_469,(void*)0},{&g_86,&g_469,&g_469},{&l_2789,&l_2789,&g_86},{&g_86,&g_21,(void*)0},{&g_21,&g_21,(void*)0},{&l_2789,&g_21,&l_2789},{&g_469,&g_21,&g_86}},{{(void*)0,&l_2789,(void*)0},{&l_2789,&g_469,&g_86},{(void*)0,&g_469,&l_2789},{&l_2789,&l_2789,(void*)0},{&l_2789,&l_2789,(void*)0},{(void*)0,&l_2789,&g_86},{&l_2789,(void*)0,&g_469},{(void*)0,&l_2789,(void*)0},{&g_469,&l_2789,(void*)0}},{{&l_2789,&l_2789,(void*)0},{&g_21,&g_469,(void*)0},{&g_86,&g_469,&g_469},{&l_2789,&l_2789,&g_86},{&g_86,&g_21,(void*)0},{&g_21,&g_21,(void*)0},{&l_2789,&g_21,&l_2789},{&g_469,&g_21,&g_86},{(void*)0,&l_2789,(void*)0}},{{&l_2789,&g_469,&g_86},{(void*)0,&g_469,&l_2789},{&l_2789,&l_2789,(void*)0},{&l_2789,&l_2789,(void*)0},{(void*)0,&l_2789,&g_86},{&l_2789,(void*)0,&g_469},{(void*)0,&l_2789,(void*)0},{&g_469,&l_2789,(void*)0},{&l_2789,&l_2789,(void*)0}},{{&g_21,&g_469,(void*)0},{&g_86,&g_469,&g_469},{&l_2789,&l_2789,&g_86},{&g_86,&g_21,(void*)0},{&g_21,&g_21,(void*)0},{&l_2789,&g_21,&l_2789},{&g_469,&g_21,&g_86},{(void*)0,&l_2789,(void*)0},{&l_2789,&g_469,&g_86}}};
              int i, j, k;
              --l_2812;
          }
          if (((*g_2614) == l_2815))
          { /* block id: 1127 */
              int16_t *l_2816 = &l_2811;
              const int32_t l_2821[6][3][8] = {{{0x71DD6E1FL,0xB54981AFL,1L,0xB54981AFL,0x71DD6E1FL,0xE7E53B02L,0L,(-4L)},{0xDD9ADE3EL,0xB54981AFL,0xBEDBDDBDL,0x995AD5DEL,0xE139D705L,0xC6DB8CE9L,(-1L),0xB54981AFL},{0L,0L,0xBEDBDDBDL,(-4L),0xBEDBDDBDL,0L,0L,0xC6DB8CE9L}},{{0xE139D705L,0L,1L,(-4L),0L,0xE7E53B02L,0x71DD6E1FL,0xB54981AFL},{0xDD9ADE3EL,(-4L),(-1L),0x995AD5DEL,0L,0x995AD5DEL,(-1L),(-4L)},{0xE139D705L,0L,0xDD9ADE3EL,0xB54981AFL,0xBEDBDDBDL,0x995AD5DEL,0xE139D705L,0xC6DB8CE9L}},{{0L,(-4L),1L,0L,0xE139D705L,0xE7E53B02L,0xE139D705L,0L},{0xDD9ADE3EL,0L,0xDD9ADE3EL,0x995AD5DEL,0x71DD6E1FL,0L,(-1L),0L},{(-1L),0xE7E53B02L,1L,0L,0xB47B4495L,0x4DD04A65L,(-1L),0x4DD04A65L}},{{(-1L),0x995AD5DEL,0L,0x995AD5DEL,(-1L),(-4L),0xDD9ADE3EL,0xC6DB8CE9L},{0L,0x995AD5DEL,0xB47B4495L,(-5L),0xBEDBDDBDL,0x4DD04A65L,1L,0x995AD5DEL},{0xDD9ADE3EL,0xE7E53B02L,0xB47B4495L,0xC6DB8CE9L,0xB47B4495L,0xE7E53B02L,0xDD9ADE3EL,0x4DD04A65L}},{{0xBEDBDDBDL,0L,0L,0xC6DB8CE9L,0xDD9ADE3EL,(-4L),(-1L),0x995AD5DEL},{0L,0xC6DB8CE9L,1L,(-5L),0xDD9ADE3EL,(-5L),1L,0xC6DB8CE9L},{0xBEDBDDBDL,0xE7E53B02L,0L,0x995AD5DEL,0xB47B4495L,(-5L),0xBEDBDDBDL,0x4DD04A65L}},{{0xDD9ADE3EL,0xC6DB8CE9L,0L,0L,0xBEDBDDBDL,(-4L),0xBEDBDDBDL,0L},{0L,0L,0L,(-5L),(-1L),0xE7E53B02L,1L,0L},{(-1L),0xE7E53B02L,1L,0L,0xB47B4495L,0x4DD04A65L,(-1L),0x4DD04A65L}}};
              int32_t *l_2826[10][1];
              int8_t *l_2837 = &g_1400.f0;
              uint64_t ***l_2842 = &l_2840;
              uint8_t *l_2846 = (void*)0;
              uint8_t *l_2847 = &g_1179;
              uint32_t *l_2858 = &l_2812;
              int i, j, k;
              for (i = 0; i < 10; i++)
              {
                  for (j = 0; j < 1; j++)
                      l_2826[i][j] = &g_2266[2][3][5];
              }
              (*g_49) = (((void*)0 != l_2816) | ((safe_mod_func_uint64_t_u_u(((0xF0L >= ((*l_2837) = (((safe_mul_func_int8_t_s_s(((l_2821[0][0][1] >= (l_2790 , (((safe_lshift_func_int8_t_s_u((p_9 , (l_2826[5][0] != l_2791)), ((safe_lshift_func_uint16_t_u_s((((safe_mul_func_uint16_t_u_u((safe_sub_func_int32_t_s_s(((safe_lshift_func_int16_t_s_u((safe_mul_func_uint16_t_u_u(((void*)0 != l_2772), p_8)), 12)) <= l_2810[1][0][0]), p_9.f1)), l_2811)) | l_2789) & p_9.f0), l_2789)) || l_2821[4][2][6]))) ^ 0L) | (-1L)))) , p_9.f1), l_2821[0][0][1])) || 1L) <= p_9.f0))) && p_9.f0), 9L)) <= 0xA6D8A95853653B32LL));
              (*g_49) = ((*g_2142) &= (safe_mul_func_int16_t_s_s(0x9D6DL, (((((*l_2842) = l_2840) == (((safe_mul_func_uint16_t_u_u(((p_9.f1 , (!l_2810[1][0][0])) > ((--(*l_2847)) != (safe_sub_func_int32_t_s_s(((-7L) & (safe_div_func_uint64_t_u_u((((void*)0 == &l_2773[7][0]) <= ((*l_2858) = ((safe_lshift_func_uint16_t_u_u(l_2810[1][0][0], 8)) || (&l_2815 != &l_2773[6][0])))), p_9.f0))), l_2811)))), 5UL)) < l_2790) , &l_2841)) & l_2811) , p_9.f1))));
          }
          else
          { /* block id: 1135 */
              int8_t l_2863[6] = {(-3L),(-3L),0xEEL,(-3L),(-3L),0xEEL};
              int32_t l_2878 = 0x1F06D903L;
              uint32_t *l_2879 = &g_190;
              union U0 **l_2919 = (void*)0;
              uint8_t l_2938 = 1UL;
              int32_t l_2946 = (-7L);
              int16_t l_2947 = (-1L);
              int32_t l_2950 = 0xE9A091E2L;
              int32_t l_2955 = 0xE521EDE2L;
              union U0 ***l_3016 = (void*)0;
              int i;
              if ((safe_rshift_func_uint16_t_u_u(((safe_rshift_func_uint16_t_u_u(p_8, l_2863[2])) > (safe_lshift_func_uint16_t_u_u((safe_sub_func_uint64_t_u_u((((((safe_lshift_func_int16_t_s_u(((void*)0 != l_2870), (((*l_2879) |= ((!(safe_div_func_uint16_t_u_u((l_2789 = (l_2810[0][8][1] <= (((***g_1312) = l_2789) ^ (l_2878 ^= (((safe_div_func_int16_t_s_s((p_9 , (l_2876[1][1] != l_2767)), l_2877)) >= l_2877) > p_9.f1))))), 6UL))) | l_2810[1][0][0])) ^ p_8))) , (*l_2815)) == (void*)0) , p_9.f1) != l_2812), 0x1D7F3D9620158456LL)), l_2863[1]))), p_8)))
              { /* block id: 1140 */
                  uint8_t l_2899[1];
                  union U0 *******l_2902 = &g_683;
                  int32_t **l_2927 = &g_204[1][1];
                  int i;
                  for (i = 0; i < 1; i++)
                      l_2899[i] = 0xECL;
                  for (g_103.f0 = 27; (g_103.f0 < 23); g_103.f0 = safe_sub_func_uint16_t_u_u(g_103.f0, 1))
                  { /* block id: 1143 */
                      for (g_2698 = 0; (g_2698 < (-26)); g_2698 = safe_sub_func_uint8_t_u_u(g_2698, 7))
                      { /* block id: 1146 */
                          return p_9.f1;
                      }
                  }
                  for (g_2809 = 10; (g_2809 <= (-12)); --g_2809)
                  { /* block id: 1152 */
                      int8_t *l_2891[5][1] = {{&g_1400.f1},{(void*)0},{&g_1400.f1},{(void*)0},{&g_1400.f1}};
                      const int32_t l_2894[3] = {9L,9L,9L};
                      int i, j;
                      for (g_1770.f0 = (-10); (g_1770.f0 < (-22)); g_1770.f0 = safe_sub_func_int16_t_s_s(g_1770.f0, 6))
                      { /* block id: 1155 */
                          int8_t *l_2890 = &g_1770.f0;
                          int16_t *l_2895[6][1];
                          int32_t l_2898 = 0x5DA38F3AL;
                          int i, j;
                          for (i = 0; i < 6; i++)
                          {
                              for (j = 0; j < 1; j++)
                                  l_2895[i][j] = &g_1725;
                          }
                          (*g_49) = ((safe_add_func_uint32_t_u_u((((l_2890 != l_2891[0][0]) >= (((*g_2142) = (((p_7 && (l_2878 = ((*l_2775) |= (safe_add_func_uint16_t_u_u(l_2894[2], 0x6756L))))) < (l_2863[2] < ((!(4L > l_2897)) , p_9.f1))) && 0x397EL)) && l_2894[2])) , l_2878), p_7)) | l_2898);
                      }
                      ++l_2899[0];
                      if (l_2899[0])
                          continue;
                  }
                  (*l_2927) = (((**g_1313) = ((void*)0 != l_2902)) , func_120(((safe_sub_func_uint64_t_u_u((safe_add_func_uint16_t_u_u(((8UL ^ (safe_mul_func_int16_t_s_s((safe_sub_func_int32_t_s_s(((safe_div_func_int8_t_s_s((safe_div_func_uint8_t_u_u((p_7 &= (safe_add_func_uint8_t_u_u(0x7AL, ((safe_mod_func_uint32_t_u_u((((*l_2775) = (l_2919 != l_2920)) >= (!(safe_mul_func_uint8_t_u_u((safe_add_func_uint64_t_u_u(l_2812, 1L)), 255UL)))), l_2899[0])) || (*g_347))))), p_9.f0)), p_8)) > p_9.f1), 0UL)), l_2926))) && l_2810[2][4][1]), p_9.f1)), l_2811)) >= 1UL), (*l_2920), (****l_2902)));
              }
              else
              { /* block id: 1168 */
                  int16_t l_2934 = 0xC9ABL;
                  int8_t l_2943 = 0xE0L;
                  int32_t l_2952 = 0L;
                  int32_t l_2953 = 0L;
                  int8_t l_2973[3];
                  int32_t l_2974 = 0L;
                  int32_t l_2978 = (-1L);
                  int32_t l_2981 = (-1L);
                  int32_t l_2982 = (-1L);
                  int32_t l_2983 = (-2L);
                  union U0 *l_2989[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                  int16_t *l_3034[3];
                  int i;
                  for (i = 0; i < 3; i++)
                      l_2973[i] = 0xEFL;
                  for (i = 0; i < 3; i++)
                      l_3034[i] = (void*)0;
                  if ((((safe_mod_func_uint16_t_u_u(65535UL, l_2926)) && (safe_lshift_func_int8_t_s_s(((safe_div_func_uint32_t_u_u(l_2934, ((l_2935 != (void*)0) , 6L))) < (-1L)), 2))) && (((*l_2775) &= (l_2877 != ((((safe_add_func_int64_t_s_s(((p_8 >= (*g_1277)) , p_9.f0), l_2934)) == 0xCDC849A2L) , &p_9) == (*l_2920)))) ^ 65530UL)))
                  { /* block id: 1170 */
                      int32_t *l_2939 = &g_469;
                      int32_t *l_2940 = (void*)0;
                      int32_t *l_2941 = &g_21;
                      int32_t *l_2942[7][6][2] = {{{&g_167,&g_86},{&g_86,&l_2878},{&l_2789,&g_86},{&g_21,&g_469},{&g_21,&g_86},{&l_2789,&l_2878}},{{&g_86,&g_86},{&g_167,&g_86},{&l_2789,&l_2789},{&l_2789,&l_2789},{&l_2789,&l_2789},{&l_2789,&l_2789}},{{&l_2789,&g_86},{&g_167,&g_86},{&g_86,&l_2878},{&l_2789,&g_86},{&g_21,&g_469},{&g_21,&g_86}},{{&l_2789,&l_2878},{&g_86,&g_86},{&g_167,&g_86},{&l_2789,&l_2789},{&l_2789,&l_2789},{&l_2789,&l_2789}},{{&l_2789,&l_2789},{&l_2789,&g_86},{&g_167,&g_86},{&g_86,&l_2878},{&l_2789,&g_86},{&g_21,&g_469}},{{&g_21,&g_86},{&l_2789,&l_2878},{&g_86,&g_86},{&g_167,&g_86},{&l_2789,&l_2789},{&l_2789,&l_2789}},{{&l_2789,&l_2789},{&l_2789,&l_2789},{&l_2789,&g_86},{&g_167,&g_86},{&g_86,&l_2878},{&l_2789,&g_86}}};
                      int i, j, k;
                      l_2939 = func_120(l_2938, (*l_2920), &l_2801);
                      l_2956[1]++;
                  }
                  else
                  { /* block id: 1173 */
                      const int32_t l_2961 = 1L;
                      int32_t l_2971 = 0xDE7151FAL;
                      int32_t l_2972[9] = {(-10L),0xC8814885L,(-10L),0xC8814885L,(-10L),0xC8814885L,(-10L),0xC8814885L,(-10L)};
                      uint16_t l_2986 = 0UL;
                      int32_t **l_2990[9][8] = {{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}};
                      int8_t **l_2993 = &g_2601;
                      int i, j;
                      l_2992 = (l_2991[5][1][2] = ((*g_472) = func_120((((safe_add_func_uint32_t_u_u((((-4L) > (*g_1277)) | (l_2961 > (safe_mul_func_uint16_t_u_u(0UL, (safe_add_func_int8_t_s_s(((*l_2935) = l_2961), (l_2982 = (safe_rshift_func_int16_t_s_u((p_8 , (safe_sub_func_uint64_t_u_u((((void*)0 == l_2970) >= (l_2986--)), (l_2811 || 65535UL)))), 14))))))))), p_9.f1)) >= l_2980) <= p_7), l_2989[4], (**g_684))));
                      (*g_2142) = (((*l_2993) = &l_2863[5]) == l_2994);
                      for (l_2982 = 0; (l_2982 <= 0); l_2982 += 1)
                      { /* block id: 1184 */
                          uint32_t l_3014[1];
                          int32_t *l_3017 = &l_2971;
                          int i, j;
                          for (i = 0; i < 1; i++)
                              l_3014[i] = 1UL;
                          (*l_2992) |= l_2952;
                          l_3017 = func_120((((((safe_mod_func_int8_t_s_s((safe_sub_func_uint32_t_u_u(1UL, (safe_mod_func_int8_t_s_s((-1L), (safe_lshift_func_int8_t_s_s((safe_mod_func_int16_t_s_s((p_8 >= ((((((((***g_1312) &= (+((safe_sub_func_int8_t_s_s((1L > (safe_sub_func_uint32_t_u_u((((safe_rshift_func_uint8_t_u_u((*l_2992), p_9.f1)) > (safe_div_func_int16_t_s_s(0xEE7EL, p_7))) < 0x816500C4B2BB856FLL), (*l_2992)))), 1UL)) & l_2946))) > p_7) | p_8) >= 65529UL) == 0xD7BEL) || p_7) & p_7)), l_3014[0])), 7)))))), p_9.f0)) >= 0x31F3B70C1E924FDBLL) ^ 0xBCL) ^ l_3015) , p_9.f1), g_54[(l_2982 + 6)][l_2982], l_3016);
                      }
                  }
                  (*g_2142) = (safe_add_func_int16_t_s_s(((*l_2775) |= (1L & ((*g_44) < l_2955))), (l_2878 |= (((safe_add_func_uint32_t_u_u(((safe_lshift_func_int16_t_s_u((safe_add_func_int32_t_s_s((l_2950 &= (safe_mul_func_int16_t_s_s(l_2953, l_2947))), ((0x97L >= 0L) | ((safe_mul_func_uint8_t_u_u(((safe_sub_func_uint16_t_u_u(p_9.f0, (((safe_sub_func_uint8_t_u_u((g_1004 || p_9.f1), 0xD6L)) ^ l_2974) >= p_9.f0))) <= p_7), p_8)) , l_2946)))), (*l_2992))) ^ 5L), 0x8037BEBCL)) , 0x1AF4L) , p_7))));
                  --l_3035;
              }
          }
          (*g_2142) = (((*l_2992) & (safe_sub_func_int32_t_s_s(l_3040, (safe_add_func_uint64_t_u_u(((*l_2992) != (((**l_2840) &= 0x2316260C86D2F3D4LL) & ((**g_1313) = (***g_1312)))), p_8))))) > ((((void*)0 == &g_1277) == (l_2979[5][4][0] = (safe_rshift_func_uint16_t_u_u((((((*l_2792) |= (p_9.f0 & (*l_2992))) , &l_2926) != (void*)0) >= l_3045), 5)))) | 1UL));
      }
      return p_9.f0;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_35 g_19 g_21 g_44 g_46 g_20 g_48 g_49 g_45 g_70 g_86 g_1792 g_1793 g_2142 g_469 g_1312 g_1313 g_1314 g_747 g_2141 g_53.f1 g_472 g_204 g_347 g_348 g_54 g_1400 g_53 g_1277 g_1278 g_1400.f1 g_2266 g_1730 g_670 g_2531 g_780 g_136 g_167 g_761 g_684 g_485 g_486 g_103.f1 g_2613 g_683 g_126 g_2745 g_1394
   * writes: g_21 g_35 g_20 g_19 g_45 g_49 g_54 g_53.f1 g_86 g_165 g_469 g_1314 g_2142 g_1770.f1 g_611 g_1725 g_204 g_103.f0 g_747 g_1179 g_1400.f1 g_1937 g_670 g_780 g_394 g_136 g_126 g_195 g_2601 g_972 g_103.f1 g_2635 g_1733 g_487
   */
  static union U0  func_17(uint16_t * p_18)
  { /* block id: 2 */
      int32_t l_24 = 0x3F6085E0L;
      int32_t l_38[10];
      uint16_t *l_42 = (void*)0;
      union U0 **l_73[7][8];
      int32_t l_2672 = 0x6AD0C904L;
      int32_t l_2677 = 0x64A20EF3L;
      int32_t l_2678 = 0x676EC767L;
      int32_t l_2680[2];
      int32_t l_2682 = 0xC42D9FDCL;
      int32_t l_2683 = 1L;
      union U0 l_2755[9][7] = {{{0L},{1L},{0x3CL},{3L},{-1L},{3L},{0x3CL}},{{-1L},{-1L},{0x3CL},{7L},{0xC7L},{0xA0L},{0x3EL}},{{-1L},{0x69L},{0x50L},{0xC7L},{-1L},{1L},{1L}},{{-10L},{-1L},{3L},{0x69L},{0xC7L},{0xE4L},{-1L}},{{0x3CL},{-1L},{-1L},{-1L},{-1L},{0x3CL},{-1L}},{{0xE4L},{0xC7L},{0x69L},{3L},{-1L},{-10L},{1L}},{{1L},{-1L},{0xC7L},{0x50L},{0x69L},{-1L},{0x3EL}},{{0xA0L},{0xC7L},{7L},{0x3CL},{-1L},{-1L},{0x3CL}},{{3L},{-1L},{3L},{0x3CL},{1L},{0L},{-1L}}};
      int i, j;
      for (i = 0; i < 10; i++)
          l_38[i] = (-2L);
      for (i = 0; i < 7; i++)
      {
          for (j = 0; j < 8; j++)
              l_73[i][j] = (void*)0;
      }
      for (i = 0; i < 2; i++)
          l_2680[i] = 0xA701F40AL;
  lbl_2609:
      for (g_21 = 0; (g_21 > 2); g_21 = safe_add_func_uint32_t_u_u(g_21, 1))
      { /* block id: 5 */
          int32_t l_41[1][3];
          int32_t *l_43 = &l_41[0][2];
          int i, j;
          for (i = 0; i < 1; i++)
          {
              for (j = 0; j < 3; j++)
                  l_41[i][j] = 1L;
          }
          l_24 = 0xC67EE39FL;
          (*l_43) = ((p_18 == p_18) == (safe_mod_func_int32_t_s_s((safe_mul_func_uint16_t_u_u((safe_add_func_uint16_t_u_u(((safe_mul_func_int16_t_s_s(0x1289L, ((g_35 ^= ((void*)0 != p_18)) , 0x9040L))) != ((safe_div_func_uint16_t_u_u(l_38[6], (safe_lshift_func_uint8_t_u_u(l_41[0][2], 6)))) <= (p_18 != l_42))), 0xBD2FL)), l_38[5])), g_19)));
      }
      for (g_21 = 2; (g_21 <= 9); g_21 += 1)
      { /* block id: 12 */
          union U0 *l_57 = &g_53;
          const uint16_t *l_69 = &g_70;
          int32_t l_2617 = 0xC57303B4L;
          uint32_t **l_2630[4][2] = {{(void*)0,(void*)0},{(void*)0,(void*)0},{(void*)0,(void*)0},{(void*)0,(void*)0}};
          int32_t l_2665 = 1L;
          int32_t l_2666 = 0x4EEDF3ECL;
          int32_t l_2676 = (-1L);
          int32_t l_2681[5] = {1L,1L,1L,1L,1L};
          uint32_t l_2687 = 8UL;
          int i, j;
          g_20[6][0] = l_38[g_21];
          if ((g_44 == g_46))
          { /* block id: 14 */
              union U0 *l_52 = &g_53;
              int32_t *l_68 = &l_24;
              int32_t ** const l_67 = &l_68;
              uint32_t **l_2608 = (void*)0;
              int32_t l_2670 = 0x4DF035A7L;
              int32_t l_2674 = 6L;
              int32_t l_2675 = 0L;
              int32_t l_2684 = 0xA9FEE52BL;
              int32_t l_2685 = 0x4AA925E7L;
              int32_t l_2686 = 0x918826C2L;
              const uint32_t **l_2709[1][1][8] = {{{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}}};
              const uint32_t ***l_2708 = &l_2709[0][0][0];
              const uint32_t ****l_2707 = &l_2708;
              int i, j, k;
              for (g_35 = 0; (g_35 <= 4); g_35 += 1)
              { /* block id: 17 */
                  int i, j;
                  for (l_24 = 0; l_24 < 4; l_24 += 1)
                  {
                      for (g_19 = 0; g_19 < 1; g_19 += 1)
                      {
                          g_45[l_24][g_19] = 5UL;
                      }
                  }
                  if (g_20[g_21][g_35])
                      break;
              }
              (*g_48) = &g_19;
              for (g_35 = 3; (g_35 <= 9); g_35 += 1)
              { /* block id: 24 */
                  uint16_t l_50 = 65535UL;
                  int32_t l_51 = 0x54C5F6B4L;
                  union U0 **l_55 = (void*)0;
                  union U0 **l_56[8] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                  const int32_t *l_58 = &g_59;
                  const int32_t *l_61 = &g_59;
                  const int32_t **l_60 = &l_61;
                  int i;
                  for (l_24 = 0; (l_24 <= 9); l_24 += 1)
                  { /* block id: 27 */
                      if ((*g_49))
                          break;
                      if ((**g_48))
                          continue;
                      l_51 = (6L > l_50);
                  }
                  l_57 = (g_45[3][0] , (g_54[6][0] = l_52));
                  (*l_60) = (l_58 = (void*)0);
              }
              if (func_62(l_67, l_69, g_70, ((0xD23037D9L <= (**l_67)) != func_71(l_73[5][0]))))
              { /* block id: 1045 */
                  int64_t l_2610 = (-1L);
                  int32_t l_2650 = (-6L);
                  int32_t l_2663[1];
                  int32_t l_2679 = 1L;
                  int64_t l_2699 = 6L;
                  int32_t l_2700 = 2L;
                  uint32_t l_2701 = 0x6140A633L;
                  uint16_t ***l_2724 = &g_1733[6];
                  int i;
                  for (i = 0; i < 1; i++)
                      l_2663[i] = 0xB3D4D2CEL;
                  if (((void*)0 == l_2608))
                  { /* block id: 1046 */
                      int8_t l_2618 = 5L;
                      uint32_t **l_2631 = &g_727[0][3][3];
                      int64_t l_2634[5][5] = {{0xAF0021F9A6713A91LL,0xAF0021F9A6713A91LL,0x97AFE8CCAF29AE81LL,0x1F6079FCFDB27AC7LL,0x97AFE8CCAF29AE81LL},{0xAF0021F9A6713A91LL,0xAF0021F9A6713A91LL,0x97AFE8CCAF29AE81LL,0x1F6079FCFDB27AC7LL,0x97AFE8CCAF29AE81LL},{0xAF0021F9A6713A91LL,0xAF0021F9A6713A91LL,0x97AFE8CCAF29AE81LL,0x1F6079FCFDB27AC7LL,0x97AFE8CCAF29AE81LL},{0xAF0021F9A6713A91LL,0xAF0021F9A6713A91LL,0x97AFE8CCAF29AE81LL,0x1F6079FCFDB27AC7LL,0x97AFE8CCAF29AE81LL},{0xAF0021F9A6713A91LL,0xAF0021F9A6713A91LL,0x97AFE8CCAF29AE81LL,(-8L),1L}};
                      uint16_t *l_2637[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
                      int32_t l_2664 = 3L;
                      int32_t l_2667 = (-3L);
                      int32_t l_2668 = 0x7EB6BC0CL;
                      int32_t l_2669 = 0xBA2E38E1L;
                      int32_t l_2671[1][1];
                      int32_t l_2673[9][6][4] = {{{0x090CE907L,0L,0x24F3BA39L,(-4L)},{0x5FEA8F51L,(-2L),9L,0L},{(-1L),0x55D955E4L,9L,0x5FEA8F51L},{0x5FEA8F51L,0x0527F44DL,0x24F3BA39L,0xB3AADD4BL},{0x090CE907L,0xF320E88AL,0xE84A8F58L,0x5249A5ACL},{0xE84A8F58L,0x5249A5ACL,1L,0x0527F44DL}},{{0L,(-1L),0x9AD11F48L,0x9AD11F48L},{0xE664EA68L,0xE664EA68L,(-4L),0xF320E88AL},{0x24F3BA39L,(-3L),9L,1L},{0xF320E88AL,0xB3AADD4BL,0xE8E080FCL,9L},{(-4L),0xB3AADD4BL,0x55D955E4L,1L},{0xB3AADD4BL,(-3L),(-1L),0xF320E88AL}},{{0x3257E34BL,0xE664EA68L,9L,0x9AD11F48L},{0xE8E080FCL,(-1L),(-1L),0x0527F44DL},{9L,0x5249A5ACL,0x090CE907L,0x5249A5ACL},{9L,0xF320E88AL,0x0527F44DL,0xB3AADD4BL},{5L,0x0527F44DL,0x8938E8C0L,0x5FEA8F51L},{0x5249A5ACL,0x55D955E4L,1L,0L}},{{0x5249A5ACL,(-2L),0x8938E8C0L,(-4L)},{5L,0L,0x0527F44DL,(-3L)},{9L,0x24F3BA39L,0x090CE907L,(-1L)},{9L,0x8938E8C0L,(-1L),9L},{0xE8E080FCL,9L,9L,0xE8E080FCL},{0x3257E34BL,1L,(-1L),0x31ED1E82L}},{{0xB3AADD4BL,3L,0x55D955E4L,0L},{(-4L),(-1L),0xE8E080FCL,0L},{0xF320E88AL,3L,9L,0x31ED1E82L},{0x24F3BA39L,1L,(-4L),0xE8E080FCL},{0xE664EA68L,9L,0x9AD11F48L,9L},{0L,0x8938E8C0L,1L,(-1L)}},{{0xE84A8F58L,0x24F3BA39L,0xE84A8F58L,(-3L)},{0x090CE907L,0L,0x24F3BA39L,(-4L)},{0x5FEA8F51L,(-2L),9L,0L},{(-1L),0x55D955E4L,9L,0x5FEA8F51L},{0x5FEA8F51L,0x0527F44DL,0x24F3BA39L,0xB3AADD4BL},{0x090CE907L,0xF320E88AL,0xE84A8F58L,0x5249A5ACL}},{{0xE84A8F58L,0x5249A5ACL,1L,0x0527F44DL},{0L,(-1L),0x9AD11F48L,0x9AD11F48L},{0xE664EA68L,0xE664EA68L,(-4L),0xF320E88AL},{0x24F3BA39L,(-3L),9L,1L},{0xF320E88AL,0xB3AADD4BL,0xE8E080FCL,9L},{(-4L),0xB3AADD4BL,0x55D955E4L,1L}},{{0xB3AADD4BL,(-3L),(-1L),0xF320E88AL},{0x3257E34BL,0xE664EA68L,9L,0x9AD11F48L},{0xE8E080FCL,(-1L),(-1L),0x0527F44DL},{9L,0x5249A5ACL,0x090CE907L,0x5249A5ACL},{9L,5L,0L,(-1L)},{(-4L),0L,0xB3AADD4BL,0x31ED1E82L}},{{(-1L),0x24F3BA39L,0xF320E88AL,0x5249A5ACL},{(-1L),(-3L),0xB3AADD4BL,0xE664EA68L},{(-4L),0x5249A5ACL,0L,0x55D955E4L},{1L,0xE8E080FCL,0x8938E8C0L,9L},{3L,0xB3AADD4BL,9L,1L},{9L,3L,3L,9L}}};
                      int i, j, k;
                      for (i = 0; i < 1; i++)
                      {
                          for (j = 0; j < 1; j++)
                              l_2671[i][j] = 0x4F2EB897L;
                      }
                      for (g_103.f1 = 0; (g_103.f1 <= 6); g_103.f1 += 1)
                      { /* block id: 1049 */
                          int i;
                          if (g_35)
                              goto lbl_2609;
                          if (l_38[(g_103.f1 + 3)])
                              break;
                      }
                      for (g_103.f1 = 9; (g_103.f1 >= 2); g_103.f1 -= 1)
                      { /* block id: 1055 */
                          uint32_t *l_2612 = &g_1724[3];
                          uint32_t **l_2611 = &l_2612;
                          int32_t l_2616 = 0x06B778DDL;
                          int i;
                          (*l_67) = func_120((l_38[g_21] = l_2610), l_52, (func_114((**g_1792), ((*l_2611) = (*g_1793)), ((void*)0 == g_2613), ((l_2616 == l_2617) , l_2617), l_2616) , (***g_683)));
                          (**l_67) = l_2610;
                          if (l_2618)
                              continue;
                      }
                      (*g_2142) &= ((((safe_div_func_uint16_t_u_u((l_24 , (((+l_38[6]) | (safe_rshift_func_int8_t_s_u((safe_lshift_func_uint8_t_u_u((safe_mul_func_uint16_t_u_u(((l_2634[2][1] = (l_24 ^ (0xFEL && (safe_add_func_uint16_t_u_u((((&g_727[0][3][3] == l_2630[0][1]) && ((void*)0 != l_2631)) || ((((safe_mul_func_int16_t_s_s(l_2618, l_38[8])) == 0x0E35L) || l_38[g_21]) == l_38[g_21])), l_38[6]))))) ^ l_2618), (-3L))), 6)), 3))) , l_38[6])), 0x35C8L)) == 0UL) , l_38[0]) , l_2610);
                      if (((((g_2635[1][0] = &g_2267) == (void*)0) , l_2634[2][1]) | ((*l_68) = (!4294967295UL))))
                      { /* block id: 1066 */
                          uint32_t l_2651[5][9][5] = {{{9UL,0x75EBEA80L,4294967289UL,0x75EBEA80L,9UL},{0x6F9413B3L,0x3FB84D6BL,0x37CFECE7L,0x74ED6389L,0UL},{4294967295UL,0xF15968FAL,0x643B7C93L,0x9DBFACAAL,0x87747820L},{4294967295UL,4294967290UL,0xA4F891E6L,0x3FB84D6BL,0UL},{4294967295UL,0x9DBFACAAL,4294967295UL,0UL,9UL},{0UL,0x37CFECE7L,3UL,0UL,0x74ED6389L},{0xF9AA37D9L,4294967295UL,0UL,0x9DBFACAAL,0x56ABF53FL},{0x6F9413B3L,4294967295UL,3UL,3UL,4294967295UL},{0xC7330148L,0xF15968FAL,4294967295UL,0x75EBEA80L,0x7912113FL}},{{4294967290UL,0x6E8BCC63L,0xA4F891E6L,4294967295UL,4294967290UL},{0UL,4294967295UL,0x643B7C93L,0UL,0xF9AA37D9L},{4294967290UL,1UL,0x37CFECE7L,4294967295UL,0x74ED6389L},{0xC7330148L,0x9DBFACAAL,4294967289UL,4294967295UL,0x5C012D40L},{0x6F9413B3L,4294967295UL,0x6525348DL,0x74ED6389L,4294967290UL},{0xF9AA37D9L,0xF15968FAL,0x87747820L,4294967295UL,0x87747820L},{0UL,0UL,0xA4F891E6L,4294967295UL,4294967295UL},{4294967295UL,0x75EBEA80L,0x7912113FL,0UL,0xC7330148L},{4294967295UL,0x37CFECE7L,0x6525348DL,4294967295UL,0x74ED6389L}},{{4294967295UL,0x75EBEA80L,0UL,0x75EBEA80L,4294967295UL},{0x6F9413B3L,0UL,0x37CFECE7L,3UL,0UL},{9UL,0xF15968FAL,4294967286UL,0x9DBFACAAL,0x7912113FL},{4294967295UL,4294967295UL,0xA4F891E6L,0UL,0UL},{0UL,0x9DBFACAAL,0UL,0UL,4294967295UL},{0UL,1UL,3UL,0x3FB84D6BL,0x74ED6389L},{0x5C012D40L,4294967295UL,4294967289UL,0x9DBFACAAL,0xC7330148L},{0x6F9413B3L,0x6E8BCC63L,3UL,0x74ED6389L,4294967295UL},{0x56ABF53FL,0xF15968FAL,0UL,0x75EBEA80L,0x87747820L}},{{4294967290UL,4294967295UL,0xA4F891E6L,0x6E8BCC63L,4294967290UL},{4294967295UL,4294967295UL,4294967286UL,0UL,0x5C012D40L},{4294967290UL,0x37CFECE7L,0x37CFECE7L,4294967290UL,0x74ED6389L},{0x56ABF53FL,0x9DBFACAAL,0UL,4294967295UL,0xF9AA37D9L},{0x6F9413B3L,4294967290UL,0x6525348DL,3UL,4294967290UL},{4294967295UL,0x067BBAE6L,1UL,0xDD7CE590L,1UL},{0x6F9413B3L,0x6525348DL,0x3FB84D6BL,1UL,0x74ED6389L},{0UL,0UL,0x65CCC253L,3UL,0x87747820L},{0x74ED6389L,4294967295UL,0xE70757D9L,3UL,1UL}},{{4294967286UL,0UL,0x5C012D40L,0UL,4294967286UL},{0xFC248CB6L,0x6525348DL,0xA4F891E6L,1UL,0x6F9413B3L},{0x643B7C93L,0x067BBAE6L,0UL,0xF15968FAL,0x65CCC253L},{0x74ED6389L,1UL,0x3FB84D6BL,0x6525348DL,0x6F9413B3L},{0x2D6CDBC6L,0xF15968FAL,0x2D6CDBC6L,3UL,4294967286UL},{0x6F9413B3L,0xA4F891E6L,4UL,0x6F9413B3L,1UL},{0UL,0xDD7CE590L,0xF9AA37D9L,0xF15968FAL,0x87747820L},{0xFC248CB6L,0x74ED6389L,4UL,4UL,0x74ED6389L},{0x7912113FL,0x067BBAE6L,0x2D6CDBC6L,0UL,1UL}}};
                          int32_t l_2652 = (-6L);
                          int i, j, k;
                          l_2652 = (safe_mod_func_uint32_t_u_u(((safe_div_func_uint8_t_u_u((0x73BCE260L & l_2610), ((l_2650 &= ((*l_68) = ((safe_mod_func_uint64_t_u_u((0L && (*g_347)), (safe_rshift_func_uint8_t_u_s((!(safe_unary_minus_func_uint64_t_u(l_38[g_21]))), ((((void*)0 != &g_2032[3]) & l_2610) == (safe_add_func_uint8_t_u_u((0xD8L > g_126), 0x02L))))))) , l_2610))) , l_2651[4][7][2]))) < (-1L)), 4294967292UL));
                      }
                      else
                      { /* block id: 1070 */
                          int16_t l_2653[4][7] = {{(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L)},{0x1900L,0x1900L,0x1900L,0x1900L,0x1900L,0x1900L,0x1900L},{(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L)},{0x1900L,0x1900L,0x1900L,0x1900L,0x1900L,0x1900L,0x1900L}};
                          int32_t *l_2654 = &l_2650;
                          int32_t *l_2655 = &g_469;
                          int32_t *l_2656 = &g_167;
                          int32_t *l_2657 = &g_86;
                          int32_t *l_2658 = &l_2650;
                          int32_t *l_2659 = (void*)0;
                          int32_t *l_2660 = (void*)0;
                          int32_t *l_2661 = &g_469;
                          int32_t *l_2662[7][3][2] = {{{&l_24,(void*)0},{&g_167,&g_21},{&g_167,&g_21}},{{&g_167,(void*)0},{&l_24,&g_167},{&g_21,&g_469}},{{&g_21,&g_167},{&l_24,&l_24},{&g_167,&g_21}},{{&g_469,&g_21},{&g_167,&l_24},{(void*)0,&g_167}},{{&g_21,&g_167},{&g_21,&g_167},{(void*)0,&l_24}},{{&g_167,&g_21},{&g_469,&g_21},{&g_167,&l_24}},{{&l_24,&g_167},{&g_21,&g_469},{&g_21,&g_167}}};
                          union U0 * const l_2690[8] = {&g_103,&g_103,&g_103,&g_103,&g_103,&g_103,&g_103,&g_103};
                          union U0 **l_2691[10];
                          union U0 **l_2692[4][5][6] = {{{&l_57,&l_52,&l_52,&l_57,&g_54[6][0],&l_57},{&l_52,&l_52,(void*)0,&l_57,&g_54[6][0],&l_57},{(void*)0,&g_54[6][0],&g_54[6][0],(void*)0,&g_54[6][0],&l_57},{&g_54[3][0],&l_52,&g_54[1][0],&l_52,&g_54[6][0],(void*)0},{&l_57,&l_52,&g_54[1][0],&g_54[6][0],&l_57,&g_54[0][0]}},{{(void*)0,&g_54[6][0],&g_54[5][0],&g_54[5][0],&g_54[8][0],&l_57},{(void*)0,&l_52,(void*)0,&l_57,&l_52,&g_54[5][0]},{(void*)0,&g_54[8][0],&g_54[6][0],&g_54[1][0],&l_57,&g_54[6][0]},{&g_54[6][0],(void*)0,&g_54[6][0],&l_52,&g_54[0][0],&l_52},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,&g_54[6][0]}},{{&g_54[1][0],&g_54[6][0],(void*)0,(void*)0,&l_57,&g_54[5][0]},{&g_54[0][0],&g_54[0][0],(void*)0,&g_54[6][0],&l_57,&g_54[5][0]},{&g_54[6][0],&g_54[5][0],(void*)0,&g_54[0][0],&l_57,&g_54[6][0]},{&l_57,(void*)0,(void*)0,&l_52,&l_57,&l_52},{&g_54[6][0],(void*)0,&g_54[6][0],&l_57,&l_57,&g_54[6][0]}},{{(void*)0,&g_54[5][0],&g_54[6][0],&l_57,&l_57,(void*)0},{&g_54[1][0],&l_57,&g_54[1][0],(void*)0,&l_52,&g_54[0][0]},{&l_57,&g_54[6][0],&l_52,&g_54[0][0],&g_54[5][0],&g_54[3][0]},{(void*)0,(void*)0,&g_54[6][0],&g_54[6][0],(void*)0,(void*)0},{&l_52,&l_57,&g_54[6][0],&l_57,&g_54[6][0],(void*)0}}};
                          int i, j, k;
                          for (i = 0; i < 10; i++)
                              l_2691[i] = &g_54[6][0];
                          if (l_2650)
                              break;
                          ++l_2687;
                          if ((*l_68))
                              break;
                          l_52 = l_2690[3];
                      }
                  }
                  else
                  { /* block id: 1076 */
                      int32_t *l_2694 = &l_2650;
                      int32_t *l_2695 = (void*)0;
                      int32_t *l_2696 = &l_2663[0];
                      int32_t *l_2697[1][9] = {{&l_2682,&l_2682,&l_2682,&l_2682,&l_2682,&l_2682,&l_2682,&l_2682,&l_2682}};
                      int i, j;
                      --l_2701;
                  }
                  if ((safe_sub_func_uint16_t_u_u((+((void*)0 == l_2707)), (safe_sub_func_int32_t_s_s((((safe_unary_minus_func_int64_t_s((l_2672 >= ((safe_mod_func_uint32_t_u_u((safe_mul_func_uint16_t_u_u((safe_mod_func_int16_t_s_s((safe_add_func_int32_t_s_s(((safe_div_func_uint8_t_u_u((((+l_2678) <= (l_2687 < ((((((*l_2724) = &p_18) == (void*)0) , ((((safe_mod_func_uint64_t_u_u(18446744073709551615UL, ((-3L) & l_2699))) , l_2680[1]) , 0x47L) != (-4L))) , 0xAA20L) < (*l_68)))) & l_2610), 0xFBL)) ^ l_2678), 0xA9E8F890L)), 7L)), l_2682)), 0x87241F9BL)) , l_2701)))) ^ 0x2D69L) & l_2687), l_2663[0])))))
                  { /* block id: 1080 */
                      int64_t l_2744 = 2L;
                      if ((((+(safe_sub_func_int32_t_s_s((safe_lshift_func_uint8_t_u_u((((((*l_68) = (l_2676 , l_2617)) ^ (!((**g_1313) &= l_2683))) | 0xD9CD3963641D82E4LL) , (((safe_div_func_int32_t_s_s((-4L), (safe_unary_minus_func_uint8_t_u((0x8345C61370819C7DLL >= (l_2650 >= (((-1L) == (safe_add_func_uint64_t_u_u((safe_mul_func_uint16_t_u_u((((**g_1313) = ((l_2744 , 0xC9F0B611L) <= (*l_68))) & l_2679), l_38[3])), l_2680[1]))) != 9L))))))) < g_2745) , l_2744)), l_2663[0])), l_2701))) >= l_2744) == 0xDFFA208DL))
                      { /* block id: 1084 */
                          union U0 l_2746 = {-1L};
                          (*g_2142) &= (**l_67);
                          return l_2746;
                      }
                      else
                      { /* block id: 1087 */
                          union U0 l_2747[6][8][5] = {{{{0x40L},{0x94L},{0x41L},{0x6CL},{0x8DL}},{{0xA8L},{0L},{0x8DL},{1L},{0x2CL}},{{0x80L},{3L},{0xE9L},{2L},{0x37L}},{{6L},{0L},{-8L},{2L},{0xECL}},{{0x80L},{0x40L},{-3L},{1L},{0x1EL}},{{0xE8L},{-1L},{0L},{0x6CL},{7L}},{{0xEBL},{0x1FL},{-1L},{0xA8L},{0x5DL}},{{-1L},{-7L},{1L},{0x30L},{-1L}}},{{{1L},{0xE8L},{9L},{0L},{0L}},{{0xC7L},{0L},{0xC7L},{-8L},{0xE9L}},{{0L},{0L},{-1L},{0xBAL},{0xD2L}},{{0x2AL},{0xD2L},{0x5DL},{0xEAL},{0xEFL}},{{0xDAL},{0x8CL},{-1L},{0xD2L},{3L}},{{0xA8L},{1L},{0xC7L},{-3L},{0xC4L}},{{0x94L},{0x80L},{9L},{0x2CL},{-3L}},{{0x86L},{7L},{1L},{0x40L},{-5L}}},{{{0L},{0L},{-1L},{0x41L},{0xB1L}},{{0x8CL},{8L},{0L},{6L},{0x80L}},{{-7L},{0x30L},{-3L},{0x8CL},{0x8DL}},{{0x1FL},{0xA8L},{-8L},{0xC3L},{6L}},{{0x1EL},{0xA8L},{0xE9L},{4L},{0xA8L}},{{1L},{0x30L},{0x8DL},{-1L},{-8L}},{{0x2CL},{0x14L},{0x2AL},{0L},{0L}},{{7L},{0xD2L},{0x41L},{0xC7L},{0xDAL}}},{{{0xC4L},{0x51L},{0L},{8L},{0x4BL}},{{0xEBL},{0L},{-3L},{-3L},{0L}},{{0x1EL},{-1L},{0L},{0x80L},{1L}},{{0L},{6L},{0L},{-9L},{9L}},{{0x01L},{0xE8L},{0x8DL},{0L},{1L}},{{0L},{1L},{0L},{0x51L},{0xEFL}},{{0x1EL},{0xEBL},{0xE8L},{0xB1L},{0L}},{{0xEBL},{6L},{0xC3L},{-8L},{0xA8L}}},{{{0xC4L},{-3L},{0x37L},{0x1EL},{-1L}},{{7L},{2L},{8L},{1L},{0x1CL}},{{0x2CL},{0x86L},{0xB1L},{0xBAL},{2L}},{{-1L},{0xB1L},{0x73L},{-1L},{0xECL}},{{1L},{0xA8L},{0xEEL},{0x30L},{0xECL}},{{2L},{0xA0L},{0xB7L},{1L},{2L}},{{0L},{1L},{0x30L},{3L},{0x1CL}},{{6L},{0xDAL},{3L},{0x37L},{-1L}}},{{{0x8CL},{2L},{0x2CL},{0x0FL},{0xA8L}},{{0x41L},{-8L},{0L},{0x80L},{0L}},{{0xDAL},{-1L},{-1L},{0xDAL},{0xEFL}},{{0xEAL},{0x2CL},{0x94L},{0xEFL},{1L}},{{0x30L},{0L},{0x80L},{0x86L},{9L}},{{-7L},{0x37L},{1L},{0xEFL},{1L}},{{1L},{0x73L},{0xA8L},{0xDAL},{0L}},{{-8L},{0x1CL},{0x6CL},{0x80L},{0x4BL}}}};
                          int i, j, k;
                          return l_2747[0][5][3];
                      }
                  }
                  else
                  { /* block id: 1090 */
                      int32_t *l_2748[5][2][5] = {{{&l_2650,&l_2677,&l_2650,&l_2700,&g_21},{&g_469,(void*)0,&g_21,(void*)0,&g_469}},{{&l_2650,(void*)0,&l_2677,&g_469,&l_2677},{&l_2677,&l_2677,&g_21,&g_469,&l_2663[0]}},{{(void*)0,&l_2650,&l_2650,(void*)0,&l_2677},{(void*)0,&g_469,&l_2700,&l_2700,&g_469}},{{&l_2677,&l_2650,&l_2700,&g_21,&g_21},{&l_2650,&l_2677,&l_2650,&l_2700,&g_21}},{{&g_469,(void*)0,&g_21,(void*)0,&g_469},{&l_2650,(void*)0,&l_2677,&g_469,&l_2677}}};
                      uint16_t l_2749 = 65532UL;
                      int i, j, k;
                      ++l_2749;
                      (*l_67) = (*g_1394);
                      if ((*g_2142))
                          continue;
                  }
              }
              else
              { /* block id: 1095 */
                  int16_t l_2753 = (-1L);
                  (*g_2142) &= (l_2753 ^= (safe_unary_minus_func_int32_t_s(l_24)));
              }
          }
          else
          { /* block id: 1099 */
              union U0 l_2754 = {0x8AL};
              return l_2754;
          }
          (*g_486) = &l_57;
          (*g_2142) = 0x25486B75L;
      }
      return l_2755[6][1];
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_70 g_20 g_86 g_1792 g_1793 g_2142 g_469 g_1312 g_1313 g_1314 g_747 g_2141 g_53.f1 g_44 g_45 g_48 g_49 g_472 g_204 g_347 g_348 g_54 g_1400 g_53 g_1277 g_1278 g_1400.f1 g_2266 g_1730 g_670 g_2531 g_780 g_19 g_136 g_167 g_761 g_684 g_485 g_486
   * writes: g_53.f1 g_86 g_165 g_469 g_1314 g_2142 g_1770.f1 g_49 g_611 g_1725 g_204 g_103.f0 g_747 g_1179 g_1400.f1 g_1937 g_670 g_20 g_19 g_54 g_780 g_394 g_136 g_126 g_195 g_2601 g_972
   */
  static const int32_t  func_62(int32_t ** const  p_63, const uint16_t * p_64, uint64_t  p_65, int16_t  p_66)
  { /* block id: 40 */
      uint32_t l_2584 = 0x9D0C8DE3L;
      int32_t l_2605 = 0L;
      union U0 *l_2607 = &g_103;
      for (p_65 = 19; (p_65 > 33); p_65 = safe_add_func_uint64_t_u_u(p_65, 8))
      { /* block id: 43 */
          union U0 **l_78 = (void*)0;
          int32_t l_2585 = 1L;
          uint8_t *l_2591 = &g_1179;
          uint8_t **l_2590 = &l_2591;
          (**p_63) = (func_71(l_78) < (safe_mul_func_int16_t_s_s((-4L), (safe_mod_func_int16_t_s_s((func_83(g_20[6][0]) || (safe_mul_func_uint16_t_u_u((safe_lshift_func_uint8_t_u_s((1UL & ((safe_mod_func_uint32_t_u_u((safe_sub_func_int8_t_s_s((safe_sub_func_int8_t_s_s((safe_mul_func_uint16_t_u_u(((l_2584 >= l_2584) & (l_2585 < (*p_64))), p_65)), g_167)), l_2585)), p_66)) & 4294967293UL)), p_65)), p_66))), l_2584)))));
          for (g_611 = 4; (g_611 >= 0); g_611 -= 1)
          { /* block id: 1022 */
              int32_t *l_2587[9] = {(void*)0,&g_86,(void*)0,(void*)0,&g_86,(void*)0,(void*)0,&g_86,(void*)0};
              int8_t *l_2600 = (void*)0;
              int8_t **l_2599[5];
              int16_t **l_2606 = &g_973[3];
              int i;
              for (i = 0; i < 5; i++)
                  l_2599[i] = &l_2600;
              for (g_126 = 1; (g_126 <= 4); g_126 += 1)
              { /* block id: 1025 */
                  if (l_2585)
                      break;
              }
              for (g_195 = 3; (g_195 >= 0); g_195 -= 1)
              { /* block id: 1030 */
                  uint8_t l_2586 = 0xF2L;
                  if (l_2586)
                      break;
                  (*p_63) = (*g_472);
              }
              l_2587[6] = (*g_761);
              (*p_63) = func_120((safe_mod_func_int64_t_s_s(((void*)0 == l_2590), ((**g_1313) = (safe_add_func_uint8_t_u_u((((safe_unary_minus_func_uint8_t_u((safe_sub_func_uint8_t_u_u((((**l_2590) = p_65) & (((safe_mod_func_int32_t_s_s((&g_348 == (g_2601 = &g_2032[3])), (safe_sub_func_uint64_t_u_u((~((g_780 = (l_2605 ^= 0x7DL)) >= ((((l_2584 , (((void*)0 != l_2606) , 0x1E5DL)) , l_2584) | p_66) >= l_2584))), 0x824BCE20F7BB9FC5LL)))) <= l_2585) >= 0L)), l_2584)))) | p_65) && 1L), l_2585))))), l_2607, (**g_684));
          }
          for (g_1725 = 0; g_1725 < 6; g_1725 += 1)
          {
              g_972[g_1725] = (void*)0;
          }
      }
      return l_2584;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_70
   * writes:
   */
  static uint32_t  func_71(union U0 ** p_72)
  { /* block id: 37 */
      int32_t *l_75[8][5] = {{(void*)0,&g_21,&g_21,(void*)0,(void*)0},{&g_21,&g_21,(void*)0,&g_21,&g_21},{&g_21,&g_21,(void*)0,&g_21,&g_21},{&g_21,&g_21,&g_21,(void*)0,(void*)0},{&g_21,&g_21,&g_21,&g_21,&g_21},{&g_21,&g_21,&g_21,(void*)0,&g_21},{&g_21,&g_21,&g_21,&g_21,&g_21},{(void*)0,&g_21,&g_21,&g_21,(void*)0}};
      int32_t **l_74 = &l_75[3][4];
      int i, j;
      (*l_74) = (void*)0;
      return g_70;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_53.f1 g_70 g_86 g_165 g_1792 g_1793 g_2142 g_469 g_1312 g_1313 g_1314 g_747 g_2141 g_20 g_44 g_45 g_48 g_49 g_472 g_204 g_347 g_348 g_103.f0 g_54 g_53 g_1277 g_1278 g_1400.f1 g_2266 g_1937 g_1730 g_670 g_2531 g_780 g_19 g_394 g_136 g_1400
   * writes: g_53.f1 g_86 g_165 g_469 g_1314 g_2142 g_1770.f1 g_49 g_611 g_1725 g_204 g_103.f0 g_747 g_1179 g_1400.f1 g_1937 g_670 g_19 g_54 g_780 g_394 g_136 g_20
   */
  static int64_t  func_83(int32_t  p_84)
  { /* block id: 44 */
      int32_t l_88 = 0L;
      int8_t l_89[5][8][4] = {{{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L}},{{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L}},{{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L}},{{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L}},{{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L},{0x6BL,0x6BL,0x69L,0x69L}}};
      int32_t l_90 = 0x2D3F7CC8L;
      int32_t l_91 = 9L;
      int32_t l_92 = 0x642E063AL;
      int32_t l_93[7] = {0L,(-10L),(-10L),0L,(-10L),(-10L),0L};
      union U0 **l_97 = &g_54[6][0];
      int32_t l_2430 = 0xC3EBA449L;
      int32_t l_2507 = 0xE8893110L;
      int8_t *l_2541[2];
      int16_t **l_2546 = &g_973[0];
      uint16_t l_2549 = 0xC3C2L;
      uint8_t *l_2552 = &g_780;
      int i, j, k;
      for (i = 0; i < 2; i++)
          l_2541[i] = (void*)0;
      for (g_53.f1 = 1; (g_53.f1 <= 4); g_53.f1 += 1)
      { /* block id: 47 */
          int32_t *l_85 = &g_86;
          int32_t *l_87[7] = {&g_86,&g_86,&g_86,&g_86,&g_86,&g_86,&g_86};
          uint16_t l_94 = 0xD264L;
          union U0 ***l_98 = &l_97;
          uint64_t l_2405 = 4UL;
          uint32_t ** const l_2460 = &g_136;
          int i;
          ++l_94;
          (*l_85) ^= func_71(((*l_98) = l_97));
          for (l_94 = 0; (l_94 <= 4); l_94 += 1)
          { /* block id: 53 */
              union U0 **l_104 = &g_54[6][0];
              uint32_t *l_2408 = (void*)0;
              int32_t l_2414 = 1L;
              int32_t *l_2425 = &l_2414;
              int32_t l_2435[10] = {0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL,0x9BFF94FFL};
              int i;
              for (l_88 = 3; (l_88 >= 0); l_88 -= 1)
              { /* block id: 56 */
                  union U0 *l_102 = &g_103;
                  int64_t l_2406 = 0xB8CC39B9878FF5F6LL;
                  union U0 ***l_2407 = &g_487;
                  int32_t **l_2409 = &g_204[0][0];
                  int i, j;
              }
              for (g_165 = 4; (g_165 >= 0); g_165 -= 1)
              { /* block id: 928 */
                  const int64_t *l_2418 = &g_747;
                  uint32_t *l_2422 = &g_126;
                  int32_t l_2428 = 0xCC824F9DL;
                  uint8_t l_2429 = 9UL;
                  const int8_t *l_2457 = &l_89[4][1][2];
                  volatile int32_t **l_2465 = (void*)0;
                  volatile int32_t **l_2466[6][2] = {{&g_49,&g_49},{&g_49,&g_49},{&g_49,&g_49},{&g_49,&g_49},{&g_49,&g_49},{&g_49,&g_49}};
                  int i, j;
                  (*g_2142) |= ((*g_1792) == &g_350);
                  if (p_84)
                  { /* block id: 930 */
                      const int64_t **l_2419 = &l_2418;
                      uint64_t *l_2426 = &l_2405;
                      int32_t l_2427 = 0x094D0414L;
                      l_2430 = (safe_div_func_int64_t_s_s(1L, ((((safe_sub_func_uint32_t_u_u((((l_2414 > (((l_2428 = (((0x83L >= (~0x3E629931L)) >= (safe_div_func_uint64_t_u_u((((*l_2419) = l_2418) == ((*g_1313) = (**g_1312))), (safe_mul_func_int8_t_s_s(((void*)0 == l_2422), (safe_sub_func_uint32_t_u_u((((*l_85) = ((*l_2426) = (l_2425 == (void*)0))) > l_2427), p_84))))))) , p_84)) < l_88) > 2L)) && 0xEA5CA43862D45007LL) && p_84), l_2427)) && l_2429) > p_84) , (***g_1312))));
                      return l_2427;
                  }
                  else
                  { /* block id: 938 */
                      int32_t **l_2431 = &l_87[5];
                      int32_t l_2434 = 0x4891BC53L;
                      union U0 *l_2448 = &g_103;
                      int16_t *l_2458 = &g_611;
                      int16_t *l_2459 = &g_1725;
                      (*l_2431) = ((*g_2141) = (*g_2141));
                      for (l_2429 = 1; (l_2429 >= 59); ++l_2429)
                      { /* block id: 943 */
                          return l_88;
                      }
                      if (p_84)
                      { /* block id: 946 */
                          uint64_t l_2436 = 0xBD0913F082F4DE99LL;
                          l_2434 = 0xD0D489CAL;
                          l_2436++;
                          return p_84;
                      }
                      else
                      { /* block id: 950 */
                          int16_t *l_2446[3];
                          int32_t l_2447 = 0x260C4036L;
                          union U0 ***l_2449 = &g_487;
                          int i;
                          for (i = 0; i < 3; i++)
                              l_2446[i] = &g_611;
                          (*l_2431) = func_120(((((safe_mod_func_uint8_t_u_u((p_84 , 0x73L), (safe_sub_func_int32_t_s_s(p_84, (+(safe_rshift_func_int8_t_s_u((g_1770.f1 = ((-1L) & p_84)), ((((g_20[(g_53.f1 + 5)][l_94] == p_84) == ((*l_2425) = (249UL != (((255UL | p_84) < p_84) > 0x2AE80F8EF8B48F96LL)))) , (*g_44)) <= l_89[3][7][1])))))))) ^ l_2447) || 0xE97E3D8B0AA5F9F9LL) && p_84), l_2448, l_2449);
                          (*l_2431) = (*g_472);
                          (*l_85) ^= 0x8DB6A508L;
                      }
                      (*l_2425) = ((safe_rshift_func_uint8_t_u_s((!0xB66984B8L), 1)) > (safe_mod_func_uint32_t_u_u((((safe_add_func_int16_t_s_s(((0xC193L & ((void*)0 == l_2457)) == 0x22L), ((*l_2459) = ((*l_2458) = p_84)))) < ((void*)0 == l_2460)) , (safe_lshift_func_int8_t_s_u((((((safe_add_func_int8_t_s_s(0x48L, 1L)) >= (*g_347)) , p_84) , (*g_347)) > p_84), l_2429))), 0x829B9F5AL)));
                  }
                  (*g_48) = &g_20[(l_94 + 2)][g_53.f1];
              }
              (*g_472) = l_85;
              return p_84;
          }
      }
      for (g_103.f0 = 17; (g_103.f0 == (-22)); g_103.f0--)
      { /* block id: 969 */
          int64_t ****l_2484 = &g_1312;
          int64_t *****l_2483 = &l_2484;
          int64_t l_2490 = 1L;
          int32_t l_2501 = 0xD3B61146L;
          int32_t l_2502 = 0L;
          int32_t l_2503 = 1L;
          int32_t l_2504 = 1L;
          int32_t l_2505 = 0xC9872C40L;
          int32_t l_2506[7][3][2] = {{{2L,(-1L)},{0x12B47A6FL,0x7C8BBA85L},{(-1L),0x7C8BBA85L}},{{0x12B47A6FL,(-1L)},{2L,2L},{2L,(-1L)}},{{0x12B47A6FL,0x7C8BBA85L},{(-1L),0x7C8BBA85L},{0x12B47A6FL,(-1L)}},{{2L,2L},{2L,(-1L)},{0x12B47A6FL,0x7C8BBA85L}},{{(-1L),0x7C8BBA85L},{0x12B47A6FL,(-1L)},{2L,2L}},{{2L,(-1L)},{0x12B47A6FL,0x7C8BBA85L},{(-1L),0x7C8BBA85L}},{{0x12B47A6FL,(-1L)},{2L,2L},{2L,(-1L)}}};
          union U0 *l_2536 = &g_1400;
          int8_t *l_2542[2];
          int16_t **l_2545[2];
          int16_t ***l_2547 = &l_2546;
          uint32_t *l_2548[3][6][1] = {{{&g_126},{&g_111},{&g_126},{&g_126},{&g_111},{&g_126}},{{&g_126},{&g_111},{&g_126},{&g_126},{&g_111},{&g_126}},{{&g_126},{&g_111},{&g_126},{&g_126},{&g_111},{&g_126}}};
          int i, j, k;
          for (i = 0; i < 2; i++)
              l_2542[i] = &g_2032[2];
          for (i = 0; i < 2; i++)
              l_2545[i] = &g_973[0];
          for (g_747 = 10; (g_747 >= 20); g_747 = safe_add_func_int8_t_s_s(g_747, 1))
          { /* block id: 972 */
              uint8_t *l_2482 = &g_1179;
              int64_t **** const *l_2489 = &l_2484;
              int32_t l_2491 = 8L;
              int32_t l_2492 = 0x95B38938L;
              uint32_t l_2493 = 1UL;
              int32_t l_2500[7][4] = {{0xCC831229L,(-8L),(-8L),0xCC831229L},{(-8L),0xCC831229L,(-8L),(-8L)},{0xCC831229L,0xCC831229L,0x17299F8DL,0xCC831229L},{0xCC831229L,(-8L),(-8L),0xCC831229L},{(-8L),0xCC831229L,(-8L),(-8L)},{0xCC831229L,0xCC831229L,0x17299F8DL,0xCC831229L},{0xCC831229L,(-8L),(-8L),0xCC831229L}};
              uint8_t l_2510 = 250UL;
              int i, j;
              if (((safe_div_func_uint64_t_u_u((((65535UL < (l_2492 &= (safe_lshift_func_int8_t_s_s((((safe_div_func_uint8_t_u_u((((l_2430 = (l_92 <= (((*l_2482) = (safe_lshift_func_int16_t_s_u((~p_84), 10))) , (((void*)0 == l_2483) != (safe_mul_func_uint8_t_u_u((safe_rshift_func_uint16_t_u_s((((((**l_97) , l_2489) != (void*)0) >= l_2490) >= p_84), 14)), l_2491)))))) | (*g_1277)) & p_84), l_2490)) || (**g_1313)) <= l_90), p_84)))) <= 0x0E6FC0668297EED7LL) == 0L), (-2L))) ^ l_2493))
              { /* block id: 976 */
                  int32_t *l_2494 = &l_91;
                  int32_t *l_2495 = &l_2492;
                  int32_t *l_2496 = (void*)0;
                  int32_t *l_2497 = &g_86;
                  int32_t *l_2498 = &l_2491;
                  int32_t *l_2499[5];
                  int8_t l_2508[3];
                  int32_t l_2509 = (-8L);
                  int i;
                  for (i = 0; i < 5; i++)
                      l_2499[i] = &g_167;
                  for (i = 0; i < 3; i++)
                      l_2508[i] = 0L;
                  l_2510++;
              }
              else
              { /* block id: 978 */
                  uint64_t l_2527 = 0x9F7FF6CDE482A85ELL;
                  int32_t ** const l_2528[4][6] = {{&g_204[1][0],(void*)0,&g_204[1][0],&g_204[3][2],&g_204[1][0],&g_204[0][1]},{&g_204[0][1],&g_204[3][1],&g_2142,&g_204[3][1],&g_204[0][1],(void*)0},{&g_204[0][1],&g_204[1][0],&g_204[3][1],&g_204[3][2],&g_204[1][0],&g_204[1][0]},{&g_204[1][0],&g_204[1][0],&g_204[1][0],&g_204[1][0],&g_2142,&g_204[1][0]}};
                  int i, j;
                  if ((safe_sub_func_int8_t_s_s((safe_mod_func_uint8_t_u_u((p_84 | p_84), l_2506[4][0][1])), ((safe_rshift_func_int16_t_s_s((p_84 == (safe_mod_func_uint8_t_u_u((safe_rshift_func_int16_t_s_s((((**g_1313) < ((safe_rshift_func_int8_t_s_u(0x24L, p_84)) > l_2527)) || ((void*)0 != l_2528[2][3])), p_84)), (-1L)))), 0)) & 0x9AB204D8F182E843LL))))
                  { /* block id: 979 */
                      for (g_1400.f1 = 3; (g_1400.f1 >= 0); g_1400.f1 -= 1)
                      { /* block id: 982 */
                          int i, j, k;
                          return g_2266[(g_1400.f1 + 1)][g_1400.f1][(g_1400.f1 + 2)];
                      }
                  }
                  else
                  { /* block id: 985 */
                      int32_t l_2532 = 1L;
                      for (g_1937 = (-12); (g_1937 < 13); g_1937 = safe_add_func_int32_t_s_s(g_1937, 4))
                      { /* block id: 988 */
                          uint16_t l_2533 = 0x9A34L;
                          if (p_84)
                              break;
                          (*g_2531) = (*g_1730);
                          ++l_2533;
                          return p_84;
                      }
                      (*g_49) = p_84;
                  }
              }
              return l_2490;
          }
          (*l_97) = l_2536;
          (*g_49) = ((safe_lshift_func_uint16_t_u_u((safe_rshift_func_uint16_t_u_u((l_2541[1] != l_2542[1]), ((safe_sub_func_uint64_t_u_u(((l_2545[0] != ((*l_2547) = l_2546)) , (p_84 , ((l_2548[2][5][0] != (void*)0) >= l_2506[0][1][1]))), ((l_2507 , p_84) && l_93[2]))) || 1UL))), p_84)) | l_2549);
          return l_91;
      }
      (*g_2142) = (safe_lshift_func_uint8_t_u_u((--(*l_2552)), g_19));
      for (g_394 = 0; (g_394 < 59); g_394 = safe_add_func_int16_t_s_s(g_394, 4))
      { /* block id: 1008 */
          int32_t l_2559[10][10][2] = {{{1L,0x0BAF262EL},{(-1L),0x41E8C21DL},{0x1EFE3EA3L,0x872F4CC3L},{2L,0x1A9F0981L},{0x1A9F0981L,(-1L)},{0x05507CC0L,0xBC2DCA60L},{0x872F4CC3L,0L},{1L,0x6C12B644L},{2L,(-1L)},{(-7L),0x872F4CC3L}},{{(-9L),0x0BAF262EL},{0x6C12B644L,0L},{0x05507CC0L,(-7L)},{(-1L),2L},{0x1A9F0981L,0x6C12B644L},{(-9L),0x41E8C21DL},{(-7L),0x41E8C21DL},{1L,1L},{0L,(-7L)},{(-1L),(-1L)}},{{0xF0464915L,(-7L)},{1L,1L},{1L,(-9L)},{(-1L),(-1L)},{(-7L),1L},{(-1L),(-7L)},{(-9L),0xACAF8924L},{0xF0464915L,0x1EFE3EA3L},{0L,0L},{(-7L),(-9L)}},{{0x12A585A5L,2L},{0x1EFE3EA3L,1L},{(-1L),0x1EFE3EA3L},{(-1L),(-1L)},{(-1L),0x1EFE3EA3L},{(-1L),1L},{0x1EFE3EA3L,2L},{0x12A585A5L,(-9L)},{(-7L),0L},{0L,0x1EFE3EA3L}},{{0xF0464915L,0xACAF8924L},{(-9L),(-7L)},{(-1L),1L},{(-7L),(-1L)},{(-1L),(-9L)},{1L,1L},{1L,(-7L)},{0xF0464915L,(-1L)},{(-1L),(-7L)},{0L,1L}},{{1L,2L},{(-1L),2L},{1L,1L},{0L,(-7L)},{(-1L),(-1L)},{0xF0464915L,(-7L)},{1L,1L},{1L,(-9L)},{(-1L),(-1L)},{(-7L),1L}},{{(-1L),(-7L)},{(-9L),0xACAF8924L},{0xF0464915L,0x1EFE3EA3L},{0L,0L},{(-7L),(-9L)},{0x12A585A5L,2L},{0x1EFE3EA3L,1L},{(-1L),0x1EFE3EA3L},{(-1L),(-1L)},{(-1L),0x1EFE3EA3L}},{{(-1L),1L},{0x1EFE3EA3L,2L},{0x12A585A5L,(-9L)},{(-7L),0L},{0L,0x1EFE3EA3L},{0xF0464915L,0xACAF8924L},{(-9L),(-7L)},{(-1L),1L},{(-7L),(-1L)},{(-1L),(-9L)}},{{1L,1L},{1L,(-7L)},{0xF0464915L,(-1L)},{(-1L),(-7L)},{0L,1L},{1L,2L},{(-1L),2L},{1L,1L},{0L,(-7L)},{(-1L),(-1L)}},{{0xF0464915L,(-7L)},{1L,1L},{1L,(-9L)},{(-1L),(-1L)},{(-7L),1L},{(-1L),(-7L)},{(-9L),0xACAF8924L},{0xF0464915L,0x1EFE3EA3L},{0L,0L},{(-7L),(-9L)}}};
          const uint32_t *l_2561 = &g_1724[3];
          int i, j, k;
          for (g_103.f0 = 0; (g_103.f0 < 3); g_103.f0 = safe_add_func_uint16_t_u_u(g_103.f0, 1))
          { /* block id: 1011 */
              uint16_t *l_2560 = &l_2549;
              int32_t l_2564[3];
              int32_t l_2567 = 0x499EDAFDL;
              int i;
              for (i = 0; i < 3; i++)
                  l_2564[i] = 1L;
              (*g_2142) |= ((((*l_2560) = l_2559[8][9][1]) <= (l_2561 == ((*g_1793) = ((safe_mul_func_int8_t_s_s((l_2564[1] = p_84), ((safe_add_func_int16_t_s_s(l_2567, (safe_lshift_func_int16_t_s_s(((void*)0 == &g_727[4][0][3]), (((safe_sub_func_int32_t_s_s(l_2559[8][9][1], (65534UL > p_84))) , 0x0A9DL) || l_2559[5][1][0]))))) | l_93[6]))) , (**g_1792))))) | l_2567);
          }
      }
      return p_84;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_86 g_111 g_59 g_54 g_48 g_49 g_1400 g_53 g_35 g_44 g_45 g_19 g_1313 g_1314 g_747 g_1721 g_1724 g_1725 g_486 g_487 g_1730 g_1732 g_683 g_684 g_485 g_347 g_348 g_349 g_350 g_1277 g_1278 g_1792 g_1770.f1 g_1825 g_1826 g_1864 g_1897 g_973 g_126 g_1312 g_2036 g_1153 g_70 g_761 g_2128 g_190 g_2141 g_2142 g_1770.f0 g_1865 g_661 g_136 g_528 g_469 g_165 g_394 g_2362 g_611
   * writes: g_86 g_103.f1 g_111 g_49 g_136 g_19 g_20 g_1400.f1 g_747 g_165 g_1724 g_204 g_670 g_1733 g_780 g_1153 g_35 g_1725 g_1793 g_1770.f1 g_1179 g_1937 g_46 g_611 g_485 g_2036 g_126 g_726 g_54 g_2142 g_195 g_469 g_1865 g_394 g_2267 g_190
   */
  static uint32_t  func_99(union U0  p_100, union U0 ** p_101)
  { /* block id: 58 */
      uint32_t l_143[10] = {0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L,0xBEE32CE8L};
      uint32_t **l_2078 = &g_136;
      int32_t l_2082 = 0x2C64CDBEL;
      union U0 *l_2083 = &g_1400;
      uint32_t l_2106 = 2UL;
      int32_t l_2126 = 0xEAA6A30CL;
      int32_t l_2127 = 1L;
      union U0 **** const **l_2156 = (void*)0;
      union U0 **** const ***l_2155 = &l_2156;
      union U0 **** const ****l_2154[5] = {&l_2155,&l_2155,&l_2155,&l_2155,&l_2155};
      union U0 **** const *****l_2153 = &l_2154[0];
      int32_t **l_2164 = (void*)0;
      int32_t *** const l_2163[4][1] = {{&l_2164},{&l_2164},{&l_2164},{&l_2164}};
      uint8_t *l_2218 = &g_1179;
      uint8_t **l_2217[8] = {&l_2218,&l_2218,&l_2218,&l_2218,&l_2218,&l_2218,&l_2218,&l_2218};
      int32_t *l_2227[3];
      int64_t l_2313 = 1L;
      int32_t l_2314 = 0xB7398F36L;
      union U0 ******l_2342[4];
      int8_t l_2363 = 0xF6L;
      int8_t l_2364 = 0xE7L;
      uint32_t l_2365 = 0xC6289F9CL;
      int8_t l_2375[7] = {0L,0x60L,0x60L,0L,0x60L,0x60L,0L};
      const int8_t l_2376 = 1L;
      int32_t l_2377 = 0x4A520274L;
      int8_t l_2378 = 0L;
      int32_t l_2379 = 0xE45BBBDEL;
      uint16_t *** const l_2393[8][2][2] = {{{&g_1733[8],&g_1733[8]},{&g_1733[8],&g_1733[1]}},{{&g_1733[4],&g_1733[4]},{&g_1733[1],&g_1733[8]}},{{&g_1733[8],&g_1733[8]},{&g_1733[1],&g_1733[4]}},{{&g_1733[4],&g_1733[1]},{&g_1733[8],&g_1733[8]}},{{&g_1733[8],&g_1733[1]},{&g_1733[4],&g_1733[4]}},{{&g_1733[1],&g_1733[8]},{&g_1733[8],&g_1733[8]}},{{&g_1733[1],&g_1733[4]},{&g_1733[4],&g_1733[1]}},{{&g_1733[8],&g_1733[8]},{&g_1733[8],&g_1733[1]}}};
      int i, j, k;
      for (i = 0; i < 3; i++)
          l_2227[i] = (void*)0;
      for (i = 0; i < 4; i++)
          l_2342[i] = &g_684;
      for (g_86 = 0; (g_86 <= 0); g_86 += 1)
      { /* block id: 61 */
          int32_t l_145[6] = {6L,6L,6L,6L,6L,6L};
          int16_t *l_2075[3][10][8] = {{{&g_1725,(void*)0,&g_1725,&g_611,&g_1725,&g_1725,&g_1725,(void*)0},{&g_611,&g_1725,&g_1725,&g_1725,&g_1725,&g_611,&g_611,(void*)0},{&g_1725,&g_611,&g_611,(void*)0,&g_1725,&g_1725,&g_1725,&g_611},{&g_611,&g_1725,&g_1725,&g_611,&g_1725,&g_611,&g_611,&g_1725},{&g_611,(void*)0,&g_1725,&g_1725,&g_611,&g_611,(void*)0,&g_1725},{&g_1725,&g_1725,&g_1725,(void*)0,(void*)0,(void*)0,&g_1725,&g_1725},{&g_611,&g_1725,&g_611,&g_1725,&g_611,(void*)0,&g_611,&g_611},{&g_611,&g_611,&g_611,&g_1725,&g_611,&g_611,&g_611,&g_1725},{&g_1725,&g_1725,&g_611,(void*)0,&g_1725,(void*)0,&g_1725,&g_611},{&g_1725,(void*)0,&g_1725,&g_611,&g_611,&g_611,(void*)0,&g_611}},{{&g_611,&g_1725,&g_1725,&g_611,&g_1725,&g_1725,&g_611,&g_611},{&g_1725,&g_1725,&g_1725,&g_1725,&g_1725,&g_1725,&g_1725,(void*)0},{&g_1725,&g_1725,&g_611,&g_611,&g_611,&g_611,&g_611,&g_611},{&g_611,&g_1725,&g_1725,&g_611,&g_1725,&g_611,&g_1725,&g_1725},{(void*)0,&g_1725,&g_1725,&g_611,&g_1725,&g_611,&g_611,&g_611},{(void*)0,&g_1725,(void*)0,&g_611,&g_611,&g_611,&g_1725,&g_1725},{&g_1725,&g_1725,&g_1725,&g_1725,&g_611,&g_611,(void*)0,&g_611},{&g_611,&g_1725,&g_1725,&g_611,&g_611,&g_1725,&g_611,&g_1725},{&g_1725,&g_611,&g_1725,&g_1725,&g_1725,&g_1725,&g_611,&g_611},{&g_1725,&g_611,&g_1725,&g_611,(void*)0,&g_611,&g_611,&g_611}},{{&g_1725,&g_1725,&g_611,(void*)0,&g_611,&g_1725,&g_1725,(void*)0},{&g_1725,&g_1725,&g_1725,&g_1725,(void*)0,(void*)0,&g_611,&g_611},{&g_1725,&g_1725,(void*)0,&g_611,(void*)0,&g_611,(void*)0,(void*)0},{&g_1725,&g_611,(void*)0,&g_611,&g_611,&g_611,&g_1725,(void*)0},{&g_1725,(void*)0,&g_611,(void*)0,(void*)0,&g_1725,(void*)0,&g_1725},{&g_1725,&g_1725,&g_1725,&g_611,&g_1725,&g_1725,(void*)0,&g_1725},{&g_1725,(void*)0,&g_1725,&g_611,&g_1725,&g_611,&g_1725,&g_611},{&g_1725,(void*)0,&g_611,&g_1725,(void*)0,(void*)0,&g_1725,&g_611},{&g_1725,&g_1725,&g_1725,(void*)0,&g_611,&g_611,&g_611,&g_1725},{(void*)0,&g_1725,&g_1725,&g_1725,&g_611,&g_1725,&g_611,&g_1725}}};
          int32_t l_2077[10][2] = {{0xB3104FB2L,(-1L)},{0xB3104FB2L,0xB3104FB2L},{(-1L),0xB3104FB2L},{0xB3104FB2L,(-1L)},{0xB3104FB2L,0xB3104FB2L},{(-1L),0xB3104FB2L},{0xB3104FB2L,(-1L)},{0xB3104FB2L,0xB3104FB2L},{(-1L),0xB3104FB2L},{0xB3104FB2L,(-1L)}};
          union U0 *******l_2090 = &g_683;
          union U0 ********l_2089 = &l_2090;
          union U0 *********l_2088 = &l_2089;
          uint32_t ***l_2136 = (void*)0;
          int32_t l_2139 = 0x568AEBBDL;
          uint8_t *l_2171 = &g_780;
          int16_t l_2187 = 3L;
          union U0 ***l_2231 = &g_487;
          int32_t * const *l_2261[2][5] = {{&g_1865,&l_2227[1],&g_1865,&g_1865,&l_2227[1]},{&g_1865,&l_2227[1],&g_1865,&g_1865,&l_2227[1]}};
          int16_t l_2274 = 1L;
          uint16_t l_2275 = 0x6148L;
          const uint32_t ***l_2286 = (void*)0;
          uint32_t ***l_2287[7][4][5] = {{{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793}},{{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793}},{{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793},{&g_1793,&g_1793,&l_2078,&l_2078,&g_1793}},{{&g_1793,&g_1793,&l_2078,&l_2078,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078}},{{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078}},{{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078}},{{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078},{&g_1793,&l_2078,&g_1793,&g_1793,&l_2078}}};
          int8_t *l_2319 = &g_165;
          int32_t *l_2324 = &l_145[0];
          uint16_t *l_2359 = &g_394;
          uint16_t *l_2360 = &l_2275;
          uint32_t l_2361[9][9] = {{0xC40B434CL,0UL,0xE861D0E1L,0xE4A70D5BL,0x9F6266B9L,0xF1E2BFEFL,0x87EE6DA2L,18446744073709551614UL,18446744073709551614UL},{1UL,0x21875BA5L,18446744073709551613UL,0x9F6266B9L,18446744073709551613UL,0x21875BA5L,1UL,18446744073709551614UL,0xCEEF2738L},{1UL,0x87EE6DA2L,0UL,0x21875BA5L,0xD635B450L,18446744073709551611UL,0xF1E2BFEFL,0xC4F5603AL,0x96842717L},{0xC40B434CL,18446744073709551614UL,18446744073709551611UL,0xA4FCAAE1L,18446744073709551614UL,0xD635B450L,0xD635B450L,18446744073709551614UL,0xA4FCAAE1L},{0UL,0xC40B434CL,0UL,0xCEEF2738L,0UL,0xD635B450L,0x9F6266B9L,18446744073709551614UL,18446744073709551613UL},{0xCEB5A58BL,0xA4FCAAE1L,0UL,0UL,0xC4F5603AL,18446744073709551611UL,0xC40B434CL,0xE861D0E1L,0xF1E2BFEFL},{0xD635B450L,0xE4A70D5BL,0x21875BA5L,0xCEEF2738L,0xCEEF2738L,0x21875BA5L,0xE4A70D5BL,0xD635B450L,0UL},{0x96842717L,0xE4A70D5BL,0x87EE6DA2L,0xA4FCAAE1L,18446744073709551608UL,0xF1E2BFEFL,0UL,0UL,18446744073709551614UL},{0xE4A70D5BL,0xA4FCAAE1L,18446744073709551614UL,0x21875BA5L,0UL,0UL,0xE861D0E1L,0UL,0UL}};
          int i, j, k;
          for (g_103.f1 = 0; (g_103.f1 <= 0); g_103.f1 += 1)
          { /* block id: 64 */
              uint32_t *l_109 = (void*)0;
              uint32_t *l_110 = &g_111;
              uint32_t **l_137 = (void*)0;
              uint32_t **l_138 = &l_109;
              const int32_t l_144[10] = {0x534C0AFDL,5L,(-1L),5L,0x534C0AFDL,0x534C0AFDL,5L,(-1L),5L,0x534C0AFDL};
              int32_t **l_1624 = &g_204[1][0];
              int32_t l_2079 = (-3L);
              int8_t l_2130 = 9L;
              int32_t l_2191 = 0x5DDD3B49L;
              const int32_t *l_2260 = (void*)0;
              const int32_t **l_2259 = &l_2260;
              int8_t l_2271[1];
              int32_t l_2272[4][8] = {{5L,3L,1L,0x10F847EDL,9L,9L,0x10F847EDL,1L},{0L,0L,1L,0x00B7ABDEL,4L,0x86347669L,0x641E9F23L,5L},{9L,0x641E9F23L,0x4F525A38L,0L,0x4F525A38L,0x641E9F23L,9L,2L},{0x00B7ABDEL,9L,0x4F525A38L,3L,0x641E9F23L,1L,1L,0x641E9F23L}};
              int8_t l_2273 = 0xFBL;
              const uint32_t ***l_2285 = &g_349;
              const uint32_t ****l_2284[7][10] = {{(void*)0,(void*)0,&l_2285,(void*)0,(void*)0,&l_2285,(void*)0,(void*)0,&l_2285,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_2285,(void*)0,(void*)0,&l_2285,(void*)0,(void*)0,&l_2285,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_2285,(void*)0,(void*)0,&l_2285,(void*)0,(void*)0,&l_2285,(void*)0}};
              int i, j;
              for (i = 0; i < 1; i++)
                  l_2271[i] = 2L;
              if (func_71(func_105(((*l_110)--), func_114(func_120(g_59, g_54[(g_86 + 4)][g_86], &p_101), &g_126, (safe_div_func_int32_t_s_s((safe_sub_func_uint32_t_u_u(((safe_rshift_func_int16_t_s_u((~(safe_div_func_int64_t_s_s(((g_136 = &g_126) != ((*l_138) = &g_126)), (safe_mod_func_uint8_t_u_u(((safe_div_func_uint8_t_u_u(((**p_101) , l_143[5]), l_143[5])) > l_143[5]), 7L))))), p_100.f1)) , g_35), g_35)), p_100.f0)), l_144[7], l_145[1]), l_1624)))
              { /* block id: 774 */
                  int16_t *l_2074 = (void*)0;
                  int32_t l_2076[8];
                  int i;
                  for (i = 0; i < 8; i++)
                      l_2076[i] = 0x3445FDB5L;
                  (*g_49) = (safe_lshift_func_uint8_t_u_s((((((((((*l_109) = (p_100.f1 & (((l_145[1] &= ((l_2074 != l_2075[2][0][4]) || (((***g_1312) ^= p_100.f0) < 0x26BBE20D62F38C10LL))) == (l_2076[6] , ((p_100.f0 == (l_2077[0][0] || l_2076[0])) || 4294967295UL))) > 0xC1L))) , l_2077[0][1]) > p_100.f1) <= (-7L)) <= 0x2E8FC8AEL) , (void*)0) != l_2078) < l_2077[5][1]), (*g_347)));
                  l_2076[6] |= (l_2079 ^= p_100.f0);
              }
              else
              { /* block id: 781 */
                  uint32_t ***l_2080 = &g_726;
                  int32_t *l_2081 = &l_145[2];
                  int32_t l_2129 = 0xCA567AF2L;
                  int32_t l_2133 = (-1L);
                  if ((l_2082 = ((*l_2081) = (((*l_2080) = &g_727[0][3][3]) != &g_727[1][3][6]))))
                  { /* block id: 785 */
                      int16_t l_2093[3];
                      int32_t l_2094[9];
                      union U0 ***l_2095 = &g_487;
                      int32_t **l_2096 = &l_2081;
                      uint64_t *l_2097[2];
                      uint32_t l_2107 = 0xCA522482L;
                      int i;
                      for (i = 0; i < 3; i++)
                          l_2093[i] = 0x5E70L;
                      for (i = 0; i < 9; i++)
                          l_2094[i] = (-9L);
                      for (i = 0; i < 2; i++)
                          l_2097[i] = &g_1153;
                      (*p_101) = l_2083;
                      (*l_2096) = ((*g_761) = func_120(((safe_sub_func_uint32_t_u_u(((p_100.f0 >= l_143[5]) | (safe_mul_func_uint8_t_u_u(((l_2088 != (void*)0) == ((p_100.f1 != 1UL) && 0UL)), (safe_div_func_uint64_t_u_u((l_2093[2] |= 0xF9525BFB0710F6C6LL), l_2094[4]))))), l_144[7])) ^ 0x19BCF9F7L), (*p_101), l_2095));
                      (*l_2081) |= (p_100.f1 != (g_1153--));
                      (*l_2096) = func_120((((((((safe_lshift_func_uint16_t_u_u((safe_mod_func_int16_t_s_s(((safe_div_func_int16_t_s_s((((**l_2096) = l_2106) > (l_2107 , ((l_145[4] = (((safe_div_func_uint8_t_u_u((((((((safe_sub_func_int32_t_s_s(((safe_mod_func_int64_t_s_s((safe_mod_func_int32_t_s_s(p_100.f0, ((0UL == p_100.f1) && p_100.f1))), (safe_add_func_int16_t_s_s((l_2127 = (l_2126 = (safe_add_func_uint64_t_u_u((safe_mod_func_int16_t_s_s((safe_lshift_func_uint16_t_u_s(1UL, 8)), (l_2082 = p_100.f1))), ((safe_add_func_int16_t_s_s(((void*)0 == &g_1793), p_100.f0)) <= l_2077[0][0]))))), p_100.f1)))) >= 0xA2DC89C7E99B7D5ALL), p_100.f0)) < 0xEE2BF80C00815064LL) | 0xD1A3E8C1L) && p_100.f1) ^ g_2128[1][0][3]) , 0L) , g_190), p_100.f1)) && p_100.f1) | l_143[0])) > (**g_1313)))), p_100.f0)) | 0xC626L), l_2129)), p_100.f0)) || p_100.f1) , p_100.f1) == l_143[5]) == p_100.f1) > 0x0AL) != l_2130), (*p_101), l_2095);
                  }
                  else
                  { /* block id: 798 */
                      uint64_t l_2131[1][2][3] = {{{0xB82383600AB0E1F1LL,0xB82383600AB0E1F1LL,0xB82383600AB0E1F1LL},{0UL,0UL,0UL}}};
                      int i, j, k;
                      if (p_100.f0)
                          break;
                      if ((l_2131[0][0][2] > p_100.f0))
                      { /* block id: 800 */
                          (*g_49) &= (+0x30CCL);
                      }
                      else
                      { /* block id: 802 */
                          return p_100.f0;
                      }
                      if (l_2133)
                          break;
                      if (l_2131[0][0][2])
                          break;
                  }
              }
              for (g_1770.f1 = 0; (g_1770.f1 <= (-21)); g_1770.f1 = safe_sub_func_int8_t_s_s(g_1770.f1, 5))
              { /* block id: 811 */
                  int32_t *l_2140 = &l_2127;
                  int32_t *l_2177 = &g_195;
                  int32_t l_2190[7] = {(-7L),(-7L),(-7L),(-7L),(-7L),(-7L),(-7L)};
                  int64_t *l_2213[5] = {&g_747,&g_747,&g_747,&g_747,&g_747};
                  uint16_t l_2232 = 0UL;
                  union U0 ***l_2247 = &g_487;
                  int i;
                  if ((l_2136 != (void*)0))
                  { /* block id: 812 */
                      (*g_2141) = ((safe_add_func_uint64_t_u_u((p_100.f0 <= l_2139), p_100.f0)) , ((*l_1624) = l_2140));
                  }
                  else
                  { /* block id: 815 */
                      union U0 ******** const *l_2172[4];
                      int32_t l_2173 = 0x98AEF09EL;
                      int i;
                      for (i = 0; i < 4; i++)
                          l_2172[i] = &l_2089;
                      for (l_2082 = 0; (l_2082 < (-27)); --l_2082)
                      { /* block id: 818 */
                          (*l_1624) = l_2140;
                      }
                      (*g_49) ^= (safe_sub_func_int16_t_s_s(((((safe_add_func_int8_t_s_s(((safe_div_func_uint32_t_u_u((((void*)0 != l_2153) ^ (((safe_div_func_int16_t_s_s((safe_add_func_uint16_t_u_u((safe_div_func_int64_t_s_s((((((((void*)0 == l_2163[3][0]) , ((!0L) & p_100.f1)) >= (l_2139 = (safe_rshift_func_uint8_t_u_s((safe_lshift_func_uint8_t_u_u((+(0x3136L && 0x6650L)), 3)), (l_2171 != (void*)0))))) == 0x79C3L) , l_2172[3]) == (void*)0), p_100.f0)), p_100.f1)), 3L)) , p_100.f1) > (-10L))), 0x70ADC80CL)) , 0x61L), l_2173)) , 0x13588CA7226E1182LL) & (*l_2140)) , 8L), p_100.f1));
                  }
                  if ((~((((((*g_1277) != (safe_mod_func_uint64_t_u_u(((((*l_2177) = (0L && 0xB2L)) , ((*l_2140) , (safe_rshift_func_int16_t_s_s((0xD0168D22L == l_2077[0][0]), (l_2139 = p_100.f0))))) ^ (safe_add_func_uint8_t_u_u(((safe_rshift_func_uint16_t_u_s(((0L < (*l_2140)) , 0x8310L), (*l_2140))) & (-4L)), 250UL))), 0xFCCBDD5922A7510DLL))) ^ l_2077[6][0]) != l_2077[0][0]) & p_100.f0) && (*g_347))))
                  { /* block id: 826 */
                      int8_t *l_2186[9][3][2] = {{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}},{{&l_2130,&g_2032[1]},{&l_2130,&l_2130},{&g_2032[1],&l_2130}}};
                      int32_t l_2189 = 1L;
                      int32_t l_2194[8] = {0L,0L,0L,0L,0L,0L,0L,0L};
                      uint64_t l_2195 = 18446744073709551615UL;
                      uint32_t *l_2230[2];
                      int i, j, k;
                      for (i = 0; i < 2; i++)
                          l_2230[i] = &g_528;
                      if ((safe_rshift_func_int8_t_s_s((l_2187 |= (*g_347)), 3)))
                      { /* block id: 828 */
                          int32_t l_2188 = 0xF411DB0AL;
                          int32_t l_2192 = 0x313A6884L;
                          int32_t l_2193[10][7] = {{0L,0x263CDEF8L,0L,0x263CDEF8L,0L,0x263CDEF8L,0L},{0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L},{0L,0x263CDEF8L,0L,0x263CDEF8L,0L,0x263CDEF8L,0L},{0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L},{0L,0x263CDEF8L,0L,0x263CDEF8L,0L,0x263CDEF8L,0L},{0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L},{0L,0x263CDEF8L,0L,0x263CDEF8L,0L,0x263CDEF8L,0L},{0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L},{0L,0x263CDEF8L,0L,0x263CDEF8L,0L,0x263CDEF8L,0L},{0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L,0x86A10118L}};
                          int i, j;
                          l_2195++;
                          l_2077[1][1] &= ((**g_2141) = (((*g_347) < ((safe_sub_func_uint32_t_u_u((+l_2139), ((safe_mul_func_uint16_t_u_u(((safe_mul_func_int8_t_s_s((safe_sub_func_uint8_t_u_u((safe_lshift_func_uint8_t_u_s((safe_sub_func_uint32_t_u_u(((p_100.f1 = ((safe_sub_func_uint32_t_u_u(((void*)0 != &l_2194[5]), (((void*)0 != l_2213[0]) <= (0xBE9DB0D7B8269B72LL < ((void*)0 == (*g_1312)))))) | p_100.f1)) != l_2189), (*l_2140))), l_2192)), g_126)), 9L)) >= l_2187), l_2188)) || l_2193[1][4]))) >= l_2194[0])) , p_100.f0));
                      }
                      else
                      { /* block id: 833 */
                          int16_t l_2216 = 0xD0EBL;
                          uint16_t *l_2228 = &g_394;
                          union U0 l_2229 = {0x48L};
                          (*g_2141) = func_120(((*g_44) < ((((*l_2177) = (safe_mul_func_uint16_t_u_u(l_2216, 0x4FBCL))) , (*g_349)) == (((((void*)0 != l_2217[4]) <= (g_1770.f0 > ((l_2229 = (((safe_lshift_func_int8_t_s_s((safe_mul_func_int16_t_s_s((l_2191 = (((((safe_sub_func_uint16_t_u_u((safe_sub_func_uint16_t_u_u(((*l_2228) = ((((((*g_1864) = (*g_1864)) != (l_2227[0] = l_2227[1])) || 0x5BL) & 0x72L) , 0x57FDL)), l_2216)), 2L)) != g_126) , 0xEBL) , p_100.f0) || p_100.f0)), 6UL)), 5)) , 1L) , (**p_101))) , (*l_2140)))) > p_100.f1) , l_2230[0]))), (*p_101), l_2231);
                      }
                      --l_2232;
                  }
                  else
                  { /* block id: 843 */
                      int8_t *l_2241 = &g_165;
                      union U0 ***l_2246 = &g_487;
                      union U0 l_2269[4][1] = {{{-9L}},{{3L}},{{-9L}},{{3L}}};
                      int32_t l_2270 = 1L;
                      int i, j;
                      l_2077[0][0] &= p_100.f0;
                      (*g_49) = (((safe_lshift_func_int16_t_s_u(p_100.f1, 0)) > p_100.f1) & (safe_mul_func_uint8_t_u_u(((safe_sub_func_uint64_t_u_u((1UL <= 18446744073709551615UL), p_100.f1)) > ((*g_2142) = p_100.f1)), 0x74L)));
                      if ((((*l_2241) = ((p_100.f0 , p_100.f0) && (((*l_2218) = (0x042EL < 0xD167L)) && (*g_347)))) & 0xB4L))
                      { /* block id: 849 */
                          int16_t **l_2245 = &l_2075[2][0][4];
                          int16_t ***l_2244 = &l_2245;
                          int32_t l_2256 = (-8L);
                          int32_t * const **l_2262 = &l_2261[1][4];
                          int32_t * const l_2265 = &g_2266[2][3][5];
                          int32_t * const *l_2264 = &l_2265;
                          int32_t * const **l_2263[3];
                          union U0 l_2268 = {0x5FL};
                          int i;
                          for (i = 0; i < 3; i++)
                              l_2263[i] = &l_2264;
                          (*g_2142) = ((((safe_add_func_int64_t_s_s((p_100.f1 < (((l_2244 == (void*)0) , l_2246) == l_2247)), (&g_2032[2] != (void*)0))) != ((safe_mod_func_uint32_t_u_u((safe_mul_func_int16_t_s_s((0x0E3598F2C0F57154LL | ((safe_rshift_func_uint16_t_u_u((safe_div_func_int32_t_s_s(((-3L) >= 0x9DCFL), p_100.f0)), 8)) & g_661)), (-3L))), 0xD5FC6ED0L)) & (**g_1313))) , l_2256) , 0x4BD51FDCL);
                          (*l_1624) = func_120(g_1724[3], (*p_101), (*****l_2089));
                          l_2190[2] ^= (((safe_lshift_func_uint16_t_u_s((((*g_136) , l_2259) != (g_2267 = ((*l_2262) = l_2261[1][4]))), ((p_100.f0 <= (l_2256 | (*g_347))) , (((l_2139 && ((((l_2269[1][0] = l_2268) , (l_2270 = 0x8D22L)) || 0x9008L) == (*l_2140))) >= p_100.f1) , 0x42F5L)))) ^ (*l_2140)) == p_100.f1);
                      }
                      else
                      { /* block id: 857 */
                          if (l_145[1])
                              break;
                          return l_2271[0];
                      }
                  }
              }
              --l_2275;
              l_2272[3][0] &= ((p_100.f1 > (g_469 == (*g_347))) != (1L != (safe_add_func_uint8_t_u_u(((safe_sub_func_int16_t_s_s((l_145[1] = (((safe_rshift_func_uint8_t_u_u((((l_2286 = &g_349) != (l_2287[3][1][1] = (void*)0)) <= ((safe_unary_minus_func_int16_t_s((l_2139 ^= (safe_sub_func_int64_t_s_s((safe_sub_func_int16_t_s_s(0x2822L, l_2077[1][0])), (safe_lshift_func_int8_t_s_u((safe_mod_func_uint8_t_u_u(0x1BL, 1UL)), p_100.f1))))))) == p_100.f0)), p_100.f1)) , l_2286) != &g_349)), p_100.f1)) ^ l_2274), l_2187))));
          }
          for (l_2106 = 0; (l_2106 <= 16); l_2106 = safe_add_func_int32_t_s_s(l_2106, 6))
          { /* block id: 872 */
              int32_t l_2309 = 0x3A5C4A13L;
              int8_t *l_2310 = &g_165;
              int64_t *l_2315 = &l_2313;
              int32_t *l_2316[9] = {&l_2077[7][1],&l_2077[4][1],&l_2077[7][1],&l_2077[4][1],&l_2077[7][1],&l_2077[4][1],&l_2077[7][1],&l_2077[4][1],&l_2077[7][1]};
              int i;
              l_2316[6] = func_120((safe_lshift_func_int8_t_s_u(0x22L, ((*g_347) >= (safe_rshift_func_uint8_t_u_u((((safe_lshift_func_int16_t_s_u(p_100.f1, 4)) <= (safe_mul_func_uint8_t_u_u((((*l_2315) = ((***g_1312) |= (((safe_rshift_func_int16_t_s_s((l_2309 > (((p_100.f1 & (5UL == ((*l_2310) &= (-4L)))) ^ (((safe_add_func_uint8_t_u_u((((p_100.f0 <= 0xD9B1L) >= l_2313) && (-1L)), p_100.f1)) > l_145[1]) >= 0xDFA2B645L)) >= l_2314)), p_100.f1)) , l_2078) == &g_350))) != 0x67D1BE85D194FE78LL), (-1L)))) < p_100.f0), 2))))), (*p_101), (***g_683));
          }
          if ((safe_add_func_int8_t_s_s(((*l_2319) &= (-10L)), p_100.f1)))
          { /* block id: 879 */
              for (g_35 = 0; (g_35 >= 46); g_35 = safe_add_func_int32_t_s_s(g_35, 7))
              { /* block id: 882 */
                  (**g_2141) = p_100.f1;
                  return p_100.f0;
              }
              for (l_2275 = 8; (l_2275 >= 35); ++l_2275)
              { /* block id: 888 */
                  (*g_2142) &= p_100.f1;
                  return p_100.f1;
              }
          }
          else
          { /* block id: 892 */
              uint32_t *l_2326[6][9][4] = {{{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]}},{{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]}},{{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]}},{{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&l_143[4],&g_126,&g_126,&l_143[4]},{&g_126,&l_143[4],&g_126,&g_126},{&l_143[4],&l_143[4],&g_528,&l_143[4]},{&g_126,&g_528,&g_528,&g_126}},{{&g_528,&g_126,&g_528,&g_528},{&g_126,&g_126,&l_143[4],&g_126},{&g_126,&g_528,&g_528,&g_126},{&g_528,&g_126,&g_528,&g_528},{&g_126,&g_126,&l_143[4],&g_126},{&g_126,&g_528,&g_528,&g_126},{&g_528,&g_126,&g_528,&g_528},{&g_126,&g_126,&l_143[4],&g_126},{&g_126,&g_528,&g_528,&g_126}},{{&g_528,&g_126,&g_528,&g_528},{&g_126,&g_126,&l_143[4],&g_126},{&g_126,&g_528,&g_528,&g_126},{&g_528,&g_126,&g_528,&g_528},{&g_126,&g_126,&l_143[4],&g_126},{&g_126,&g_528,&g_528,&g_126},{&g_528,&g_126,&g_528,&g_528},{&g_126,&g_126,&l_143[4],&g_126},{&g_126,&g_528,&g_528,&g_126}}};
              int32_t l_2329 = (-9L);
              uint64_t *l_2330 = &g_35;
              uint32_t *l_2335 = &g_190;
              int i, j, k;
              l_2324 = &l_145[3];
              (*g_49) = (((**l_2089) == (l_2342[2] = ((~((func_114((*l_2078), l_2326[4][7][1], ((-1L) && (((((safe_lshift_func_int16_t_s_u(p_100.f0, ((++(*l_2330)) < (safe_sub_func_uint64_t_u_u(((--(*l_2335)) , (safe_mul_func_uint16_t_u_u(2UL, l_2329))), (safe_rshift_func_int8_t_s_u(((((*l_2324) = ((&l_2106 == &l_2106) <= 0UL)) ^ l_2329) < 18446744073709551615UL), 2))))))) < p_100.f0) , p_100.f1) || 1L) < 2L)), (**g_349), p_100.f0) , l_2329) == p_100.f1)) , (void*)0))) , l_2329);
              l_2324 = (void*)0;
          }
          (*g_2362) = ((safe_sub_func_int16_t_s_s(((l_145[1] = ((((((((safe_lshift_func_int16_t_s_s((((safe_div_func_int32_t_s_s(((*g_2142) = (((**g_1313) &= p_100.f1) >= ((safe_sub_func_int8_t_s_s((safe_mod_func_uint16_t_u_u(((safe_rshift_func_uint8_t_u_s((0x37L || (((*g_347) , &g_1864) == (void*)0)), 1)) & (((*l_2360) = ((*l_2359) |= (18446744073709551614UL <= (safe_mul_func_uint8_t_u_u((255UL && (p_100.f1 , g_126)), p_100.f1))))) > 0x0826L)), p_100.f0)), g_1770.f0)) >= 2UL))), p_100.f1)) , 7UL) & 65535UL), 9)) , p_100.f0) | (-1L)) , (void*)0) == (void*)0) >= 0x9B886866L) , 1UL) | p_100.f1)) < l_2361[4][1]), p_100.f1)) , l_2261[1][4]);
          if (l_2127)
              goto lbl_2368;
      }
  lbl_2368:
      l_2365--;
      if ((((safe_div_func_int32_t_s_s(((safe_add_func_uint32_t_u_u((safe_lshift_func_uint16_t_u_u(((l_2375[1] > (&l_2106 == (void*)0)) & (((1UL | (((*l_2078) == (*l_2078)) <= ((((**g_1313) == ((p_100.f0 <= 0L) && (*g_347))) > l_2376) | l_2377))) || l_2378) < 65535UL)), 13)), l_2379)) & p_100.f0), 0xF703C576L)) >= (***g_1312)) != 0x63B0L))
      { /* block id: 910 */
          uint64_t l_2380[9] = {18446744073709551615UL,18446744073709551610UL,18446744073709551615UL,18446744073709551615UL,18446744073709551610UL,18446744073709551615UL,18446744073709551615UL,18446744073709551610UL,18446744073709551615UL};
          int i;
          (*g_2142) |= 1L;
          (*g_48) = (void*)0;
          l_2380[7]++;
      }
      else
      { /* block id: 914 */
          uint32_t l_2394 = 1UL;
          union U0 ****l_2397 = &g_486;
          int32_t l_2398 = 0xFD208DD2L;
          int16_t *l_2399 = &g_1725;
          int16_t *l_2400 = &g_611;
          (*g_49) |= p_100.f0;
          (**g_2141) |= (safe_add_func_uint64_t_u_u(p_100.f0, 4UL));
          (*g_2142) = (safe_lshift_func_int16_t_s_u(((*l_2400) ^= (safe_mul_func_int8_t_s_s((*g_347), (safe_mul_func_int16_t_s_s(0x4FB3L, ((l_2398 = (((65535UL == (l_2394 = (l_2393[7][0][1] != l_2393[7][0][1]))) , 1UL) < ((*l_2399) = ((safe_sub_func_int8_t_s_s(((0x1674L & (l_2397 != (void*)0)) | 0x81L), p_100.f1)) && l_2398)))) , l_2394)))))), 4));
      }
      return p_100.f1;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_86 g_44 g_45 g_59 g_49 g_19 g_1313 g_1314 g_747 g_1721 g_1724 g_1725 g_486 g_487 g_1730 g_1732 g_683 g_684 g_485 g_48 g_347 g_348 g_35 g_349 g_350 g_1277 g_1278 g_1792 g_1770.f1 g_54 g_53 g_1825 g_1826 g_1864 g_1897 g_973 g_126 g_1312 g_2036 g_1153 g_1400.f1 g_1400
   * writes: g_1400.f1 g_747 g_165 g_1724 g_204 g_670 g_1733 g_780 g_1153 g_35 g_1725 g_1793 g_1770.f1 g_19 g_20 g_1179 g_49 g_1937 g_136 g_46 g_611 g_485 g_2036
   */
  static union U0 ** func_105(uint32_t  p_106, union U0  p_107, int32_t ** p_108)
  { /* block id: 591 */
      int32_t l_1628 = (-3L);
      int32_t l_1637 = 0L;
      int32_t l_1638 = 0x4C9172B9L;
      int32_t l_1639 = 0x7AE14577L;
      int32_t l_1640 = (-2L);
      int32_t l_1641 = 1L;
      int32_t l_1642 = 0L;
      int32_t l_1643 = 0L;
      int32_t l_1645 = 0xA63193BEL;
      int32_t l_1646 = 4L;
      int32_t l_1647[5] = {0x263E2AD5L,0x263E2AD5L,0x263E2AD5L,0x263E2AD5L,0x263E2AD5L};
      uint16_t l_1648[4] = {0UL,0UL,0UL,0UL};
      uint16_t ** const l_1731 = &g_46;
      union U0 ** const **** const l_1856 = (void*)0;
      uint64_t l_1917 = 0xAB77F1651C03132ALL;
      uint32_t *l_1946[5] = {&g_1724[0],&g_1724[0],&g_1724[0],&g_1724[0],&g_1724[0]};
      const int32_t **l_1953 = &g_670;
      const int32_t ***l_1952 = &l_1953;
      union U0 **l_1955[7][9][4] = {{{&g_54[6][0],&g_54[6][0],&g_54[6][0],(void*)0},{(void*)0,&g_54[1][0],&g_54[8][0],&g_54[8][0]},{&g_54[6][0],&g_54[6][0],&g_54[5][0],&g_54[1][0]},{&g_54[6][0],&g_54[6][0],&g_54[2][0],&g_54[0][0]},{&g_54[6][0],&g_54[6][0],&g_54[8][0],&g_54[8][0]},{&g_54[1][0],&g_54[1][0],(void*)0,&g_54[6][0]},{&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[3][0]},{&g_54[6][0],&g_54[6][0],(void*)0,&g_54[6][0]},{&g_54[8][0],&g_54[6][0],&g_54[5][0],&g_54[3][0]}},{{&g_54[6][0],&g_54[6][0],&g_54[5][0],&g_54[6][0]},{&g_54[0][0],&g_54[1][0],&g_54[6][0],&g_54[8][0]},{(void*)0,&g_54[6][0],&g_54[6][0],&g_54[0][0]},{&g_54[6][0],&g_54[6][0],&g_54[1][0],&g_54[1][0]},{&g_54[8][0],&g_54[6][0],&g_54[6][0],&g_54[8][0]},{(void*)0,&g_54[1][0],&g_54[6][0],(void*)0},{&g_54[0][0],&g_54[6][0],&g_54[5][0],&g_54[6][0]},{&g_54[1][0],&g_54[2][0],(void*)0,&g_54[6][0]},{&g_54[8][0],&g_54[0][0],&g_54[8][0],&g_54[6][0]}},{{&g_54[3][0],&g_54[8][0],&g_54[6][0],&g_54[6][0]},{&g_54[6][0],&g_54[3][0],&g_54[6][0],&g_54[5][0]},{&g_54[1][0],&g_54[1][0],&g_54[6][0],&g_54[2][0]},{&g_54[6][0],&g_54[6][0],&g_54[2][0],&g_54[1][0]},{&g_54[6][0],&g_54[5][0],&g_54[2][0],&g_54[5][0]},{&g_54[2][0],&g_54[6][0],(void*)0,&g_54[5][0]},{&g_54[1][0],(void*)0,&g_54[6][0],&g_54[6][0]},{&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]},{&g_54[6][0],&g_54[6][0],&g_54[8][0],&g_54[1][0]}},{{&g_54[6][0],&g_54[5][0],(void*)0,&g_54[6][0]},{&g_54[5][0],&g_54[6][0],(void*)0,&g_54[6][0]},{&g_54[8][0],&g_54[1][0],&g_54[1][0],&g_54[5][0]},{&g_54[6][0],&g_54[1][0],&g_54[6][0],(void*)0},{&g_54[6][0],&g_54[6][0],&g_54[5][0],&g_54[8][0]},{&g_54[5][0],&g_54[0][0],&g_54[6][0],&g_54[6][0]},{&g_54[6][0],&g_54[8][0],&g_54[8][0],&g_54[6][0]},{(void*)0,&g_54[6][0],(void*)0,&g_54[6][0]},{&g_54[6][0],&g_54[6][0],&g_54[3][0],&g_54[2][0]}},{{&g_54[6][0],&g_54[5][0],(void*)0,&g_54[2][0]},{&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]},{&g_54[0][0],&g_54[6][0],&g_54[0][0],&g_54[6][0]},{&g_54[1][0],&g_54[8][0],&g_54[6][0],&g_54[6][0]},{&g_54[5][0],&g_54[0][0],&g_54[6][0],&g_54[8][0]},{&g_54[6][0],&g_54[6][0],&g_54[6][0],(void*)0},{&g_54[2][0],&g_54[1][0],&g_54[6][0],&g_54[5][0]},{(void*)0,&g_54[1][0],&g_54[6][0],&g_54[6][0]},{&g_54[0][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]}},{{&g_54[6][0],&g_54[5][0],(void*)0,&g_54[1][0]},{&g_54[1][0],&g_54[6][0],(void*)0,&g_54[6][0]},{&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]},{&g_54[8][0],(void*)0,&g_54[8][0],&g_54[5][0]},{(void*)0,&g_54[6][0],&g_54[6][0],&g_54[5][0]},{&g_54[5][0],&g_54[6][0],&g_54[6][0],(void*)0},{&g_54[5][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]},{(void*)0,(void*)0,&g_54[8][0],(void*)0},{&g_54[8][0],&g_54[6][0],&g_54[6][0],&g_54[8][0]}},{{&g_54[6][0],&g_54[6][0],(void*)0,&g_54[2][0]},{&g_54[1][0],(void*)0,(void*)0,&g_54[5][0]},{&g_54[6][0],&g_54[6][0],&g_54[6][0],&g_54[8][0]},{&g_54[0][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]},{(void*)0,(void*)0,&g_54[6][0],&g_54[6][0]},{&g_54[2][0],&g_54[0][0],&g_54[6][0],(void*)0},{&g_54[6][0],&g_54[6][0],&g_54[6][0],(void*)0},{&g_54[5][0],&g_54[6][0],&g_54[6][0],&g_54[6][0]},{&g_54[1][0],&g_54[1][0],&g_54[0][0],&g_54[6][0]}}};
      int32_t l_2008 = 0L;
      int8_t l_2029 = 3L;
      uint32_t ****l_2050 = (void*)0;
      int16_t ** const l_2055[9] = {&g_973[0],&g_973[1],&g_973[0],&g_973[1],&g_973[0],&g_973[1],&g_973[0],&g_973[1],&g_973[0]};
      int i, j, k;
  lbl_1734:
      for (g_1400.f1 = 16; (g_1400.f1 <= 7); --g_1400.f1)
      { /* block id: 594 */
          int32_t *l_1627 = &g_167;
          int32_t *l_1629 = (void*)0;
          int32_t l_1630 = (-1L);
          int32_t *l_1631 = &g_469;
          int32_t *l_1632 = &g_469;
          int32_t *l_1633 = &l_1630;
          int32_t *l_1634 = &g_469;
          int32_t *l_1635 = &g_469;
          int32_t *l_1636[5];
          int64_t l_1644[1];
          int i;
          for (i = 0; i < 5; i++)
              l_1636[i] = &l_1630;
          for (i = 0; i < 1; i++)
              l_1644[i] = 0xC72CA900C37B7744LL;
          l_1648[1]--;
      }
      for (g_1400.f1 = 13; (g_1400.f1 != (-29)); g_1400.f1 = safe_sub_func_uint64_t_u_u(g_1400.f1, 1))
      { /* block id: 599 */
          uint32_t l_1653 = 4294967286UL;
          union U0 * const *l_1662[4] = {&g_54[8][0],&g_54[8][0],&g_54[8][0],&g_54[8][0]};
          union U0 * const **l_1661[8][9] = {{&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0],&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0],&l_1662[0]},{&l_1662[0],&l_1662[3],&l_1662[0],&l_1662[3],&l_1662[0],&l_1662[3],&l_1662[0],&l_1662[3],&l_1662[0]},{&l_1662[0],&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0],&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0]},{&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3]},{&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0],&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0],&l_1662[0]},{&l_1662[0],&l_1662[3],&l_1662[0],&l_1662[3],&l_1662[0],&l_1662[3],&l_1662[0],&l_1662[3],&l_1662[0]},{&l_1662[0],&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0],&l_1662[0],&l_1662[3],&l_1662[3],&l_1662[0]},{&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3],&l_1662[3]}};
          union U0 ***l_1663 = &g_487;
          int32_t l_1683 = 0xD28D12EDL;
          const int16_t l_1685[10] = {(-3L),(-3L),(-3L),(-3L),(-3L),(-3L),(-3L),(-3L),(-3L),(-3L)};
          uint32_t l_1686 = 0x72712823L;
          const int16_t *l_1695 = &l_1685[9];
          const int16_t **l_1694[1];
          const int16_t ***l_1693 = &l_1694[0];
          int32_t l_1696 = 0x47B01B0EL;
          int32_t l_1697 = (-1L);
          uint16_t * const *l_1759 = &g_46;
          union U0 *l_1768 = &g_53;
          uint32_t *l_1824 = &g_528;
          int16_t l_1854 = 0x7A8AL;
          int32_t **l_1867 = &g_1865;
          int8_t l_1934[3][3] = {{(-8L),(-8L),0x59L},{(-8L),(-8L),0x59L},{(-8L),(-8L),0x59L}};
          uint16_t l_1990 = 0UL;
          int32_t l_1993 = 0x78F2DB6BL;
          union U0 *l_1994 = &g_1770;
          int32_t l_1997 = (-10L);
          int32_t l_1998 = (-9L);
          int32_t l_2000 = 0x551F8F71L;
          int32_t l_2003[6][4] = {{0xEC88AEC2L,0x16F10148L,7L,0x16F10148L},{0x16F10148L,0xA929AE02L,7L,7L},{0xEC88AEC2L,0xEC88AEC2L,0x16F10148L,7L},{0x012D2677L,0xA929AE02L,0x012D2677L,0x16F10148L},{0x012D2677L,0x16F10148L,0x16F10148L,0x012D2677L},{0xEC88AEC2L,0x16F10148L,7L,0x16F10148L}};
          uint8_t l_2005[10][1][1] = {{{3UL}},{{0x7CL}},{{3UL}},{{0x7CL}},{{3UL}},{{0x7CL}},{{3UL}},{{0x7CL}},{{3UL}},{{0x7CL}}};
          int32_t l_2056 = 0xF536257CL;
          int16_t **l_2060 = &g_973[0];
          int i, j, k;
          for (i = 0; i < 1; i++)
              l_1694[i] = &l_1695;
          for (l_1642 = 1; (l_1642 >= 0); l_1642 -= 1)
          { /* block id: 602 */
              uint8_t l_1684 = 0xABL;
              int i;
              if (l_1653)
                  break;
              l_1639 |= ((((~(safe_add_func_int32_t_s_s(((safe_add_func_int64_t_s_s((-1L), (safe_add_func_uint64_t_u_u(p_106, (l_1661[0][3] == l_1663))))) , ((safe_mul_func_int16_t_s_s(((safe_rshift_func_uint8_t_u_s((safe_mul_func_int8_t_s_s((safe_add_func_int16_t_s_s((safe_mod_func_uint32_t_u_u((l_1653 != (safe_mul_func_uint8_t_u_u(g_86, (safe_sub_func_int64_t_s_s(((((l_1684 |= ((safe_mul_func_uint8_t_u_u(((safe_unary_minus_func_uint8_t_u((l_1683 = (safe_lshift_func_uint16_t_u_s((*g_44), l_1628))))) , 249UL), p_107.f0)) , 65535UL)) < 0xD048L) <= l_1685[9]) >= 0xDBD9L), l_1647[1]))))), p_106)), g_59)), l_1685[9])), 7)) & 0xF80836E7L), p_106)) , (*g_49))), p_107.f0))) , 0xB9FB088F191DFDABLL) <= p_107.f1) & l_1686);
          }
          if ((l_1697 = ((safe_rshift_func_int8_t_s_u((((l_1683 = p_107.f1) & ((**g_1313) |= (safe_sub_func_int16_t_s_s(((*g_44) == l_1653), ((((0x4354555DL & (&g_350 == (void*)0)) >= (safe_add_func_int32_t_s_s((l_1696 = ((l_1693 != &l_1694[0]) < (l_1641 & 0xE4AE1693L))), p_106))) && (-10L)) && l_1696))))) == l_1643), l_1642)) && 1UL)))
          { /* block id: 612 */
              int16_t l_1698 = 0L;
              uint32_t l_1746 = 0x937EDEC9L;
              int32_t l_1772 = 0xAC39482EL;
              int32_t l_1788 = 1L;
              int16_t l_1832 = 0xCCFEL;
              int32_t *l_1839 = &g_195;
              const uint16_t l_1858 = 0xF5C6L;
              int32_t l_1859 = 0L;
              int64_t ** const ** const l_1945 = (void*)0;
              if (((l_1698 && p_107.f1) == 1UL))
              { /* block id: 613 */
                  int8_t l_1705 = 1L;
                  int16_t *l_1713 = &g_611;
                  int32_t *l_1726 = (void*)0;
                  for (g_165 = (-4); (g_165 >= 4); g_165 = safe_add_func_uint8_t_u_u(g_165, 3))
                  { /* block id: 616 */
                      int16_t *l_1712 = &l_1698;
                      l_1642 = (safe_add_func_uint32_t_u_u(((safe_lshift_func_uint16_t_u_u(l_1705, 10)) < ((safe_sub_func_uint32_t_u_u(((safe_div_func_uint16_t_u_u((safe_add_func_int32_t_s_s((l_1712 == l_1713), (1L <= (((+(safe_mul_func_uint16_t_u_u((safe_lshift_func_uint8_t_u_s((safe_sub_func_uint16_t_u_u(65535UL, p_107.f1)), (g_1724[3] ^= (g_1721 >= (safe_mod_func_int16_t_s_s((-5L), (-7L))))))), l_1685[0]))) < p_106) < 0x76BDL)))), 0x552AL)) && l_1696), 0x7130CA40L)) | g_1725)), p_107.f1));
                  }
                  (*p_108) = l_1726;
                  for (l_1646 = 0; (l_1646 >= 17); ++l_1646)
                  { /* block id: 623 */
                      const int32_t *l_1729 = &g_21;
                      if (l_1698)
                      { /* block id: 624 */
                          return (*g_486);
                      }
                      else
                      { /* block id: 626 */
                          (*g_1730) = l_1729;
                          (*g_1732) = l_1731;
                          return (*l_1663);
                      }
                  }
                  return (****g_683);
              }
              else
              { /* block id: 633 */
                  if (l_1698)
                      goto lbl_1734;
              }
              for (p_106 = (-18); (p_106 < 52); p_106++)
              { /* block id: 638 */
                  int8_t l_1743 = 0x8AL;
                  int32_t l_1750 = 0x084C96E8L;
                  int32_t l_1763 = 0xDB69267BL;
                  int32_t l_1764 = (-1L);
                  union U0 *l_1769 = &g_1770;
                  uint64_t *l_1771[10][10][2] = {{{&g_1153,(void*)0},{&g_1153,&g_35},{&g_1153,(void*)0},{&g_35,&g_35},{&g_35,(void*)0},{&g_1153,&g_1153},{&g_1153,&g_1153},{(void*)0,(void*)0},{&g_35,&g_35},{&g_35,&g_1153}},{{&g_35,&g_35},{(void*)0,&g_35},{&g_1153,(void*)0},{&g_35,(void*)0},{(void*)0,&g_35},{&g_35,(void*)0},{(void*)0,&g_1153},{&g_1153,&g_1153},{(void*)0,(void*)0},{&g_35,&g_35}},{{(void*)0,(void*)0},{&g_35,(void*)0},{&g_1153,&g_35},{(void*)0,&g_35},{&g_35,&g_1153},{&g_35,&g_35},{&g_35,(void*)0},{(void*)0,&g_1153},{&g_1153,&g_1153},{&g_1153,(void*)0}},{{&g_35,&g_35},{&g_35,(void*)0},{&g_1153,&g_35},{&g_1153,(void*)0},{&g_1153,&g_35},{&g_1153,(void*)0},{&g_35,&g_35},{&g_35,(void*)0},{&g_1153,&g_1153},{&g_1153,&g_1153}},{{(void*)0,(void*)0},{&g_35,&g_1153},{(void*)0,&g_1153},{&g_35,(void*)0},{&g_1153,&g_35},{(void*)0,&g_35},{&g_35,&g_1153},{&g_35,&g_1153},{(void*)0,(void*)0},{&g_1153,&g_35}},{{&g_1153,&g_35},{&g_1153,(void*)0},{(void*)0,&g_1153},{&g_35,&g_1153},{&g_35,&g_35},{(void*)0,&g_35},{&g_1153,(void*)0},{&g_35,&g_1153},{(void*)0,&g_1153},{&g_1153,&g_1153}},{{&g_1153,&g_1153},{&g_35,&g_35},{&g_1153,&g_1153},{(void*)0,&g_1153},{(void*)0,&g_1153},{&g_1153,(void*)0},{(void*)0,&g_1153},{(void*)0,(void*)0},{&g_1153,&g_1153},{(void*)0,&g_1153}},{{(void*)0,&g_1153},{&g_1153,&g_35},{&g_35,&g_1153},{&g_1153,&g_1153},{&g_1153,&g_1153},{(void*)0,&g_1153},{&g_35,(void*)0},{&g_1153,&g_35},{(void*)0,&g_35},{&g_35,&g_1153}},{{&g_35,&g_1153},{(void*)0,(void*)0},{&g_1153,&g_35},{&g_1153,&g_35},{&g_1153,(void*)0},{(void*)0,&g_1153},{&g_35,&g_1153},{&g_35,&g_35},{(void*)0,&g_35},{&g_1153,(void*)0}},{{&g_35,&g_1153},{(void*)0,&g_1153},{&g_1153,&g_1153},{&g_1153,&g_1153},{&g_35,&g_35},{&g_1153,&g_1153},{(void*)0,&g_1153},{(void*)0,&g_1153},{&g_1153,(void*)0},{(void*)0,&g_1153}}};
                  uint32_t *l_1775 = (void*)0;
                  uint32_t *l_1776 = (void*)0;
                  uint32_t *l_1777 = &l_1746;
                  int16_t *l_1789 = &g_1725;
                  int32_t *l_1790[1];
                  union U0 ***l_1836[3][10][8] = {{{&g_487,&g_487,&g_487,&g_487,&g_487,&g_487,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,(void*)0,(void*)0,(void*)0,&g_487},{&g_487,&g_487,(void*)0,&g_487,&g_487,&g_487,(void*)0,&g_487},{&g_487,&g_487,(void*)0,(void*)0,(void*)0,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,&g_487,&g_487,&g_487,&g_487,&g_487},{&g_487,&g_487,(void*)0,(void*)0,&g_487,&g_487,(void*)0,&g_487},{&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,(void*)0,&g_487},{&g_487,&g_487,&g_487,&g_487,&g_487,&g_487,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,(void*)0,(void*)0,(void*)0,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,(void*)0,&g_487,&g_487}},{{&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487,&g_487,&g_487},{&g_487,(void*)0,(void*)0,(void*)0,(void*)0,&g_487,&g_487,&g_487},{(void*)0,&g_487,&g_487,&g_487,(void*)0,(void*)0,(void*)0,(void*)0},{&g_487,&g_487,&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487,&g_487,&g_487},{&g_487,(void*)0,(void*)0,(void*)0,(void*)0,&g_487,&g_487,&g_487}},{{(void*)0,&g_487,&g_487,&g_487,(void*)0,(void*)0,(void*)0,(void*)0},{&g_487,&g_487,&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487,&g_487,&g_487},{&g_487,(void*)0,(void*)0,(void*)0,(void*)0,&g_487,&g_487,&g_487},{(void*)0,&g_487,&g_487,&g_487,(void*)0,(void*)0,(void*)0,(void*)0},{&g_487,&g_487,&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487},{&g_487,&g_487,&g_487,(void*)0,&g_487,&g_487,(void*)0,&g_487}}};
                  int8_t l_1844 = 0x7AL;
                  int32_t l_1872 = 8L;
                  int i, j, k;
                  for (i = 0; i < 1; i++)
                      l_1790[i] = &l_1638;
                  if (p_106)
                  { /* block id: 639 */
                      l_1746 = (safe_lshift_func_uint8_t_u_u((0x3AEA23197ED7BF54LL >= 7UL), ((safe_add_func_int32_t_s_s(((((l_1697 | p_107.f1) || (**g_48)) != (l_1743 != (p_107.f1 < 0UL))) == (((safe_mod_func_int64_t_s_s((0x29L | l_1686), 1L)) | p_107.f0) <= 0x07F9EFC3L)), 6L)) && (-9L))));
                  }
                  else
                  { /* block id: 641 */
                      uint8_t *l_1753 = &g_780;
                      int8_t *l_1754 = &l_1743;
                      int32_t l_1760 = 0x82BB1978L;
                      int32_t l_1761 = (-1L);
                      uint64_t *l_1762 = &g_1153;
                      l_1764 &= ((0xE23B84E582EB2446LL & (safe_rshift_func_uint16_t_u_u((((**g_1313) = (safe_unary_minus_func_int16_t_s((l_1750 |= p_106)))) ^ p_107.f0), (((((*l_1762) = (safe_sub_func_uint16_t_u_u((l_1697 ^ ((((*l_1753) = 255UL) < ((*l_1754) = p_107.f1)) <= (l_1696 = (safe_rshift_func_uint16_t_u_s(p_106, 0))))), (l_1761 |= ((safe_rshift_func_int8_t_s_u(((void*)0 == l_1759), 0)) | l_1760))))) > l_1763) >= 0x667B3E2BB3CCC11BLL) || l_1643)))) & (*g_347));
                  }
                  if (l_1764)
                      continue;
                  if (l_1698)
                      break;
                  if ((l_1697 &= (l_1647[1] ^= (safe_mod_func_int32_t_s_s(((((+(((l_1769 = l_1768) == (l_1643 , &p_107)) && ((g_35++) || (l_1772 = (((*l_1777) = p_106) < (((safe_rshift_func_int16_t_s_u(p_107.f1, 14)) , &p_106) == (*g_349))))))) , (((l_1763 |= l_1772) != ((safe_lshift_func_uint16_t_u_u((safe_rshift_func_uint8_t_u_u(((safe_add_func_int64_t_s_s(((safe_mul_func_uint16_t_u_u((((*l_1789) = (((((-1L) == p_106) > l_1788) < p_106) && l_1685[6])) ^ 0x6339L), l_1683)) , p_107.f1), p_106)) >= 0xB39584DE9F5B8C20LL), l_1788)), 3)) , l_1628)) < 0UL)) , p_107.f0) <= (*g_1277)), p_107.f0)))))
                  { /* block id: 661 */
                      uint32_t **l_1791 = (void*)0;
                      uint32_t ***l_1805 = &g_726;
                      int32_t l_1818 = 0x40FEA221L;
                      union U0 *** const ***l_1857 = (void*)0;
                      (*g_1792) = l_1791;
                      if (l_1696)
                          continue;
                      if (l_1746)
                      { /* block id: 664 */
                          uint16_t ***l_1797 = &g_1733[8];
                          uint16_t ****l_1798 = &l_1797;
                          uint16_t ***l_1800 = &g_1733[2];
                          uint16_t ****l_1799 = &l_1800;
                          uint16_t * const **l_1801[6];
                          uint16_t * const ***l_1802 = (void*)0;
                          uint16_t * const ***l_1803 = &l_1801[4];
                          int8_t *l_1804 = &g_1770.f1;
                          uint32_t ****l_1806 = &l_1805;
                          uint32_t ***l_1808 = &g_726;
                          uint32_t ****l_1807 = &l_1808;
                          uint32_t *l_1823 = (void*)0;
                          uint8_t *l_1831 = &g_1179;
                          int8_t *l_1833 = &l_1743;
                          int8_t *l_1834[5];
                          int32_t l_1835 = 0x9E7C1D60L;
                          int i;
                          for (i = 0; i < 6; i++)
                              l_1801[i] = &l_1759;
                          for (i = 0; i < 5; i++)
                              l_1834[i] = &g_165;
                          (*p_108) = func_120((((((*l_1804) |= (safe_add_func_int32_t_s_s(0x38A52F8EL, (l_1788 = (!(((*l_1799) = ((*l_1798) = l_1797)) != ((*l_1803) = l_1801[2]))))))) , &g_726) != ((*l_1807) = ((*l_1806) = l_1805))) ^ (((safe_mul_func_int16_t_s_s((((~65535UL) > ((safe_div_func_uint16_t_u_u((safe_rshift_func_int8_t_s_u((l_1835 ^= ((*l_1833) = (safe_rshift_func_uint8_t_u_s(((((l_1818 ^ (safe_add_func_uint8_t_u_u(((*l_1831) = (safe_sub_func_uint64_t_u_u((((((func_114(l_1823, l_1824, p_107.f1, p_107.f0, p_107.f1) , g_1825) != (void*)0) , l_1683) , l_1818) && 0xD4L), 18446744073709551615UL))), 255UL))) , 0x21L) || l_1832) & 4UL), 1)))), 7)), p_107.f0)) ^ 1L)) || l_1653), 1UL)) || 0xEA9552BE70FD2126LL) > p_107.f0)), l_1769, l_1836[1][7][1]);
                      }
                      else
                      { /* block id: 676 */
                          int32_t *l_1838 = &g_195;
                          int32_t **l_1837[10][1] = {{&l_1838},{&l_1838},{&l_1838},{&l_1838},{&l_1838},{&l_1838},{&l_1838},{&l_1838},{&l_1838},{&l_1838}};
                          int8_t *l_1855 = &l_1743;
                          int32_t ***l_1866[2][6];
                          uint32_t l_1878 = 0x3256EDC4L;
                          int i, j;
                          for (i = 0; i < 2; i++)
                          {
                              for (j = 0; j < 6; j++)
                                  l_1866[i][j] = &l_1837[6][0];
                          }
                          (*g_49) = 0L;
                          l_1859 |= ((l_1839 = &g_195) != ((safe_rshift_func_uint8_t_u_s((((g_35 = 0xC85762D726E173B6LL) , l_1844) == ((((l_1818 < (((~(safe_lshift_func_int8_t_s_u(l_1788, ((((((*l_1855) ^= ((safe_div_func_int64_t_s_s(((l_1772 ^= (safe_mul_func_int16_t_s_s((((void*)0 != (*g_1825)) <= (safe_add_func_int16_t_s_s(((0xFB183E583924A787LL | 18446744073709551615UL) >= (*g_347)), l_1854))), l_1788))) >= p_107.f0), p_107.f1)) || 1L)) > (-1L)) > p_106) != l_1832) , p_107.f0)))) , l_1856) == l_1857)) > l_1858) , l_1685[9]) <= (-8L))), 1)) , (void*)0));
                          l_1772 ^= (safe_mod_func_int64_t_s_s((safe_add_func_uint64_t_u_u(((l_1867 = (p_107 , g_1864)) == &g_1865), (safe_mod_func_int8_t_s_s((p_107.f1 , (safe_rshift_func_int16_t_s_s((l_1872 , p_107.f1), 4))), ((safe_mod_func_int32_t_s_s((((safe_unary_minus_func_int8_t_s(0x99L)) <= (g_780 = ((l_1832 | ((safe_sub_func_uint32_t_u_u(((p_107.f1 <= p_107.f0) & (*g_347)), l_1878)) && p_107.f0)) <= 4294967295UL))) & 8UL), l_1854)) ^ l_1818))))), p_107.f1));
                          if (l_1772)
                              continue;
                      }
                  }
                  else
                  { /* block id: 688 */
                      (*g_49) = 0x7938DEE7L;
                  }
              }
              for (p_107.f1 = 0; (p_107.f1 >= 6); p_107.f1 = safe_add_func_int8_t_s_s(p_107.f1, 1))
              { /* block id: 694 */
                  uint8_t l_1895 = 0x32L;
                  int32_t l_1896 = 0x52289E99L;
                  union U0 ******l_1915 = &g_684;
                  int16_t **l_1923[1][10][1];
                  int16_t ***l_1922 = &l_1923[0][2][0];
                  int i, j, k;
                  for (i = 0; i < 1; i++)
                  {
                      for (j = 0; j < 10; j++)
                      {
                          for (k = 0; k < 1; k++)
                              l_1923[i][j][k] = &g_973[0];
                      }
                  }
                  if ((safe_rshift_func_uint8_t_u_u(p_107.f0, (((safe_lshift_func_uint8_t_u_s(((safe_lshift_func_uint8_t_u_s((safe_rshift_func_uint8_t_u_u(((void*)0 == &l_1856), (safe_mod_func_uint8_t_u_u(((0xC578CA58L || (p_106 | l_1772)) ^ (l_1896 ^= ((p_107.f0 | ((l_1647[1] &= (safe_sub_func_int64_t_s_s(((((safe_mod_func_uint64_t_u_u(p_107.f0, 0x92D2F9114E8D9347LL)) != 6L) , l_1895) , l_1685[9]), 0xF78AC860DE25C01BLL))) || p_107.f1)) != 0L))), p_107.f1)))), p_107.f0)) , 0x68L), l_1772)) , g_1897) >= l_1639))))
                  { /* block id: 697 */
                      uint64_t *l_1902[10][8] = {{(void*)0,&g_35,(void*)0,&g_1153,&g_35,(void*)0,&g_35,&g_1153},{&g_1153,&g_35,&g_1153,(void*)0,(void*)0,&g_1153,&g_35,&g_1153},{(void*)0,&g_1153,&g_35,&g_1153,(void*)0,(void*)0,&g_1153,&g_35},{(void*)0,(void*)0,&g_1153,&g_35,&g_1153,(void*)0,(void*)0,&g_1153},{(void*)0,&g_1153,&g_1153,&g_1153,&g_35,&g_1153,&g_1153,&g_1153},{&g_1153,&g_1153,&g_35,&g_35,&g_35,&g_1153,&g_35,&g_35},{(void*)0,&g_1153,(void*)0,&g_1153,&g_1153,&g_1153,&g_35,&g_1153},{(void*)0,&g_1153,&g_35,&g_1153,(void*)0,(void*)0,&g_1153,&g_35},{(void*)0,(void*)0,&g_1153,&g_35,&g_1153,(void*)0,(void*)0,&g_1153},{(void*)0,&g_1153,&g_1153,&g_1153,&g_35,&g_1153,&g_1153,&g_1153}};
                      uint16_t ****l_1912 = (void*)0;
                      uint32_t *l_1916[2];
                      int64_t l_1924 = 0xAF7D3ACC892BD369LL;
                      int i, j;
                      for (i = 0; i < 2; i++)
                          l_1916[i] = &l_1653;
                      (*g_49) = (safe_rshift_func_uint8_t_u_u((safe_mod_func_int64_t_s_s(((l_1647[3] , (g_35 = 1UL)) || (1UL != (safe_lshift_func_uint16_t_u_u((((safe_div_func_int32_t_s_s((safe_mul_func_uint16_t_u_u((safe_unary_minus_func_int64_t_s(((**g_1313) = l_1895))), (safe_add_func_int16_t_s_s(((void*)0 != l_1912), (safe_sub_func_uint32_t_u_u(((void*)0 == l_1915), (++l_1917))))))), (safe_rshift_func_int8_t_s_u(((void*)0 == l_1922), 3)))) || p_107.f1) > p_107.f1), 2)))), l_1924)), 5));
                      if (p_107.f0)
                          break;
                  }
                  else
                  { /* block id: 703 */
                      uint32_t l_1935[5][4][3] = {{{0x428F0D96L,1UL,0x428F0D96L},{0x3888AFF3L,1UL,0x5BD0E825L},{4294967295UL,1UL,4294967291UL},{4294967295UL,1UL,0xBCC08D4FL}},{{6UL,4294967295UL,4294967295UL},{4294967295UL,0x21FC3FB1L,8UL},{4294967295UL,0x2DDA40D2L,8UL},{0x3888AFF3L,8UL,4294967295UL}},{{0x428F0D96L,4294967291UL,0xBCC08D4FL},{8UL,8UL,4294967291UL},{1UL,0x2DDA40D2L,0x5BD0E825L},{1UL,0x21FC3FB1L,0x428F0D96L}},{{8UL,4294967295UL,0x2DDA40D2L},{0x428F0D96L,1UL,0x428F0D96L},{0x3888AFF3L,1UL,0x5BD0E825L},{4294967295UL,1UL,4294967291UL}},{{4294967295UL,1UL,0xBCC08D4FL},{6UL,4294967295UL,4294967295UL},{4294967295UL,0x21FC3FB1L,8UL},{4294967295UL,0x2DDA40D2L,8UL}}};
                      int64_t ****l_1942[10] = {&g_1312,&g_1312,&g_1312,&g_1312,&g_1312,&g_1312,&g_1312,&g_1312,&g_1312,&g_1312};
                      int32_t l_1949 = 0x8F68B114L;
                      int i, j, k;
                      for (l_1859 = 29; (l_1859 < 28); l_1859--)
                      { /* block id: 706 */
                          uint16_t *l_1929 = &l_1648[3];
                          uint32_t *l_1936 = &l_1746;
                          int64_t *****l_1943 = (void*)0;
                          int64_t *****l_1944[8] = {&l_1942[1],&l_1942[8],&l_1942[1],&l_1942[8],&l_1942[1],&l_1942[8],&l_1942[1],&l_1942[8]};
                          uint32_t **l_1947 = &l_1824;
                          uint32_t **l_1948 = &g_136;
                          int32_t l_1950 = (-1L);
                          uint8_t l_1951 = 0xCAL;
                          int32_t ***l_1954 = (void*)0;
                          int i;
                          l_1772 ^= (p_107.f1 <= ((*l_1936) |= (safe_div_func_uint16_t_u_u(((*l_1929) |= p_107.f0), (l_1935[1][3][0] = (safe_mod_func_uint8_t_u_u(l_1917, (safe_div_func_int16_t_s_s(((l_1896 ^= p_107.f1) < 18446744073709551612UL), l_1934[1][1])))))))));
                          (*g_49) |= (g_1937 = ((void*)0 == (**l_1922)));
                          (*g_49) = (safe_sub_func_uint64_t_u_u((safe_mod_func_uint16_t_u_u((((l_1942[1] = l_1942[1]) == l_1945) <= ((func_114(l_1946[2], ((*l_1948) = ((*l_1947) = l_1946[2])), ((((-7L) ^ (l_1917 | ((func_114(l_1946[2], &g_1724[3], (l_1640 = ((l_1949 = 0x6611F2C9L) , 0UL)), l_1746, l_1950) , p_107.f0) < p_107.f1))) == l_1653) , l_1951), (*g_350), p_106) , l_1952) != l_1954)), p_106)), p_107.f0));
                      }
                      if (p_106)
                          break;
                  }
                  if (l_1746)
                      break;
              }
              return l_1955[4][6][3];
          }
          else
          { /* block id: 726 */
              int8_t l_1989 = (-8L);
              uint16_t *l_1991[5][3][3] = {{{&l_1648[1],&l_1648[1],&g_394},{&g_394,&l_1648[3],&l_1648[1]},{&l_1648[1],&l_1648[1],&l_1648[1]}},{{&l_1648[1],&g_394,&l_1648[1]},{&g_394,&l_1648[1],&l_1648[1]},{&l_1648[1],&l_1648[1],&l_1648[1]}},{{&l_1648[3],&g_394,&g_394},{&l_1648[1],&l_1648[1],&g_394},{&g_394,&l_1648[3],&l_1648[1]}},{{&l_1648[1],&l_1648[1],&l_1648[1]},{&l_1648[1],&g_394,&l_1648[1]},{&g_394,&l_1648[1],&l_1648[1]}},{{&l_1648[1],&l_1648[1],&l_1648[1]},{&l_1648[3],&g_394,&g_394},{&l_1648[1],&l_1648[1],&g_394}}};
              int32_t l_1996 = 0x8738FFE8L;
              int32_t l_1999[6] = {0xF68367E5L,0x195F6D2FL,0xF68367E5L,0x195F6D2FL,0x195F6D2FL,0xF68367E5L};
              int32_t l_2001 = 0x6F3A8E1EL;
              int32_t l_2002 = 0xD64BCDB8L;
              int32_t l_2004[6] = {(-10L),(-10L),0x6C97FAB9L,(-10L),(-10L),0x6C97FAB9L};
              int8_t l_2035[6][8][5] = {{{0xABL,5L,0xD2L,(-7L),0xA1L},{1L,0xA1L,0x7AL,1L,(-8L)},{0xA1L,0xEDL,(-3L),0x5BL,0x23L},{0xABL,1L,0xD4L,(-4L),0xBCL},{1L,0xDEL,0xEDL,1L,0L},{(-4L),1L,0xEDL,(-8L),0L},{(-8L),5L,0xD4L,0xABL,0xDEL},{4L,(-4L),(-3L),(-3L),(-4L)}},{{1L,0x96L,0x7AL,1L,0L},{5L,0xBCL,0xD2L,(-4L),0xDEL},{0x96L,(-4L),1L,0L,0x5BL},{5L,0x7AL,0xCAL,0xCCL,0xC0L},{1L,0x49L,(-1L),(-7L),0xBCL},{4L,(-4L),0L,1L,1L},{(-8L),7L,0x71L,0xBCL,(-3L)},{(-4L),(-7L),0x3DL,0xBCL,0xA1L}},{{1L,(-4L),1L,1L,1L},{0xABL,0xCAL,1L,(-7L),1L},{0xA1L,0xA1L,0x6FL,0xCCL,(-8L)},{1L,0xDEL,(-3L),0L,1L},{0xABL,4L,3L,(-4L),7L},{1L,0xDEL,5L,1L,0L},{0L,0xA1L,0xEDL,(-3L),0x5BL},{(-8L),0xCAL,3L,0xABL,0xEDL}},{{1L,(-4L),0x62L,(-8L),(-4L)},{0x23L,(-7L),0x7AL,1L,(-4L)},{5L,7L,1L,(-4L),0xEDL},{(-7L),(-4L),0x89L,0x5BL,0x5BL},{0xCAL,0x49L,0xCAL,1L,0L},{1L,0x7AL,0x71L,(-7L),7L},{1L,(-4L),0x0BL,0xA1L,1L},{(-3L),0xBCL,0x71L,7L,(-8L)}},{{(-4L),0x96L,0xCAL,0xBCL,1L},{1L,(-4L),0x89L,0xA1L,1L},{0x71L,5L,1L,0x96L,0xA1L},{0xA1L,1L,0x7AL,0xCCL,(-3L)},{0x71L,3L,5L,(-3L),1L},{(-2L),7L,0x0BL,(-2L),1L},{0x23L,0xD4L,0xD4L,0x23L,0x6FL},{0xEDL,0x71L,1L,0xCAL,(-3L)}},{{0x3DL,0xC0L,0x0BL,(-2L),3L},{7L,5L,0x3DL,0xCAL,5L},{1L,1L,(-4L),0x23L,0xEDL},{0L,1L,(-1L),(-2L),3L},{1L,(-2L),3L,(-3L),0x62L},{0xC0L,0L,0L,0L,0x7AL},{0x89L,0L,(-2L),0x20L,1L},{7L,(-2L),0x62L,0x71L,0x89L}}};
              uint32_t l_2057 = 0xA3DB172EL;
              int i, j, k;
              for (l_1686 = 17; (l_1686 != 5); l_1686 = safe_sub_func_uint32_t_u_u(l_1686, 4))
              { /* block id: 729 */
                  uint32_t l_1969 = 1UL;
                  int32_t l_1982 = (-8L);
                  int32_t *l_1992 = &l_1647[0];
                  int32_t *l_1995[9];
                  int i;
                  for (i = 0; i < 9; i++)
                      l_1995[i] = (void*)0;
                  if ((safe_lshift_func_int8_t_s_s(3L, (safe_lshift_func_uint8_t_u_s((~(safe_div_func_uint16_t_u_u(((((safe_sub_func_int64_t_s_s(((safe_mod_func_int16_t_s_s(l_1969, ((((*l_1992) = ((safe_lshift_func_int8_t_s_u((-9L), 1)) | (safe_mod_func_uint16_t_u_u((safe_sub_func_uint16_t_u_u((safe_sub_func_uint64_t_u_u((((l_1685[9] || 18446744073709551611UL) && (safe_lshift_func_uint8_t_u_s((safe_mod_func_int16_t_s_s((((*l_1731) = ((((l_1982 = l_1934[2][0]) && (0x5F5F162EC5694B33LL & (safe_mod_func_int16_t_s_s(((safe_sub_func_uint8_t_u_u(((0x31L & ((safe_add_func_uint32_t_u_u((func_114(&l_1969, &l_1969, l_1685[9], p_107.f0, l_1989) , 0x5AAAEF09L), 0xD1BDF889L)) , 0xEBL)) >= p_106), l_1990)) != l_1982), l_1989)))) >= p_106) , (void*)0)) == l_1991[1][2][2]), 1L)), 4))) > p_106), (-1L))), (-1L))), 0xD3A9L)))) , p_107.f0) , p_107.f1))) , p_106), (***g_1312))) & l_1685[9]) == p_107.f1) , l_1993), p_107.f1))), 0)))))
                  { /* block id: 733 */
                      l_1994 = (void*)0;
                      (*p_108) = &l_1982;
                  }
                  else
                  { /* block id: 736 */
                      (*l_1992) ^= (-10L);
                      if (p_107.f1)
                          continue;
                  }
                  ++l_2005[0][0][0];
              }
              for (l_2000 = 0; (l_2000 <= 4); l_2000 += 1)
              { /* block id: 744 */
                  uint64_t l_2009 = 1UL;
                  union U0 ****l_2022 = &g_486;
                  int32_t l_2030 = 0xC5D59F5CL;
                  int32_t l_2031 = 0xC36633E2L;
                  int32_t l_2033 = 0xCE6A0773L;
                  int32_t l_2034[5] = {1L,1L,1L,1L,1L};
                  int8_t *l_2071 = (void*)0;
                  int i, j;
                  ++l_2009;
                  for (g_747 = 27; (g_747 >= (-30)); g_747--)
                  { /* block id: 748 */
                      uint8_t l_2016 = 0xC1L;
                      int16_t *l_2019 = &g_611;
                      int32_t l_2028[1];
                      uint64_t *l_2045 = &g_1153;
                      uint64_t *l_2051[4][7] = {{&l_1917,&g_2036,&l_2009,&l_2009,&g_2036,&l_1917,&l_2009},{&g_35,&l_2009,&g_35,&l_2009,&l_1917,&l_1917,&l_2009},{&g_2036,&l_1917,&g_2036,&g_2036,&l_2009,&g_35,&l_1917},{&g_35,&l_2009,&g_35,&g_2036,&g_35,&l_2009,&g_35}};
                      int8_t *l_2052 = &g_165;
                      union U0 l_2068 = {0xD6L};
                      int i, j;
                      for (i = 0; i < 1; i++)
                          l_2028[i] = 0x0EA6776EL;
                      if ((1L != (safe_lshift_func_int16_t_s_u(l_2016, (safe_mod_func_int16_t_s_s((p_107.f0 > 1UL), ((*l_2019) = p_107.f1)))))))
                      { /* block id: 750 */
                          union U0 ****l_2023 = &g_486;
                          (*g_49) |= (l_1683 , (((l_2004[5] & p_107.f0) < ((safe_div_func_uint8_t_u_u(0x0CL, (((((((**g_683) = l_2022) != l_2023) , &l_1694[0]) == &l_1694[0]) != 0x8061L) , l_1989))) , l_2016)) <= p_107.f1));
                          l_1768 = &p_107;
                          return (*l_1663);
                      }
                      else
                      { /* block id: 755 */
                          int32_t *l_2024 = &l_1998;
                          int32_t *l_2025 = &l_1641;
                          int32_t *l_2026 = &l_2001;
                          int32_t *l_2027[4][1] = {{&l_1641},{&l_1639},{&l_1641},{&l_1639}};
                          int i, j;
                          g_2036++;
                      }
                      g_20[(l_2000 + 3)][l_2000] = (((*l_2052) = (((safe_mul_func_uint8_t_u_u((safe_rshift_func_uint8_t_u_s((safe_add_func_int16_t_s_s(0L, 0UL)), 3)), l_2001)) != (((*l_2045) |= p_107.f1) >= (l_2028[0] |= (safe_rshift_func_uint16_t_u_s((p_107.f0 == (safe_mul_func_uint8_t_u_u((l_2009 >= (l_2050 != (((void*)0 == l_1867) , (void*)0))), 0x8BL))), p_106))))) == p_107.f0)) | p_107.f1);
                      (*g_49) = (safe_mul_func_int16_t_s_s(l_1854, ((l_2055[1] != ((l_2004[2] = (--l_2057)) , l_2060)) , 0x1A33L)));
                      (*g_49) ^= ((safe_sub_func_uint8_t_u_u((+((l_1640 = ((safe_mod_func_uint16_t_u_u((l_2028[0] |= (safe_mul_func_int8_t_s_s((-9L), (((p_107 = l_2068) , (safe_add_func_uint8_t_u_u(252UL, p_107.f0))) >= (((l_2016 == (((-1L) <= g_1153) & 0x5EL)) , l_2052) != l_2071))))), 65535UL)) & 0xD7L)) , p_106)), 1L)) > 0L);
                  }
              }
          }
      }
      return l_1955[4][6][3];
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_54 g_53 g_1400
   * writes: g_19 g_20
   */
  static union U0  func_114(uint32_t * p_115, uint32_t * p_116, uint64_t  p_117, const uint32_t  p_118, int64_t  p_119)
  { /* block id: 71 */
      union U0 **l_188 = (void*)0;
      int32_t l_208 = 0x9393C069L;
      uint32_t l_232 = 0x2580673BL;
      int8_t *l_235 = &g_165;
      int32_t l_286 = (-2L);
      int32_t l_301 = 2L;
      int32_t l_340[2];
      uint16_t * const l_352[3][5][5] = {{{&g_70,&g_70,(void*)0,&g_70,(void*)0},{(void*)0,(void*)0,&g_70,&g_70,(void*)0},{&g_70,(void*)0,&g_70,(void*)0,&g_70},{&g_70,&g_70,(void*)0,&g_70,&g_70},{(void*)0,(void*)0,(void*)0,&g_70,&g_70}},{{&g_70,(void*)0,&g_70,&g_70,&g_70},{(void*)0,&g_70,&g_70,&g_70,&g_70},{(void*)0,&g_70,&g_70,&g_70,(void*)0},{&g_70,&g_70,&g_70,&g_70,(void*)0},{(void*)0,&g_70,&g_70,(void*)0,&g_70}},{{&g_70,&g_70,&g_70,&g_70,(void*)0},{&g_70,(void*)0,(void*)0,&g_70,(void*)0},{(void*)0,&g_70,&g_70,&g_70,&g_70},{&g_70,(void*)0,&g_70,&g_70,&g_70},{(void*)0,&g_70,(void*)0,&g_70,&g_70}}};
      int32_t l_381 = 9L;
      int32_t l_383 = 0x0BA0C64FL;
      int32_t l_384 = 1L;
      uint32_t **l_404 = &g_136;
      const uint64_t l_409 = 18446744073709551614UL;
      int32_t l_423 = 2L;
      int32_t l_427 = 0xD4E07163L;
      int32_t l_429 = 0x942CE0C4L;
      int32_t l_430[10] = {(-8L),(-8L),(-8L),(-8L),(-8L),(-8L),(-8L),(-8L),(-8L),(-8L)};
      uint64_t l_435[4] = {18446744073709551608UL,18446744073709551608UL,18446744073709551608UL,18446744073709551608UL};
      uint32_t l_518[10];
      int32_t **l_523 = (void*)0;
      uint16_t l_529 = 0xE68AL;
      int32_t *l_539 = &l_429;
      int32_t l_607 = 0L;
      int8_t l_694 = 0xDEL;
      union U0 l_704[10][4][3] = {{{{0x0CL},{6L},{0x9BL}},{{1L},{-2L},{-2L}},{{1L},{0xCEL},{7L}},{{0xCEL},{0x7AL},{-3L}}},{{{9L},{-3L},{0x7BL}},{{0x7AL},{-1L},{0x7BL}},{{1L},{0L},{-3L}},{{0x14L},{9L},{7L}}},{{{-1L},{-2L},{-2L}},{{0x14L},{-1L},{0x1EL}},{{1L},{1L},{0xC0L}},{{0x7AL},{1L},{-1L}}},{{{9L},{-1L},{0x3EL}},{{0xCEL},{-2L},{-1L}},{{1L},{9L},{0x3EL}},{{1L},{0L},{-1L}}},{{{-3L},{-1L},{0xC0L}},{{-3L},{-3L},{0x1EL}},{{1L},{0x7AL},{-2L}},{{1L},{0xCEL},{7L}}},{{{0xCEL},{0x7AL},{-3L}},{{9L},{-3L},{0x7BL}},{{0x7AL},{-1L},{0x7BL}},{{1L},{0L},{-3L}}},{{{0x14L},{9L},{7L}},{{-1L},{-2L},{-2L}},{{0x14L},{-1L},{0x1EL}},{{1L},{1L},{0xC0L}}},{{{0x7AL},{1L},{-1L}},{{9L},{-1L},{0x3EL}},{{0xCEL},{-2L},{-1L}},{{1L},{9L},{0x3EL}}},{{{1L},{0L},{-1L}},{{-3L},{-1L},{0xC0L}},{{-3L},{-3L},{0x1EL}},{{1L},{0x7AL},{-2L}}},{{{1L},{0xCEL},{7L}},{{0xCEL},{0x7AL},{-3L}},{{9L},{-3L},{0x7BL}},{{0x7AL},{-1L},{0x7BL}}}};
      uint32_t **l_729 = &g_727[0][3][3];
      int8_t l_736[7] = {0x75L,0x75L,0x75L,0x75L,0x75L,0x75L,0x75L};
      union U0 *******l_858 = (void*)0;
      int8_t l_866 = 0x7BL;
      int32_t ***l_890 = (void*)0;
      int32_t **** const l_889 = &l_890;
      uint32_t ***l_924 = &l_729;
      uint32_t * const *l_1085 = &g_136;
      uint32_t * const **l_1084 = &l_1085;
      uint32_t * const ***l_1083[8] = {&l_1084,(void*)0,&l_1084,(void*)0,&l_1084,(void*)0,&l_1084,(void*)0};
      int16_t l_1108 = 0x501DL;
      uint8_t l_1111[2];
      uint32_t l_1142[1];
      uint8_t l_1152 = 1UL;
      uint64_t l_1259 = 0x179365B128A2AAEDLL;
      int16_t l_1264[10][1];
      union U0 **l_1431 = &g_54[6][0];
      uint8_t l_1442 = 1UL;
      int64_t l_1476 = 0x864FCF5A9323B749LL;
      int8_t l_1489[6] = {4L,4L,4L,4L,4L,4L};
      int i, j, k;
      for (i = 0; i < 2; i++)
          l_340[i] = (-1L);
      for (i = 0; i < 10; i++)
          l_518[i] = 5UL;
      for (i = 0; i < 2; i++)
          l_1111[i] = 0xEDL;
      for (i = 0; i < 1; i++)
          l_1142[i] = 0x800452E7L;
      for (i = 0; i < 10; i++)
      {
          for (j = 0; j < 1; j++)
              l_1264[i][j] = 4L;
      }
  lbl_268:
      for (p_119 = 0; p_119 < 10; p_119 += 1)
      {
          for (g_19 = 0; g_19 < 5; g_19 += 1)
          {
              g_20[p_119][g_19] = 0x7C61DA59L;
          }
      }
      for (p_117 = 0; (p_117 <= 0); p_117 += 1)
      { /* block id: 75 */
          int32_t l_146 = 1L;
          uint8_t l_178 = 0x79L;
          int32_t l_192 = 0x1AD0A0F2L;
          int8_t l_197 = (-1L);
          int32_t l_285 = 6L;
          int32_t l_287 = 0x50347C12L;
          int32_t l_288 = (-1L);
          int32_t l_289 = 0x2FEDE261L;
          int32_t l_294[3];
          union U0 l_322 = {0x85L};
          uint32_t l_533 = 0xD502BF55L;
          uint64_t l_656 = 0xC789E923C09D8260LL;
          int32_t ***l_700 = &l_523;
          uint32_t **l_799 = &g_136;
          uint64_t l_905[2][7][5] = {{{0x881C523BE91FB16CLL,0x881C523BE91FB16CLL,0xE04F95D7E642BD51LL,0x881C523BE91FB16CLL,0x881C523BE91FB16CLL},{0x49D132544808F680LL,18446744073709551606UL,0x49D132544808F680LL,0x49D132544808F680LL,18446744073709551606UL},{0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL,0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL},{18446744073709551606UL,18446744073709551606UL,0x29B205696433CDD2LL,18446744073709551606UL,18446744073709551606UL},{0x6D5F88ECE24A907BLL,0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL,0x881C523BE91FB16CLL},{18446744073709551606UL,0x49D132544808F680LL,0x49D132544808F680LL,18446744073709551606UL,0x49D132544808F680LL},{0x881C523BE91FB16CLL,0x881C523BE91FB16CLL,0xE04F95D7E642BD51LL,0x881C523BE91FB16CLL,0x881C523BE91FB16CLL}},{{0x49D132544808F680LL,18446744073709551606UL,0x49D132544808F680LL,0x49D132544808F680LL,18446744073709551606UL},{0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL,0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL},{18446744073709551606UL,18446744073709551606UL,0x29B205696433CDD2LL,18446744073709551606UL,18446744073709551606UL},{0x6D5F88ECE24A907BLL,0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL},{0x49D132544808F680LL,0x29B205696433CDD2LL,0x29B205696433CDD2LL,0x49D132544808F680LL,0x29B205696433CDD2LL},{0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL,0x881C523BE91FB16CLL,0x6D5F88ECE24A907BLL,0x6D5F88ECE24A907BLL},{0x29B205696433CDD2LL,0x49D132544808F680LL,0x29B205696433CDD2LL,0x29B205696433CDD2LL,0x49D132544808F680LL}}};
          int64_t l_970 = 0x8ED50DC73CBBAB10LL;
          int32_t l_992[6][7] = {{0xC571ED12L,2L,2L,0xC571ED12L,1L,0xC571ED12L,2L},{(-1L),(-1L),2L,0x15D98A35L,2L,(-1L),(-1L)},{(-1L),2L,0x15D98A35L,2L,(-1L),(-1L),2L},{0xC571ED12L,1L,0xC571ED12L,2L,2L,0xC571ED12L,1L},{2L,1L,0x15D98A35L,0x15D98A35L,1L,2L,1L},{0xC571ED12L,2L,2L,0xC571ED12L,1L,0xC571ED12L,2L}};
          union U0 ***l_1065 = &l_188;
          const uint32_t l_1086 = 0UL;
          int32_t l_1103[2][3];
          int8_t l_1104[3];
          union U0 ******l_1122 = &g_684;
          int32_t l_1183 = 0xFC1C61D3L;
          union U0 ****l_1229 = &l_1065;
          int32_t l_1289 = 0xCE262305L;
          int16_t l_1341 = 0x3672L;
          int16_t l_1368 = 0x7E91L;
          const uint32_t l_1390 = 0UL;
          uint8_t *l_1518[9];
          union U0 ******* const *l_1521 = &l_858;
          uint8_t l_1527 = 1UL;
          int64_t l_1537[1];
          uint16_t l_1620 = 65529UL;
          union U0 l_1623 = {0x0CL};
          int i, j, k;
          for (i = 0; i < 3; i++)
              l_294[i] = (-7L);
          for (i = 0; i < 2; i++)
          {
              for (j = 0; j < 3; j++)
                  l_1103[i][j] = 0xA73B2752L;
          }
          for (i = 0; i < 3; i++)
              l_1104[i] = 0x24L;
          for (i = 0; i < 9; i++)
              l_1518[i] = &l_1111[0];
          for (i = 0; i < 1; i++)
              l_1537[i] = 9L;
      }
      if (p_117)
          goto lbl_268;
      return (**l_1431);
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_48 g_49
   * writes: g_49
   */
  static uint32_t * func_120(int32_t  p_121, union U0 * p_122, union U0 *** p_123)
  { /* block id: 66 */
      volatile int32_t **l_124[8] = {&g_49,&g_49,&g_49,&g_49,&g_49,&g_49,&g_49,&g_49};
      uint32_t *l_125 = &g_126;
      int i;
      (*g_48) = (*g_48);
      return l_125;
  }
  
  
  
  
  /* ---------------------------------------- */
  int main (int argc, char* argv[])
  {
      int i, j, k;
      int print_hash_value = 0;
      if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
      platform_main_begin();
      crc32_gentab();
      func_1();
      transparent_crc(g_13, "g_13", print_hash_value);
      transparent_crc(g_19, "g_19", print_hash_value);
      for (i = 0; i < 10; i++)
      {
          for (j = 0; j < 5; j++)
          {
              transparent_crc(g_20[i][j], "g_20[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_21, "g_21", print_hash_value);
      transparent_crc(g_35, "g_35", print_hash_value);
      for (i = 0; i < 4; i++)
      {
          for (j = 0; j < 1; j++)
          {
              transparent_crc(g_45[i][j], "g_45[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_53.f0, "g_53.f0", print_hash_value);
      transparent_crc(g_53.f1, "g_53.f1", print_hash_value);
      transparent_crc(g_59, "g_59", print_hash_value);
      transparent_crc(g_70, "g_70", print_hash_value);
      transparent_crc(g_86, "g_86", print_hash_value);
      transparent_crc(g_103.f0, "g_103.f0", print_hash_value);
      transparent_crc(g_103.f1, "g_103.f1", print_hash_value);
      transparent_crc(g_111, "g_111", print_hash_value);
      transparent_crc(g_126, "g_126", print_hash_value);
      transparent_crc(g_165, "g_165", print_hash_value);
      transparent_crc(g_167, "g_167", print_hash_value);
      transparent_crc(g_190, "g_190", print_hash_value);
      transparent_crc(g_195, "g_195", print_hash_value);
      transparent_crc(g_348, "g_348", print_hash_value);
      transparent_crc(g_394, "g_394", print_hash_value);
      transparent_crc(g_469, "g_469", print_hash_value);
      for (i = 0; i < 6; i++)
      {
          transparent_crc(g_522[i], "g_522[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_528, "g_528", print_hash_value);
      transparent_crc(g_611, "g_611", print_hash_value);
      transparent_crc(g_659, "g_659", print_hash_value);
      transparent_crc(g_661, "g_661", print_hash_value);
      transparent_crc(g_747, "g_747", print_hash_value);
      transparent_crc(g_780, "g_780", print_hash_value);
      transparent_crc(g_1004, "g_1004", print_hash_value);
      transparent_crc(g_1153, "g_1153", print_hash_value);
      transparent_crc(g_1179, "g_1179", print_hash_value);
      transparent_crc(g_1278, "g_1278", print_hash_value);
      transparent_crc(g_1400.f0, "g_1400.f0", print_hash_value);
      transparent_crc(g_1400.f1, "g_1400.f1", print_hash_value);
      transparent_crc(g_1721, "g_1721", print_hash_value);
      for (i = 0; i < 4; i++)
      {
          transparent_crc(g_1724[i], "g_1724[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_1725, "g_1725", print_hash_value);
      transparent_crc(g_1770.f0, "g_1770.f0", print_hash_value);
      transparent_crc(g_1770.f1, "g_1770.f1", print_hash_value);
      transparent_crc(g_1897, "g_1897", print_hash_value);
      transparent_crc(g_1937, "g_1937", print_hash_value);
      for (i = 0; i < 4; i++)
      {
          transparent_crc(g_2032[i], "g_2032[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_2036, "g_2036", print_hash_value);
      for (i = 0; i < 5; i++)
      {
          for (j = 0; j < 1; j++)
          {
              for (k = 0; k < 5; k++)
              {
                  transparent_crc(g_2128[i][j][k], "g_2128[i][j][k]", print_hash_value);
                  if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
  
              }
          }
      }
      for (i = 0; i < 10; i++)
      {
          for (j = 0; j < 4; j++)
          {
              for (k = 0; k < 6; k++)
              {
                  transparent_crc(g_2266[i][j][k], "g_2266[i][j][k]", print_hash_value);
                  if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
  
              }
          }
      }
      transparent_crc(g_2698, "g_2698", print_hash_value);
      transparent_crc(g_2745, "g_2745", print_hash_value);
      transparent_crc(g_2809, "g_2809", print_hash_value);
      for (i = 0; i < 1; i++)
      {
          for (j = 0; j < 3; j++)
          {
              for (k = 0; k < 5; k++)
              {
                  transparent_crc(g_3066[i][j][k], "g_3066[i][j][k]", print_hash_value);
                  if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
  
              }
          }
      }
      transparent_crc(g_3227, "g_3227", print_hash_value);
      transparent_crc(g_3252, "g_3252", print_hash_value);
      transparent_crc(g_3357, "g_3357", print_hash_value);
      platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
      return 0;
  }
  
  /************************ statistics *************************
  XXX max struct depth: 0
  breakdown:
     depth: 0, occurrence: 886
  XXX total union variables: 25
  
  XXX non-zero bitfields defined in structs: 0
  XXX zero bitfields defined in structs: 0
  XXX const bitfields defined in structs: 0
  XXX volatile bitfields defined in structs: 0
  XXX structs with bitfields in the program: 0
  breakdown:
  XXX full-bitfields structs in the program: 0
  breakdown:
  XXX times a bitfields struct's address is taken: 0
  XXX times a bitfields struct on LHS: 0
  XXX times a bitfields struct on RHS: 0
  XXX times a single bitfield on LHS: 0
  XXX times a single bitfield on RHS: 0
  
  XXX max expression depth: 60
  breakdown:
     depth: 1, occurrence: 313
     depth: 2, occurrence: 81
     depth: 3, occurrence: 10
     depth: 4, occurrence: 2
     depth: 5, occurrence: 3
     depth: 6, occurrence: 2
     depth: 7, occurrence: 1
     depth: 8, occurrence: 2
     depth: 9, occurrence: 1
     depth: 10, occurrence: 1
     depth: 12, occurrence: 1
     depth: 13, occurrence: 2
     depth: 14, occurrence: 1
     depth: 15, occurrence: 5
     depth: 16, occurrence: 2
     depth: 17, occurrence: 3
     depth: 18, occurrence: 6
     depth: 19, occurrence: 4
     depth: 20, occurrence: 4
     depth: 21, occurrence: 1
     depth: 22, occurrence: 5
     depth: 23, occurrence: 5
     depth: 24, occurrence: 5
     depth: 26, occurrence: 6
     depth: 27, occurrence: 3
     depth: 28, occurrence: 3
     depth: 29, occurrence: 4
     depth: 30, occurrence: 3
     depth: 32, occurrence: 1
     depth: 34, occurrence: 2
     depth: 35, occurrence: 3
     depth: 43, occurrence: 1
     depth: 44, occurrence: 3
     depth: 60, occurrence: 1
  
  XXX total number of pointers: 714
  
  XXX times a variable address is taken: 1635
  XXX times a pointer is dereferenced on RHS: 305
  breakdown:
     depth: 1, occurrence: 247
     depth: 2, occurrence: 42
     depth: 3, occurrence: 11
     depth: 4, occurrence: 4
     depth: 5, occurrence: 1
  XXX times a pointer is dereferenced on LHS: 398
  breakdown:
     depth: 1, occurrence: 360
     depth: 2, occurrence: 31
     depth: 3, occurrence: 7
  XXX times a pointer is compared with null: 84
  XXX times a pointer is compared with address of another variable: 9
  XXX times a pointer is compared with another pointer: 23
  XXX times a pointer is qualified to be dereferenced: 12664
  
  XXX max dereference level: 9
  breakdown:
     level: 0, occurrence: 0
     level: 1, occurrence: 1813
     level: 2, occurrence: 584
     level: 3, occurrence: 190
     level: 4, occurrence: 58
     level: 5, occurrence: 29
     level: 6, occurrence: 5
     level: 7, occurrence: 4
     level: 8, occurrence: 1
     level: 9, occurrence: 2
  XXX number of pointers point to pointers: 339
  XXX number of pointers point to scalars: 344
  XXX number of pointers point to structs: 0
  XXX percent of pointers has null in alias set: 29.1
  XXX average alias set size: 1.49
  
  XXX times a non-volatile is read: 2516
  XXX times a non-volatile is write: 1162
  XXX times a volatile is read: 154
  XXX    times read thru a pointer: 80
  XXX times a volatile is write: 83
  XXX    times written thru a pointer: 45
  XXX times a volatile is available for access: 2.27e+03
  XXX percentage of non-volatile access: 93.9
  
  XXX forward jumps: 1
  XXX backward jumps: 9
  
  XXX stmts: 330
  XXX max block depth: 5
  breakdown:
     depth: 0, occurrence: 32
     depth: 1, occurrence: 42
     depth: 2, occurrence: 44
     depth: 3, occurrence: 54
     depth: 4, occurrence: 83
     depth: 5, occurrence: 75
  
  XXX percentage a fresh-made variable is used: 15.7
  XXX percentage an existing variable is used: 84.3
  ********************* end of statistics **********************/
  
  