text: /*
   * This is a RANDOMLY GENERATED PROGRAM.
   *
   * Generator: csmith 2.2.0
   * Git version: dcef523
   * Options:   (none)
   * Seed:      211235344
   */
  
  #include "csmith.h"
  
  
  static long __undefined;
  
  /* --- Struct/Union Declarations --- */
  /* --- GLOBAL VARIABLES --- */
  static volatile int32_t g_3 = 0L;/* VOLATILE GLOBAL g_3 */
  static volatile int32_t *g_2 = &g_3;
  static const int16_t g_15[9][5][1] = {{{0x06C9L},{(-5L)},{(-5L)},{0x06C9L},{(-5L)}},{{(-5L)},{0x06C9L},{(-5L)},{(-5L)},{0x06C9L}},{{(-5L)},{(-5L)},{0x06C9L},{(-5L)},{(-5L)}},{{0x06C9L},{(-5L)},{(-5L)},{0x06C9L},{(-5L)}},{{(-5L)},{0x06C9L},{(-5L)},{(-5L)},{0x06C9L}},{{(-5L)},{(-5L)},{0x06C9L},{(-5L)},{(-5L)}},{{0x06C9L},{(-5L)},{(-5L)},{0x06C9L},{(-5L)}},{{(-5L)},{0x06C9L},{(-5L)},{(-5L)},{0x06C9L}},{{(-5L)},{(-5L)},{0x06C9L},{(-5L)},{(-5L)}}};
  static int32_t g_20 = 0x84CB8F6CL;
  static uint8_t g_25 = 0x7AL;
  static int32_t * const g_45 = (void*)0;
  static int32_t * const *g_44[8] = {&g_45,&g_45,&g_45,&g_45,&g_45,&g_45,&g_45,&g_45};
  static int32_t g_49 = 0x95A52772L;
  static volatile uint8_t g_60[8][3] = {{0x8EL,0xF5L,0x8EL},{1UL,0x40L,0UL},{0x8CL,0x8CL,1UL},{0x17L,0x40L,0x40L},{1UL,0xF5L,0UL},{0x17L,2UL,0x17L},{0x8CL,1UL,0UL},{1UL,1UL,0x40L}};
  static volatile uint8_t *g_59 = &g_60[4][2];
  static uint8_t g_64 = 0xC9L;
  static int32_t *g_78[9][4] = {{&g_49,&g_49,&g_49,&g_49},{(void*)0,&g_49,&g_49,&g_49},{&g_49,&g_49,(void*)0,&g_49},{&g_49,(void*)0,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49}};
  static int32_t **g_77 = &g_78[1][3];
  static uint8_t g_106[3] = {1UL,1UL,1UL};
  static int16_t g_119 = (-1L);
  static int8_t g_148 = 0L;
  static int32_t g_152 = 0x2C7FF412L;
  static uint16_t g_178[5] = {0UL,0UL,0UL,0UL,0UL};
  static uint32_t g_194 = 0x1155C200L;
  static uint64_t g_196[8] = {0x4636B982148F4751LL,0x4636B982148F4751LL,0x4636B982148F4751LL,0x4636B982148F4751LL,0x4636B982148F4751LL,0x4636B982148F4751LL,0x4636B982148F4751LL,0x4636B982148F4751LL};
  static uint16_t g_220[6][10] = {{0xD3BAL,0x6FFEL,0x67FFL,0xC1B7L,0xC1B7L,0x67FFL,0x6FFEL,0xD3BAL,0x6FFEL,0x67FFL},{0xD43EL,5UL,0xC1B7L,5UL,0xD43EL,0x67FFL,0x67FFL,0xD43EL,5UL,0xC1B7L},{0xD3BAL,0xD3BAL,0xC1B7L,0xD43EL,0x277DL,0xD43EL,0xC1B7L,0xD3BAL,0xD3BAL,0xC1B7L},{5UL,0xD43EL,0x67FFL,0x67FFL,0xD43EL,5UL,0xC1B7L,5UL,0xD43EL,0x67FFL},{0x6FFEL,0xD3BAL,0x6FFEL,0x67FFL,0xC1B7L,0xC1B7L,0x67FFL,0x6FFEL,0xD3BAL,0x6FFEL},{0x6FFEL,5UL,0xD3BAL,0xD43EL,0xD3BAL,5UL,0x6FFEL,0x6FFEL,5UL,0xD3BAL}};
  static int64_t g_231[3] = {1L,1L,1L};
  static volatile int8_t g_251 = 0x45L;/* VOLATILE GLOBAL g_251 */
  static volatile int8_t * const g_250 = &g_251;
  static volatile int8_t * const  volatile *g_249 = &g_250;
  static volatile int8_t * const  volatile ** const g_248 = &g_249;
  static int32_t g_378[2][10] = {{0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L},{0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L,0xF9231821L}};
  static const volatile int16_t g_391 = 0x80F4L;/* VOLATILE GLOBAL g_391 */
  static volatile int16_t g_392[9] = {0x85BAL,0x85BAL,0x85BAL,0x85BAL,0x85BAL,0x85BAL,0x85BAL,0x85BAL,0x85BAL};
  static const volatile int16_t g_393 = 0xD188L;/* VOLATILE GLOBAL g_393 */
  static volatile int16_t g_394 = 1L;/* VOLATILE GLOBAL g_394 */
  static volatile int16_t g_395[5][2] = {{(-7L),1L},{(-7L),(-7L)},{1L,(-7L)},{(-7L),1L},{(-7L),(-7L)}};
  static const volatile int16_t *g_390[3][2][3] = {{{&g_394,&g_393,&g_393},{(void*)0,&g_393,(void*)0}},{{(void*)0,&g_393,(void*)0},{&g_395[2][0],&g_395[2][0],(void*)0}},{{&g_393,(void*)0,&g_391},{&g_392[1],&g_395[2][0],&g_392[1]}}};
  static const volatile int16_t * volatile *g_389 = &g_390[0][1][2];
  static int16_t *g_397 = &g_119;
  static int16_t **g_396 = &g_397;
  static int8_t g_444 = 1L;
  static uint8_t g_446 = 0x97L;
  static volatile uint32_t *g_460 = (void*)0;
  static volatile uint32_t * const  volatile *g_459 = &g_460;
  static uint32_t g_470 = 0xA02113A6L;
  static uint64_t g_484 = 0x8DD1170371D9B870LL;
  static uint64_t g_514 = 18446744073709551611UL;
  static int64_t g_543 = (-4L);
  static const int8_t g_607 = 0L;
  static int64_t g_643 = 0x80A7A01AADC9CFD1LL;
  static int16_t * volatile * volatile g_726 = &g_397;/* VOLATILE GLOBAL g_726 */
  static int16_t * volatile * volatile *g_725 = &g_726;
  static int64_t g_798 = 0L;
  static const int32_t g_825 = 5L;
  static const int32_t g_827 = 1L;
  static const int32_t *g_826[5][5][2] = {{{(void*)0,&g_825},{&g_825,(void*)0},{&g_825,&g_825},{(void*)0,&g_825},{&g_825,(void*)0}},{{&g_825,&g_825},{(void*)0,&g_825},{&g_825,(void*)0},{&g_825,&g_825},{(void*)0,&g_825}},{{&g_825,(void*)0},{&g_825,&g_825},{(void*)0,&g_825},{&g_825,(void*)0},{&g_825,&g_825}},{{(void*)0,&g_825},{&g_825,(void*)0},{&g_825,&g_825},{(void*)0,&g_825},{&g_825,(void*)0}},{{&g_825,&g_825},{(void*)0,&g_825},{&g_825,(void*)0},{&g_825,&g_825},{(void*)0,&g_825}}};
  static int32_t * const * volatile * volatile * const g_888 = (void*)0;
  static const volatile uint16_t **g_944[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
  static int64_t *g_964[7][1][10] = {{{&g_643,&g_543,&g_231[2],&g_798,&g_543,&g_543,&g_643,&g_798,&g_643,&g_543}},{{&g_798,(void*)0,&g_543,(void*)0,&g_798,(void*)0,&g_543,&g_543,(void*)0,&g_231[1]}},{{&g_231[1],(void*)0,&g_643,&g_231[1],&g_231[2],&g_231[2],(void*)0,&g_643,&g_798,&g_231[1]}},{{&g_643,&g_231[1],&g_543,&g_231[2],&g_798,(void*)0,(void*)0,&g_798,&g_231[2],&g_543}},{{&g_643,&g_643,(void*)0,(void*)0,&g_543,&g_543,&g_798,&g_231[1],(void*)0,&g_543}},{{(void*)0,&g_643,&g_231[2],&g_798,&g_798,&g_798,&g_798,&g_643,(void*)0,(void*)0}},{{&g_543,&g_643,(void*)0,&g_798,&g_543,&g_798,(void*)0,&g_643,&g_543,&g_231[2]}}};
  static int64_t **g_963[2] = {&g_964[0][0][5],&g_964[0][0][5]};
  static int64_t **g_966 = &g_964[0][0][5];
  static int16_t g_972[5][1] = {{(-4L)},{(-4L)},{(-4L)},{(-4L)},{(-4L)}};
  static int32_t g_1036 = 0x22B4C9C1L;
  static int32_t *g_1035[10] = {&g_1036,&g_1036,&g_1036,&g_1036,&g_1036,&g_1036,&g_1036,&g_1036,&g_1036,&g_1036};
  static uint64_t g_1057 = 0UL;
  static uint32_t g_1095 = 0x2DE4A0EFL;
  static int32_t ** volatile g_1141 = &g_78[1][3];/* VOLATILE GLOBAL g_1141 */
  static const int32_t ** volatile g_1227 = (void*)0;/* VOLATILE GLOBAL g_1227 */
  static const int32_t ** volatile g_1228[2][3][3] = {{{(void*)0,(void*)0,&g_826[1][3][1]},{(void*)0,&g_826[4][2][1],(void*)0},{(void*)0,&g_826[2][2][0],(void*)0}},{{(void*)0,(void*)0,&g_826[1][3][1]},{(void*)0,&g_826[4][2][1],(void*)0},{(void*)0,&g_826[2][2][0],(void*)0}}};
  static int32_t ** volatile g_1256 = &g_1035[4];/* VOLATILE GLOBAL g_1256 */
  static volatile int16_t g_1262 = 0x2C99L;/* VOLATILE GLOBAL g_1262 */
  static int32_t ** volatile g_1293 = &g_78[2][1];/* VOLATILE GLOBAL g_1293 */
  static int32_t ** volatile g_1331 = &g_1035[9];/* VOLATILE GLOBAL g_1331 */
  static uint16_t *g_1378[7] = {&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3]};
  static uint16_t **g_1377 = &g_1378[3];
  static uint32_t g_1425 = 0UL;
  static int64_t g_1570 = 6L;
  static int16_t g_1669 = 2L;
  static int16_t *g_1674 = (void*)0;
  static int16_t ** const g_1673 = &g_1674;
  static int16_t ** const *g_1672 = &g_1673;
  static int16_t ** const **g_1671 = &g_1672;
  static int32_t * const **g_1720[2] = {&g_44[3],&g_44[3]};
  static volatile int16_t g_1763 = 0xC0A5L;/* VOLATILE GLOBAL g_1763 */
  static const int32_t ** volatile g_1840 = &g_826[4][0][1];/* VOLATILE GLOBAL g_1840 */
  static uint8_t *g_1875[7] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
  static const int64_t **g_1927 = (void*)0;
  static const int64_t ***g_1926 = &g_1927;
  static int32_t *g_1930 = &g_1036;
  static volatile int64_t g_1971[8][7] = {{0L,8L,0x833FCAF4962366D8LL,0x5A73B84E066E7607LL,0x60740269258360F1LL,8L,8L},{5L,(-6L),1L,(-6L),5L,0x5A73B84E066E7607LL,0x60740269258360F1LL},{0L,0x833FCAF4962366D8LL,(-6L),0x5A73B84E066E7607LL,0xFB4B19F1FB3193A3LL,0x5A73B84E066E7607LL,(-6L)},{0x60740269258360F1LL,0x60740269258360F1LL,0x1A6AF63551293B98LL,1L,0x833FCAF4962366D8LL,8L,0L},{0L,0x5A73B84E066E7607LL,0x1A6AF63551293B98LL,0x1A6AF63551293B98LL,0x5A73B84E066E7607LL,0L,0xFB4B19F1FB3193A3LL},{5L,0x1A6AF63551293B98LL,(-6L),0xFB4B19F1FB3193A3LL,0x833FCAF4962366D8LL,0x833FCAF4962366D8LL,0xFB4B19F1FB3193A3LL},{1L,(-1L),1L,8L,0xFB4B19F1FB3193A3LL,5L,0L},{(-6L),0x1A6AF63551293B98LL,5L,8L,5L,0x1A6AF63551293B98LL,(-6L)}};
  static volatile int64_t * volatile g_1970 = &g_1971[6][2];/* VOLATILE GLOBAL g_1970 */
  static volatile int64_t * volatile * volatile g_1969 = &g_1970;/* VOLATILE GLOBAL g_1969 */
  static volatile int64_t * volatile * volatile *g_1968 = &g_1969;
  static volatile int64_t * volatile * volatile ** volatile g_1967 = &g_1968;/* VOLATILE GLOBAL g_1967 */
  static volatile int64_t * volatile * volatile ** volatile * volatile g_1966 = &g_1967;/* VOLATILE GLOBAL g_1966 */
  static volatile int64_t g_1996 = 3L;/* VOLATILE GLOBAL g_1996 */
  static int32_t g_2076[10][10][2] = {{{0L,0x4A5EB7F8L},{(-1L),(-8L)},{5L,0x89CEE705L},{(-1L),0x63B9E106L},{0x673F9639L,0L},{(-1L),0L},{0x673F9639L,0x63B9E106L},{(-1L),0x89CEE705L},{5L,(-8L)},{(-1L),0x4A5EB7F8L}},{{0L,0xEB13E4E7L},{0xD623068DL,0x3C65D06EL},{1L,0xA51459B3L},{0x5865F6AFL,(-1L)},{0x09EA99ADL,1L},{0xD0409920L,3L},{0xD623068DL,0L},{0x891E730EL,0x5274C705L},{1L,(-8L)},{0xFFA146E5L,0x715FAA65L}},{{1L,(-2L)},{0x673F9639L,0x2B13987EL},{0x5274C705L,0xA71E4412L},{0x4C4C1F69L,0x63B9E106L},{0xFDDB679EL,0x715FAA65L},{(-8L),0xF7B4E093L},{(-1L),(-1L)},{0x891E730EL,0x055551E0L},{0xA51459B3L,0x3C65D06EL},{0x7BD6391EL,1L}},{{0xC7DCC0B8L,0xB0CFCE58L},{0x09EA99ADL,0x93D828C6L},{1L,(-1L)},{0xA51459B3L,0L},{0L,0x4A5EB7F8L},{0x63B9E106L,0xF7B4E093L},{0xFFA146E5L,0xF1D453F4L},{(-1L),1L},{0x4C4C1F69L,0x2B13987EL},{0xB955F295L,0L}},{{(-1L),(-2L)},{0xFDDB679EL,0xF1D453F4L},{5L,5L},{1L,(-1L)},{0L,0xEB13E4E7L},{0x93D828C6L,3L},{0x7BD6391EL,0x93D828C6L},{0x5865F6AFL,0x4C4C1F69L},{0x5865F6AFL,0x93D828C6L},{0x7BD6391EL,3L}},{{0x93D828C6L,0xEB13E4E7L},{0L,(-1L)},{1L,5L},{5L,0xF1D453F4L},{0xFDDB679EL,(-2L)},{(-1L),0L},{0xB955F295L,0x2B13987EL},{0x4C4C1F69L,1L},{(-1L),0xF1D453F4L},{0xFFA146E5L,0xF7B4E093L}},{{0x63B9E106L,0x4A5EB7F8L},{0L,0L},{0xA51459B3L,(-1L)},{1L,0x93D828C6L},{0x09EA99ADL,0xB0CFCE58L},{0xC7DCC0B8L,1L},{0x7BD6391EL,0x3C65D06EL},{0xA51459B3L,0x055551E0L},{0x891E730EL,(-1L)},{(-9L),0x5865F6AFL}},{{0x09EA99ADL,0x17FD4429L},{0x8BD69047L,(-3L)},{0x3C65D06EL,(-1L)},{1L,0x673F9639L},{0x984218EEL,0x89CEE705L},{0L,0x17FD4429L},{0xBA3D832AL,0x09EA99ADL},{0xF1D453F4L,1L},{0x2F82D680L,0xFF7BE24EL},{0x7300ECD2L,5L}},{{0xD623068DL,0x905599D2L},{0x9AE6696DL,3L},{(-1L),0xC1C51E93L},{0x93D828C6L,0xFFA146E5L},{0x7300ECD2L,0xA71E4412L},{0xF061A980L,(-1L)},{(-9L),0x09EA99ADL},{0xC7DCC0B8L,0x505F084DL},{0L,(-3L)},{0x984218EEL,0x4C4C1F69L}},{{0xFDDB679EL,0x4C4C1F69L},{0x984218EEL,(-3L)},{0L,0x505F084DL},{0xC7DCC0B8L,0x09EA99ADL},{(-9L),(-1L)},{0xF061A980L,0xA71E4412L},{0x7300ECD2L,0xFFA146E5L},{0x93D828C6L,0xC1C51E93L},{(-1L),3L},{0x9AE6696DL,0x905599D2L}}};
  static volatile uint64_t *g_2102 = (void*)0;
  static volatile uint64_t * volatile * volatile g_2101 = &g_2102;/* VOLATILE GLOBAL g_2101 */
  static const int16_t g_2119 = 0L;
  static int64_t ***g_2153 = &g_966;
  static uint32_t g_2161 = 2UL;
  static int32_t g_2177[5] = {(-9L),(-9L),(-9L),(-9L),(-9L)};
  static int64_t ** const *g_2185[1] = {&g_963[1]};
  static int64_t ** const **g_2184[9] = {(void*)0,&g_2185[0],&g_2185[0],(void*)0,&g_2185[0],&g_2185[0],(void*)0,&g_2185[0],&g_2185[0]};
  static int64_t ** const ***g_2183[9][4][7] = {{{&g_2184[5],(void*)0,&g_2184[5],(void*)0,&g_2184[5],&g_2184[7],&g_2184[5]},{&g_2184[1],&g_2184[3],&g_2184[5],&g_2184[5],&g_2184[8],&g_2184[5],&g_2184[1]},{&g_2184[5],(void*)0,&g_2184[2],(void*)0,&g_2184[5],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[1],&g_2184[5],&g_2184[7],&g_2184[1],&g_2184[5],&g_2184[5]}},{{&g_2184[5],&g_2184[1],&g_2184[5],&g_2184[5],(void*)0,&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[8],&g_2184[3]},{&g_2184[5],&g_2184[5],&g_2184[5],(void*)0,&g_2184[5],&g_2184[5],(void*)0},{(void*)0,&g_2184[5],&g_2184[1],(void*)0,&g_2184[5],&g_2184[5],&g_2184[0]}},{{&g_2184[5],(void*)0,&g_2184[5],(void*)0,&g_2184[5],&g_2184[5],(void*)0},{&g_2184[5],&g_2184[5],(void*)0,(void*)0,&g_2184[5],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[1],&g_2184[2],&g_2184[1],&g_2184[5]},{&g_2184[5],&g_2184[5],(void*)0,&g_2184[5],&g_2184[8],&g_2184[8],&g_2184[3]}},{{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[1],&g_2184[5],&g_2184[5],&g_2184[5]},{&g_2184[1],(void*)0,&g_2184[5],(void*)0,&g_2184[8],&g_2184[5],&g_2184[8]},{&g_2184[5],(void*)0,&g_2184[5],&g_2184[5],&g_2184[2],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[7],&g_2184[5],&g_2184[5],(void*)0,&g_2184[5]}},{{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[8],&g_2184[5],&g_2184[5]},{&g_2184[8],&g_2184[1],&g_2184[8],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[2],&g_2184[5]},{&g_2184[1],&g_2184[1],(void*)0,&g_2184[8],&g_2184[5],&g_2184[4],&g_2184[8]}},{{&g_2184[5],&g_2184[8],(void*)0,&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5]},{(void*)0,&g_2184[8],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[1],&g_2184[5],(void*)0},{&g_2184[8],&g_2184[7],&g_2184[7],&g_2184[5],&g_2184[0],&g_2184[3],&g_2184[5]}},{{&g_2184[1],&g_2184[5],&g_2184[5],&g_2184[7],&g_2184[5],&g_2184[5],&g_2184[5]},{(void*)0,&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[1],&g_2184[5],(void*)0},{&g_2184[8],&g_2184[5],(void*)0,&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[7]},{(void*)0,&g_2184[4],&g_2184[8],&g_2184[5],&g_2184[8],&g_2184[4],(void*)0}},{{&g_2184[5],(void*)0,&g_2184[5],&g_2184[5],&g_2184[1],&g_2184[2],&g_2184[5]},{&g_2184[5],(void*)0,&g_2184[5],&g_2184[1],(void*)0,&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[7],&g_2184[5],&g_2184[5],&g_2184[1]},{&g_2184[8],&g_2184[5],&g_2184[8],&g_2184[5],&g_2184[5],&g_2184[6],&g_2184[4]}},{{&g_2184[5],&g_2184[5],(void*)0,(void*)0,&g_2184[5],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[5],&g_2184[8],(void*)0},{(void*)0,(void*)0,&g_2184[5],&g_2184[5],&g_2184[8],&g_2184[5],&g_2184[5]},{&g_2184[5],&g_2184[8],&g_2184[7],(void*)0,&g_2184[5],&g_2184[5],(void*)0}}};
  static int64_t *****g_2213[3] = {(void*)0,(void*)0,(void*)0};
  static uint8_t g_2219 = 255UL;
  static int32_t **g_2265 = (void*)0;
  static const uint16_t g_2279 = 0x0380L;
  static uint32_t *g_2285[10] = {&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470,&g_470};
  static uint32_t ** volatile g_2284 = &g_2285[9];/* VOLATILE GLOBAL g_2284 */
  static int32_t g_2290 = 0x477A75E3L;
  static const uint32_t g_2322 = 0x6BE38A88L;
  static uint16_t **g_2444 = &g_1378[3];
  static uint64_t g_2526 = 4UL;
  static int64_t g_2577[3] = {0x19A41C1ADFDEC2FFLL,0x19A41C1ADFDEC2FFLL,0x19A41C1ADFDEC2FFLL};
  static int8_t *g_2625 = &g_148;
  static int8_t **g_2624[10][5][5] = {{{&g_2625,&g_2625,&g_2625,(void*)0,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,(void*)0,&g_2625,&g_2625}},{{&g_2625,&g_2625,(void*)0,&g_2625,&g_2625},{&g_2625,(void*)0,(void*)0,&g_2625,&g_2625},{&g_2625,&g_2625,(void*)0,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625}},{{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{(void*)0,&g_2625,(void*)0,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,(void*)0}},{{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,(void*)0,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625}},{{(void*)0,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,(void*)0,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,(void*)0,&g_2625,(void*)0},{(void*)0,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,(void*)0,(void*)0,&g_2625}},{{(void*)0,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,(void*)0,&g_2625,(void*)0,&g_2625},{(void*)0,&g_2625,&g_2625,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,(void*)0,&g_2625}},{{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{(void*)0,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,(void*)0,&g_2625},{(void*)0,&g_2625,(void*)0,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625}},{{&g_2625,&g_2625,&g_2625,(void*)0,&g_2625},{(void*)0,(void*)0,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,(void*)0,(void*)0},{&g_2625,(void*)0,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,(void*)0,&g_2625,&g_2625}},{{&g_2625,&g_2625,&g_2625,(void*)0,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{(void*)0,&g_2625,&g_2625,&g_2625,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625}},{{&g_2625,&g_2625,&g_2625,(void*)0,&g_2625},{&g_2625,&g_2625,&g_2625,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,(void*)0},{&g_2625,&g_2625,&g_2625,&g_2625,&g_2625},{(void*)0,&g_2625,(void*)0,(void*)0,&g_2625}}};
  static volatile int8_t g_2668 = 0x2FL;/* VOLATILE GLOBAL g_2668 */
  static uint8_t g_2675[9][3][8] = {{{249UL,0x35L,0UL,0x8CL,0x8CL,0UL,0x35L,249UL},{0UL,0x8CL,3UL,0UL,0x9DL,0UL,0UL,5UL},{0x9DL,0UL,0UL,5UL,0UL,0UL,0x9DL,0UL}},{{249UL,0x8CL,9UL,249UL,0x35L,0UL,0x8CL,0x8CL},{0UL,0x35L,3UL,3UL,0x35L,0UL,251UL,5UL},{249UL,251UL,255UL,0x8CL,0UL,255UL,0x35L,255UL}},{{0x9DL,0x8CL,5UL,0x8CL,0x9DL,0xAFL,0x8CL,5UL},{0UL,0x9DL,0UL,3UL,0x8CL,0UL,0UL,0x8CL},{249UL,0UL,0UL,249UL,251UL,255UL,0x8CL,0UL}},{{0x8CL,0x35L,5UL,5UL,0x35L,9UL,0x35L,5UL},{255UL,0x35L,255UL,0UL,0x8CL,255UL,251UL,249UL},{0x9DL,0UL,3UL,0x8CL,0UL,0UL,0x8CL,3UL}},{{0x9DL,0x9DL,9UL,5UL,0x8CL,0xAFL,0x9DL,0x8CL},{255UL,0x8CL,0UL,255UL,0x35L,255UL,0UL,0x8CL},{0x8CL,251UL,3UL,5UL,251UL,0UL,0x35L,3UL}},{{249UL,0x35L,0UL,0x8CL,0x8CL,0UL,0x35L,249UL},{0UL,0x8CL,3UL,0UL,0x9DL,0UL,0UL,5UL},{0x9DL,0UL,0UL,5UL,0UL,0UL,0x9DL,0UL}},{{249UL,0x8CL,9UL,249UL,0x35L,0UL,0x8CL,0x8CL},{0UL,0x35L,3UL,3UL,0x35L,0UL,251UL,5UL},{249UL,251UL,255UL,0x8CL,0UL,255UL,0x35L,255UL}},{{0UL,255UL,0x35L,255UL,0UL,0x8CL,255UL,251UL},{9UL,0UL,0UL,254UL,255UL,9UL,9UL,255UL},{3UL,0UL,0UL,3UL,0xAFL,5UL,255UL,0UL}},{{255UL,0UL,0x35L,251UL,0UL,249UL,0UL,251UL},{5UL,0UL,5UL,0UL,255UL,5UL,0xAFL,3UL},{0UL,0UL,254UL,255UL,9UL,9UL,255UL,254UL}}};
  static int32_t ** const *g_2686 = &g_77;
  static int32_t ** const **g_2685 = &g_2686;
  static int32_t g_2727 = 0x3CC4977DL;
  
  
  /* --- FORWARD DECLARATIONS --- */
  static int32_t  func_1(void);
  static int32_t * func_4(uint32_t  p_5, int32_t * p_6, const int32_t * p_7, int32_t * p_8, int32_t * p_9);
  static int32_t * func_10(int32_t * p_11, uint64_t  p_12);
  static int32_t * func_13(uint32_t  p_14);
  static const int32_t * func_28(uint64_t  p_29);
  static const int32_t * func_36(int32_t ** p_37, uint32_t  p_38);
  static uint32_t  func_39(int8_t  p_40, int32_t * const * p_41, uint32_t  p_42, uint8_t  p_43);
  static int64_t  func_71(int32_t ** p_72, uint8_t * p_73, int8_t  p_74, uint8_t  p_75, int16_t  p_76);
  static uint8_t * func_79(uint8_t * const  p_80, uint16_t  p_81, uint16_t  p_82);
  static uint8_t * func_83(int32_t  p_84, uint32_t  p_85, uint32_t  p_86, const int8_t  p_87);
  
  
  /* --- FUNCTIONS --- */
  /* ------------------------------------------ */
  /* 
   * reads : g_378
   * writes:
   */
  static int32_t  func_1(void)
  { /* block id: 0 */
      int8_t l_16 = (-1L);
      uint8_t *l_24 = &g_25;
      int16_t l_802 = 0L;
      const int32_t **l_822 = (void*)0;
      const int32_t *l_824 = &g_825;
      const int32_t **l_823[3];
      int32_t *l_2142 = &g_378[0][2];
      uint64_t *l_2144 = &g_196[2];
      const uint32_t l_2145[6] = {4294967287UL,4294967287UL,0xC6EA0A1EL,4294967287UL,4294967287UL,0xC6EA0A1EL};
      int32_t l_2154 = (-7L);
      int8_t l_2179 = 1L;
      uint32_t l_2238 = 1UL;
      uint32_t l_2244 = 7UL;
      int32_t l_2261 = 0L;
      int64_t **l_2268 = &g_964[0][0][5];
      const uint16_t *l_2278[6][8] = {{&g_2279,&g_2279,&g_2279,&g_2279,&g_2279,(void*)0,&g_2279,&g_2279},{&g_2279,&g_2279,&g_2279,(void*)0,(void*)0,(void*)0,(void*)0,&g_2279},{&g_2279,&g_2279,(void*)0,(void*)0,&g_2279,(void*)0,(void*)0,&g_2279},{&g_2279,&g_2279,(void*)0,(void*)0,(void*)0,(void*)0,&g_2279,&g_2279},{&g_2279,&g_2279,&g_2279,(void*)0,&g_2279,&g_2279,&g_2279,&g_2279},{&g_2279,(void*)0,(void*)0,(void*)0,(void*)0,&g_2279,(void*)0,&g_2279}};
      const uint16_t **l_2277 = &l_2278[1][0];
      const uint16_t **l_2281 = &l_2278[2][5];
      uint32_t l_2303 = 0x19708E63L;
      const int8_t l_2304 = 0x94L;
      int16_t l_2318 = 0x9F62L;
      int8_t l_2321 = 0x4CL;
      uint64_t l_2380 = 0xA5B80262EE7B9A51LL;
      int8_t l_2416 = (-9L);
      int32_t l_2417[8][9] = {{0x697688CCL,0xF79A1B8CL,(-10L),0xF79A1B8CL,0x697688CCL,0xF79A1B8CL,(-10L),0xF79A1B8CL,0x697688CCL},{1L,(-9L),(-9L),1L,0x05FA8ED5L,6L,6L,0x05FA8ED5L,1L},{(-7L),0xF79A1B8CL,(-7L),(-6L),(-7L),0xF79A1B8CL,(-7L),(-6L),(-7L)},{1L,1L,6L,(-9L),0x05FA8ED5L,0x05FA8ED5L,(-9L),6L,1L},{0x697688CCL,(-6L),(-10L),(-6L),0x697688CCL,(-6L),(-10L),(-6L),0x697688CCL},{0x05FA8ED5L,(-9L),6L,1L,1L,6L,(-9L),0x05FA8ED5L,0x05FA8ED5L},{(-7L),(-6L),(-7L),0xF79A1B8CL,(-7L),(-6L),(-7L),0xF79A1B8CL,(-7L)},{0x05FA8ED5L,1L,(-9L),(-9L),1L,0x05FA8ED5L,6L,6L,0x05FA8ED5L}};
      int64_t l_2442 = (-4L);
      int64_t l_2486[7][3][7] = {{{0x7D05EB35AFFD8D47LL,1L,(-1L),9L,1L,0x228D5863DB9BC0F5LL,0L},{(-1L),0xDA599ACBDC583917LL,0L,9L,0L,1L,(-4L)},{0x6C6A2E21811C08D2LL,1L,9L,0xB8838B9C543437DALL,1L,1L,0xB8838B9C543437DALL}},{{0x398DA3DAFCC2CE9ALL,1L,0x398DA3DAFCC2CE9ALL,1L,0x04A20C8D91BA7469LL,(-4L),8L},{1L,0xECEE0DB94E06C750LL,3L,7L,1L,0xEEEFFEA52ED1EEAALL,0x1F54D604E7EADB0FLL},{9L,(-2L),0xB8838B9C543437DALL,0x9A793064653F5576LL,0L,(-4L),0xB34E193FF47733F4LL}},{{(-1L),(-4L),(-1L),0x04A20C8D91BA7469LL,3L,1L,2L},{1L,(-1L),0x228D5863DB9BC0F5LL,(-1L),0xEEEFFEA52ED1EEAALL,1L,9L},{0xDA599ACBDC583917LL,(-6L),8L,1L,(-2L),0xB34E193FF47733F4LL,5L}},{{0xDA599ACBDC583917LL,(-1L),0xB34E193FF47733F4LL,(-1L),8L,1L,1L},{1L,1L,(-1L),0L,(-1L),1L,1L},{(-1L),0x6C6A2E21811C08D2LL,(-1L),0xDA599ACBDC583917LL,(-4L),(-1L),(-1L)}},{{9L,9L,1L,0L,1L,(-1L),0L},{1L,9L,(-1L),1L,0x7D05EB35AFFD8D47LL,0L,0xC77B0BA2C005C314LL},{0x398DA3DAFCC2CE9ALL,0L,(-1L),(-1L),1L,5L,1L}},{{5L,0x228D5863DB9BC0F5LL,0xB34E193FF47733F4LL,0x236D5A7869C72776LL,0x61E384F033530B6ELL,0xC77B0BA2C005C314LL,0L},{(-1L),0xB34E193FF47733F4LL,8L,0xF7CBA255AA24B6D0LL,0x61E384F033530B6ELL,0L,(-6L)},{(-1L),0x7692239EE6CF7E5ALL,0x228D5863DB9BC0F5LL,(-1L),1L,0x6C6A2E21811C08D2LL,1L}},{{2L,(-1L),(-1L),2L,0x7D05EB35AFFD8D47LL,(-2L),0xD2D85689E5FA994BLL},{1L,0xD2D85689E5FA994BLL,0xB8838B9C543437DALL,1L,1L,7L,0x228D5863DB9BC0F5LL},{0x04A20C8D91BA7469LL,1L,3L,0x6C6A2E21811C08D2LL,(-4L),0xE658364F287FA174LL,0xD2D85689E5FA994BLL}}};
      int32_t l_2487 = 7L;
      uint32_t l_2490[5];
      int64_t l_2553[9][6] = {{(-1L),1L,0x6F123D79D5BB680DLL,1L,1L,1L},{1L,0xE75223C14E26DD54LL,0xE75223C14E26DD54LL,1L,9L,1L},{0x9D7C7F515F2E32F6LL,1L,0x6F123D79D5BB680DLL,4L,1L,4L},{9L,(-1L),9L,0xECD150BA0D21EE89LL,1L,(-1L)},{0x6F123D79D5BB680DLL,1L,0x9D7C7F515F2E32F6LL,9L,9L,0x9D7C7F515F2E32F6LL},{0xE75223C14E26DD54LL,0xE75223C14E26DD54LL,1L,9L,1L,0xECD150BA0D21EE89LL},{0x6F123D79D5BB680DLL,1L,(-1L),0xECD150BA0D21EE89LL,(-1L),1L},{9L,0x6F123D79D5BB680DLL,(-1L),4L,0xE75223C14E26DD54LL,0xECD150BA0D21EE89LL},{0x9D7C7F515F2E32F6LL,4L,1L,1L,4L,0x9D7C7F515F2E32F6LL}};
      uint16_t l_2579 = 0x31A6L;
      int32_t l_2623 = (-1L);
      uint8_t l_2648 = 0x2BL;
      uint8_t l_2664 = 0UL;
      const int8_t *l_2674 = &l_2416;
      const int8_t **l_2673 = &l_2674;
      const int32_t l_2696 = 0xB0BA435AL;
      uint64_t l_2721 = 0x139A13855A41B0CALL;
      const int16_t *l_2749 = &l_2318;
      const int16_t **l_2748[5];
      const int16_t ***l_2747 = &l_2748[1];
      const int16_t ****l_2746 = &l_2747;
      uint64_t l_2751[7];
      int32_t l_2758 = 0x82813F4CL;
      const int64_t l_2768 = 0L;
      int i, j, k;
      for (i = 0; i < 3; i++)
          l_823[i] = &l_824;
      for (i = 0; i < 5; i++)
          l_2490[i] = 4294967287UL;
      for (i = 0; i < 5; i++)
          l_2748[i] = &l_2749;
      for (i = 0; i < 7; i++)
          l_2751[i] = 0x3F8E417D29C467B0LL;
      return (*l_2142);
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_152 g_15 g_20 g_378 g_397 g_119 g_396 g_196 g_484 g_1057 g_248 g_249 g_250 g_251 g_49 g_725 g_726 g_1036 g_60 g_59 g_393 g_106 g_827 g_2 g_3 g_1141 g_395 g_64 g_444 g_1256 g_25 g_607 g_220 g_514 g_1293 g_394 g_643 g_1331 g_944 g_1377 g_1095 g_194 g_1425 g_446 g_1378 g_888 g_972 g_470 g_231 g_392 g_148 g_178 g_543 g_1840
   * writes: g_152 g_20 g_514 g_196 g_484 g_1057 g_194 g_119 g_1036 g_1095 g_3 g_1035 g_826 g_78 g_543 g_378 g_178 g_77 g_220 g_446 g_106 g_1377 g_643 g_444 g_49 g_397 g_1720 g_972 g_64 g_470
   */
  static int32_t * func_4(uint32_t  p_5, int32_t * p_6, const int32_t * p_7, int32_t * p_8, int32_t * p_9)
  { /* block id: 457 */
      uint64_t *l_1037 = &g_196[1];
      int32_t l_1059[10][4] = {{(-1L),(-1L),0xA6A936F1L,(-1L)},{(-1L),0x360EF825L,0xA6A936F1L,0x360EF825L},{0xA6A936F1L,0x360EF825L,0xA6A936F1L,0xA6A936F1L},{0x360EF825L,0x360EF825L,(-1L),0x360EF825L},{0x360EF825L,0xA6A936F1L,0xA6A936F1L,0x360EF825L},{0xA6A936F1L,0x360EF825L,0xA6A936F1L,0xA6A936F1L},{0x360EF825L,0x360EF825L,(-1L),0x360EF825L},{0x360EF825L,0xA6A936F1L,0xA6A936F1L,0x360EF825L},{0xA6A936F1L,0x360EF825L,0xA6A936F1L,0xA6A936F1L},{0x360EF825L,0x360EF825L,(-1L),0x360EF825L}};
      uint32_t l_1109 = 0xB2F1BD90L;
      int32_t l_1136 = 0xC925D0ADL;
      int16_t l_1158 = 0xF7B3L;
      int64_t ***l_1236 = (void*)0;
      int64_t ****l_1235 = &l_1236;
      int32_t l_1249 = (-1L);
      uint32_t l_1265 = 18446744073709551615UL;
      int64_t l_1283 = (-8L);
      uint16_t l_1335 = 0xC600L;
      int32_t ** const *l_1349 = &g_77;
      int32_t ** const **l_1348[7] = {&l_1349,&l_1349,&l_1349,&l_1349,&l_1349,&l_1349,&l_1349};
      uint8_t * const l_1366 = &g_106[1];
      int32_t l_1390 = 0xED907347L;
      uint32_t l_1440 = 4294967292UL;
      int16_t ***l_1498 = &g_396;
      int8_t l_1528 = 0x0EL;
      uint8_t l_1584 = 0x58L;
      int32_t l_1634 = 0x181A6BA4L;
      int32_t l_1638[5][8] = {{3L,0x14E17A81L,1L,(-1L),0x14E17A81L,(-1L),1L,0x14E17A81L},{0x7CFB4A02L,1L,3L,0x7CFB4A02L,(-1L),(-1L),0x7CFB4A02L,3L},{0x14E17A81L,0x14E17A81L,(-1L),0L,0x7CFB4A02L,(-1L),0x7CFB4A02L,0L},{3L,0L,3L,(-1L),0L,1L,1L,0L},{0L,1L,1L,0L,(-1L),3L,0L,3L}};
      int16_t l_1676 = 0L;
      uint16_t **l_1700 = &g_1378[3];
      int32_t ***l_1721 = &g_77;
      int16_t l_1767 = 0x8C58L;
      int32_t l_1809[4][3] = {{1L,1L,0x329ACFE7L},{1L,1L,0x329ACFE7L},{1L,1L,0x329ACFE7L},{1L,1L,0x329ACFE7L}};
      uint16_t l_1813 = 0x46FEL;
      const int16_t l_1829 = 0x97B2L;
      int32_t *l_1853 = &l_1634;
      int32_t l_1855[10][7][3] = {{{0L,0xE92258E5L,0xE92258E5L},{0x20675DA8L,0xE92258E5L,0x6DC380A4L},{0x6862EFFEL,0L,(-1L)},{0x20675DA8L,0x20675DA8L,(-1L)},{0L,0x6862EFFEL,0x6DC380A4L},{0xE92258E5L,0x20675DA8L,0xE92258E5L},{0xE92258E5L,0L,0x20675DA8L}},{{0L,0xE92258E5L,0xE92258E5L},{0x20675DA8L,0xE92258E5L,0x6DC380A4L},{0x6862EFFEL,0L,(-1L)},{0x20675DA8L,0x20675DA8L,(-1L)},{0L,0x6862EFFEL,0x6DC380A4L},{0xE92258E5L,0x20675DA8L,0xE92258E5L},{0xE92258E5L,0L,0x20675DA8L}},{{0L,0xE92258E5L,0xE92258E5L},{0x20675DA8L,0xE92258E5L,0x6DC380A4L},{0x6862EFFEL,0L,(-1L)},{0x20675DA8L,0x20675DA8L,(-1L)},{0L,0x6862EFFEL,0x6DC380A4L},{0xE92258E5L,0x20675DA8L,0xE92258E5L},{0xE92258E5L,0L,0x20675DA8L}},{{0L,0xE92258E5L,0xE92258E5L},{0x20675DA8L,0xE92258E5L,0x6DC380A4L},{0x6862EFFEL,0L,(-1L)},{0x20675DA8L,0x20675DA8L,(-1L)},{0L,0x6862EFFEL,0x6DC380A4L},{0xE92258E5L,0x20675DA8L,0xE92258E5L},{0xE92258E5L,0L,0x20675DA8L}},{{0L,0xE92258E5L,0xE92258E5L},{0x20675DA8L,0xE92258E5L,0x6DC380A4L},{0x6862EFFEL,0L,(-1L)},{0x20675DA8L,0x20675DA8L,(-1L)},{0L,0x6862EFFEL,(-1L)},{0x6862EFFEL,(-1L),0x6862EFFEL},{0x6862EFFEL,0xE92258E5L,(-1L)}},{{0xE92258E5L,0x6862EFFEL,0x6862EFFEL},{(-1L),0x6862EFFEL,(-1L)},{0x6DC380A4L,0xE92258E5L,0x20675DA8L},{(-1L),(-1L),0x20675DA8L},{0xE92258E5L,0x6DC380A4L,(-1L)},{0x6862EFFEL,(-1L),0x6862EFFEL},{0x6862EFFEL,0xE92258E5L,(-1L)}},{{0xE92258E5L,0x6862EFFEL,0x6862EFFEL},{(-1L),0x6862EFFEL,(-1L)},{0x6DC380A4L,0xE92258E5L,0x20675DA8L},{(-1L),(-1L),0x20675DA8L},{0xE92258E5L,0x6DC380A4L,(-1L)},{0x6862EFFEL,(-1L),0x6862EFFEL},{0x6862EFFEL,0xE92258E5L,(-1L)}},{{0xE92258E5L,0x6862EFFEL,0x6862EFFEL},{(-1L),0x6862EFFEL,(-1L)},{0x6DC380A4L,0xE92258E5L,0x20675DA8L},{(-1L),(-1L),0x20675DA8L},{0xE92258E5L,0x6DC380A4L,(-1L)},{0x6862EFFEL,(-1L),0x6862EFFEL},{0x6862EFFEL,0xE92258E5L,(-1L)}},{{0xE92258E5L,0x6862EFFEL,0x6862EFFEL},{(-1L),0x6862EFFEL,(-1L)},{0x6DC380A4L,0xE92258E5L,0x20675DA8L},{(-1L),(-1L),0x20675DA8L},{0xE92258E5L,0x6DC380A4L,(-1L)},{0x6862EFFEL,(-1L),0x6862EFFEL},{0x6862EFFEL,0xE92258E5L,(-1L)}},{{0xE92258E5L,0x6862EFFEL,0x6862EFFEL},{(-1L),0x6862EFFEL,(-1L)},{0x6DC380A4L,0xE92258E5L,0x20675DA8L},{(-1L),(-1L),0x20675DA8L},{0xE92258E5L,0x6DC380A4L,(-1L)},{0x6862EFFEL,(-1L),0x6862EFFEL},{0x6862EFFEL,0xE92258E5L,(-1L)}}};
      int32_t l_1898 = 6L;
      const uint64_t *l_1915 = &g_196[0];
      int32_t l_2056 = (-1L);
      uint16_t l_2077 = 0xD7A7L;
      const uint16_t ***l_2121 = (void*)0;
      const uint16_t **** const l_2120 = &l_2121;
      int64_t l_2134 = 0xDCA3A4B5FC2AD586LL;
      int8_t l_2135 = 0xC5L;
      int8_t *l_2136 = &l_1528;
      uint16_t l_2137 = 65535UL;
      int8_t l_2138 = 0xB5L;
      uint32_t *l_2140 = (void*)0;
      uint32_t **l_2139 = &l_2140;
      const int32_t *l_2141 = &l_1059[4][1];
      int i, j, k;
      if (((void*)0 != l_1037))
      { /* block id: 458 */
          const int32_t *l_1038 = &g_378[1][9];
          int32_t l_1099 = 0xB943816CL;
          int32_t l_1100 = 0xD935C6A2L;
          int32_t l_1103 = 0x49D20F68L;
          int32_t l_1108 = (-3L);
          uint16_t l_1188 = 0x2B1AL;
          int64_t *** const l_1201[5][4][7] = {{{&g_963[0],&g_966,(void*)0,&g_963[1],&g_966,&g_963[1],&g_963[0]},{&g_966,(void*)0,(void*)0,&g_966,&g_963[1],&g_963[1],&g_963[1]},{(void*)0,&g_963[0],&g_963[1],(void*)0,&g_963[1],&g_963[1],&g_963[1]},{&g_963[1],&g_966,&g_963[1],(void*)0,&g_963[1],&g_963[1],&g_966}},{{&g_966,&g_966,&g_963[1],&g_963[1],&g_963[1],(void*)0,&g_966},{(void*)0,&g_966,(void*)0,(void*)0,&g_966,(void*)0,&g_966},{&g_966,&g_966,&g_963[1],&g_963[1],&g_963[1],(void*)0,&g_966},{&g_966,&g_963[1],&g_963[1],&g_966,(void*)0,&g_966,(void*)0}},{{&g_963[1],&g_966,&g_966,&g_963[1],&g_966,(void*)0,(void*)0},{&g_963[1],&g_966,&g_963[1],&g_963[0],&g_963[1],&g_966,(void*)0},{&g_966,&g_966,(void*)0,&g_966,&g_963[1],&g_966,(void*)0},{&g_963[1],&g_966,&g_966,&g_963[1],&g_966,&g_963[1],&g_963[1]}},{{(void*)0,&g_963[1],(void*)0,&g_963[1],&g_963[0],&g_966,&g_963[1]},{&g_963[1],&g_966,&g_963[0],(void*)0,&g_963[0],&g_966,&g_963[1]},{&g_966,&g_963[1],(void*)0,&g_963[1],(void*)0,&g_963[1],&g_966},{&g_963[1],(void*)0,&g_963[0],&g_963[1],(void*)0,&g_966,&g_963[0]}},{{&g_963[1],&g_963[1],(void*)0,&g_966,&g_963[1],&g_963[1],&g_963[1]},{&g_966,&g_966,&g_963[0],&g_963[1],(void*)0,(void*)0,&g_966},{&g_966,(void*)0,(void*)0,(void*)0,&g_963[1],&g_963[0],(void*)0},{&g_963[1],&g_963[1],&g_966,&g_963[1],&g_963[1],(void*)0,(void*)0}}};
          int64_t *** const *l_1200 = &l_1201[0][3][2];
          int32_t l_1209 = 0x3CEE53CDL;
          int32_t l_1210 = 1L;
          int32_t l_1218 = 0x7E44FD78L;
          int32_t l_1219 = 0L;
          int32_t l_1220 = 0L;
          int32_t l_1221 = 1L;
          int32_t l_1222 = 8L;
          int32_t l_1223 = 0x8A33259DL;
          int32_t l_1252 = 8L;
          int16_t l_1259[7] = {6L,0xA418L,6L,6L,0xA418L,6L,6L};
          uint16_t l_1327 = 0UL;
          uint16_t l_1332 = 65529UL;
          int32_t *l_1333 = &l_1210;
          int32_t *l_1334[5][9][5] = {{{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152}},{{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0}},{{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1218,&l_1219,&g_152},{&l_1103,&l_1100,(void*)0,(void*)0,(void*)0},{&l_1219,&l_1218,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]}},{{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099}},{{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]},{&g_49,(void*)0,&l_1103,&l_1209,&l_1099},{&g_49,&l_1219,&l_1219,&g_49,&l_1059[6][1]}}};
          int i, j, k;
          for (g_152 = 7; (g_152 >= 0); g_152 -= 1)
          { /* block id: 461 */
              uint8_t l_1051 = 1UL;
              const int32_t l_1060 = 0x7A2701D2L;
              int8_t l_1061 = (-1L);
              int32_t l_1065 = (-2L);
              int64_t ***l_1092[5][8][6] = {{{&g_963[1],&g_963[1],(void*)0,(void*)0,&g_963[1],&g_963[1]},{&g_963[0],(void*)0,&g_963[0],&g_966,&g_963[1],&g_966},{&g_966,&g_963[1],&g_966,(void*)0,&g_966,&g_963[1]},{(void*)0,&g_963[1],&g_963[0],&g_963[1],&g_963[1],&g_963[1]},{&g_963[1],&g_963[0],&g_963[1],&g_963[1],&g_966,&g_963[1]},{(void*)0,(void*)0,&g_963[1],&g_966,&g_963[0],(void*)0},{(void*)0,(void*)0,&g_963[1],(void*)0,&g_963[1],(void*)0},{&g_966,&g_963[0],&g_963[1],&g_963[1],(void*)0,(void*)0}},{{&g_966,&g_963[0],&g_963[0],&g_966,(void*)0,&g_963[1]},{&g_966,&g_963[0],(void*)0,&g_963[0],(void*)0,&g_963[1]},{(void*)0,&g_963[0],(void*)0,&g_963[1],&g_963[1],&g_966},{&g_966,(void*)0,&g_966,&g_963[1],&g_963[0],&g_963[1]},{&g_966,(void*)0,&g_966,&g_963[1],&g_966,&g_963[0]},{&g_963[1],&g_963[0],(void*)0,&g_963[1],&g_963[1],(void*)0},{&g_966,&g_963[1],(void*)0,&g_963[1],&g_963[1],(void*)0},{&g_963[1],&g_966,&g_963[1],&g_963[1],&g_966,&g_963[1]}},{{&g_966,(void*)0,&g_966,&g_966,(void*)0,(void*)0},{&g_963[1],&g_966,&g_963[0],&g_963[1],&g_963[1],(void*)0},{&g_963[1],&g_963[0],&g_963[1],&g_966,&g_963[1],&g_963[0]},{&g_966,(void*)0,&g_966,&g_963[1],(void*)0,&g_966},{&g_963[1],&g_963[1],(void*)0,(void*)0,(void*)0,&g_966},{&g_963[1],&g_966,&g_963[1],&g_963[1],(void*)0,&g_966},{&g_966,(void*)0,&g_963[0],(void*)0,&g_963[0],&g_966},{&g_963[1],&g_963[1],&g_963[0],&g_966,&g_963[1],(void*)0}},{{&g_963[0],&g_963[1],&g_963[1],&g_963[1],&g_963[0],&g_963[1]},{&g_963[1],&g_963[1],(void*)0,&g_966,&g_966,&g_966},{&g_963[1],(void*)0,&g_963[1],&g_963[1],&g_963[1],&g_966},{&g_963[1],&g_966,(void*)0,&g_963[1],&g_963[1],&g_963[1]},{&g_963[1],&g_966,&g_963[1],&g_966,(void*)0,(void*)0},{&g_963[1],&g_963[0],&g_963[0],&g_966,&g_963[0],&g_966},{&g_963[1],&g_963[1],&g_963[0],&g_966,&g_963[0],&g_966},{(void*)0,&g_963[1],&g_963[1],(void*)0,&g_963[1],&g_966}},{{&g_963[1],(void*)0,(void*)0,&g_963[1],&g_966,&g_966},{(void*)0,&g_966,&g_966,(void*)0,&g_966,&g_963[0]},{(void*)0,&g_963[1],&g_963[1],(void*)0,&g_966,(void*)0},{&g_963[1],(void*)0,&g_963[0],&g_963[1],&g_966,(void*)0},{&g_966,&g_963[1],&g_966,(void*)0,&g_966,&g_963[1]},{(void*)0,&g_966,&g_963[1],(void*)0,&g_966,(void*)0},{&g_966,(void*)0,&g_963[1],&g_963[0],&g_963[1],&g_966},{&g_966,&g_963[1],(void*)0,&g_966,&g_963[0],&g_963[0]}}};
              int32_t l_1102[2][8][9] = {{{0x9FF830FFL,0L,1L,0xB8EA3862L,0xB8EA3862L,1L,0L,0x9FF830FFL,3L},{0x8DE65D77L,0x74CD53E1L,(-1L),8L,0x74CD53E1L,0L,0xC9F1223EL,0x8DE65D77L,(-1L)},{1L,0L,3L,1L,0x9FF830FFL,0xAB406C58L,0x9FF830FFL,1L,3L},{0L,0L,0x12346FA4L,0x74CD53E1L,0L,(-1L),0xC9F1223EL,0L,0x5A81F7B0L},{0L,1L,(-1L),(-1L),(-8L),0L,(-3L),(-3L),0L},{(-1L),0xCB817F70L,0L,0xCB817F70L,(-1L),0xC9F1223EL,0xAD2AE36CL,(-1L),0xB5578C9DL},{(-3L),(-8L),0x28E55664L,0L,0xD8B5F469L,0x9FF830FFL,0L,(-3L),(-8L)},{0xD293433DL,(-1L),0xC9F1223EL,1L,1L,0xC9F1223EL,(-1L),0xD293433DL,0x74CD53E1L}},{{0x23780975L,(-1L),0xB8EA3862L,0L,(-1L),0L,0xD8B5F469L,0x23780975L,0x3454DFF0L},{0xCB817F70L,(-1L),0x74CD53E1L,0xCB817F70L,0xD293433DL,8L,0xD293433DL,0xCB817F70L,0x74CD53E1L},{(-8L),(-8L),0x9FF830FFL,(-1L),(-6L),0x3454DFF0L,0xD8B5F469L,(-8L),(-8L)},{(-1L),0xCB817F70L,0L,(-1L),0xD293433DL,0xB5578C9DL,(-1L),(-1L),0xB5578C9DL},{(-1L),0x23780975L,0x9FF830FFL,0x23780975L,(-1L),0xB8EA3862L,0L,(-1L),0L},{(-1L),0xD293433DL,0x74CD53E1L,0xAD2AE36CL,1L,0L,0xAD2AE36CL,(-1L),0L},{(-8L),(-3L),0xB8EA3862L,0xD8B5F469L,0xD8B5F469L,0xB8EA3862L,(-3L),(-8L),0x28E55664L},{0xCB817F70L,(-1L),0xC9F1223EL,0xAD2AE36CL,(-1L),0xB5578C9DL,1L,0xCB817F70L,8L}}};
              uint32_t *l_1143[5][7][6] = {{{&l_1109,&g_1095,(void*)0,(void*)0,&l_1109,&g_1095},{(void*)0,&g_1095,&g_194,&l_1109,&g_194,&l_1109},{&l_1109,&l_1109,&l_1109,&g_1095,&g_194,&g_1095},{&g_194,&g_194,&g_194,&l_1109,&l_1109,&g_194},{&g_194,&l_1109,(void*)0,&l_1109,&g_194,&g_1095},{&g_194,&g_1095,&g_194,&g_1095,&g_194,&g_1095},{&l_1109,(void*)0,&g_194,&l_1109,&g_194,&g_1095}},{{(void*)0,&l_1109,(void*)0,(void*)0,&l_1109,&g_1095},{&l_1109,&g_1095,&g_194,&l_1109,&g_194,&g_1095},{&l_1109,&l_1109,&g_194,&g_194,&g_194,&g_1095},{&l_1109,(void*)0,(void*)0,&g_1095,&l_1109,&g_194},{(void*)0,(void*)0,&g_194,&g_1095,&g_194,&g_1095},{&l_1109,&l_1109,&l_1109,(void*)0,&g_194,&l_1109},{&g_194,&g_1095,&g_194,&g_194,&l_1109,&g_1095}},{{&g_194,&l_1109,&g_194,&l_1109,&l_1109,&g_1095},{&l_1109,&g_1095,&g_194,&g_1095,&l_1109,(void*)0},{(void*)0,&l_1109,&l_1109,&l_1109,&l_1109,&g_194},{&g_194,&g_1095,&g_194,&l_1109,(void*)0,&g_194},{&g_194,(void*)0,&l_1109,&l_1109,&l_1109,(void*)0},{(void*)0,&g_194,&g_194,&l_1109,&g_194,&g_1095},{&g_194,&l_1109,&g_194,&g_1095,&g_194,&g_1095}},{{&g_194,&l_1109,(void*)0,&g_194,&g_194,&g_194},{(void*)0,&g_194,(void*)0,&l_1109,&l_1109,&l_1109},{&l_1109,(void*)0,(void*)0,&l_1109,(void*)0,(void*)0},{&l_1109,&g_1095,&g_194,&l_1109,&l_1109,&l_1109},{&l_1109,&l_1109,&g_194,&l_1109,&l_1109,&g_1095},{(void*)0,&g_1095,&l_1109,&g_194,&l_1109,&l_1109},{&g_194,&g_194,&g_194,&g_1095,(void*)0,&l_1109}},{{&g_194,&g_1095,&l_1109,&l_1109,&l_1109,&g_1095},{(void*)0,&g_1095,&g_194,&l_1109,&g_194,&l_1109},{&g_194,&g_1095,&g_194,&l_1109,&g_194,(void*)0},{&g_194,&g_1095,(void*)0,&l_1109,&g_194,&l_1109},{(void*)0,&g_1095,(void*)0,&g_1095,&l_1109,&g_194},{&l_1109,&g_1095,(void*)0,&l_1109,(void*)0,&g_1095},{&l_1109,&g_194,&g_194,&l_1109,&l_1109,&g_1095}}};
              int8_t l_1215[5][5] = {{0x6DL,0x6DL,0x72L,0x6DL,0x6DL},{0xB3L,1L,0xB3L,0xB3L,1L},{0x6DL,4L,4L,0x6DL,4L},{1L,1L,0L,1L,1L},{4L,0x6DL,4L,4L,0x6DL}};
              int i, j, k;
              l_1038 = func_28(g_15[7][2][0]);
              for (g_514 = 2; (g_514 <= 7); g_514 += 1)
              { /* block id: 465 */
                  uint64_t *l_1055 = &g_484;
                  uint64_t *l_1056 = &g_1057;
                  int32_t l_1058 = (-10L);
                  uint32_t *l_1062 = &g_194;
                  const int16_t *l_1063 = &g_972[0][0];
                  int16_t *l_1064[1][4] = {{&g_972[3][0],&g_972[3][0],&g_972[3][0],&g_972[3][0]}};
                  int64_t * const **l_1093[10];
                  int32_t l_1104 = (-1L);
                  int32_t l_1121 = 0x3DF96178L;
                  uint32_t l_1122[8][7][2] = {{{4294967289UL,4294967286UL},{4294967286UL,4294967289UL},{4294967286UL,4294967286UL},{4294967289UL,4294967286UL},{4294967286UL,4294967289UL},{4294967286UL,4294967286UL},{4294967289UL,4294967286UL}},{{4294967286UL,4294967289UL},{4294967286UL,4294967286UL},{4294967289UL,4294967286UL},{4294967286UL,4294967289UL},{4294967286UL,4294967286UL},{4294967289UL,4294967286UL},{4294967286UL,4294967289UL}},{{4294967286UL,4294967286UL},{4294967289UL,4294967286UL},{4294967286UL,4294967289UL},{4294967286UL,4294967286UL},{4294967289UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL}},{{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL}},{{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL}},{{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL}},{{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL}},{{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL},{4294967289UL,4294967289UL},{1UL,4294967289UL},{4294967289UL,1UL}}};
                  uint64_t l_1137 = 5UL;
                  int32_t *l_1142 = &l_1104;
                  uint32_t l_1161[3][1];
                  uint64_t l_1174 = 0x8550976710A9DAACLL;
                  int16_t l_1185 = (-1L);
                  int32_t l_1186 = 0x583F2945L;
                  int8_t *l_1191[4];
                  int32_t l_1212 = 0xECA6D9F1L;
                  int32_t l_1213 = 0x448FAF93L;
                  int32_t l_1216[5] = {0L,0L,0L,0L,0L};
                  int i, j, k;
                  for (i = 0; i < 10; i++)
                      l_1093[i] = (void*)0;
                  for (i = 0; i < 3; i++)
                  {
                      for (j = 0; j < 1; j++)
                          l_1161[i][j] = 0UL;
                  }
                  for (i = 0; i < 4; i++)
                      l_1191[i] = (void*)0;
                  (*p_9) &= (g_378[0][6] , ((((l_1065 = (((***g_725) = ((((((*l_1062) = (p_5 , ((safe_mul_func_int16_t_s_s((*g_397), (l_1061 = ((safe_mod_func_uint16_t_u_u(((((void*)0 == &g_25) & (safe_mod_func_int16_t_s_s((**g_396), (safe_lshift_func_int8_t_s_s((safe_rshift_func_int8_t_s_u((((safe_mod_func_int16_t_s_s(l_1051, (+(((p_5 && ((*l_1056) &= ((*l_1055) ^= (g_196[g_152]++)))) < l_1058) <= 0x2B66C125L)))) & (***g_248)) , (**g_249)), l_1058)), l_1059[9][3]))))) >= l_1060), 7UL)) >= 0UL)))) != 0xC253L))) == (*l_1038)) , l_1063) != l_1063) == (*l_1038))) | p_5)) && 65535UL) <= 0xF04AL) == 0UL));
                  if ((*l_1038))
                  { /* block id: 474 */
                      uint8_t l_1066[6][9] = {{0xEAL,0xEAL,0UL,0UL,252UL,0UL,1UL,1UL,1UL},{0UL,0x64L,250UL,250UL,0x64L,0UL,9UL,253UL,0xFBL},{1UL,0UL,0UL,1UL,250UL,250UL,1UL,0UL,0UL},{0x64L,255UL,0UL,255UL,0x58L,0x51L,9UL,9UL,0x51L},{0xDFL,0UL,0xD4L,0UL,0xDFL,0xC9L,1UL,0xEAL,1UL},{0x4EL,255UL,255UL,0xABL,253UL,0xABL,255UL,255UL,0x4EL}};
                      int64_t ***l_1091[4] = {&g_963[0],&g_963[0],&g_963[0],&g_963[0]};
                      int64_t ****l_1090[5][1] = {{&l_1091[0]},{&l_1091[1]},{&l_1091[0]},{&l_1091[1]},{&l_1091[0]}};
                      uint32_t *l_1094 = &g_1095;
                      int i, j;
                      l_1066[4][5]++;
                      for (g_119 = 2; (g_119 >= 0); g_119 -= 1)
                      { /* block id: 478 */
                          uint32_t *l_1071 = &g_470;
                          int i, j;
                          (*p_9) = (((safe_rshift_func_int16_t_s_s(g_60[g_152][g_119], 7)) & (((l_1071 = (void*)0) == &p_5) > p_5)) , (safe_unary_minus_func_uint8_t_u((*g_59))));
                      }
                      (*p_9) &= (((*l_1094) = ((safe_div_func_int32_t_s_s((((5UL || ((void*)0 != &g_196[g_152])) < ((l_1058 ^= (((safe_lshift_func_uint16_t_u_u(1UL, 0)) != (safe_add_func_uint64_t_u_u(l_1061, p_5))) , (safe_div_func_uint8_t_u_u((!((*l_1062) = (safe_sub_func_uint64_t_u_u(g_393, (safe_lshift_func_int16_t_s_u((safe_rshift_func_uint8_t_u_u((safe_div_func_int16_t_s_s(((l_1092[2][6][5] = (void*)0) != l_1093[4]), 0xEF41L)), p_5)), 1)))))), 0x8EL)))) < 2UL)) ^ g_106[2]), g_378[1][8])) , p_5)) > (*p_7));
                  }
                  else
                  { /* block id: 487 */
                      int32_t **l_1096 = &g_1035[0];
                      int32_t l_1101 = 2L;
                      int32_t l_1105 = 0x324F6C19L;
                      int32_t l_1106 = (-9L);
                      int16_t l_1107 = 0x261DL;
                      int32_t *l_1125 = &l_1121;
                      int32_t *l_1126 = &g_49;
                      int32_t *l_1127 = &l_1102[0][6][8];
                      int32_t *l_1128 = &g_378[1][9];
                      int32_t *l_1129 = (void*)0;
                      int32_t *l_1130 = (void*)0;
                      int32_t *l_1131 = &l_1108;
                      int32_t *l_1132 = (void*)0;
                      int32_t *l_1133 = &g_378[0][1];
                      int32_t *l_1134 = (void*)0;
                      int32_t *l_1135[4];
                      int i;
                      for (i = 0; i < 4; i++)
                          l_1135[i] = (void*)0;
                      (*g_2) = ((*p_9) &= (0xB176L & p_5));
                      if (((*p_7) == (((*l_1096) = &g_49) != (void*)0)))
                      { /* block id: 491 */
                          int32_t *l_1097 = &g_1036;
                          int32_t *l_1098[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
                          int i;
                          --l_1109;
                      }
                      else
                      { /* block id: 493 */
                          int32_t *l_1112 = &l_1100;
                          int32_t *l_1113 = &g_1036;
                          int32_t l_1114 = (-1L);
                          int32_t *l_1115 = (void*)0;
                          int32_t *l_1116 = &g_378[1][5];
                          int32_t *l_1117 = &l_1104;
                          int32_t *l_1118 = &g_20;
                          int32_t *l_1119[6];
                          int32_t l_1120[3][8][1] = {{{0x9E563F0DL},{3L},{(-2L)},{3L},{0x9E563F0DL},{(-9L)},{0x9E563F0DL},{3L}},{{(-2L)},{3L},{0x9E563F0DL},{(-9L)},{0x9E563F0DL},{3L},{(-2L)},{3L}},{{0x9E563F0DL},{(-9L)},{0x9E563F0DL},{3L},{(-2L)},{3L},{0x9E563F0DL},{(-9L)}}};
                          int i, j, k;
                          for (i = 0; i < 6; i++)
                              l_1119[i] = &l_1059[0][0];
                          g_826[2][2][1] = p_7;
                          (*g_2) &= 0x4DD3EBB8L;
                          --l_1122[3][4][1];
                      }
                      l_1137--;
                      (*l_1096) = p_6;
                  }
                  for (l_1104 = 0; (l_1104 <= 2); l_1104 += 1)
                  { /* block id: 503 */
                      int32_t **l_1140 = (void*)0;
                      (*g_1141) = p_9;
                      (*p_9) = (p_5 && (((*l_1038) <= (0xC6C5086DCACCC8CFLL > 3UL)) != (*p_9)));
                  }
                  for (l_1051 = 0; (l_1051 <= 1); l_1051 += 1)
                  { /* block id: 509 */
                      uint64_t l_1159 = 0UL;
                      uint32_t ** const l_1170 = &l_1143[2][2][3];
                      for (g_194 = 0; (g_194 <= 1); g_194 += 1)
                      { /* block id: 512 */
                          (*g_1141) = p_9;
                      }
                      if (l_1059[6][0])
                          break;
                      for (g_543 = 1; (g_543 >= 0); g_543 -= 1)
                      { /* block id: 518 */
                          l_1142 = &l_1108;
                          (*p_6) = ((p_5 <= ((*l_1037) = ((void*)0 != l_1143[0][6][5]))) , l_1051);
                      }
                      if ((*p_9))
                      { /* block id: 523 */
                          uint8_t l_1146 = 2UL;
                          int32_t l_1147[2][5];
                          uint16_t *l_1157[2];
                          int32_t *l_1160[1];
                          int i, j;
                          for (i = 0; i < 2; i++)
                          {
                              for (j = 0; j < 5; j++)
                                  l_1147[i][j] = 0xBA6D6391L;
                          }
                          for (i = 0; i < 2; i++)
                              l_1157[i] = &g_178[4];
                          for (i = 0; i < 1; i++)
                              l_1160[i] = (void*)0;
                          l_1159 = ((((g_178[1] = ((p_5 || g_106[2]) , ((safe_sub_func_uint16_t_u_u(0xD635L, ((*l_1038) >= (((((((l_1147[1][2] = (l_1146 = (l_1059[9][3] = (0L && 255UL)))) && ((+(((safe_add_func_uint32_t_u_u(((*l_1062) = ((((**g_726) , (safe_rshift_func_uint16_t_u_u(((l_1059[9][3] = (safe_div_func_int64_t_s_s((safe_add_func_int8_t_s_s((p_5 , p_5), p_5)), p_5))) > l_1136), 6))) <= p_5) , l_1060)), l_1158)) , 1L) && p_5)) <= (*l_1038))) == 0xC8L) >= p_5) , (*l_1142)) >= g_378[0][1]) || 0x3170BED2L)))) <= p_5))) , g_395[3][0]) , p_5) >= p_5);
                          if ((*l_1038))
                              continue;
                          l_1161[1][0]++;
                      }
                      else
                      { /* block id: 533 */
                          (*g_2) = ((p_5 <= p_5) > (safe_add_func_uint64_t_u_u(((0xC773BBDCA926C7CDLL || (!(!(((safe_sub_func_int64_t_s_s((l_1170 != (void*)0), (safe_add_func_uint8_t_u_u(((((**g_396) &= (+p_5)) != ((l_1174 > ((g_395[2][0] , ((((((((p_5 , p_5) , 0x27L) , 1UL) , (*l_1038)) || 18446744073709551613UL) < p_5) <= (*p_7)) , p_5)) , 0xC0L)) || (*p_9))) && 0L), p_5)))) == l_1102[0][6][0]) || p_5)))) || 0x0618DFF99A0EEDE3LL), 1L)));
                      }
                  }
                  for (g_119 = 0; (g_119 <= 2); g_119 += 1)
                  { /* block id: 540 */
                      int8_t l_1181 = 0xFDL;
                      int32_t l_1182 = (-6L);
                      int32_t l_1183 = 0L;
                      int32_t l_1184 = 1L;
                      int32_t l_1187 = 0x2574C869L;
                      int64_t **l_1205 = (void*)0;
                      int64_t *** const l_1204 = &l_1205;
                      int64_t *** const *l_1203 = &l_1204;
                      int32_t l_1211 = 1L;
                      int32_t l_1214 = (-4L);
                      int32_t l_1217[10] = {0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L,0x5CCAEAE3L};
                      uint8_t l_1224 = 0x13L;
                      int i;
                      if (l_1158)
                          break;
                      for (l_1061 = 0; (l_1061 <= 1); l_1061 += 1)
                      { /* block id: 544 */
                          int32_t *l_1175 = &l_1108;
                          int32_t *l_1176 = &l_1059[9][3];
                          int32_t *l_1177 = &g_1036;
                          int32_t *l_1178 = &l_1102[0][7][4];
                          int32_t *l_1179 = &l_1136;
                          int32_t *l_1180[9][8] = {{&l_1103,&l_1065,&l_1102[1][6][5],&l_1104,&g_20,&l_1102[1][6][5],(void*)0,&l_1102[1][6][5]},{&g_378[1][9],&l_1104,(void*)0,&l_1102[1][6][5],&g_20,&l_1104,&l_1102[1][6][5],&l_1065},{&l_1102[0][7][4],&g_20,&g_152,&g_49,&l_1102[1][6][5],&l_1102[0][7][4],&l_1102[0][7][4],&l_1102[1][6][5]},{&l_1108,&g_152,&g_152,&l_1108,&l_1104,&g_378[1][9],&l_1102[1][6][5],&g_152},{&l_1102[1][6][5],(void*)0,(void*)0,&l_1065,(void*)0,&l_1103,(void*)0,&l_1065},{&g_378[1][9],(void*)0,&g_378[1][9],&g_152,&l_1102[1][6][5],&g_378[1][9],&l_1104,&l_1108},{&g_20,&g_152,&g_49,&l_1102[1][6][5],&l_1102[0][7][4],&l_1102[0][7][4],&l_1102[1][6][5],&g_49},{&g_20,&g_20,&l_1103,&l_1065,&l_1102[1][6][5],&l_1104,&g_20,&l_1102[1][6][5]},{&g_378[1][9],&l_1102[1][6][5],&g_152,&g_378[1][9],(void*)0,&g_378[1][9],&g_152,&l_1102[1][6][5]}};
                          uint16_t ***l_1199 = (void*)0;
                          uint16_t ****l_1198 = &l_1199;
                          int64_t *** const **l_1202[2][10][2] = {{{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200}},{{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200},{&l_1200,&l_1200}}};
                          int i, j, k;
                          --l_1188;
                          g_826[2][2][1] = func_28(g_196[4]);
                          (*l_1178) = ((l_1191[0] != (void*)0) & (((safe_lshift_func_int16_t_s_s(((safe_rshift_func_int16_t_s_s(((safe_sub_func_uint64_t_u_u((((*l_1198) = (void*)0) == (void*)0), 0xF71B420F2752BF40LL)) && ((l_1203 = l_1200) != ((255UL ^ ((((*g_59) == 0xE6L) , 0x0385D272A1D610D6LL) == l_1060)) , (void*)0))), (*g_397))) == (*l_1038)), p_5)) , (**g_725)) != &l_1158));
                      }
                      for (g_1057 = 0; (g_1057 <= 1); g_1057 += 1)
                      { /* block id: 553 */
                          int32_t *l_1208[2];
                          int i;
                          for (i = 0; i < 2; i++)
                              l_1208[i] = &l_1183;
                          --l_1224;
                          (*p_6) = (*p_9);
                          if ((*p_6))
                              continue;
                          l_1038 = func_36(&g_78[1][3], l_1224);
                      }
                  }
              }
          }
          if ((*l_1038))
          { /* block id: 562 */
              int64_t l_1231 = 0x9A0818B68CA47F0ELL;
              int32_t l_1247 = 1L;
              int32_t l_1250 = 8L;
              uint8_t l_1253 = 0x67L;
              int32_t l_1258 = 0xA30EDE89L;
              int32_t l_1260 = (-9L);
              int32_t l_1261 = 0L;
              int32_t l_1263 = 0x3FDB4B1AL;
              int32_t l_1264 = 0L;
              uint16_t *l_1282 = &g_178[2];
              uint16_t **l_1281 = &l_1282;
              const int32_t *l_1306 = &l_1210;
              int8_t l_1312 = 0xFDL;
              if ((l_1059[9][3] &= (*l_1038)))
              { /* block id: 564 */
                  const uint32_t l_1232 = 0xB5A1B400L;
                  uint8_t *l_1239 = &g_446;
                  int32_t l_1242[7] = {0xA45DDB0EL,0x56C1D73EL,0xA45DDB0EL,0xA45DDB0EL,0x56C1D73EL,0xA45DDB0EL,0xA45DDB0EL};
                  int64_t *l_1268 = &g_643;
                  int32_t *l_1294 = (void*)0;
                  int32_t *l_1295[6][1] = {{&l_1223},{&l_1223},{&l_1263},{&l_1223},{&l_1223},{&l_1263}};
                  int32_t l_1296 = 7L;
                  uint32_t l_1297 = 0x838A4DF2L;
                  int i, j;
                  if ((safe_mul_func_uint16_t_u_u(0UL, (l_1231 & (((0xBF962444L & (*l_1038)) | (((((**g_726) = (l_1232 == (((*l_1239) = (safe_rshift_func_int16_t_s_u((l_1235 != (void*)0), (((safe_rshift_func_uint16_t_u_s(l_1158, (p_5 , (*l_1038)))) < p_5) != p_5)))) != (-10L)))) ^ 0xA213L) , p_5) >= p_5)) < l_1109)))))
                  { /* block id: 567 */
                      int8_t l_1245 = 0xE1L;
                      int32_t l_1246 = 6L;
                      int32_t l_1248 = 0xF383749DL;
                      int32_t l_1251 = 0xC7F3D33CL;
                      for (g_119 = 0; (g_119 != 1); ++g_119)
                      { /* block id: 570 */
                          int32_t *l_1243 = (void*)0;
                          int32_t *l_1244[1];
                          int i;
                          for (i = 0; i < 1; i++)
                              l_1244[i] = &l_1099;
                          l_1253--;
                      }
                      (*g_1256) = p_9;
                      return p_8;
                  }
                  else
                  { /* block id: 575 */
                      int32_t *l_1257[5] = {&l_1250,&l_1250,&l_1250,&l_1250,&l_1250};
                      int32_t **l_1292 = &g_78[1][3];
                      int i;
                      ++l_1265;
                      if (((((void*)0 == l_1268) | (247UL >= (((safe_mul_func_int16_t_s_s((~((*l_1282) = ((((((safe_mod_func_int32_t_s_s(((+((safe_sub_func_int8_t_s_s(((l_1109 > (l_1250 = (p_5 , p_5))) , (***g_248)), (safe_div_func_int64_t_s_s(((void*)0 == l_1281), p_5)))) <= 1L)) , (*l_1038)), g_25)) < g_607) <= g_220[3][3]) >= (*p_7)) & g_514) != 0UL))), l_1059[2][2])) >= (-9L)) <= 65526UL))) , (*p_7)))
                      { /* block id: 579 */
                          uint32_t l_1284[7];
                          int i;
                          for (i = 0; i < 7; i++)
                              l_1284[i] = 18446744073709551610UL;
                          l_1284[0]++;
                      }
                      else
                      { /* block id: 581 */
                          return p_9;
                      }
                      for (l_1253 = 0; (l_1253 == 11); ++l_1253)
                      { /* block id: 586 */
                          uint32_t l_1289 = 1UL;
                          l_1289--;
                          if ((*p_6))
                              continue;
                      }
                      (*l_1292) = &l_1100;
                  }
                  (*g_1293) = p_9;
                  l_1297++;
              }
              else
              { /* block id: 594 */
                  int16_t l_1307 = 0xAAE2L;
                  for (l_1221 = 2; (l_1221 <= 6); l_1221 += 1)
                  { /* block id: 597 */
                      int i;
                      if (l_1259[l_1221])
                          break;
                  }
                  for (l_1253 = 0; (l_1253 > 43); l_1253 = safe_add_func_int8_t_s_s(l_1253, 2))
                  { /* block id: 602 */
                      const int32_t **l_1305 = &g_826[2][2][0];
                      for (l_1108 = 0; (l_1108 >= 27); ++l_1108)
                      { /* block id: 605 */
                          uint32_t l_1304 = 0xE350F3AEL;
                          if (l_1304)
                              break;
                      }
                      l_1306 = ((*l_1305) = &l_1108);
                      l_1307 = (*p_6);
                  }
              }
              (*p_9) |= (safe_div_func_int8_t_s_s((((safe_div_func_uint32_t_u_u(((*p_7) && l_1312), (~(-1L)))) && ((l_1210 = 0xDFD0128C4D9436DELL) <= (safe_add_func_uint64_t_u_u((safe_mod_func_uint16_t_u_u(((safe_sub_func_int32_t_s_s(((((((l_1059[9][3] , l_1136) , l_1136) ^ g_394) , g_643) & 18446744073709551615UL) & p_5), 0UL)) & (*l_1038)), 0xABFEL)), g_220[4][3])))) && (*l_1306)), g_484));
          }
          else
          { /* block id: 615 */
              int32_t l_1320 = 0L;
              int32_t *l_1321 = &g_378[1][3];
              int32_t *l_1322 = &g_152;
              int32_t *l_1323 = (void*)0;
              int32_t *l_1324 = &l_1220;
              int32_t *l_1325 = (void*)0;
              int32_t *l_1326[6] = {&l_1136,&l_1218,&l_1136,&l_1136,&l_1218,&l_1136};
              int32_t **l_1330 = &l_1325;
              int i;
              l_1327++;
              (*g_1331) = ((*l_1330) = &l_1223);
              l_1332 = ((*p_6) = 3L);
          }
          ++l_1335;
      }
      else
      { /* block id: 623 */
          uint64_t l_1343 = 0x89E8C2DF95632405LL;
          uint8_t *l_1350 = (void*)0;
          uint8_t *l_1351 = &g_106[2];
          int32_t l_1353 = 0x319D5EA8L;
          int32_t *l_1354 = &l_1249;
          uint32_t *l_1360 = &g_1095;
          int64_t *l_1365 = &l_1283;
          int8_t *l_1368 = &g_148;
          int8_t **l_1367 = &l_1368;
          int32_t l_1434 = (-7L);
          int32_t l_1437[4];
          uint16_t *l_1470[5] = {&l_1335,&l_1335,&l_1335,&l_1335,&l_1335};
          uint32_t l_1479 = 0x9A93E74EL;
          int64_t l_1484[10] = {0L,5L,0L,5L,0L,5L,0L,5L,0L,5L};
          int32_t l_1529[10][2] = {{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL},{0L,0xF7ECA14BL}};
          int32_t *** const l_1593 = (void*)0;
          int32_t l_1751 = 8L;
          int32_t l_1756 = 1L;
          const int32_t *l_1839 = &l_1437[0];
          int8_t l_1856 = 0x10L;
          int8_t l_1917 = 0L;
          int i, j;
          for (i = 0; i < 4; i++)
              l_1437[i] = 0x39C8D2C8L;
  lbl_1679:
          (*g_2) = (safe_add_func_int8_t_s_s((0xD6L == l_1059[9][3]), ((+0x9C3F56E9C45B9C35LL) == (safe_mul_func_uint8_t_u_u((((***g_725) > ((0x8AL && ((*l_1351) = (l_1343 || (safe_mul_func_uint8_t_u_u((safe_add_func_uint64_t_u_u((((l_1348[1] == (void*)0) && p_5) , p_5), l_1343)), 7UL))))) >= 0xA1F439E28A188F0FLL)) ^ l_1343), l_1343)))));
          if (((((*l_1367) = func_79(l_1366, p_5, p_5)) != (*g_249)) ^ 255UL))
          { /* block id: 632 */
              uint16_t ***l_1379[5][1][5];
              int32_t l_1383 = 1L;
              int64_t * const * const l_1384 = (void*)0;
              int64_t l_1403 = 0xEC747D21BAB3FC1BLL;
              int32_t *l_1404 = &g_20;
              int32_t l_1435 = 5L;
              int32_t l_1436 = 9L;
              int32_t l_1438[8] = {(-1L),(-1L),(-1L),(-1L),(-1L),(-1L),(-1L),(-1L)};
              int8_t *l_1480 = &g_444;
              int i, j, k;
              for (i = 0; i < 5; i++)
              {
                  for (j = 0; j < 1; j++)
                  {
                      for (k = 0; k < 5; k++)
                          l_1379[i][j][k] = &g_1377;
                  }
              }
              (*p_6) ^= ((((safe_sub_func_int64_t_s_s(((*l_1365) &= 0x4DDFDF42B7A1D94ELL), ((safe_lshift_func_uint8_t_u_s(((safe_div_func_uint16_t_u_u((((***g_248) >= (safe_mod_func_int16_t_s_s(0xB47FL, l_1353))) , p_5), ((*g_397) = 1L))) , l_1343), (g_944[1] != (g_1377 = g_1377)))) | 1UL))) , 1UL) | p_5) && p_5);
              for (g_152 = 0; (g_152 >= 0); g_152 -= 1)
              { /* block id: 639 */
                  uint64_t l_1382[5] = {0xC9EC5A92E0968C40LL,0xC9EC5A92E0968C40LL,0xC9EC5A92E0968C40LL,0xC9EC5A92E0968C40LL,0xC9EC5A92E0968C40LL};
                  int32_t l_1429[9] = {0L,0x8EE92D44L,0L,0L,0x8EE92D44L,0L,0L,0x8EE92D44L,0L};
                  const uint16_t *l_1482 = &l_1335;
                  const uint16_t **l_1481 = &l_1482;
                  int i;
                  (*p_6) &= ((safe_add_func_uint32_t_u_u(p_5, g_251)) & (0UL < ((l_1382[0] | ((l_1383 || (&g_964[0][0][5] == (p_5 , l_1384))) <= ((((safe_add_func_uint16_t_u_u(0xDF30L, l_1382[2])) || l_1382[0]) || l_1382[3]) & g_220[5][6]))) , 4294967295UL)));
                  if (((*p_9) = (safe_mul_func_int16_t_s_s((+(l_1353 = (l_1383 | 1UL))), (((*g_397) = (((*l_1037) &= l_1390) , l_1343)) > (safe_div_func_uint16_t_u_u((((l_1383 >= (safe_mul_func_uint8_t_u_u((safe_div_func_uint64_t_u_u(((safe_div_func_uint8_t_u_u(((void*)0 == l_1037), (safe_mod_func_int32_t_s_s((safe_add_func_int16_t_s_s(p_5, (-1L))), 0xD1659965L)))) >= 1UL), p_5)), (*g_59)))) <= g_220[2][3]) > l_1382[0]), l_1343)))))))
                  { /* block id: 645 */
                      uint64_t l_1417 = 5UL;
                      uint32_t *l_1422 = &g_194;
                      for (g_643 = 3; (g_643 >= 0); g_643 -= 1)
                      { /* block id: 648 */
                          int i, j;
                          (*g_2) |= l_1403;
                          return l_1404;
                      }
                      (*p_9) |= (((1L ^ 0L) || (((((g_444 = (0x4B35C454L | (((*l_1360)--) <= ((safe_lshift_func_int8_t_s_s((safe_mod_func_int32_t_s_s(0x46910498L, ((*p_6) = (safe_rshift_func_uint8_t_u_s(6UL, 6))))), 5)) | l_1382[0])))) > l_1417) ^ (safe_sub_func_int64_t_s_s(((safe_add_func_int8_t_s_s((((p_5 < ((((*l_1422)--) < (((*l_1368) = (***g_248)) != 1UL)) | 65535UL)) ^ p_5) != g_1425), g_446)) , p_5), 18446744073709551615UL))) == g_484) , p_5)) <= 255UL);
                      p_6 = p_6;
                  }
                  else
                  { /* block id: 659 */
                      if ((*l_1404))
                      { /* block id: 660 */
                          int32_t *l_1426[9][1];
                          int i, j;
                          for (i = 0; i < 9; i++)
                          {
                              for (j = 0; j < 1; j++)
                                  l_1426[i][j] = &l_1390;
                          }
                          l_1426[5][0] = (void*)0;
                      }
                      else
                      { /* block id: 662 */
                          int16_t l_1427 = 0x3D93L;
                          (*p_9) = l_1427;
                      }
                  }
                  for (g_49 = 6; (g_49 >= 0); g_49 -= 1)
                  { /* block id: 668 */
                      int32_t l_1428 = 0xC6C2DDCBL;
                      int32_t l_1430[3];
                      int16_t l_1439 = 9L;
                      int i;
                      for (i = 0; i < 3; i++)
                          l_1430[i] = 0L;
                      for (p_5 = 0; (p_5 <= 6); p_5 += 1)
                      { /* block id: 671 */
                          int16_t l_1431[10][9] = {{1L,(-1L),0x7D35L,0x7D35L,(-1L),1L,1L,0xBE7EL,1L},{0L,0x7D35L,7L,0xA33EL,0x7D35L,0x83E5L,0x7132L,0x5663L,3L},{0L,0x20C8L,0x13DDL,0xA33EL,0x20C8L,(-1L),0x7132L,0x7D35L,0x7132L},{0L,0x5663L,0xA33EL,0xA33EL,0x5663L,0L,0x7132L,0x20C8L,1L},{0L,0x7D35L,7L,0xA33EL,0x7D35L,0x83E5L,0x7132L,0x5663L,3L},{0L,0x20C8L,0x13DDL,0xA33EL,0x20C8L,(-1L),0x7132L,0x7D35L,0x7132L},{0L,0x5663L,0xA33EL,0xA33EL,0x5663L,0L,0x7132L,0x20C8L,1L},{0L,0x7D35L,7L,0xA33EL,0x7D35L,0x83E5L,0x7132L,0x5663L,3L},{0L,0x20C8L,0x13DDL,0xA33EL,0x20C8L,(-1L),0x7132L,0x7D35L,0x7132L},{0L,0x5663L,0xA33EL,0xA33EL,0x5663L,0L,0x7132L,0x20C8L,1L}};
                          int32_t l_1432 = 1L;
                          int32_t l_1433[5][10] = {{(-5L),1L,(-5L),(-5L),1L,(-5L),(-5L),1L,(-5L),(-5L)},{1L,1L,(-1L),1L,1L,(-1L),1L,1L,(-1L),1L},{1L,(-5L),(-5L),1L,(-5L),(-5L),1L,(-5L),(-5L),1L},{(-5L),1L,(-5L),(-5L),1L,(-5L),(-5L),1L,(-5L),(-5L)},{1L,1L,(-1L),1L,1L,(-1L),1L,1L,(-1L),1L}};
                          int i, j;
                          if ((*l_1404))
                              break;
                          (*p_9) |= l_1428;
                          --l_1440;
                          (*g_2) = (-8L);
                      }
                      for (l_1390 = 0; (l_1390 <= 6); l_1390 += 1)
                      { /* block id: 679 */
                          uint16_t l_1443 = 1UL;
                          uint16_t l_1448 = 0UL;
                          const int16_t *l_1476 = &g_15[1][2][0];
                          const int16_t **l_1475 = &l_1476;
                          uint32_t *l_1483 = &l_1265;
                          int32_t l_1485 = 0x89DA4D28L;
                          int i;
                          l_1443++;
                          (*g_2) = (l_1448 = ((--(*l_1351)) ^ (*g_250)));
                          (*p_9) = (l_1382[1] | 0xA30DL);
                          l_1485 = (l_1484[7] = ((*p_9) ^= ((1UL <= (((((*l_1483) = ((--(*l_1037)) || (((safe_add_func_int32_t_s_s((safe_sub_func_int32_t_s_s((((*l_1404) = ((((((((safe_sub_func_int16_t_s_s(((safe_lshift_func_uint8_t_u_u((safe_sub_func_uint16_t_u_u(((g_196[4] = (((safe_add_func_uint16_t_u_u((l_1429[4] = (safe_mul_func_uint8_t_u_u((*g_59), (safe_mul_func_uint8_t_u_u((((safe_unary_minus_func_uint32_t_u(((safe_mul_func_int16_t_s_s((g_1378[(g_152 + 5)] != l_1470[0]), ((safe_sub_func_uint32_t_u_u((l_1439 & ((*l_1365) = (((*g_396) = (*g_396)) != ((*l_1475) = &g_972[1][0])))), (safe_add_func_int16_t_s_s(p_5, ((void*)0 == g_888))))) || l_1343))) <= l_1430[2]))) && l_1479) < l_1479), l_1382[0]))))), 1L)) , 0UL) , p_5)) >= 1UL), p_5)), g_378[1][8])) >= g_972[1][0]), 65535UL)) == g_470) < l_1382[1]) == 5L) , (*l_1404)) , (void*)0) != l_1480) == l_1382[0])) | 0x2682L), 1UL)), g_827)) , l_1481) == &g_1378[3]))) , p_5) , l_1448) > 0x6A8139E8L)) < 0xA0L)));
                      }
                  }
              }
          }
          else
          { /* block id: 699 */
              uint64_t l_1491 = 0UL;
              int8_t l_1531 = 0x1FL;
              int32_t l_1533[2];
              int64_t l_1569[1];
              int32_t ***l_1611 = &g_77;
              int32_t *l_1632 = &l_1529[9][1];
              uint16_t l_1643 = 65535UL;
              int i;
              for (i = 0; i < 2; i++)
                  l_1533[i] = 5L;
              for (i = 0; i < 1; i++)
                  l_1569[i] = 6L;
          }
          if (l_1676)
          { /* block id: 795 */
              const uint16_t l_1701 = 0x15FFL;
              int32_t **l_1704 = &g_78[0][3];
              int32_t l_1727 = 1L;
              int32_t l_1729 = 1L;
              int32_t l_1757 = 0x89CEFF23L;
              int32_t l_1758 = 0x7E9BFDFFL;
              int32_t l_1760 = 0L;
              int32_t l_1761 = 5L;
              int32_t l_1764 = 0x948D0460L;
              int32_t l_1765 = 0x7134EB58L;
              int32_t l_1766[3];
              int32_t l_1769 = 0x2E182B70L;
              uint32_t l_1770[9] = {18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL,18446744073709551612UL};
              uint32_t l_1814 = 2UL;
              uint16_t l_1837 = 1UL;
              int i;
              for (i = 0; i < 3; i++)
                  l_1766[i] = 0xEEAF3077L;
              for (g_514 = 0; (g_514 >= 34); g_514++)
              { /* block id: 798 */
                  if (p_5)
                      goto lbl_1679;
              }
              (*p_9) &= (safe_rshift_func_int8_t_s_u((((((*l_1354) = g_231[0]) , (safe_rshift_func_uint8_t_u_s((safe_sub_func_uint32_t_u_u(p_5, ((safe_lshift_func_uint16_t_u_s(p_5, 5)) == ((safe_lshift_func_int8_t_s_s((safe_lshift_func_int8_t_s_u((((safe_div_func_uint16_t_u_u((4294967295UL == ((safe_div_func_uint32_t_u_u(p_5, (safe_mod_func_uint64_t_u_u(g_220[3][3], (safe_add_func_int16_t_s_s((((*l_1235) = (void*)0) != &g_963[1]), (l_1700 == (void*)0))))))) || 0xDFL)), (**g_1377))) <= p_5) <= g_392[1]), l_1701)), g_20)) | p_5)))), 1))) || 251UL) | p_5), l_1701));
              for (g_643 = 0; (g_643 <= 4); g_643 += 1)
              { /* block id: 806 */
                  int32_t ***l_1705 = &l_1704;
                  int32_t ****l_1722 = &l_1721;
                  uint16_t l_1728 = 0UL;
                  l_1729 |= ((*p_9) = ((safe_lshift_func_int8_t_s_s(((((-8L) >= p_5) , ((*l_1705) = l_1704)) != (void*)0), 0)) || ((*l_1360) = (safe_lshift_func_int8_t_s_u((((((safe_add_func_int32_t_s_s(0xFC6E6D5DL, (((safe_mod_func_int32_t_s_s((((((***l_1498) = 0x5270L) | (safe_lshift_func_int8_t_s_s(((((safe_mul_func_int16_t_s_s(((((l_1727 = (safe_add_func_int32_t_s_s((+((+((g_1720[0] = &g_44[7]) != ((*l_1722) = l_1721))) < (safe_mod_func_uint32_t_u_u((safe_mod_func_uint64_t_u_u(p_5, 0x01078682AF64F4D9LL)), (*p_6))))), p_5))) == p_5) >= p_5) < p_5), p_5)) ^ g_378[1][6]) < 1UL) , 0x61L), p_5))) > p_5) != p_5), (*p_7))) ^ 1UL) , l_1728))) , &l_1366) != &l_1350) != g_148) == g_178[2]), (*g_59))))));
                  return p_8;
              }
              if ((*g_2))
              { /* block id: 817 */
                  int32_t l_1734 = 0x6FB27978L;
                  int16_t *l_1746 = &g_119;
                  int64_t *l_1752[10][8] = {{&l_1484[2],(void*)0,&l_1484[2],&g_543,&g_543,&g_543,&g_543,&l_1484[2]},{&g_798,&g_798,&g_231[0],&l_1484[4],&g_798,(void*)0,&g_1570,&g_798},{(void*)0,&l_1484[2],&g_231[0],&g_543,&g_1570,&g_231[0],&l_1484[2],&g_798},{&l_1484[2],(void*)0,(void*)0,&l_1484[4],(void*)0,(void*)0,&l_1484[2],&l_1484[2]},{(void*)0,&l_1484[4],&l_1484[6],&g_543,&l_1484[4],&g_543,&g_1570,(void*)0},{&l_1484[7],(void*)0,&g_543,(void*)0,&l_1484[4],&g_231[0],&g_231[0],&l_1484[4]},{(void*)0,(void*)0,(void*)0,&l_1484[2],&l_1484[7],&l_1484[6],&g_643,(void*)0},{&l_1484[7],&g_643,&l_1484[4],&g_543,(void*)0,&g_798,&g_543,&l_1484[7]},{&l_1484[7],&g_643,&l_1484[6],&l_1484[6],(void*)0,&l_1484[6],&l_1484[6],&g_643},{&g_643,(void*)0,&g_231[0],(void*)0,&l_1484[6],&g_231[0],&l_1484[7],&l_1484[7]}};
                  uint32_t l_1753 = 4294967289UL;
                  int16_t *l_1754 = &g_972[3][0];
                  int32_t l_1755 = 0L;
                  int32_t l_1759 = 1L;
                  int32_t l_1762[1][8][1] = {{{1L},{0x62A0E08DL},{1L},{0x62A0E08DL},{1L},{0x62A0E08DL},{1L},{0x62A0E08DL}}};
                  int32_t l_1768[3][8][6] = {{{(-1L),0x1662504AL,0xF3778926L,(-1L),1L,0xA690CEC6L},{0x51E29474L,0x9AECF39CL,7L,0xDCE916D6L,(-1L),0xDCE916D6L},{0x1662504AL,0x84000755L,0x1662504AL,0x51E29474L,0xEA07C38BL,1L},{0xC52D9193L,(-1L),(-1L),0x9AECF39CL,(-1L),7L},{1L,0xA690CEC6L,0L,0x9AECF39CL,(-1L),0x51E29474L},{0xC52D9193L,(-9L),(-7L),0x51E29474L,0xA690CEC6L,0x9476AD18L},{0x1662504AL,0xEF7A3142L,0x53514631L,0xDCE916D6L,0xDCE916D6L,0x53514631L},{0x51E29474L,0x51E29474L,(-1L),(-1L),1L,0xEF7A3142L}},{{(-1L),0x53514631L,0x8C9B6D52L,0xEA07C38BL,7L,(-1L)},{7L,(-1L),0x8C9B6D52L,0L,0x51E29474L,0xEF7A3142L},{0x9AECF39CL,0L,(-1L),0x8C9B6D52L,0x9476AD18L,0x53514631L},{0x8C9B6D52L,0x9476AD18L,0x53514631L,0xF3778926L,0x53514631L,0x9476AD18L},{(-1L),0xEA07C38BL,(-7L),(-1L),0xEF7A3142L,0x51E29474L},{0xEF7A3142L,7L,0L,(-9L),(-1L),7L},{0xDCE916D6L,7L,(-1L),0xC52D9193L,0xEF7A3142L,1L},{0xF3778926L,0xEA07C38BL,0x1662504AL,0xEF7A3142L,0x53514631L,0xDCE916D6L}},{{0xA690CEC6L,0x9476AD18L,7L,7L,0x9476AD18L,0xA690CEC6L},{9L,0L,0xF3778926L,5L,0x51E29474L,(-1L)},{(-1L),(-1L),0xEF7A3142L,0x350E8F04L,7L,(-1L)},{(-1L),0x53514631L,0x350E8F04L,5L,1L,0xEA07C38BL},{9L,0x51E29474L,0x9AECF39CL,7L,0xDCE916D6L,(-1L)},{0xA690CEC6L,0xEF7A3142L,0x9476AD18L,0xEF7A3142L,0xA690CEC6L,1L},{0xF3778926L,(-9L),0xA690CEC6L,0xC52D9193L,(-1L),5L},{0xDCE916D6L,0xA690CEC6L,0xEA07C38BL,(-9L),(-1L),5L}}};
                  int i, j, k;
                  (*p_9) ^= (safe_lshift_func_uint8_t_u_u((safe_mul_func_int8_t_s_s((((l_1734 , (safe_lshift_func_uint8_t_u_s((safe_mod_func_uint32_t_u_u((~((safe_mod_func_int16_t_s_s(((void*)0 != p_6), 65535UL)) == ((*l_1754) |= (safe_mod_func_uint8_t_u_u(((l_1727 < (((safe_add_func_int64_t_s_s((l_1729 = ((*l_1365) = ((l_1746 != l_1470[3]) >= (safe_mul_func_int16_t_s_s(((*l_1746) = ((safe_lshift_func_int16_t_s_s(((((((((p_5 == 0x82L) <= 0UL) ^ g_20) || p_5) , l_1734) | 0xD1198A6CA7506441LL) < p_5) < (*p_7)), l_1751)) | 0x0F18L)), 0xADA8L))))), 0xAC39525EFD56FC47LL)) | 1L) == 6L)) , p_5), l_1753))))), (*p_6))), p_5))) < 0x4C2E904056643A88LL) ^ 5L), 0xC7L)), 1));
                  l_1770[5]--;
              }
              else
              { /* block id: 824 */
                  int32_t * const ***l_1781 = &g_1720[0];
                  int16_t *l_1836 = &g_972[0][0];
                  int32_t l_1838 = 0L;
                  for (g_643 = 0; (g_643 >= (-16)); g_643 = safe_sub_func_uint32_t_u_u(g_643, 8))
                  { /* block id: 827 */
                      int32_t l_1788[10] = {1L,0xCCC70894L,1L,1L,0xCCC70894L,1L,1L,0xCCC70894L,0xD7F80F96L,0xD7F80F96L};
                      int32_t l_1789[9][8][3] = {{{0xFF0F8293L,0xFF0F8293L,0x3BAB6A07L},{9L,0L,0xD122B7A4L},{(-8L),0xD122B7A4L,0x7860D24DL},{0xE10FD122L,0xEDB3EF78L,8L},{8L,(-8L),0x7860D24DL},{0x626EE6AFL,(-6L),0xD122B7A4L},{3L,0x0C1BB664L,0x3BAB6A07L},{0x0D739129L,0xC3C07D48L,0x626EE6AFL}},{{0x58C7EE2EL,(-1L),0x93653FEBL},{8L,(-7L),0L},{8L,0xFB077603L,0x1BCBF164L},{0x93653FEBL,0xFB077603L,0x5CFCA1A6L},{0L,(-7L),0x0C1BB664L},{0x7860D24DL,(-1L),8L},{0x4022B762L,0xC3C07D48L,0x4022B762L},{0xD2FB8DBCL,0x0C1BB664L,0x182DAF78L}},{{0x8E238D08L,(-6L),8L},{(-7L),(-8L),(-1L)},{(-9L),0xEDB3EF78L,0x3B1EE80FL},{(-7L),0xD122B7A4L,8L},{0x8E238D08L,0L,0xEDB3EF78L},{0xD2FB8DBCL,0xFF0F8293L,0x8E238D08L},{0x4022B762L,0x5CFCA1A6L,(-8L)},{0x7860D24DL,(-1L),0x1FA5B68AL}},{{0L,0xD2FB8DBCL,0x0D739129L},{0x93653FEBL,0x1FA5B68AL,0x0D739129L},{8L,8L,0x1FA5B68AL},{8L,0L,(-8L)},{0x58C7EE2EL,0x8E238D08L,0x8E238D08L},{0x0D739129L,0x626EE6AFL,0xEDB3EF78L},{3L,0x0D739129L,8L},{0x626EE6AFL,0x9D3E782DL,0x3B1EE80FL}},{{8L,9L,(-1L)},{0xE10FD122L,0x9D3E782DL,8L},{(-8L),0x0D739129L,0x182DAF78L},{9L,0x626EE6AFL,0x4022B762L},{0xFF0F8293L,0x8E238D08L,8L},{0L,0L,0x0C1BB664L},{0L,8L,0x5CFCA1A6L},{0xC3C07D48L,0x1FA5B68AL,0x1BCBF164L}},{{0xC3C07D48L,0xD2FB8DBCL,0L},{0L,(-1L),0x93653FEBL},{0L,0x5CFCA1A6L,0x626EE6AFL},{0xFF0F8293L,0xFF0F8293L,0x3BAB6A07L},{9L,0L,0xD122B7A4L},{(-8L),0xD122B7A4L,0x7860D24DL},{0xE10FD122L,0xEDB3EF78L,8L},{8L,(-8L),0x7860D24DL}},{{0x626EE6AFL,(-6L),0xD122B7A4L},{3L,0x0C1BB664L,0x3BAB6A07L},{0x0D739129L,0xC3C07D48L,0x626EE6AFL},{0x58C7EE2EL,(-1L),0x93653FEBL},{8L,(-7L),0L},{8L,0xFB077603L,0x1BCBF164L},{0x93653FEBL,0xFB077603L,0x5CFCA1A6L},{0L,(-7L),0x0C1BB664L}},{{0x7860D24DL,(-1L),8L},{0x4022B762L,0xC3C07D48L,0x4022B762L},{0xD2FB8DBCL,0x0C1BB664L,0x182DAF78L},{0x8E238D08L,(-6L),8L},{(-7L),(-8L),(-1L)},{(-9L),0xEDB3EF78L,0x3B1EE80FL},{(-7L),0xD122B7A4L,8L},{(-8L),0x93653FEBL,3L}},{{0xEDB3EF78L,(-1L),(-8L)},{0x0C1BB664L,(-1L),(-7L)},{0xD122B7A4L,(-6L),0x626EE6AFL},{0x182DAF78L,0xEDB3EF78L,8L},{0xD2FB8DBCL,0x626EE6AFL,8L},{8L,0L,0x626EE6AFL},{(-8L),0x4022B762L,(-7L)},{0L,(-8L),(-8L)}}};
                      const int32_t **l_1792 = (void*)0;
                      const int32_t **l_1793 = &g_826[2][2][1];
                      uint8_t *l_1810 = (void*)0;
                      uint8_t *l_1811 = (void*)0;
                      uint8_t *l_1812 = &g_64;
                      int i, j, k;
                      (*p_9) = ((safe_rshift_func_uint8_t_u_s(((!(safe_add_func_uint8_t_u_u((((*p_6) = (safe_unary_minus_func_int32_t_s((&g_1720[0] != l_1781)))) ^ ((-1L) && (safe_div_func_int8_t_s_s((p_5 , (safe_div_func_uint16_t_u_u(0UL, 2L))), ((*l_1368) ^= (safe_rshift_func_uint8_t_u_u((l_1788[3] = (((void*)0 == &g_460) , (((*g_59) , p_5) >= p_5))), p_5))))))), 0L))) & 0xDE3ED44C805D6D37LL), p_5)) > l_1789[8][6][0]);
                      (*p_9) = (safe_sub_func_uint64_t_u_u(((void*)0 == &g_460), p_5));
                      (*l_1793) = p_7;
                      (*p_6) |= ((safe_mul_func_int16_t_s_s(0L, (((g_15[2][3][0] == (safe_add_func_int16_t_s_s((***g_725), (safe_sub_func_int32_t_s_s((safe_div_func_int8_t_s_s(g_119, ((**l_1367) |= p_5))), (((*l_1360) ^= (p_5 > ((-3L) >= ((((((safe_lshift_func_uint16_t_u_s(p_5, (~(((safe_add_func_uint8_t_u_u(((*l_1812) |= (safe_rshift_func_uint16_t_u_s(((((p_5 | p_5) , g_119) , g_446) | 0x920F1E872CD9EAB3LL), l_1809[0][0]))), p_5)) & p_5) != p_5)))) && p_5) > l_1813) | p_5) > p_5) , g_220[3][3])))) == p_5)))))) != g_152) >= l_1529[9][1]))) >= l_1814);
                  }
                  (*g_1840) = (((*g_59) & ((((((*l_1836) ^= (safe_mod_func_int16_t_s_s((safe_mul_func_int16_t_s_s((g_543 ^ (safe_add_func_int16_t_s_s((safe_sub_func_int16_t_s_s((safe_div_func_int64_t_s_s(((safe_rshift_func_uint16_t_u_s((safe_mul_func_int16_t_s_s(((l_1829 < 0x44L) <= ((safe_mod_func_int8_t_s_s(g_1036, (safe_mod_func_uint32_t_u_u(p_5, ((p_5 , 0UL) || (safe_sub_func_uint64_t_u_u(((void*)0 != &g_1378[2]), p_5))))))) , 0xFCA2L)), 0xDAA2L)), (*g_397))) < p_5), 0x7F3E807E847AE9A2LL)), p_5)), p_5))), p_5)), p_5))) , 65531UL) <= l_1837) ^ 0xA136279742BAAC0ALL) != l_1838)) , l_1839);
              }
          }
          else
          { /* block id: 842 */
              int32_t *l_1843 = &l_1529[9][1];
              uint8_t * const l_1874 = &g_25;
              uint32_t ** const l_1881[8] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
              uint8_t l_1920 = 1UL;
              int i;
              for (g_194 = 0; (g_194 <= 0); g_194 += 1)
              { /* block id: 845 */
                  uint32_t l_1857 = 18446744073709551613UL;
                  uint8_t **l_1878 = &l_1351;
                  int16_t ****l_1891 = &l_1498;
                  uint32_t l_1897 = 0x11EABA26L;
                  int32_t l_1900[5][7][5] = {{{0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L},{0xDE76ED84L,(-8L),0xE768ED1AL,1L,0xE768ED1AL},{0x7D92CA02L,0x7D92CA02L,(-6L),0x7D92CA02L,0x7D92CA02L},{0xE768ED1AL,1L,0xE768ED1AL,(-8L),0xDE76ED84L},{0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L,0xC47BAD39L},{0xDE76ED84L,1L,(-5L),1L,0xDE76ED84L},{0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L}},{{0xDE76ED84L,(-8L),0xE768ED1AL,1L,0xE768ED1AL},{0x7D92CA02L,0x7D92CA02L,(-6L),0x7D92CA02L,0x7D92CA02L},{0xE768ED1AL,1L,0xE768ED1AL,(-8L),0xDE76ED84L},{0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L,0xC47BAD39L},{0xDE76ED84L,1L,(-5L),1L,0xDE76ED84L},{0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L},{0xDE76ED84L,(-8L),0xE768ED1AL,1L,0xE768ED1AL}},{{0x7D92CA02L,0x7D92CA02L,(-6L),0x7D92CA02L,0x7D92CA02L},{0xE768ED1AL,1L,0xE768ED1AL,(-8L),0xDE76ED84L},{0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L,0xC47BAD39L},{0xDE76ED84L,1L,(-5L),1L,0xDE76ED84L},{0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L},{0xDE76ED84L,(-8L),0xE768ED1AL,1L,0xE768ED1AL},{0x7D92CA02L,0x7D92CA02L,(-6L),0x7D92CA02L,0x7D92CA02L}},{{0xE768ED1AL,1L,0xE768ED1AL,(-8L),0xDE76ED84L},{0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L,0xC47BAD39L},{0xDE76ED84L,1L,(-5L),1L,0xDE76ED84L},{0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L},{0xDE76ED84L,(-8L),0xE768ED1AL,1L,0xE768ED1AL},{0x7D92CA02L,0x7D92CA02L,(-6L),0x7D92CA02L,0x7D92CA02L},{0xE768ED1AL,1L,0xE768ED1AL,(-8L),0xDE76ED84L}},{{0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L,0xC47BAD39L},{0xDE76ED84L,1L,(-5L),1L,0xDE76ED84L},{0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L,0x7D92CA02L},{0xE768ED1AL,0L,(-5L),(-8L),(-5L)},{0xC47BAD39L,0xC47BAD39L,0x7D92CA02L,0xC47BAD39L,0xC47BAD39L},{(-5L),(-8L),(-5L),0L,0xE768ED1AL},{0xC47BAD39L,(-6L),(-6L),0xC47BAD39L,(-6L)}}};
                  uint64_t l_1905 = 18446744073709551608UL;
                  int i, j, k;
              }
          }
      }
      for (l_1528 = (-17); (l_1528 > 10); l_1528 = safe_add_func_int64_t_s_s(l_1528, 1))
      { /* block id: 916 */
          if ((*p_9))
              break;
      }
      for (g_484 = 0; (g_484 <= 2); g_484 += 1)
      { /* block id: 921 */
          int64_t l_1950 = (-1L);
          int32_t l_1980 = 0L;
          int32_t l_1982 = 0x945FCD7FL;
          int32_t l_1987[1];
          uint16_t l_2049 = 65529UL;
          int i;
          for (i = 0; i < 1; i++)
              l_1987[i] = 0x542F75A6L;
          for (g_470 = 0; (g_470 <= 2); g_470 += 1)
          { /* block id: 924 */
              uint64_t l_1923 = 0xEEA3B763DF079B73LL;
              int32_t l_1979 = 0xF3A7BF71L;
              int32_t l_1981 = 0x824BDCC5L;
              int32_t l_1988 = 0xFC09B9BFL;
              int8_t l_1989[9][2] = {{8L,1L},{0x73L,0x1BL},{1L,0x1BL},{0x73L,1L},{8L,8L},{8L,1L},{0x73L,0x1BL},{1L,0x1BL},{0x73L,1L}};
              int32_t l_1997[5] = {(-9L),(-9L),(-9L),(-9L),(-9L)};
              const int8_t *l_2069 = &g_148;
              const int8_t **l_2068[3][10][4] = {{{(void*)0,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,&l_2069,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{&l_2069,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,(void*)0,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{(void*)0,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,&l_2069,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{&l_2069,(void*)0,&l_2069,(void*)0}},{{&l_2069,(void*)0,(void*)0,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{(void*)0,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,&l_2069,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{&l_2069,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,(void*)0,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{(void*)0,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,&l_2069,&l_2069}},{{&l_2069,&l_2069,&l_2069,&l_2069},{&l_2069,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,(void*)0,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{(void*)0,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,&l_2069,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069},{&l_2069,(void*)0,&l_2069,(void*)0},{&l_2069,(void*)0,(void*)0,&l_2069},{&l_2069,&l_2069,&l_2069,&l_2069}}};
              int i, j, k;
              if ((*p_9))
                  break;
          }
          return p_8;
      }
      l_2141 = func_36(((&l_1584 != (((+(((((*p_6) && (safe_mul_func_uint8_t_u_u(((p_5 > (((*l_2139) = &p_5) != (void*)0)) >= p_5), (*g_250)))) == 1L) , p_5) & (*p_7))) && (*l_1853)) , &l_1584)) , (void*)0), (*l_1853));
      return p_9;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_20 g_396 g_397 g_119 g_446 g_25 g_378 g_178 g_484 g_888 g_64 g_152 g_825 g_148 g_15 g_514 g_196 g_220 g_470 g_106 g_643 g_827 g_944 g_194 g_972 g_607 g_966 g_49
   * writes: g_148 g_25 g_20 g_484 g_231 g_78 g_196 g_514 g_178 g_119 g_470 g_49 g_944 g_963 g_543 g_966 g_972 g_643 g_152 g_396
   */
  static int32_t * func_10(int32_t * p_11, uint64_t  p_12)
  { /* block id: 344 */
      uint32_t l_856 = 0xEFE57B54L;
      int32_t l_868 = 4L;
      uint32_t l_873 = 9UL;
      int32_t *l_893 = (void*)0;
      int32_t l_913[5][6][3] = {{{0L,0x41738D00L,0L},{0L,0L,0x41738D00L},{0L,0L,0L},{0x41738D00L,0L,0x50C47D7BL},{0xC4AA222FL,0L,5L},{0x41738D00L,0x41738D00L,5L}},{{0L,0xC4AA222FL,0x50C47D7BL},{0L,0x41738D00L,0L},{0L,0L,0x41738D00L},{0L,0xC4AA222FL,0xC4AA222FL},{0L,0xC4AA222FL,5L},{0x50C47D7BL,0L,0x41738D00L}},{{0L,0L,0x41738D00L},{0L,0x50C47D7BL,5L},{0xC4AA222FL,0L,0xC4AA222FL},{0xC4AA222FL,0L,0L},{0L,0xC4AA222FL,0xC4AA222FL},{0L,0xC4AA222FL,5L}},{{0x50C47D7BL,0L,0x41738D00L},{0L,0L,0x41738D00L},{0L,0x50C47D7BL,5L},{0xC4AA222FL,0L,0xC4AA222FL},{0xC4AA222FL,0L,0L},{0L,0xC4AA222FL,0xC4AA222FL}},{{0L,0xC4AA222FL,5L},{0x50C47D7BL,0L,0x41738D00L},{0L,0L,0x41738D00L},{0L,0x50C47D7BL,5L},{0xC4AA222FL,0L,0xC4AA222FL},{0xC4AA222FL,0L,0L}}};
      uint32_t l_938 = 0x5DBDDAF0L;
      uint64_t l_954 = 0xF9C0DE9CD231D06ALL;
      uint32_t l_977 = 18446744073709551615UL;
      int64_t ***l_1008 = &g_963[1];
      uint32_t *l_1011 = &g_194;
      uint32_t **l_1010 = &l_1011;
      int i, j, k;
      if ((*p_11))
      { /* block id: 345 */
          int32_t l_832 = 0xB372FA4EL;
          int8_t *l_838 = &g_148;
          uint8_t *l_851 = &g_25;
          int32_t l_867 = 0L;
          int32_t l_869 = 0xB891ADD4L;
          int32_t l_870 = 0x96BE44B7L;
          int32_t l_872 = (-9L);
          const uint32_t l_879[1] = {0x5836DDEBL};
          uint32_t l_884[6] = {4294967295UL,4294967295UL,4294967288UL,4294967295UL,4294967295UL,4294967288UL};
          uint16_t *l_885[10] = {&g_178[2],&g_178[1],&g_178[2],&g_178[1],&g_178[2],&g_178[1],&g_178[2],&g_178[1],&g_178[2],&g_178[1]};
          int16_t ***l_889 = &g_396;
          int32_t l_890 = (-7L);
          uint16_t l_936 = 0x3855L;
          int64_t **l_965 = &g_964[1][0][3];
          int16_t l_993 = 1L;
          uint32_t l_995 = 0x9B66C13BL;
          int64_t ***l_996 = (void*)0;
          int8_t * const *l_1014[10][2][1] = {{{&l_838},{(void*)0}},{{&l_838},{&l_838}},{{(void*)0},{&l_838}},{{&l_838},{(void*)0}},{{&l_838},{&l_838}},{{(void*)0},{&l_838}},{{&l_838},{(void*)0}},{{&l_838},{&l_838}},{{(void*)0},{&l_838}},{{&l_838},{(void*)0}}};
          int8_t * const ** const l_1013[6][3][9] = {{{&l_1014[9][0][0],(void*)0,&l_1014[9][0][0],&l_1014[8][1][0],&l_1014[9][0][0],&l_1014[9][0][0],(void*)0,&l_1014[9][0][0],(void*)0},{&l_1014[3][1][0],(void*)0,&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[7][0][0],(void*)0,(void*)0,&l_1014[9][0][0],&l_1014[9][0][0]},{&l_1014[9][0][0],(void*)0,(void*)0,&l_1014[9][0][0],&l_1014[8][1][0],&l_1014[9][0][0],(void*)0,&l_1014[3][1][0],&l_1014[9][0][0]}},{{&l_1014[9][0][0],(void*)0,&l_1014[5][0][0],&l_1014[8][1][0],&l_1014[8][1][0],&l_1014[5][0][0],(void*)0,&l_1014[9][0][0],(void*)0},{&l_1014[9][0][0],(void*)0,(void*)0,&l_1014[1][1][0],&l_1014[7][0][0],&l_1014[5][0][0],(void*)0,&l_1014[3][1][0],&l_1014[5][0][0]},{&l_1014[9][0][0],(void*)0,&l_1014[9][0][0],&l_1014[8][1][0],&l_1014[9][0][0],&l_1014[9][0][0],(void*)0,&l_1014[9][0][0],(void*)0}},{{&l_1014[3][1][0],(void*)0,&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[7][0][0],(void*)0,(void*)0,&l_1014[9][0][0],&l_1014[9][0][0]},{&l_1014[9][0][0],(void*)0,(void*)0,&l_1014[9][0][0],&l_1014[8][1][0],&l_1014[9][0][0],(void*)0,&l_1014[3][1][0],&l_1014[9][0][0]},{&l_1014[9][0][0],(void*)0,&l_1014[5][0][0],&l_1014[8][1][0],&l_1014[8][1][0],&l_1014[5][0][0],(void*)0,&l_1014[9][0][0],(void*)0}},{{&l_1014[9][0][0],(void*)0,(void*)0,&l_1014[1][1][0],&l_1014[7][0][0],&l_1014[5][0][0],(void*)0,&l_1014[3][1][0],&l_1014[5][0][0]},{&l_1014[9][0][0],(void*)0,&l_1014[7][0][0],&l_1014[9][0][0],&l_1014[3][1][0],&l_1014[8][1][0],(void*)0,&l_1014[0][1][0],&l_1014[1][1][0]},{(void*)0,&l_1014[6][0][0],&l_1014[7][0][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[1][1][0],&l_1014[6][0][0],&l_1014[0][1][0],&l_1014[7][0][0]}},{{(void*)0,&l_1014[9][0][0],&l_1014[1][1][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[8][1][0],&l_1014[9][0][0],(void*)0,&l_1014[7][0][0]},{&l_1014[8][0][0],&l_1014[6][0][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[6][0][0],&l_1014[8][0][0],&l_1014[1][1][0]},{&l_1014[8][0][0],(void*)0,&l_1014[1][1][0],&l_1014[5][0][0],&l_1014[9][0][0],&l_1014[9][0][0],(void*)0,(void*)0,&l_1014[9][0][0]}},{{(void*)0,(void*)0,&l_1014[7][0][0],&l_1014[9][0][0],&l_1014[3][1][0],&l_1014[8][1][0],(void*)0,&l_1014[0][1][0],&l_1014[1][1][0]},{(void*)0,&l_1014[6][0][0],&l_1014[7][0][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[1][1][0],&l_1014[6][0][0],&l_1014[0][1][0],&l_1014[7][0][0]},{(void*)0,&l_1014[9][0][0],&l_1014[1][1][0],&l_1014[9][0][0],&l_1014[9][0][0],&l_1014[8][1][0],&l_1014[9][0][0],(void*)0,&l_1014[7][0][0]}}};
          int i, j, k;
          (*p_11) = ((safe_rshift_func_int16_t_s_u((safe_unary_minus_func_uint16_t_u((((~((**g_396) || (l_832 , (safe_lshift_func_uint16_t_u_s((safe_mul_func_int8_t_s_s((safe_unary_minus_func_int64_t_s(p_12)), ((((((*l_838) = (-2L)) , (safe_add_func_uint16_t_u_u((safe_mul_func_int16_t_s_s((((safe_mod_func_int8_t_s_s(g_446, (safe_rshift_func_int16_t_s_s((safe_lshift_func_uint16_t_u_u(((((safe_div_func_uint8_t_u_u((((*l_851)++) , (safe_lshift_func_uint16_t_u_u(0x7D4BL, (p_12 && l_856)))), (safe_add_func_uint16_t_u_u((safe_div_func_int8_t_s_s((safe_unary_minus_func_uint8_t_u(l_832)), l_832)), g_378[0][4])))) , 1L) <= 0x8C5CB9E2C173825CLL) , 0x3045L), p_12)), p_12)))) != p_12) , (**g_396)), g_178[2])), l_832))) , p_11) == (void*)0) , 0x29L))), l_856))))) , l_832) < 4294967295UL))), p_12)) || 0xCFF8ACF6L);
          for (g_484 = 0; (g_484 < 20); g_484 = safe_add_func_uint32_t_u_u(g_484, 8))
          { /* block id: 351 */
              int8_t l_864 = (-1L);
              int32_t *l_865 = &g_20;
              int32_t *l_866[4][7][3] = {{{&g_378[0][9],(void*)0,&g_20},{(void*)0,(void*)0,&g_152},{(void*)0,(void*)0,&g_49},{&g_378[0][9],(void*)0,&g_49},{(void*)0,(void*)0,&g_152},{&g_378[0][9],(void*)0,&g_20},{(void*)0,(void*)0,&g_152}},{{(void*)0,(void*)0,&g_49},{&g_378[0][9],(void*)0,&g_49},{(void*)0,(void*)0,&g_152},{&g_378[0][9],(void*)0,&g_20},{(void*)0,(void*)0,&g_152},{(void*)0,(void*)0,&g_49},{&g_378[0][9],(void*)0,&g_49}},{{(void*)0,(void*)0,&g_152},{&g_378[0][9],(void*)0,&g_20},{(void*)0,(void*)0,&g_152},{(void*)0,(void*)0,&g_49},{&g_378[0][9],(void*)0,&g_49},{(void*)0,(void*)0,&g_152},{&g_378[0][9],(void*)0,&g_20}},{{(void*)0,(void*)0,&g_152},{(void*)0,(void*)0,&g_49},{&g_378[0][9],(void*)0,&g_49},{(void*)0,(void*)0,&g_152},{&g_378[0][9],(void*)0,&g_20},{(void*)0,(void*)0,&g_152},{(void*)0,(void*)0,&g_49}}};
              int64_t l_871 = (-10L);
              uint16_t *l_881[1];
              uint16_t * const * const l_880 = &l_881[0];
              int32_t ***l_887 = &g_77;
              int32_t ****l_886[10] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
              int64_t ***l_997 = &g_966;
              int16_t *** const l_998[7] = {&g_396,&g_396,&g_396,&g_396,&g_396,&g_396,&g_396};
              uint32_t *l_1005 = &l_938;
              uint32_t **l_1004 = &l_1005;
              int i, j, k;
              for (i = 0; i < 1; i++)
                  l_881[i] = (void*)0;
              ++l_873;
              if ((*l_865))
              { /* block id: 353 */
                  uint16_t l_876 = 65535UL;
                  int32_t l_915 = (-1L);
                  int32_t l_937[1];
                  int64_t *l_961 = &g_543;
                  int64_t **l_960 = &l_961;
                  int64_t ***l_962[5];
                  int16_t *l_971 = &g_972[0][0];
                  int i;
                  for (i = 0; i < 1; i++)
                      l_937[i] = 0xE97F8874L;
                  for (i = 0; i < 5; i++)
                      l_962[i] = &l_960;
                  if (l_876)
                      break;
                  if ((*p_11))
                  { /* block id: 355 */
                      int8_t l_914[6][3] = {{0x7AL,1L,0x46L},{0x7AL,0x18L,0x7AL},{0x7AL,0x88L,6L},{0x7AL,1L,0x46L},{0x7AL,0x18L,0x7AL},{0x7AL,0x88L,6L}};
                      uint64_t *l_916[5];
                      int32_t l_923 = 0x094652D9L;
                      uint32_t *l_926 = &g_470;
                      uint32_t *l_929 = &l_873;
                      int i, j;
                      for (i = 0; i < 5; i++)
                          l_916[i] = &g_514;
                      for (l_832 = 0; (l_832 > 16); ++l_832)
                      { /* block id: 358 */
                          uint16_t * const *l_883[1][6][8] = {{{&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0]},{&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0]},{&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0]},{&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0]},{&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0]},{&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0],&l_881[0]}}};
                          uint16_t * const **l_882 = &l_883[0][1][4];
                          int32_t l_891[2];
                          int64_t *l_892 = &g_231[2];
                          int i, j, k;
                          for (i = 0; i < 2; i++)
                              l_891[i] = 0L;
                          if (l_879[0])
                              break;
                          (*l_882) = l_880;
                          l_869 ^= (((*l_892) = ((((l_884[3] && ((((void*)0 == l_885[8]) | (l_886[4] == g_888)) && ((((((((p_12 , &g_389) != l_889) > (0xC3L < g_64)) == l_890) == 1L) < g_152) && p_12) || (*p_11)))) , g_825) != l_891[1]) < p_12)) < p_12);
                          g_78[1][3] = (l_893 = p_11);
                      }
                      if ((l_879[0] >= (((g_514 |= ((safe_unary_minus_func_int16_t_s((-10L))) , ((safe_mod_func_int16_t_s_s(((g_196[4] = ((safe_add_func_uint8_t_u_u(((*l_851)++), ((18446744073709551615UL <= ((safe_lshift_func_uint16_t_u_s(((l_915 = ((safe_lshift_func_uint16_t_u_u(((((safe_sub_func_int64_t_s_s((g_148 || (((*l_838) = ((safe_rshift_func_int16_t_s_u(0x16EDL, ((safe_sub_func_uint32_t_u_u(7UL, (((safe_sub_func_uint64_t_u_u(g_64, (&p_11 == &g_45))) , l_913[1][0][1]) <= 4UL))) | g_378[1][9]))) <= p_12)) >= g_178[2])), p_12)) < (*p_11)) > 0xCE966114D08B23FFLL) && g_825), 11)) , l_914[2][1])) < l_914[2][1]), 8)) < l_914[3][2])) || l_884[0]))) & g_15[7][0][0])) || l_879[0]), 0xB12FL)) && 1L))) , (*p_11)) , g_152)))
                      { /* block id: 371 */
                          uint32_t l_919 = 0xE2DA93EDL;
                          uint32_t *l_920 = &l_919;
                          int32_t l_924[7][7][5] = {{{0L,1L,2L,0xFE896D69L,(-1L)},{0L,0x39BEBB49L,0x5428AA5DL,0x4AF11CEEL,0x56B82FFDL},{0x8CB50BDDL,2L,(-10L),0xC720C190L,0x5428AA5DL},{0x0AE8AEBEL,(-1L),0xE1B04935L,0xBE5769D1L,0x6245C5F8L},{0xADE80030L,0x36E9C2E0L,0xDABA8358L,0x777AE71FL,0xF5F37F1FL},{0x9C5491C6L,9L,0x1BD0A467L,0x4BD6F10CL,0xB5A567FFL},{0x777AE71FL,0x0FB7FA86L,0xEF04FE43L,3L,2L}},{{(-1L),0x4CC6609FL,0xADE80030L,0x8CB38074L,0xADE80030L},{0xEDFDB1C3L,0xEDFDB1C3L,7L,0x7A9E28B9L,0xBB32DF44L},{3L,0L,0x0AE8AEBEL,(-7L),0L},{0xF5F37F1FL,0x8163EE39L,0x78B7ACD5L,(-1L),0x1BD0A467L},{0L,0L,0xE13915CFL,0x94FF3F0BL,0L},{(-5L),0xEDFDB1C3L,1L,(-9L),0x39E718B5L},{0L,0x4CC6609FL,0xE8B5D96AL,1L,0x753B2C59L}},{{(-6L),0x0FB7FA86L,(-1L),0x5C6D7D62L,(-9L)},{0xDABA8358L,9L,(-5L),0xA892288AL,0L},{0L,0x36E9C2E0L,(-7L),0x658CAAA9L,(-6L)},{0x5428AA5DL,(-1L),0xF5F37F1FL,0x2B76B380L,0xBDD2805DL},{0x5D8E9A76L,2L,0xA892288AL,5L,0L},{5L,0x39BEBB49L,0L,(-1L),0xD2C620E8L},{0x8CB38074L,1L,(-2L),0xA5E5C278L,0x8163EE39L}},{{0x8CB38074L,0x39E718B5L,0x6245C5F8L,7L,0xDABA8358L},{5L,0L,0L,(-5L),(-1L)},{0x5D8E9A76L,0x5428AA5DL,3L,0L,1L},{0x5428AA5DL,0xE13915CFL,0x5C6D7D62L,0xE580DA41L,0xAE81309EL},{0L,3L,(-6L),0x56439F9CL,0xE580DA41L},{0xDABA8358L,0xF6186E47L,1L,0xBDD2805DL,3L},{(-6L),3L,0x56439F9CL,0L,(-1L)}},{{0L,0xB1EE2C9EL,1L,0xB1EE2C9EL,0x7A9E28B9L},{0xEDFDB1C3L,7L,0x7A9E28B9L,0xBB32DF44L,0x9C5491C6L},{0L,(-2L),0x565CA3CDL,(-9L),0x8CB50BDDL},{0x23616796L,0xB5A567FFL,0L,7L,0x9C5491C6L},{2L,(-9L),0x78B7ACD5L,0xB1EE2C9EL,0x7A9E28B9L},{0x9C5491C6L,(-5L),0xF48C9F6CL,0x2B76B380L,(-6L)},{0x6245C5F8L,0x23616796L,0x2B76B380L,0x9C5491C6L,0x8163EE39L}},{{0xAE81309EL,0x7A9E28B9L,0xBDD2805DL,0xE1B04935L,0x4CC6609FL},{0xBDD2805DL,0xAE81309EL,1L,0x5428AA5DL,0x56B82FFDL},{3L,0x8B895336L,0x4CC6609FL,0x777AE71FL,7L},{0L,0L,7L,1L,0x565CA3CDL},{(-1L),3L,0x5D8E9A76L,0x565CA3CDL,0x14BDF9BBL},{0xEF04FE43L,0xFE896D69L,0x533391B8L,0x5C6D7D62L,0xDABA8358L},{(-1L),0xB1EE2C9EL,0x0FB7FA86L,0x5C6D7D62L,0xC720C190L}},{{7L,(-8L),1L,0x565CA3CDL,9L},{(-5L),0xE8B5D96AL,3L,1L,0xF6186E47L},{(-2L),0xEDFDB1C3L,(-1L),0x777AE71FL,(-1L)},{0xADE80030L,0xA5E5C278L,0L,0x5428AA5DL,0xEF04FE43L},{(-1L),0L,0L,0xE1B04935L,0xF48C9F6CL},{0x0FB7FA86L,0x6245C5F8L,0xF2B6883AL,0x9C5491C6L,(-1L)},{(-10L),0x753B2C59L,0xE580DA41L,0x2B76B380L,0x2B76B380L}}};
                          int i, j, k;
                          (*l_865) ^= (((safe_mul_func_int8_t_s_s((&l_885[8] == (void*)0), (((g_178[2] = p_12) <= p_12) < (((*g_397) = (**g_396)) != ((((*l_851) = l_919) , g_196[1]) || (((((*l_920)++) , (l_923 = 0xC291L)) , p_12) && 0x29L)))))) <= 0xF4797A89L) == l_924[1][2][3]);
                      }
                      else
                      { /* block id: 378 */
                          (*l_865) = (g_196[5] ^ g_220[0][1]);
                      }
                      l_937[0] &= (((l_915 , ((g_178[3] <= (+((((*l_929) = ((*l_926)++)) , 0UL) , 1UL))) , (safe_mod_func_uint16_t_u_u(((safe_mul_func_int16_t_s_s((safe_lshift_func_int8_t_s_u(((*l_838) = ((((g_106[0] ^ g_178[2]) | ((l_936 > 0x3FL) && (*l_865))) , 0x490CL) , g_643)), p_12)), 0xE157L)) & g_25), g_827)))) >= p_12) <= 1L);
                  }
                  else
                  { /* block id: 385 */
                      int32_t *l_943 = &g_378[1][3];
                      ++l_938;
                      for (l_873 = (-27); (l_873 != 24); l_873 = safe_add_func_int64_t_s_s(l_873, 3))
                      { /* block id: 389 */
                          return l_943;
                      }
                  }
                  for (g_49 = 1; (g_49 <= 5); g_49 += 1)
                  { /* block id: 395 */
                      const volatile uint16_t ***l_945 = &g_944[0];
                      (*l_945) = g_944[1];
                  }
                  if (((safe_rshift_func_int8_t_s_u(g_194, 6)) , (l_913[0][0][0] = ((0x4E13L > ((*l_971) ^= (g_64 == ((*l_838) = (safe_mul_func_uint8_t_u_u((((*l_851) = (safe_mul_func_uint16_t_u_u((safe_mul_func_uint8_t_u_u((l_954 & (+((safe_lshift_func_int8_t_s_s((((*p_11) = (((*p_11) , (safe_mod_func_uint64_t_u_u(((((g_963[1] = l_960) != (((**l_960) = p_12) , (g_966 = l_965))) && (safe_lshift_func_int16_t_s_u((safe_mul_func_int16_t_s_s(((((((***l_889) = (0x34L >= 0x36L)) , (-1L)) < g_196[2]) < g_178[0]) < g_106[1]), g_15[0][2][0])), p_12))) >= 0x0FF08DE55C7EB277LL), 18446744073709551612UL))) <= 0UL)) && l_936), l_937[0])) && 0x84C6L))), g_178[3])), (-7L)))) , 0UL), (-1L))))))) , (*p_11)))))
                  { /* block id: 407 */
                      int8_t l_994 = 0L;
                      for (l_873 = 0; (l_873 <= 1); l_873 += 1)
                      { /* block id: 410 */
                          int i;
                          (*p_11) = (*p_11);
                      }
                      for (g_643 = (-24); (g_643 < (-15)); g_643++)
                      { /* block id: 415 */
                          return &g_378[1][9];
                      }
                      for (g_152 = 1; (g_152 >= 0); g_152 -= 1)
                      { /* block id: 420 */
                          int32_t l_975 = 0x15F39CA0L;
                          int32_t l_976 = 0x0F88D581L;
                          --l_977;
                          p_11 = func_13((safe_add_func_uint32_t_u_u((p_12 && (safe_mod_func_uint8_t_u_u(((((*l_838) ^= 0x31L) < (g_152 && ((&l_971 != (g_396 = &g_397)) < (safe_rshift_func_uint8_t_u_s((safe_add_func_int64_t_s_s(((((safe_mul_func_uint8_t_u_u((g_25 &= 0UL), (((safe_div_func_uint8_t_u_u(g_643, (~(p_12 ^ 0xB0L)))) > l_993) == (-6L)))) , 0x5730L) & l_994) && 65535UL), p_12)), g_607))))) != (-1L)), g_378[1][9]))), l_995)));
                      }
                  }
                  else
                  { /* block id: 427 */
                      const int16_t **l_1000 = (void*)0;
                      const int16_t ***l_999 = &l_1000;
                      const int16_t ****l_1001 = &l_999;
                      uint16_t **l_1009 = &l_885[8];
                      int32_t l_1012[6][8][5] = {{{0L,0L,0x6240A94CL,1L,0xEF90C40AL},{(-6L),4L,1L,3L,4L},{0x5D68F721L,0x5ABADABDL,0x6240A94CL,0xEF90C40AL,5L},{0x1D6A067EL,0x99899F05L,(-1L),0x2B7C22F6L,0xDFCC020FL},{1L,(-4L),1L,1L,0xC5D724EBL},{0xA0245987L,3L,(-7L),1L,0x2B7C22F6L},{(-4L),0xED847E7DL,0xAB9A8063L,1L,0xAB9A8063L},{(-6L),(-6L),(-5L),3L,0x92197F00L}},{{0x66F47B66L,1L,0xCC7A23F6L,0xBEB7AF03L,(-4L)},{0x5F83B8C0L,0xF4C5148FL,0xDFCC020FL,0x2B7C22F6L,(-1L)},{0L,1L,0x188BB41FL,(-9L),1L},{1L,(-6L),(-1L),0x7F7DFB34L,3L},{(-9L),0xED847E7DL,0xEF90C40AL,1L,0x6240A94CL},{0x19C74603L,3L,1L,0xCC6F0C76L,0x5F83B8C0L},{0x6240A94CL,(-4L),0L,0L,(-4L)},{4L,0x99899F05L,0x68F9A026L,0x5F83B8C0L,(-7L)}},{{(-5L),0x5ABADABDL,0xDE04642FL,0xC5D724EBL,0x58CF5B2EL},{0L,4L,(-1L),0L,0xA0245987L},{6L,1L,(-1L),5L,0L},{0L,1L,0x19C74603L,0xF4C5148FL,(-1L)},{(-1L),0xCC7A23F6L,0L,0L,0xAB9A8063L},{(-1L),0x9E7DA5EEL,0x42416CC8L,0x68F9A026L,1L},{0L,0xED847E7DL,0L,0xED847E7DL,0L},{(-4L),0x99899F05L,0x13A84425L,1L,0xF4C5148FL}},{{5L,(-1L),0xB9F02119L,0x5D68F721L,1L},{0x7F7DFB34L,1L,3L,0x99899F05L,0xF4C5148FL},{0xDE04642FL,0x5D68F721L,(-1L),0x360BD4C3L,0L},{0xF4C5148FL,1L,5L,(-1L),1L},{0xBEB7AF03L,(-1L),0xC5D724EBL,0L,0xAB9A8063L},{1L,(-7L),1L,0x42416CC8L,(-1L)},{0x6240A94CL,0xB9F02119L,0xB9F02119L,0x6240A94CL,0L},{1L,(-1L),0x81FBCB65L,0xD107DC8FL,0xA0245987L}},{{0xB9F02119L,6L,0x038B8A86L,(-1L),0x66F47B66L},{0xF4C5148FL,(-5L),0x42416CC8L,0xD107DC8FL,0x13A84425L},{0xEF90C40AL,0L,(-5L),0x6240A94CL,0xBEB7AF03L},{1L,0xA0245987L,0L,0x42416CC8L,0x7F7DFB34L},{5L,0x360BD4C3L,(-1L),0L,(-1L)},{0xD107DC8FL,0xF4C5148FL,0x018737E6L,(-1L),(-1L)},{0xBC21679CL,6L,0xBC21679CL,0x360BD4C3L,0xCC7A23F6L},{(-1L),5L,(-5L),0x99899F05L,1L}},{{0xCC7A23F6L,0xBEB7AF03L,(-4L),0x5D68F721L,0xBEB7AF03L},{1L,(-7L),(-5L),1L,0xDFCC020FL},{6L,0x188BB41FL,0xBC21679CL,0xED847E7DL,0x038B8A86L},{0x68F9A026L,0L,0x018737E6L,0x68F9A026L,0xA0245987L},{0x9DC719B9L,0x5D68F721L,(-1L),0L,0xED847E7DL},{0L,1L,0L,0xF4C5148FL,0L},{0xCC7A23F6L,0xCC7A23F6L,(-5L),5L,0xAB9A8063L},{0x59407CA3L,0x99899F05L,0x42416CC8L,1L,0L}}};
                      int i, j, k;
                      if (((p_12 ^ ((((((l_996 = &g_966) != l_997) == (((l_998[0] != ((*l_1001) = l_999)) , (safe_div_func_uint64_t_u_u((l_915 <= ((((l_1012[2][6][2] = (l_1004 == (((safe_mod_func_int16_t_s_s((l_1008 != ((((*l_1009) = &g_220[3][3]) != (void*)0) , &g_963[0])), (**g_396))) != 4294967295UL) , l_1010))) == p_12) , (void*)0) == l_1013[3][0][8])), l_879[0]))) <= (*p_11))) && p_12) ^ (-1L)) || l_1012[3][3][0])) < p_12))
                      { /* block id: 432 */
                          (*l_865) &= (safe_rshift_func_int16_t_s_s((safe_unary_minus_func_uint8_t_u(l_832)), 5));
                          (*p_11) = (p_12 && (safe_lshift_func_uint16_t_u_s(p_12, 9)));
                      }
                      else
                      { /* block id: 435 */
                          const int8_t l_1024 = 0xC3L;
                          (*p_11) = ((((safe_sub_func_int32_t_s_s((*p_11), ((safe_mul_func_int8_t_s_s(g_972[4][0], l_1024)) | (g_972[0][0] | (safe_mod_func_uint32_t_u_u((safe_rshift_func_uint16_t_u_u(0UL, (safe_sub_func_uint32_t_u_u(((void*)0 != (*l_997)), l_937[0])))), 1L)))))) > g_49) != g_825) >= l_1024);
                          (*p_11) ^= l_936;
                      }
                      l_913[1][0][1] = ((*p_11) = 0x1F4D73DFL);
                  }
              }
              else
              { /* block id: 442 */
                  l_872 = ((*l_865) = (g_178[2] == (~4294967294UL)));
              }
          }
      }
      else
      { /* block id: 447 */
          int32_t l_1034 = 0xF102B196L;
          for (g_643 = (-29); (g_643 <= 20); g_643++)
          { /* block id: 450 */
              l_893 = p_11;
          }
          l_1034 = l_868;
          l_1034 = (*p_11);
      }
      return p_11;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads :
   * writes:
   */
  static int32_t * func_13(uint32_t  p_14)
  { /* block id: 1 */
      int32_t **l_17 = (void*)0;
      int32_t *l_19 = &g_20;
      int32_t **l_18 = &l_19;
      (*l_18) = (void*)0;
      return &g_20;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_20 g_15
   * writes: g_20
   */
  static const int32_t * func_28(uint64_t  p_29)
  { /* block id: 5 */
      int32_t l_34 = 0x997B09B3L;
      const int32_t *l_35 = &g_20;
      g_20 = (~(safe_rshift_func_uint16_t_u_u(g_20, (!((g_15[4][2][0] >= l_34) , l_34)))));
      return l_35;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_64 g_396 g_397 g_119 g_444
   * writes: g_178 g_77 g_220 g_78
   */
  static const int32_t * func_36(int32_t ** p_37, uint32_t  p_38)
  { /* block id: 336 */
      uint16_t l_803 = 65529UL;
      uint16_t *l_808 = (void*)0;
      uint16_t *l_809 = (void*)0;
      uint16_t *l_810 = (void*)0;
      uint16_t *l_811 = &g_178[3];
      int32_t l_812[3];
      int32_t ***l_819 = &g_77;
      int32_t **l_820 = &g_78[8][0];
      uint16_t *l_821 = &g_220[3][3];
      int i;
      for (i = 0; i < 3; i++)
          l_812[i] = 0xC5186AC3L;
      (*l_820) = func_13(((l_803 | ((((p_38 , ((safe_sub_func_int8_t_s_s(((0xB4DFL < 65535UL) >= (p_38 <= ((((l_812[2] |= ((*l_811) = l_803)) <= ((*l_821) = (safe_add_func_uint64_t_u_u(((~((~0x8542845BL) == ((((*l_819) = (((((p_38 && ((safe_rshift_func_uint16_t_u_u(((p_38 == p_38) >= p_38), p_38)) != 0x5112L)) , g_64) < 3L) == 0x7343D702D7B55DFALL) , (void*)0)) == l_820) >= (**g_396)))) >= p_38), 0xD7E6916736659E66LL)))) <= p_38) , 0xD4881F49BC30A399LL))), 0xFAL)) , 0x39FDACCAL)) >= g_444) || 18446744073709551615UL) < 1UL)) & (-1L)));
      return &g_49;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_59 g_64 g_77 g_15 g_49 g_106 g_119 g_220 g_196 g_231 g_178 g_152 g_378 g_389 g_396 g_194 g_397 g_248 g_249 g_78 g_390 g_148 g_446 g_459 g_470 g_484 g_514 g_543 g_607 g_643 g_444 g_725 g_45
   * writes: g_64 g_106 g_119 g_148 g_78 g_194 g_152 g_220 g_396 g_444 g_446 g_231 g_49 g_196 g_484 g_378 g_543
   */
  static uint32_t  func_39(int8_t  p_40, int32_t * const * p_41, uint32_t  p_42, uint8_t  p_43)
  { /* block id: 8 */
      uint32_t l_65 = 0x6463A473L;
      int32_t l_92 = 0x1356723FL;
      uint8_t *l_544[1][3];
      int32_t l_552 = 0L;
      int16_t ***l_676 = &g_396;
      int32_t l_749 = 0xF40F7E67L;
      int32_t l_751 = 0xCB0A76B7L;
      uint32_t l_779 = 7UL;
      int16_t l_795 = (-1L);
      int16_t l_796 = 0xBAAEL;
      int32_t l_797[1][8] = {{0x447D6662L,2L,0x447D6662L,2L,0x447D6662L,2L,0x447D6662L,2L}};
      int i, j;
      for (i = 0; i < 1; i++)
      {
          for (j = 0; j < 3; j++)
              l_544[i][j] = (void*)0;
      }
      if (p_43)
      { /* block id: 9 */
          int32_t *l_51[5][3][6] = {{{&g_49,&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,(void*)0,&g_49,&g_49,&g_49,(void*)0}},{{&g_49,&g_49,&g_49,&g_49,&g_49,&g_49},{(void*)0,(void*)0,&g_49,(void*)0,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,&g_49,&g_49}},{{&g_49,&g_49,&g_49,(void*)0,&g_49,&g_49},{&g_49,(void*)0,&g_49,&g_49,&g_49,(void*)0},{&g_49,&g_49,&g_49,(void*)0,&g_49,&g_49}},{{&g_49,&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,(void*)0,&g_49,&g_49,&g_49},{(void*)0,&g_49,(void*)0,(void*)0,&g_49,(void*)0}},{{(void*)0,(void*)0,(void*)0,&g_49,&g_49,&g_49},{&g_49,&g_49,(void*)0,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,(void*)0,&g_49}}};
          int16_t l_531 = (-7L);
          uint8_t *l_545 = (void*)0;
          uint8_t l_553 = 0x64L;
          int32_t ***l_640[3][2];
          uint16_t l_680[5] = {0x36D7L,0x36D7L,0x36D7L,0x36D7L,0x36D7L};
          int64_t l_746[4];
          int32_t *l_787[2];
          int i, j, k;
          for (i = 0; i < 3; i++)
          {
              for (j = 0; j < 2; j++)
                  l_640[i][j] = &g_77;
          }
          for (i = 0; i < 4; i++)
              l_746[i] = (-10L);
          for (i = 0; i < 2; i++)
              l_787[i] = &l_751;
          for (p_42 = 0; (p_42 != 3); ++p_42)
          { /* block id: 12 */
              int32_t *l_48[6][5] = {{&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,(void*)0,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,&g_49},{&g_49,&g_49,&g_49,&g_49,&g_49}};
              int32_t **l_50[2][4][2] = {{{&l_48[1][0],&l_48[1][0]},{&l_48[1][0],&l_48[1][0]},{&l_48[1][0],&l_48[1][0]},{&l_48[1][0],&l_48[1][0]}},{{&l_48[1][0],&l_48[1][0]},{&l_48[1][0],&l_48[1][0]},{&l_48[1][0],&l_48[1][0]},{&l_48[1][0],&l_48[1][0]}}};
              uint8_t *l_63 = &g_64;
              int8_t *l_532 = &g_444;
              uint16_t l_563 = 0xA812L;
              uint16_t l_615 = 4UL;
              int32_t ***l_642 = &l_50[0][3][1];
              const int32_t l_681 = 0L;
              int8_t l_704[4][7][7] = {{{0x46L,0x46L,0x4EL,0xD3L,0xF9L,0x10L,0xC4L},{0x34L,1L,5L,4L,0x34L,1L,0L},{3L,(-1L),4L,0xA3L,0xF9L,1L,8L},{0x72L,1L,0x92L,0x25L,(-7L),1L,0L},{0L,0xA3L,0xDBL,4L,0xCFL,0L,0x4EL},{0x34L,0L,0L,0x25L,0L,0L,0x34L},{0x10L,0xDBL,6L,0xA3L,0x46L,(-1L),0xDBL}},{{0L,0x55L,0L,4L,0x72L,0xE2L,0L},{0xA3L,0xCFL,6L,0xD3L,(-5L),0xF9L,(-1L)},{(-1L),1L,0L,0xE2L,0x94L,0x00L,0L},{0x46L,0xC4L,0xDBL,0x09L,0xF9L,(-1L),(-1L)},{0L,1L,0x92L,1L,0L,1L,0L},{4L,0x46L,0xD3L,4L,3L,4L,(-1L)},{(-1L),0L,0x94L,1L,0x34L,0xE2L,0x34L}},{{4L,4L,1L,0x09L,0x46L,6L,4L},{0x72L,4L,0L,0x55L,0L,4L,1L},{0xA3L,3L,8L,4L,0xF9L,0xF9L,4L},{5L,1L,5L,0xE2L,(-1L),0x25L,0x34L},{3L,0xC4L,(-1L),0xCFL,0x10L,1L,(-1L)},{(-1L),0x00L,0L,0x25L,0L,0x25L,0L},{0xF9L,0xA3L,4L,(-1L),3L,0xF9L,0x4EL}},{{0L,0xE2L,0x94L,0x00L,0L,4L,(-1L)},{4L,0xC4L,6L,3L,3L,6L,0xC4L},{0L,0L,0L,0x55L,0L,0xE2L,1L},{0x09L,3L,1L,0xD3L,0x10L,4L,4L},{0L,1L,(-1L),0x55L,(-1L),1L,0L},{0xA3L,4L,(-1L),3L,0xF9L,0x4EL,1L},{(-1L),1L,0x92L,0x00L,0L,0x25L,1L}}};
              int16_t l_722 = 0x93D0L;
              int64_t *l_729 = &g_543;
              uint64_t l_737[5][7] = {{0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL},{1UL,18446744073709551607UL,1UL,18446744073709551607UL,1UL,18446744073709551607UL,1UL},{0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL},{1UL,18446744073709551607UL,1UL,18446744073709551607UL,1UL,18446744073709551607UL,1UL},{0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL,0xB804B9B014385355LL}};
              int32_t **l_786 = &l_48[2][1];
              int i, j, k;
              l_51[4][2][1] = l_48[5][1];
              if ((safe_sub_func_uint32_t_u_u(((safe_mul_func_uint8_t_u_u(((~(safe_sub_func_int32_t_s_s((g_59 == (void*)0), p_40))) && ((safe_div_func_int8_t_s_s((p_40 = (((void*)0 != l_63) != (l_65 = 0x576105F6L))), ((*l_532) = (safe_unary_minus_func_uint32_t_u(((safe_mod_func_uint16_t_u_u((((*l_63)--) & (func_71(g_77, func_79(func_83(g_15[4][2][0], ((safe_mod_func_uint16_t_u_u((safe_add_func_uint32_t_u_u(g_15[7][0][0], g_49)), 65535UL)) , l_92), p_43, p_43), g_15[4][2][0], g_220[2][4]), p_43, p_42, g_196[3]) <= l_531)), l_92)) & 0x8788BC8206E44777LL)))))) , 0x5C8E805FF6CD7C1FLL)), p_43)) < l_92), l_92)))
              { /* block id: 232 */
                  int32_t l_533 = 1L;
                  int64_t *l_542 = &g_543;
                  uint32_t *l_546 = (void*)0;
                  uint32_t *l_547 = &l_65;
                  int8_t *l_604 = &g_148;
                  int32_t l_616 = 2L;
                  uint64_t l_721 = 0x182B4E709B196B56LL;
                  l_533 |= l_92;
                  if (((safe_div_func_int8_t_s_s((p_43 >= (safe_div_func_uint64_t_u_u(((((((((safe_sub_func_uint64_t_u_u(g_231[0], ((*l_542) = (safe_div_func_int16_t_s_s(p_40, p_43))))) , ((l_544[0][2] == l_545) <= ((*l_547) |= 0xF81E7EB0L))) , l_92) & ((safe_div_func_int16_t_s_s((0xAAL == 0xDDL), g_64)) >= p_42)) || g_231[0]) & 0x7179L) , (void*)0) != &l_50[1][0][1]), g_15[0][3][0]))), 0xCCL)) , 1L))
                  { /* block id: 236 */
                      uint32_t l_558 = 5UL;
                      int32_t ****l_641[8][1][7] = {{{&l_640[1][1],(void*)0,&l_640[2][1],&l_640[2][1],(void*)0,&l_640[1][1],(void*)0}},{{(void*)0,&l_640[1][1],&l_640[1][1],(void*)0,(void*)0,(void*)0,&l_640[1][1]}},{{&l_640[0][1],&l_640[0][1],&l_640[1][1],&l_640[2][1],&l_640[1][1],&l_640[0][1],&l_640[0][1]}},{{&l_640[0][1],&l_640[1][1],&l_640[2][1],&l_640[1][1],&l_640[0][1],&l_640[0][1],&l_640[1][1]}},{{(void*)0,(void*)0,(void*)0,&l_640[1][1],&l_640[1][1],(void*)0,(void*)0}},{{&l_640[1][1],(void*)0,&l_640[2][1],&l_640[2][1],(void*)0,&l_640[1][1],&l_640[0][1]}},{{&l_640[2][1],(void*)0,(void*)0,&l_640[2][1],&l_640[0][1],&l_640[2][1],(void*)0}},{{&l_640[1][1],&l_640[1][1],(void*)0,(void*)0,(void*)0,&l_640[1][1],&l_640[1][1]}}};
                      int16_t * const *l_679 = (void*)0;
                      int16_t * const ** const l_678 = &l_679;
                      int i, j, k;
                      for (l_92 = 15; (l_92 > (-27)); --l_92)
                      { /* block id: 239 */
                          --l_553;
                          return p_43;
                      }
                      for (g_543 = 0; (g_543 == 9); g_543 = safe_add_func_int8_t_s_s(g_543, 4))
                      { /* block id: 245 */
                          int32_t l_561 = (-1L);
                          int32_t l_562 = 1L;
                          uint16_t *l_578 = &l_563;
                          uint64_t *l_587 = &g_196[4];
                          const int8_t *l_606 = &g_607;
                          const int8_t **l_605 = &l_606;
                          int32_t l_617 = 0x8DC6315FL;
                          ++l_558;
                          l_563++;
                          l_617 = ((safe_rshift_func_int16_t_s_u(((((safe_rshift_func_uint8_t_u_s((l_616 = ((safe_add_func_uint8_t_u_u((safe_mul_func_int16_t_s_s((safe_lshift_func_uint8_t_u_u(g_119, 6)), ((safe_rshift_func_uint16_t_u_s(((*l_578)++), 8)) || ((*l_578) &= 0xA58FL)))), ((safe_lshift_func_uint16_t_u_u(l_552, ((((*l_547)++) , ((safe_mod_func_int8_t_s_s((((*l_587)++) > (l_578 == (void*)0)), p_40)) != ((safe_add_func_int16_t_s_s((+(safe_mod_func_uint16_t_u_u((safe_div_func_int16_t_s_s(((((safe_mul_func_int8_t_s_s(((*l_604) = (safe_unary_minus_func_uint32_t_u((((safe_add_func_int32_t_s_s((safe_rshift_func_uint16_t_u_s((l_604 != ((*l_605) = &g_148)), 7)), ((safe_mul_func_uint16_t_u_u((~(((safe_rshift_func_int16_t_s_s((safe_div_func_int64_t_s_s((0x060D448FL && (-1L)), l_615)), p_42)) && p_40) < 0xCDD5L)), 0x72B7L)) , l_533))) , p_40) | 0x86D6L)))), p_42)) ^ 1L) <= l_552) <= g_106[2]), p_43)), p_43))), 0xBB4FL)) < 0xD76F845BFBE83BFALL))) != p_40))) > 2UL))) != p_42)), g_119)) , p_43) <= p_42) & p_40), l_92)) & l_558);
                          if (l_561)
                              break;
                      }
                      (*g_77) = func_13((safe_div_func_int64_t_s_s((((safe_lshift_func_int16_t_s_s((safe_lshift_func_uint16_t_u_u(g_607, 7)), p_42)) >= (safe_sub_func_uint16_t_u_u(((safe_rshift_func_int8_t_s_u(p_43, 1)) ^ (safe_rshift_func_int16_t_s_s((safe_mul_func_uint8_t_u_u(((void*)0 != &g_78[2][1]), (safe_add_func_uint16_t_u_u((((l_616 ^= ((l_65 >= p_42) ^ (((safe_div_func_uint32_t_u_u((safe_lshift_func_uint16_t_u_u(((safe_rshift_func_int8_t_s_s(((*l_604) &= (((&p_41 == (l_642 = l_640[1][1])) , p_43) || l_92)), 4)) , 0xDC92L), p_40)), p_43)) && g_643) < 5UL))) & g_220[3][1]) , g_148), (*g_397))))), p_43))), p_43))) | g_220[3][3]), p_43)));
                      if ((safe_lshift_func_uint8_t_u_u(g_178[3], (safe_div_func_uint16_t_u_u((safe_sub_func_int32_t_s_s((safe_mod_func_uint32_t_u_u(((safe_add_func_uint64_t_u_u(0x26C9732376B98D45LL, ((g_15[4][2][0] , (((**g_396) = (*g_397)) != (~((*l_604) &= (((l_616 > p_40) , ((*l_532) = ((safe_add_func_int16_t_s_s(0L, ((g_378[1][2] || (((g_484 , &p_42) == (void*)0) | 0x70319FEEL)) != l_552))) > p_40))) & p_43))))) , l_616))) , l_616), 2UL)), p_43)), g_194)))))
                      { /* block id: 265 */
                          uint32_t l_657 = 0xB844435AL;
                          int8_t **l_660 = &l_604;
                          ++l_657;
                          l_552 = ((&g_148 != ((*l_660) = &p_40)) != g_196[4]);
                          if (l_657)
                              break;
                          if (p_43)
                              continue;
                      }
                      else
                      { /* block id: 271 */
                          int16_t l_667 = 0L;
                          int16_t ****l_677 = &l_676;
                          uint16_t *l_696 = (void*)0;
                          uint16_t *l_697 = &g_220[3][6];
                          int8_t l_705 = 0L;
                          int32_t l_706 = 0x39EF162FL;
                          int16_t *l_718 = &l_531;
                          l_616 |= (g_178[2] , ((p_40 , (safe_add_func_uint32_t_u_u((safe_rshift_func_int16_t_s_u((safe_rshift_func_int16_t_s_u((((l_667 , g_470) == (safe_mod_func_int8_t_s_s((((*g_248) == (((*g_397) >= (safe_div_func_int32_t_s_s(((&g_460 == (void*)0) ^ ((safe_div_func_int64_t_s_s((safe_rshift_func_uint8_t_u_s((((*l_677) = l_676) != l_678), l_680[1])), g_194)) != l_92)), l_65))) , (void*)0)) != l_92), g_470))) < 0x24CAL), 12)), 8)), 0xB55C7C47L))) , l_681));
                          if (l_533)
                              break;
                          l_706 |= ((safe_div_func_int16_t_s_s(((((safe_mul_func_uint16_t_u_u(g_106[2], ((safe_lshift_func_uint16_t_u_s(((safe_mul_func_uint8_t_u_u(((l_705 = (safe_mod_func_uint32_t_u_u(1UL, (((safe_div_func_uint16_t_u_u(((((safe_rshift_func_int16_t_s_s(((((*l_697) = p_43) , &g_390[0][1][2]) != (void*)0), 0)) , (-1L)) != l_667) == ((g_446 = (--(*l_63))) != ((safe_rshift_func_int16_t_s_s(((safe_rshift_func_uint8_t_u_s((&g_444 == (void*)0), p_42)) || 0x9EBD29D54AD48446LL), (*g_397))) | l_704[2][3][4]))), p_40)) , 4294967294UL) & l_616)))) ^ p_40), p_43)) >= 0x367AL), (**g_396))) < (-8L)))) > 2UL) && g_106[2]) < 0xAAL), l_92)) || 0xF3L);
                          l_616 &= ((l_721 = (safe_div_func_uint32_t_u_u((g_444 | (safe_div_func_uint16_t_u_u(g_378[1][9], ((**g_396) = (-4L))))), (+(0x7CL && (p_42 | ((((safe_lshift_func_int8_t_s_u(((*l_604) = (safe_sub_func_int16_t_s_s((safe_add_func_uint16_t_u_u(0xAFD4L, ((*l_718) = p_42))), ((safe_add_func_uint32_t_u_u(0x4A7FEDD1L, g_64)) == g_220[3][3])))), 5)) >= g_152) == 0x1CL) | 18446744073709551613UL))))))) , 0x00822B6BL);
                      }
                  }
                  else
                  { /* block id: 286 */
                      return p_43;
                  }
                  return p_42;
              }
              else
              { /* block id: 290 */
                  int64_t **l_730 = &l_729;
                  int32_t l_731 = 4L;
                  int64_t *l_733 = &g_231[0];
                  int64_t **l_732 = &l_733;
                  int64_t *l_736[5] = {&g_231[0],&g_231[0],&g_231[0],&g_231[0],&g_231[0]};
                  int16_t *** const l_738 = &g_396;
                  int32_t l_739 = (-9L);
                  int32_t l_747 = 1L;
                  int16_t l_748 = 0x64E0L;
                  uint16_t l_785 = 0x009CL;
                  int i;
                  l_739 |= ((l_722 == (safe_lshift_func_uint16_t_u_u(((g_725 != ((safe_mul_func_uint16_t_u_u(((((((*l_730) = l_729) != ((*l_732) = ((l_731 , p_42) , (void*)0))) & g_15[6][1][0]) & g_15[4][2][0]) == ((safe_sub_func_int64_t_s_s((l_92 |= (0x7BL || p_40)), p_40)) || l_737[3][5])), 0xE470L)) , l_738)) < g_106[2]), l_65))) != p_42);
                  if ((safe_add_func_int32_t_s_s(p_40, g_543)))
                  { /* block id: 295 */
                      int32_t **l_744 = &l_51[3][1][3];
                      int32_t l_745 = 0xF426840EL;
                      int32_t l_750 = 0L;
                      int32_t l_752 = 8L;
                      uint16_t l_753 = 0x2802L;
                      for (l_553 = 0; (l_553 > 38); l_553++)
                      { /* block id: 298 */
                          return g_378[1][6];
                      }
                      (*l_744) = (*p_41);
                      l_753--;
                      for (l_65 = 0; (l_65 < 37); ++l_65)
                      { /* block id: 305 */
                          return g_378[0][7];
                      }
                  }
                  else
                  { /* block id: 308 */
                      int32_t l_774 = 0x951E72DBL;
                      for (l_531 = 0; (l_531 <= 1); l_531 += 1)
                      { /* block id: 311 */
                          uint16_t *l_766 = &l_563;
                          int32_t l_773 = 0x41A3404EL;
                          uint32_t *l_784[5][3][5] = {{{&g_194,&l_65,&g_194,&l_65,&l_779},{&g_194,(void*)0,&g_194,&l_779,&l_779},{&g_194,&l_779,&g_194,&g_194,(void*)0}},{{&l_779,&g_194,&l_779,&l_779,&l_779},{&g_194,(void*)0,&l_779,&g_194,&l_779},{&l_779,&l_779,&l_779,&l_779,&g_194}},{{&g_194,&l_779,&g_194,&g_194,&l_779},{&l_65,&g_194,&g_194,&l_65,&l_779},{&l_65,&g_194,&g_194,&l_65,(void*)0}},{{&g_194,&g_194,&l_779,(void*)0,&g_194},{&l_779,&g_194,&l_65,&l_779,&g_194},{&g_194,&g_194,(void*)0,(void*)0,&g_194}},{{&l_779,&l_779,(void*)0,&l_65,&g_194},{&g_194,&g_194,&l_779,&l_65,(void*)0},{&g_194,&g_194,&g_194,&g_194,&g_194}}};
                          int i, j, k;
                          (*g_77) = func_13((((p_43 <= (l_739 = ((((safe_mod_func_int8_t_s_s(0x16L, ((((safe_rshift_func_int8_t_s_s((-4L), 1)) <= (safe_rshift_func_uint16_t_u_s(((*l_766) = 65529UL), 9))) <= ((safe_add_func_uint32_t_u_u((safe_rshift_func_uint8_t_u_u(((*l_63) = l_751), (safe_lshift_func_uint8_t_u_s(g_15[4][2][0], 7)))), g_444)) != (((0x0B0F128CL > ((((***l_738) ^= 0L) | g_196[6]) < 4294967286UL)) , 0x14F2A6D1BE7D6B00LL) >= 0x5254F4BB6D4EFFE7LL))) ^ p_43))) ^ l_773) && l_773) == p_43))) ^ p_40) , l_774));
                          l_48[(l_531 + 1)][(l_531 + 1)] = ((*g_77) = l_48[(l_531 + 1)][(l_531 + 1)]);
                          l_773 = ((safe_add_func_int16_t_s_s(((l_785 = (safe_sub_func_int16_t_s_s((l_779 | (((l_92 |= (((((g_231[0] & p_40) && (p_40 , g_106[2])) , (safe_mod_func_int32_t_s_s((((((2UL | l_552) < ((&g_194 == ((safe_add_func_uint64_t_u_u(g_514, p_43)) , &g_194)) != p_43)) , 0xA8L) ^ p_40) > 0xD0L), g_196[4]))) | 0xB82282767ACDAC53LL) || (-1L))) , l_747) && p_40)), 6UL))) <= 0xFC029D75L), l_749)) || 1L);
                      }
                  }
              }
              (*l_786) = (*p_41);
          }
          (*g_77) = l_787[0];
      }
      else
      { /* block id: 328 */
          int32_t l_788 = (-3L);
          int32_t *l_789 = &g_378[1][0];
          int32_t *l_790[3];
          uint32_t l_791 = 4294967295UL;
          uint64_t l_799 = 18446744073709551609UL;
          int i;
          for (i = 0; i < 3; i++)
              l_790[i] = &l_751;
          (*g_77) = (void*)0;
          if (g_152)
              goto lbl_794;
          l_788 = p_42;
  lbl_794:
          l_791++;
          l_799--;
      }
      return l_797[0][1];
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_231 g_196 g_178 g_49 g_220 g_152 g_15 g_378 g_389 g_396 g_194 g_106 g_397 g_119 g_248 g_249 g_78 g_77 g_390 g_148 g_446 g_459 g_470 g_484 g_514 g_444
   * writes: g_152 g_220 g_78 g_396 g_148 g_444 g_106 g_446 g_231 g_194 g_49 g_119 g_196 g_484 g_378
   */
  static int64_t  func_71(int32_t ** p_72, uint8_t * p_73, int8_t  p_74, uint8_t  p_75, int16_t  p_76)
  { /* block id: 125 */
      int16_t l_339[10][3] = {{0x6923L,0x6923L,0x6923L},{0xCAD4L,0xCAD4L,0xCAD4L},{0x6923L,0x6923L,0x6923L},{0xCAD4L,0xCAD4L,0xCAD4L},{0x6923L,0x6923L,0x6923L},{0xCAD4L,0xCAD4L,0xCAD4L},{0x6923L,0x6923L,0x6923L},{0xCAD4L,0xCAD4L,0xCAD4L},{0x6923L,0x6923L,0x6923L},{0xCAD4L,0xCAD4L,0xCAD4L}};
      int16_t l_360 = 3L;
      int8_t ** const *l_364 = (void*)0;
      int32_t l_365 = 0xA8E2CCA2L;
      const uint32_t l_380 = 0x11731A21L;
      uint32_t l_381[9];
      int16_t **l_399 = (void*)0;
      const int8_t *l_410 = &g_148;
      const int8_t **l_409 = &l_410;
      uint16_t *l_434[1][7][6] = {{{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]},{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]},{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]},{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]},{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]},{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]},{&g_220[3][3],&g_178[2],&g_178[2],&g_220[3][3],&g_178[2],&g_178[2]}}};
      uint64_t *l_510[1][2];
      int32_t *l_527 = (void*)0;
      int i, j, k;
      for (i = 0; i < 9; i++)
          l_381[i] = 0xE5C9CA6BL;
      for (i = 0; i < 1; i++)
      {
          for (j = 0; j < 2; j++)
              l_510[i][j] = &g_196[3];
      }
      for (p_74 = (-29); (p_74 <= (-10)); p_74++)
      { /* block id: 128 */
          uint16_t *l_353[6] = {&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3],&g_220[3][3]};
          int32_t l_358 = 0x18F1FB9CL;
          int32_t *l_359 = &l_358;
          int32_t *l_361 = &g_152;
          int64_t l_379 = 0x6E9F9F4B579935A8LL;
          int16_t **l_438 = &g_397;
          int8_t l_447 = 1L;
          uint32_t **l_458 = (void*)0;
          int i;
          (*l_361) &= (safe_sub_func_uint32_t_u_u(((safe_sub_func_uint16_t_u_u((l_339[7][1] > 0x0AE36DBBL), ((safe_unary_minus_func_int8_t_s((safe_mod_func_uint64_t_u_u(((safe_sub_func_int16_t_s_s(g_231[0], g_196[0])) < (safe_add_func_int64_t_s_s((safe_add_func_int8_t_s_s(((safe_mod_func_int64_t_s_s((((&g_45 == (void*)0) && (l_353[4] != (((*l_359) = ((&p_74 != ((safe_add_func_int64_t_s_s((safe_lshift_func_int8_t_s_u(g_178[2], g_49)), 0x813B3EB5E6DA3575LL)) , &p_74)) | l_358)) , l_353[3]))) >= p_75), l_339[7][1])) , g_178[2]), g_178[2])), g_220[2][4]))), g_220[3][3])))) != p_74))) , 8UL), l_360));
          (*l_361) = (((((l_365 = (safe_mod_func_uint16_t_u_u((0L > (l_364 != &g_249)), g_15[8][0][0]))) , (((safe_add_func_int16_t_s_s((safe_sub_func_int32_t_s_s(((safe_add_func_int16_t_s_s(0x149CL, ((safe_div_func_int16_t_s_s(1L, ((((safe_mul_func_uint16_t_u_u((*l_361), 0UL)) == g_196[4]) < g_378[1][9]) & 1L))) , p_75))) >= l_365), l_379)), p_76)) , 0x4839L) <= 0L)) | p_74) != l_380) == l_381[0]);
          for (p_75 = 0; (p_75 != 43); p_75 = safe_add_func_int64_t_s_s(p_75, 3))
          { /* block id: 135 */
              uint64_t l_384 = 0x88609CC275588F03LL;
              int32_t l_417 = (-1L);
              uint32_t *l_420 = &g_194;
              int8_t * const **l_421 = (void*)0;
              uint16_t *l_440 = &g_178[2];
              if (l_384)
              { /* block id: 136 */
                  return l_339[5][0];
              }
              else
              { /* block id: 138 */
                  int16_t ***l_398[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                  int32_t l_403 = (-8L);
                  uint64_t *l_406 = &l_384;
                  const int8_t ***l_411 = (void*)0;
                  const int8_t ***l_412 = (void*)0;
                  const int8_t ***l_413 = (void*)0;
                  const int8_t ***l_414 = &l_409;
                  uint32_t *l_418 = &g_194;
                  uint32_t **l_419 = &l_418;
                  uint16_t *l_441 = &g_178[2];
                  int i;
                  l_365 |= (((((0x7B3C1AD0A15EDD2BLL || (safe_div_func_int32_t_s_s(l_381[0], (safe_mod_func_uint64_t_u_u((g_389 == (l_399 = g_396)), (~l_381[0])))))) , (((((safe_rshift_func_uint16_t_u_s((g_15[4][2][0] > g_194), 11)) , ((*p_73) > (((l_403 < 0x5E78A202L) < p_74) != 0x46L))) & (**g_396)) < l_403) == g_194)) && 0x793924C3FCAEC787LL) > g_178[2]) , l_384);
                  (*g_77) = ((((g_220[3][3] = ((((p_76 , &g_231[2]) == &g_231[0]) < (safe_lshift_func_uint16_t_u_u((((*l_406) = p_74) <= (safe_add_func_uint32_t_u_u((((*g_248) != ((*l_414) = l_409)) , ((((safe_mod_func_uint16_t_u_u(l_417, (p_75 , ((((((*l_419) = l_418) == l_420) != 0L) , g_378[1][9]) | p_74)))) , l_421) == &l_409) & 4294967295UL)), g_15[4][2][0]))), 6))) > l_360)) >= l_403) , 0xC5L) , (*p_72));
                  for (l_365 = 0; (l_365 <= 1); l_365 += 1)
                  { /* block id: 148 */
                      uint64_t l_425 = 18446744073709551606UL;
                      int16_t **l_439[9];
                      int8_t *l_442 = &g_148;
                      int8_t *l_443[7][4][6] = {{{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444}},{{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,(void*)0,(void*)0},{&g_444,&g_444,&g_444,&g_444,&g_444,(void*)0}},{{&g_444,(void*)0,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,(void*)0,&g_444,(void*)0,&g_444,&g_444},{&g_444,&g_444,&g_444,(void*)0,(void*)0,&g_444}},{{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444}},{{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,(void*)0,(void*)0},{&g_444,&g_444,&g_444,&g_444,&g_444,(void*)0},{&g_444,(void*)0,&g_444,&g_444,&g_444,&g_444}},{{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,(void*)0,&g_444,(void*)0,&g_444,&g_444},{&g_444,&g_444,&g_444,(void*)0,(void*)0,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444}},{{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{&g_444,&g_444,&g_444,&g_444,&g_444,&g_444},{(void*)0,&g_444,&g_444,&g_444,&g_444,&g_444}}};
                      uint8_t *l_445 = &g_446;
                      const int32_t l_448 = (-10L);
                      int64_t *l_457 = &g_231[0];
                      int i, j, k;
                      for (i = 0; i < 9; i++)
                          l_439[i] = &g_397;
                      if ((!(((safe_lshift_func_uint16_t_u_s(l_425, 6)) , (((l_403 ^= (safe_rshift_func_uint16_t_u_s(((safe_mod_func_uint32_t_u_u(0xF6B8C41CL, g_15[4][2][0])) > (safe_div_func_uint32_t_u_u((safe_mod_func_int8_t_s_s((g_390[(l_365 + 1)][l_365][l_365] != (l_434[0][1][5] = l_353[3])), ((*l_445) ^= (((((*p_73) = (((((g_444 = ((*l_442) |= (safe_lshift_func_int16_t_s_s((safe_unary_minus_func_int16_t_s((((l_438 = l_438) != (g_396 = l_439[1])) ^ (l_440 == l_441)))), 7)))) , (void*)0) == (void*)0) != 0xC2EFL) && p_74)) == 253UL) > p_75) != (*l_361))))), p_75))), l_447))) == 0x3EL) && p_74)) < g_196[4])))
                      { /* block id: 157 */
                          (*g_77) = func_13(l_403);
                          return g_220[3][3];
                      }
                      else
                      { /* block id: 160 */
                          (*l_359) = l_448;
                      }
                      (*l_361) = (safe_mul_func_int16_t_s_s((0L & ((*l_359) ^= (((((*l_457) = (safe_div_func_int8_t_s_s((safe_lshift_func_int8_t_s_u((safe_lshift_func_uint8_t_u_u(255UL, 6)), 5)), ((*l_445) &= 1UL)))) , l_458) != (g_15[5][1][0] , g_459)) || ((safe_sub_func_uint32_t_u_u(((((*l_420) ^= 0x58C2794FL) == (((*p_73) = ((!(safe_mul_func_uint8_t_u_u((*p_73), (safe_sub_func_int32_t_s_s(p_74, 0xF072E333L))))) < 0x6DD22A97L)) >= g_470)) , p_74), 0UL)) != (**g_396))))), l_360));
                      (*l_361) |= p_74;
                      return l_360;
                  }
                  for (l_417 = 0; (l_417 == (-3)); --l_417)
                  { /* block id: 174 */
                      return p_75;
                  }
              }
              (*g_77) = (*p_72);
              for (g_152 = 0; (g_152 == (-22)); --g_152)
              { /* block id: 181 */
                  uint8_t l_502 = 0x20L;
                  uint32_t l_508 = 18446744073709551615UL;
                  const uint64_t *l_511 = &g_196[4];
                  for (p_76 = 0; (p_76 <= 2); p_76 += 1)
                  { /* block id: 184 */
                      int32_t l_509 = 0L;
                      for (g_49 = 0; (g_49 <= 1); g_49 += 1)
                      { /* block id: 187 */
                          uint64_t *l_482 = &g_196[0];
                          uint64_t *l_483[3];
                          uint8_t *l_493 = &g_446;
                          int i, j;
                          for (i = 0; i < 3; i++)
                              l_483[i] = &g_484;
                          if (g_106[p_76])
                              break;
                          (*g_77) = (*p_72);
                          g_378[g_49][p_76] = (((safe_add_func_uint32_t_u_u(((*l_359) = ((+g_231[p_76]) < (l_384 , (0xDAL != (((safe_div_func_uint64_t_u_u(((*l_482) |= (safe_lshift_func_int16_t_s_u(((**g_396) = (((p_76 > p_76) , g_178[2]) && l_384)), 2))), (--g_484))) && ((((-8L) & ((safe_mod_func_int32_t_s_s(((safe_div_func_uint32_t_u_u(((((((p_76 <= 0x9128L) , g_152) != l_360) | g_148) ^ p_76) >= 1L), g_194)) | 1L), g_106[1])) >= (*p_73))) == g_106[2]) , (*l_361))) > g_178[2]))))), (-1L))) == (-2L)) == p_75);
                          (*l_359) = ((((*l_493) = (g_106[p_76] = (l_417 , (&g_106[p_76] != &p_75)))) > (safe_lshift_func_int8_t_s_s((-8L), 0))) || (safe_lshift_func_uint8_t_u_u(((g_378[g_49][p_76] &= (safe_rshift_func_int8_t_s_s((p_74 , ((((safe_mul_func_uint8_t_u_u(l_502, ((safe_add_func_int64_t_s_s(((((safe_lshift_func_int8_t_s_s(((~(((g_231[0] < 1L) > 1UL) , 0x3802CE8FD7E0959ELL)) , p_75), p_76)) == l_508) | 0xFB580818782F0279LL) <= l_509), g_178[2])) ^ 1UL))) , l_510[0][1]) == l_511) || 2UL)), 5))) >= p_75), 1)));
                      }
                  }
                  for (g_148 = 2; (g_148 >= 0); g_148 -= 1)
                  { /* block id: 203 */
                      for (l_417 = 0; (l_417 <= 2); l_417 += 1)
                      { /* block id: 206 */
                          (*l_359) |= (7UL != 0x76L);
                      }
                      return g_220[1][8];
                  }
              }
              if ((((safe_add_func_uint16_t_u_u(g_514, (safe_div_func_int64_t_s_s((-1L), 18446744073709551610UL)))) | (safe_div_func_uint32_t_u_u(g_49, l_384))) <= (g_231[2] >= (safe_sub_func_uint32_t_u_u(((((0x8F33L | (safe_unary_minus_func_uint8_t_u(255UL))) & (safe_lshift_func_int16_t_s_u((2UL <= (-1L)), 0))) >= 0x560A1FF2559C4E1FLL) , g_446), (-1L))))))
              { /* block id: 212 */
                  uint32_t l_526[3];
                  int i;
                  for (i = 0; i < 3; i++)
                      l_526[i] = 0x24A3151DL;
                  for (g_444 = (-17); (g_444 > (-3)); g_444 = safe_add_func_int8_t_s_s(g_444, 7))
                  { /* block id: 215 */
                      (*l_359) = l_526[0];
                      (*p_72) = l_527;
                      for (l_365 = 5; (l_365 <= (-30)); --l_365)
                      { /* block id: 220 */
                          uint8_t l_530 = 246UL;
                          l_530 ^= l_417;
                      }
                  }
              }
              else
              { /* block id: 224 */
                  (*g_77) = (*p_72);
              }
          }
          (*l_359) = (*l_359);
      }
      return p_75;
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads :
   * writes:
   */
  static uint8_t * func_79(uint8_t * const  p_80, uint16_t  p_81, uint16_t  p_82)
  { /* block id: 122 */
      int64_t l_332[7];
      int i;
      for (i = 0; i < 7; i++)
          l_332[i] = (-1L);
      l_332[6] = p_81;
      return &g_106[2];
  }
  
  
  /* ------------------------------------------ */
  /* 
   * reads : g_15 g_49 g_106 g_119 g_77
   * writes: g_106 g_119 g_148 g_78 g_194
   */
  static uint8_t * func_83(int32_t  p_84, uint32_t  p_85, uint32_t  p_86, const int8_t  p_87)
  { /* block id: 17 */
      const int32_t *l_94 = &g_49;
      const int32_t **l_93 = &l_94;
      int32_t l_138 = (-5L);
      int32_t **l_144[1];
      int8_t * const l_151 = &g_148;
      uint16_t l_224 = 9UL;
      uint8_t *l_297 = (void*)0;
      int i;
      for (i = 0; i < 1; i++)
          l_144[i] = &g_78[4][0];
      if ((l_93 != &l_94))
      { /* block id: 18 */
          int32_t l_99 = 0xD5E57097L;
          int32_t l_104 = 0L;
          uint8_t *l_105 = &g_106[2];
          uint8_t l_157[7] = {3UL,3UL,3UL,3UL,3UL,3UL,3UL};
          int8_t ***l_193 = (void*)0;
          uint32_t l_197[10];
          uint16_t l_263 = 0x5EB8L;
          int16_t *l_271 = (void*)0;
          int i;
          for (i = 0; i < 10; i++)
              l_197[i] = 4294967295UL;
          if ((((safe_mul_func_int8_t_s_s(g_15[1][3][0], ((safe_div_func_int16_t_s_s(l_99, (safe_div_func_uint64_t_u_u((**l_93), (safe_mod_func_uint64_t_u_u(g_15[0][2][0], 7L)))))) > ((*l_105)++)))) || l_99) >= (!(safe_mod_func_uint8_t_u_u((((safe_sub_func_int8_t_s_s((p_87 & 0x2BB7607968679DD5LL), p_85)) ^ (-5L)) < 0x31B7L), g_15[4][2][0])))))
          { /* block id: 20 */
              return &g_106[1];
          }
          else
          { /* block id: 22 */
              uint8_t l_129 = 0x48L;
              int16_t *l_130 = &g_119;
              int16_t *l_131 = &g_119;
              const int32_t l_136 = 0xF83D54B5L;
              int32_t *l_137[9];
              int32_t **l_146 = &g_78[4][2];
              uint16_t l_218 = 0x3DA9L;
              int i;
              for (i = 0; i < 9; i++)
                  l_137[i] = &l_99;
              for (l_99 = 1; (l_99 > 11); l_99++)
              { /* block id: 25 */
                  int16_t *l_118 = &g_119;
                  int32_t l_120 = 4L;
                  int32_t *l_121 = &l_104;
                  uint8_t *l_122 = &g_106[1];
                  (*l_121) = ((safe_rshift_func_int16_t_s_s(((*l_118) = p_85), g_106[2])) , (l_120 && g_49));
                  return l_122;
              }
              l_138 |= (safe_sub_func_int8_t_s_s(((safe_div_func_int32_t_s_s(0xC4390AC9L, (safe_add_func_int64_t_s_s(0x2D96A127326B3026LL, (g_15[4][2][0] , (((l_129 == ((p_85 , (l_130 == l_131)) , ((safe_add_func_int16_t_s_s(g_119, (safe_lshift_func_uint8_t_u_s(0x89L, l_136)))) & (*l_94)))) | p_86) , 0x8EB2A14D58F1AF85LL)))))) && p_84), g_106[2]));
              for (l_129 = 0; (l_129 != 31); l_129++)
              { /* block id: 33 */
                  int16_t l_143 = 0x0D67L;
                  int32_t ***l_145[2];
                  int8_t *l_147 = &g_148;
                  uint32_t l_212 = 0x1D4D5885L;
                  uint16_t l_229 = 0x7F79L;
                  uint32_t *l_252 = &l_197[5];
                  int i;
                  for (i = 0; i < 2; i++)
                      l_145[i] = (void*)0;
                  (*g_77) = func_13((safe_sub_func_uint16_t_u_u(((p_86 >= (p_86 ^ ((l_143 != ((*l_130) |= (l_144[0] == (l_146 = &g_78[1][1])))) | p_87))) & ((*l_147) = g_49)), g_15[4][2][0])));
                  if (p_85)
                      continue;
              }
              (*l_93) = (void*)0;
          }
          return l_297;
      }
      else
      { /* block id: 110 */
          int32_t l_298[5][1];
          uint8_t l_299 = 1UL;
          int i, j;
          for (i = 0; i < 5; i++)
          {
              for (j = 0; j < 1; j++)
                  l_298[i][j] = 0x184DD8C9L;
          }
          ++l_299;
          for (l_224 = (-27); (l_224 != 49); l_224++)
          { /* block id: 114 */
              uint32_t *l_325 = &g_194;
              int32_t l_326 = 0x349FD6D7L;
              uint32_t l_327 = 4294967295UL;
              (*g_77) = func_13((safe_unary_minus_func_int32_t_s((((*l_325) = ((safe_mod_func_int64_t_s_s((safe_lshift_func_int8_t_s_u(((safe_lshift_func_int8_t_s_s(((safe_div_func_uint16_t_u_u((*l_94), ((safe_sub_func_uint32_t_u_u(((safe_add_func_uint16_t_u_u((safe_mod_func_int32_t_s_s((safe_lshift_func_int8_t_s_s(((0x66L > (1L | (-5L))) == l_298[2][0]), 3)), p_85)), ((safe_lshift_func_int8_t_s_u(p_85, 3)) , (0xEBL || (l_298[2][0] >= p_87))))) && p_85), p_85)) & (**l_93)))) == l_298[2][0]), p_85)) > 0UL), p_85)), 0x4E9B1BF553ECEDD2LL)) <= 249UL)) <= (**l_93)))));
              ++l_327;
              l_298[2][0] = (safe_lshift_func_uint16_t_u_u(l_298[2][0], 14));
          }
      }
      return l_297;
  }
  
  
  
  
  /* ---------------------------------------- */
  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_3, "g_3", print_hash_value);
      for (i = 0; i < 9; i++)
      {
          for (j = 0; j < 5; j++)
          {
              for (k = 0; k < 1; k++)
              {
                  transparent_crc(g_15[i][j][k], "g_15[i][j][k]", print_hash_value);
                  if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
  
              }
          }
      }
      transparent_crc(g_20, "g_20", print_hash_value);
      transparent_crc(g_25, "g_25", print_hash_value);
      transparent_crc(g_49, "g_49", print_hash_value);
      for (i = 0; i < 8; i++)
      {
          for (j = 0; j < 3; j++)
          {
              transparent_crc(g_60[i][j], "g_60[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_64, "g_64", print_hash_value);
      for (i = 0; i < 3; i++)
      {
          transparent_crc(g_106[i], "g_106[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_119, "g_119", print_hash_value);
      transparent_crc(g_148, "g_148", print_hash_value);
      transparent_crc(g_152, "g_152", print_hash_value);
      for (i = 0; i < 5; i++)
      {
          transparent_crc(g_178[i], "g_178[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_194, "g_194", print_hash_value);
      for (i = 0; i < 8; i++)
      {
          transparent_crc(g_196[i], "g_196[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      for (i = 0; i < 6; i++)
      {
          for (j = 0; j < 10; j++)
          {
              transparent_crc(g_220[i][j], "g_220[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      for (i = 0; i < 3; i++)
      {
          transparent_crc(g_231[i], "g_231[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_251, "g_251", print_hash_value);
      for (i = 0; i < 2; i++)
      {
          for (j = 0; j < 10; j++)
          {
              transparent_crc(g_378[i][j], "g_378[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_391, "g_391", print_hash_value);
      for (i = 0; i < 9; i++)
      {
          transparent_crc(g_392[i], "g_392[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_393, "g_393", print_hash_value);
      transparent_crc(g_394, "g_394", print_hash_value);
      for (i = 0; i < 5; i++)
      {
          for (j = 0; j < 2; j++)
          {
              transparent_crc(g_395[i][j], "g_395[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_444, "g_444", print_hash_value);
      transparent_crc(g_446, "g_446", print_hash_value);
      transparent_crc(g_470, "g_470", print_hash_value);
      transparent_crc(g_484, "g_484", print_hash_value);
      transparent_crc(g_514, "g_514", print_hash_value);
      transparent_crc(g_543, "g_543", print_hash_value);
      transparent_crc(g_607, "g_607", print_hash_value);
      transparent_crc(g_643, "g_643", print_hash_value);
      transparent_crc(g_798, "g_798", print_hash_value);
      transparent_crc(g_825, "g_825", print_hash_value);
      transparent_crc(g_827, "g_827", print_hash_value);
      for (i = 0; i < 5; i++)
      {
          for (j = 0; j < 1; j++)
          {
              transparent_crc(g_972[i][j], "g_972[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_1036, "g_1036", print_hash_value);
      transparent_crc(g_1057, "g_1057", print_hash_value);
      transparent_crc(g_1095, "g_1095", print_hash_value);
      transparent_crc(g_1262, "g_1262", print_hash_value);
      transparent_crc(g_1425, "g_1425", print_hash_value);
      transparent_crc(g_1570, "g_1570", print_hash_value);
      transparent_crc(g_1669, "g_1669", print_hash_value);
      transparent_crc(g_1763, "g_1763", print_hash_value);
      for (i = 0; i < 8; i++)
      {
          for (j = 0; j < 7; j++)
          {
              transparent_crc(g_1971[i][j], "g_1971[i][j]", print_hash_value);
              if (print_hash_value) printf("index = [%d][%d]\n", i, j);
  
          }
      }
      transparent_crc(g_1996, "g_1996", print_hash_value);
      for (i = 0; i < 10; i++)
      {
          for (j = 0; j < 10; j++)
          {
              for (k = 0; k < 2; k++)
              {
                  transparent_crc(g_2076[i][j][k], "g_2076[i][j][k]", print_hash_value);
                  if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
  
              }
          }
      }
      transparent_crc(g_2119, "g_2119", print_hash_value);
      transparent_crc(g_2161, "g_2161", print_hash_value);
      for (i = 0; i < 5; i++)
      {
          transparent_crc(g_2177[i], "g_2177[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_2219, "g_2219", print_hash_value);
      transparent_crc(g_2279, "g_2279", print_hash_value);
      transparent_crc(g_2290, "g_2290", print_hash_value);
      transparent_crc(g_2322, "g_2322", print_hash_value);
      transparent_crc(g_2526, "g_2526", print_hash_value);
      for (i = 0; i < 3; i++)
      {
          transparent_crc(g_2577[i], "g_2577[i]", print_hash_value);
          if (print_hash_value) printf("index = [%d]\n", i);
  
      }
      transparent_crc(g_2668, "g_2668", print_hash_value);
      for (i = 0; i < 9; i++)
      {
          for (j = 0; j < 3; j++)
          {
              for (k = 0; k < 8; k++)
              {
                  transparent_crc(g_2675[i][j][k], "g_2675[i][j][k]", print_hash_value);
                  if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
  
              }
          }
      }
      transparent_crc(g_2727, "g_2727", print_hash_value);
      platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
      return 0;
  }
  
  /************************ statistics *************************
  XXX max struct depth: 0
  breakdown:
     depth: 0, occurrence: 679
  XXX total union variables: 0
  
  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: 50
  breakdown:
     depth: 1, occurrence: 276
     depth: 2, occurrence: 73
     depth: 3, occurrence: 5
     depth: 4, occurrence: 4
     depth: 5, occurrence: 3
     depth: 7, occurrence: 2
     depth: 12, occurrence: 2
     depth: 14, occurrence: 3
     depth: 15, occurrence: 1
     depth: 16, occurrence: 3
     depth: 18, occurrence: 2
     depth: 19, occurrence: 4
     depth: 20, occurrence: 4
     depth: 21, occurrence: 3
     depth: 23, occurrence: 5
     depth: 24, occurrence: 4
     depth: 26, occurrence: 4
     depth: 27, occurrence: 3
     depth: 28, occurrence: 1
     depth: 29, occurrence: 1
     depth: 30, occurrence: 1
     depth: 31, occurrence: 3
     depth: 32, occurrence: 1
     depth: 34, occurrence: 5
     depth: 36, occurrence: 1
     depth: 37, occurrence: 1
     depth: 38, occurrence: 1
     depth: 48, occurrence: 1
     depth: 50, occurrence: 1
  
  XXX total number of pointers: 524
  
  XXX times a variable address is taken: 1284
  XXX times a pointer is dereferenced on RHS: 294
  breakdown:
     depth: 1, occurrence: 232
     depth: 2, occurrence: 48
     depth: 3, occurrence: 12
     depth: 4, occurrence: 1
     depth: 5, occurrence: 1
  XXX times a pointer is dereferenced on LHS: 369
  breakdown:
     depth: 1, occurrence: 340
     depth: 2, occurrence: 20
     depth: 3, occurrence: 9
  XXX times a pointer is compared with null: 56
  XXX times a pointer is compared with address of another variable: 10
  XXX times a pointer is compared with another pointer: 15
  XXX times a pointer is qualified to be dereferenced: 10787
  
  XXX max dereference level: 6
  breakdown:
     level: 0, occurrence: 0
     level: 1, occurrence: 1395
     level: 2, occurrence: 379
     level: 3, occurrence: 200
     level: 4, occurrence: 74
     level: 5, occurrence: 3
     level: 6, occurrence: 3
  XXX number of pointers point to pointers: 224
  XXX number of pointers point to scalars: 300
  XXX number of pointers point to structs: 0
  XXX percent of pointers has null in alias set: 32.4
  XXX average alias set size: 1.41
  
  XXX times a non-volatile is read: 2097
  XXX times a non-volatile is write: 1070
  XXX times a volatile is read: 120
  XXX    times read thru a pointer: 94
  XXX times a volatile is write: 39
  XXX    times written thru a pointer: 29
  XXX times a volatile is available for access: 1.12e+03
  XXX percentage of non-volatile access: 95.2
  
  XXX forward jumps: 1
  XXX backward jumps: 5
  
  XXX stmts: 276
  XXX max block depth: 5
  breakdown:
     depth: 0, occurrence: 22
     depth: 1, occurrence: 29
     depth: 2, occurrence: 33
     depth: 3, occurrence: 43
     depth: 4, occurrence: 69
     depth: 5, occurrence: 80
  
  XXX percentage a fresh-made variable is used: 14.8
  XXX percentage an existing variable is used: 85.2
  ********************* end of statistics **********************/
  
  