/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.3.0
 * Git version: 30dccd7
 * Options:   (none)
 * Seed:      9906778765281597054
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
union U0 {
   uint32_t  f0;
   const int32_t  f1;
   uint64_t  f2;
   int8_t * f3;
};

/* --- GLOBAL VARIABLES --- */
static int32_t g_6[10][9] = {{(-1L),1L,(-6L),(-6L),1L,(-1L),0xC71BC7DCL,8L,(-6L)},{0x4746A1C1L,1L,(-1L),(-6L),(-1L),0x4746A1C1L,0x4746A1C1L,(-1L),(-6L)},{1L,1L,1L,(-1L),(-1L),1L,0xC71BC7DCL,0xE4562513L,(-1L)},{1L,(-1L),(-1L),1L,1L,1L,(-1L),(-1L),1L},{0x4746A1C1L,(-1L),(-6L),(-1L),1L,0x4746A1C1L,(-1L),8L,(-1L)},{(-1L),0x4746A1C1L,0x07207182L,0x07207182L,0x4746A1C1L,5L,0x3EB60693L,0xC71BC7DCL,0x07207182L},{1L,(-1L),5L,0x07207182L,1L,1L,1L,1L,0x07207182L},{0x44D513C6L,0x4746A1C1L,0x44D513C6L,5L,1L,0x44D513C6L,0x3EB60693L,(-6L),5L},{0x44D513C6L,1L,5L,0x44D513C6L,0x4746A1C1L,0x44D513C6L,5L,1L,0x44D513C6L},{1L,1L,0x07207182L,5L,(-1L),1L,5L,0xC71BC7DCL,5L}};
static int8_t g_34 = 0L;
static int8_t *g_33 = &g_34;
static union U0 g_49[3] = {{18446744073709551613UL},{18446744073709551613UL},{18446744073709551613UL}};
static union U0 *g_48[6] = {&g_49[0],&g_49[0],&g_49[0],&g_49[0],&g_49[0],&g_49[0]};
static uint8_t g_59 = 1UL;
static uint8_t *g_63[1][9] = {{&g_59,&g_59,&g_59,&g_59,&g_59,&g_59,&g_59,&g_59,&g_59}};
static union U0 g_84 = {18446744073709551615UL};
static union U0 *g_83[10][9][2] = {{{&g_49[0],&g_49[0]},{&g_84,&g_84},{&g_84,&g_49[0]},{&g_49[0],(void*)0},{&g_49[0],(void*)0},{&g_49[1],&g_49[0]},{(void*)0,(void*)0},{(void*)0,(void*)0},{&g_49[2],&g_84}},{{&g_49[0],&g_49[2]},{&g_49[2],&g_84},{(void*)0,&g_49[0]},{&g_49[0],&g_49[2]},{&g_49[0],(void*)0},{&g_49[0],&g_49[1]},{(void*)0,&g_49[1]},{&g_49[0],(void*)0},{&g_49[0],&g_49[2]}},{{&g_49[0],&g_49[0]},{(void*)0,&g_84},{&g_49[2],&g_49[2]},{&g_49[0],&g_84},{&g_49[2],(void*)0},{(void*)0,(void*)0},{(void*)0,&g_49[0]},{&g_49[1],(void*)0},{&g_49[0],(void*)0}},{{&g_49[0],&g_49[0]},{&g_84,&g_84},{&g_84,&g_49[0]},{&g_49[0],(void*)0},{&g_49[0],(void*)0},{&g_49[1],&g_49[0]},{(void*)0,(void*)0},{(void*)0,(void*)0},{&g_49[2],&g_84}},{{&g_49[0],&g_49[2]},{&g_49[2],&g_84},{(void*)0,&g_49[0]},{&g_49[0],&g_49[2]},{&g_49[0],(void*)0},{&g_49[0],&g_49[1]},{(void*)0,&g_49[1]},{&g_49[0],(void*)0},{&g_49[0],&g_49[2]}},{{&g_49[0],&g_49[0]},{(void*)0,&g_84},{&g_49[2],&g_49[2]},{&g_49[0],&g_84},{&g_49[2],(void*)0},{(void*)0,(void*)0},{(void*)0,&g_49[0]},{&g_49[1],(void*)0},{&g_49[0],(void*)0}},{{&g_49[0],&g_49[0]},{&g_84,&g_84},{&g_84,&g_49[0]},{&g_49[0],(void*)0},{&g_49[0],(void*)0},{&g_49[1],&g_49[0]},{(void*)0,(void*)0},{(void*)0,(void*)0},{&g_49[2],&g_84}},{{&g_49[0],&g_49[2]},{&g_49[2],&g_49[1]},{&g_49[0],&g_84},{&g_84,&g_49[0]},{&g_84,&g_49[1]},{&g_49[0],(void*)0},{&g_49[1],(void*)0},{&g_49[0],&g_49[1]},{&g_84,&g_49[0]}},{{&g_84,&g_84},{&g_49[0],&g_49[1]},{&g_49[0],&g_49[2]},{&g_84,&g_49[1]},{&g_49[2],&g_49[1]},{&g_49[2],&g_49[2]},{&g_49[1],&g_49[0]},{(void*)0,&g_49[1]},{(void*)0,&g_49[0]}},{{&g_84,(void*)0},{&g_49[1],&g_49[1]},{&g_49[1],(void*)0},{&g_84,&g_49[0]},{(void*)0,&g_49[1]},{(void*)0,&g_49[0]},{&g_49[1],&g_49[2]},{&g_49[2],&g_49[1]},{&g_49[2],&g_49[1]}}};
static volatile int32_t g_88 = 1L;/* VOLATILE GLOBAL g_88 */
static volatile int32_t *g_87 = &g_88;
static volatile int32_t ** volatile g_86 = &g_87;/* VOLATILE GLOBAL g_86 */
static int16_t g_120[2][6] = {{0L,0L,0L,0L,0L,0L},{0L,0L,0L,0L,0L,0L}};
static int32_t g_124 = 0xEDC5ECF8L;
static int64_t g_180 = 0x4742CAFECB2317F3LL;
static uint32_t g_182 = 4294967294UL;
static int32_t g_184[1][8][2] = {{{(-7L),0L},{0x92AA6575L,(-7L)},{0x082FB81DL,0x082FB81DL},{0x082FB81DL,(-7L)},{0x92AA6575L,0L},{(-7L),0L},{0x92AA6575L,(-7L)},{0x082FB81DL,0x082FB81DL}}};
static volatile union U0 g_205[7][9] = {{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}},{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}},{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}},{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}},{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}},{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}},{{18446744073709551615UL},{18446744073709551615UL},{1UL},{18446744073709551611UL},{0x71544CB1L},{1UL},{0x71544CB1L},{18446744073709551611UL},{1UL}}};
static int32_t *g_234[10] = {&g_124,&g_124,(void*)0,&g_124,&g_124,(void*)0,&g_124,&g_124,(void*)0,&g_124};
static int32_t ** volatile g_233 = &g_234[6];/* VOLATILE GLOBAL g_233 */
static const int8_t g_250[4][2][6] = {{{0L,(-2L),0L,(-2L),0L,(-2L)},{0x3FL,(-2L),0x3FL,(-2L),0x3FL,(-2L)}},{{0L,(-2L),0L,(-2L),0L,(-2L)},{0x3FL,(-2L),0x3FL,(-2L),0x3FL,(-2L)}},{{0L,(-2L),0L,(-2L),0L,(-2L)},{0x3FL,(-2L),0x3FL,(-2L),0x3FL,(-2L)}},{{0L,(-2L),0L,(-2L),0L,(-2L)},{0x3FL,(-2L),0x3FL,(-2L),0x3FL,(-2L)}}};
static volatile int8_t g_252 = 7L;/* VOLATILE GLOBAL g_252 */
static volatile int8_t * volatile g_251 = &g_252;/* VOLATILE GLOBAL g_251 */
static int16_t g_257 = 0L;
static uint16_t g_260 = 9UL;
static int16_t * volatile *g_284 = (void*)0;
static volatile int64_t g_305 = 1L;/* VOLATILE GLOBAL g_305 */
static volatile int64_t *g_304 = &g_305;
static volatile int64_t ** volatile g_303 = &g_304;/* VOLATILE GLOBAL g_303 */
static int16_t *g_320 = &g_120[0][4];
static int16_t **g_319 = &g_320;
static int16_t ***g_318 = &g_319;
static int32_t g_338 = 1L;
static int32_t ** volatile g_368[6] = {&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6]};
static const volatile int32_t g_396 = (-1L);/* VOLATILE GLOBAL g_396 */
static int16_t g_403 = 1L;
static uint32_t *g_469 = &g_182;
static uint8_t **g_477 = &g_63[0][4];
static uint8_t *** volatile g_476 = &g_477;/* VOLATILE GLOBAL g_476 */
static int32_t g_495 = 0xEB3B465BL;
static uint32_t **** volatile g_524 = (void*)0;/* VOLATILE GLOBAL g_524 */
static uint8_t g_560 = 1UL;
static int32_t g_589 = 0x0B9F7063L;
static uint16_t g_591[2] = {0x22BCL,0x22BCL};
static uint16_t g_603 = 0x019EL;
static uint32_t g_605[7][1][8] = {{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}},{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}},{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}},{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}},{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}},{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}},{{0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L,0x1DDF2AACL,0xC424F4C5L}}};
static uint32_t g_612[6][4] = {{0x66A87171L,1UL,0x66A87171L,1UL},{0x66A87171L,1UL,0x66A87171L,1UL},{0x66A87171L,1UL,0x66A87171L,1UL},{0x66A87171L,1UL,0x66A87171L,1UL},{0x66A87171L,1UL,0x66A87171L,1UL},{0x66A87171L,1UL,0x66A87171L,1UL}};
static volatile union U0 * volatile * volatile g_645 = (void*)0;/* VOLATILE GLOBAL g_645 */
static uint32_t g_658 = 3UL;
static volatile int8_t g_683 = (-3L);/* VOLATILE GLOBAL g_683 */
static union U0 g_696 = {0x846C7DB7L};
static uint8_t g_701 = 1UL;
static volatile uint32_t g_788[7] = {0x471E5235L,0x8F11D9E7L,0x471E5235L,0x471E5235L,0x8F11D9E7L,0x471E5235L,0x471E5235L};
static int64_t *g_923 = &g_180;
static int64_t **g_922[2][8] = {{(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0},{(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0}};
static union U0 ** volatile g_938[9] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
static union U0 g_941 = {0xB2DDCB98L};
static uint32_t g_945 = 0x430F4FA2L;
static int16_t ** volatile *g_959 = &g_319;
static int16_t ** volatile **g_958 = &g_959;
static int16_t ** volatile ***g_957[1] = {&g_958};
static int8_t g_962 = 0L;
static uint16_t g_963 = 0x9EB9L;
static uint32_t *g_995 = &g_658;
static uint32_t **g_994 = &g_995;
static int32_t * volatile *g_1000 = (void*)0;
static int32_t * volatile **g_999 = &g_1000;
static uint32_t g_1100 = 4294967288UL;
static int32_t ** const  volatile g_1161 = &g_234[1];/* VOLATILE GLOBAL g_1161 */
static int16_t ****g_1181 = &g_318;
static int64_t g_1224 = 0xAA57948B39F703F7LL;
static int8_t g_1305 = 0L;
static int32_t ** volatile g_1313 = &g_234[6];/* VOLATILE GLOBAL g_1313 */
static volatile int64_t * volatile ** volatile *g_1355 = (void*)0;
static const int16_t g_1429 = 0x29A4L;
static uint64_t **g_1468 = (void*)0;
static uint64_t *** volatile g_1469 = (void*)0;/* VOLATILE GLOBAL g_1469 */
static uint64_t *** const  volatile g_1470[7][5] = {{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468},{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468},{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468},{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468},{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468},{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468},{&g_1468,&g_1468,&g_1468,&g_1468,&g_1468}};
static int8_t **g_1480 = &g_33;
static int8_t ** const *g_1479[8][2] = {{(void*)0,&g_1480},{(void*)0,(void*)0},{&g_1480,(void*)0},{(void*)0,&g_1480},{(void*)0,(void*)0},{&g_1480,(void*)0},{(void*)0,&g_1480},{(void*)0,(void*)0}};
static int32_t ** volatile g_1582[1][2][9] = {{{&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6]},{&g_234[0],&g_234[6],&g_234[0],&g_234[0],&g_234[6],&g_234[0],&g_234[0],&g_234[6],&g_234[0]}}};
static int32_t *g_1628[10] = {&g_124,&g_124,&g_124,&g_124,&g_124,&g_124,&g_124,&g_124,&g_124,&g_124};
static int32_t ** volatile g_1637 = &g_1628[9];/* VOLATILE GLOBAL g_1637 */
static uint32_t *g_1663 = &g_696.f0;
static const uint8_t g_1712 = 255UL;
static const uint8_t *g_1711[5] = {&g_1712,&g_1712,&g_1712,&g_1712,&g_1712};
static const uint8_t **g_1710 = &g_1711[0];
static const volatile uint32_t g_1747[10] = {4294967289UL,4294967289UL,4294967289UL,4294967289UL,4294967289UL,4294967289UL,4294967289UL,4294967289UL,4294967289UL,4294967289UL};
static union U0 g_1782 = {2UL};
static int32_t ** volatile g_1810 = &g_1628[1];/* VOLATILE GLOBAL g_1810 */
static int32_t **g_1819 = &g_234[6];
static int32_t ***g_1818[3][6] = {{&g_1819,&g_1819,&g_1819,&g_1819,&g_1819,&g_1819},{&g_1819,&g_1819,&g_1819,&g_1819,&g_1819,&g_1819},{&g_1819,&g_1819,&g_1819,&g_1819,&g_1819,&g_1819}};
static const volatile union U0 ****g_1823 = (void*)0;
static volatile int64_t g_1834 = 0L;/* VOLATILE GLOBAL g_1834 */
static volatile uint32_t g_1863 = 18446744073709551615UL;/* VOLATILE GLOBAL g_1863 */
static uint64_t ***g_1899 = &g_1468;
static uint64_t **** volatile g_1898 = &g_1899;/* VOLATILE GLOBAL g_1898 */
static volatile uint64_t g_1948 = 8UL;/* VOLATILE GLOBAL g_1948 */
static int16_t g_1965[2][9] = {{0L,0L,0L,0L,0L,0L,0L,0L,0L},{0L,0L,0L,0L,0L,0L,0L,0L,0L}};
static int32_t g_1981 = 0x6E818F41L;
static int32_t *g_2003[1][6] = {{&g_338,&g_338,&g_338,&g_338,&g_338,&g_338}};
static const union U0 ** volatile g_2031 = (void*)0;/* VOLATILE GLOBAL g_2031 */
static const union U0 g_2033 = {0UL};
static const union U0 *g_2032 = &g_2033;
static uint8_t ****g_2052 = (void*)0;
static int32_t ** volatile g_2190 = &g_234[6];/* VOLATILE GLOBAL g_2190 */
static volatile int32_t g_2191 = 8L;/* VOLATILE GLOBAL g_2191 */
static int32_t g_2263 = (-9L);
static int32_t g_2271 = 0x7D278E85L;
static int64_t ***g_2342 = &g_922[1][6];
static uint32_t g_2441 = 0xA073015FL;
static uint32_t g_2479 = 4294967291UL;
static int32_t ** volatile g_2505[1] = {&g_1628[0]};
static uint64_t g_2557 = 0x3AA81C005979FEA8LL;
static volatile uint16_t g_2717 = 0xA9E8L;/* VOLATILE GLOBAL g_2717 */
static volatile uint16_t *g_2716 = &g_2717;
static volatile uint16_t ** const  volatile g_2715 = &g_2716;/* VOLATILE GLOBAL g_2715 */
static const uint64_t *g_2727 = &g_2557;
static const uint64_t * volatile * const g_2726 = &g_2727;
static uint64_t *** const ** volatile g_2777 = (void*)0;/* VOLATILE GLOBAL g_2777 */
static uint64_t *** const *g_2779 = &g_1899;
static uint64_t *** const ** volatile g_2778 = &g_2779;/* VOLATILE GLOBAL g_2778 */


/* --- FORWARD DECLARATIONS --- */
int64_t  func_1(void);
union U0  func_21(const int8_t * p_22, const int8_t * p_23);
int8_t * func_24(uint32_t  p_25, int8_t * p_26);
int32_t * func_27(uint8_t  p_28, int8_t  p_29, int8_t * p_30);
uint8_t  func_31(int8_t * p_32);
union U0  func_35(uint32_t  p_36);
int32_t  func_38(int32_t * p_39);
union U0 * func_43(union U0 * p_44, union U0 * p_45, int32_t * p_46, union U0  p_47);
union U0 * func_50(uint64_t  p_51);
int64_t  func_54(uint8_t  p_55, int32_t * p_56, uint8_t  p_57);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_33 g_34 g_48 g_6 g_59 g_49.f0 g_86 g_87 g_88 g_49.f1 g_124 g_84.f1 g_120 g_184 g_396 g_320 g_251 g_252 g_49 g_403 g_318 g_319 g_180 g_476 g_257 g_303 g_304 g_305 g_495 g_260 g_469 g_182 g_560 g_250 g_338 g_591 g_612 g_645 g_658 g_701 g_788 g_524 g_957 g_589 g_959 g_923 g_603 g_696.f0 g_994 g_999 g_995 g_963 g_683 g_233 g_962 g_1161 g_1224 g_205.f0 g_84.f0 g_958 g_1100 g_1305 g_1181 g_1313 g_234 g_945 g_1480 g_2263 g_2271 g_1782.f0 g_1981 g_1810 g_1628 g_2441 g_1819 g_1710 g_1711 g_1712 g_605 g_1637 g_2557 g_2191 g_2715 g_2716 g_2717 g_1663 g_1899 g_1468 g_2726 g_2727 g_2778
 * writes: g_34 g_59 g_63 g_6 g_83 g_88 g_124 g_180 g_182 g_184 g_469 g_403 g_477 g_319 g_84.f2 g_495 g_260 g_120 g_560 g_338 g_591 g_603 g_49.f2 g_605 g_612 g_701 g_788 g_234 g_962 g_963 g_589 g_994 g_257 g_658 g_1181 g_84.f0 g_945 g_2263 g_2271 g_1480 g_2003 g_941.f2 g_923 g_1224 g_2342 g_1981 g_1100 g_1710 g_1628 g_2557 g_2479 g_320 g_1468 g_2441 g_2779
 */
int64_t  func_1(void)
{ /* block id: 0 */
    uint64_t l_4 = 0UL;
    int32_t l_8 = 4L;
    int32_t l_11 = 0L;
    int32_t l_12 = 0xAA7054F8L;
    int32_t l_13 = 0L;
    int8_t l_14 = (-6L);
    int32_t *l_2244 = &l_13;
    const int8_t *l_2249[4];
    uint32_t l_2642[3][3] = {{0xE4300806L,4294967286UL,4294967286UL},{0xE4300806L,4294967286UL,4294967286UL},{0xE4300806L,4294967286UL,4294967286UL}};
    int16_t l_2643 = 0x8F7BL;
    int32_t l_2647[2][1];
    uint8_t l_2648 = 0x4AL;
    int32_t l_2663 = 0xFA954BBAL;
    int32_t l_2664 = 9L;
    int32_t l_2665 = (-5L);
    int32_t l_2666 = 8L;
    int32_t l_2667 = 0x6DE43DDAL;
    int64_t * const *l_2703 = &g_923;
    int64_t * const **l_2702 = &l_2703;
    int32_t *l_2707 = &l_2667;
    uint16_t **l_2710 = (void*)0;
    uint64_t ***l_2742[5];
    int16_t l_2769 = 0x106CL;
    int i, j;
    for (i = 0; i < 4; i++)
        l_2249[i] = (void*)0;
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 1; j++)
            l_2647[i][j] = 1L;
    }
    for (i = 0; i < 5; i++)
        l_2742[i] = &g_1468;
    if (((safe_lshift_func_uint16_t_u_u(0xEA98L, 1)) == l_4))
    { /* block id: 1 */
        int32_t *l_5 = &g_6[1][5];
        int32_t *l_7[10] = {(void*)0,(void*)0,&g_6[7][8],&g_6[1][5],&g_6[7][8],(void*)0,(void*)0,&g_6[7][8],&g_6[1][5],&g_6[7][8]};
        int32_t l_9 = 0L;
        int32_t l_10 = 0x3D076C56L;
        uint32_t l_15 = 0x33DB9622L;
        uint32_t ***l_996 = (void*)0;
        uint32_t **l_997 = (void*)0;
        uint32_t ***l_998 = &g_994;
        uint64_t *l_1003 = &l_4;
        int32_t **l_2240 = &g_234[6];
        int32_t **l_2241 = &g_234[6];
        int32_t **l_2242 = (void*)0;
        int32_t **l_2243[10];
        int i;
        for (i = 0; i < 10; i++)
            l_2243[i] = (void*)0;
        ++l_15;
        l_2643 = (safe_unary_minus_func_int64_t_s((safe_rshift_func_int8_t_s_u((func_21(func_24((((l_2244 = func_27(func_31(g_33), (+((-9L) >= ((g_696.f0 != (safe_sub_func_int8_t_s_s((((*l_998) = (l_997 = g_994)) != &g_995), ((g_999 == &g_1000) <= (((*l_1003) = (safe_sub_func_int8_t_s_s(5L, g_257))) != l_12))))) ^ 0xF8L))), &l_14)) == &l_13) ^ l_8), (*g_1480)), l_2249[2]) , l_12), l_2642[2][1]))));
    }
    else
    { /* block id: 1185 */
        int32_t *l_2644 = &l_8;
        int32_t *l_2645 = &g_589;
        int32_t *l_2646[10] = {(void*)0,(void*)0,&l_8,&l_12,&l_8,(void*)0,(void*)0,&l_8,&l_12,&l_8};
        int i;
        ++l_2648;
    }
    for (l_12 = (-26); (l_12 <= (-5)); l_12 = safe_add_func_uint64_t_u_u(l_12, 2))
    { /* block id: 1190 */
        return (*g_923);
    }
    for (g_260 = 0; (g_260 <= 5); ++g_260)
    { /* block id: 1195 */
        int32_t *l_2655 = (void*)0;
        int32_t *l_2656 = &g_589;
        int32_t *l_2657 = &l_8;
        int32_t *l_2658 = &g_184[0][6][1];
        int32_t l_2659 = 0x120009A3L;
        int32_t *l_2660 = &l_2659;
        int32_t *l_2661[9][9][3] = {{{&g_124,&g_124,&g_124},{&l_8,&l_8,&g_184[0][6][1]},{&l_8,&l_2659,&g_184[0][2][0]},{&g_495,(void*)0,&g_495},{&g_6[2][2],(void*)0,&g_124},{&g_495,&l_2659,&l_8},{(void*)0,(void*)0,&g_495},{&l_13,&l_8,&g_2271},{(void*)0,(void*)0,&g_124}},{{&g_495,&g_495,&l_11},{&g_6[2][2],&g_184[0][3][0],(void*)0},{&g_495,&g_6[4][6],(void*)0},{&l_8,&g_495,&l_2659},{&l_8,&l_8,(void*)0},{&g_124,&g_2271,&l_8},{&g_6[1][5],(void*)0,&l_8},{(void*)0,&l_8,&g_124},{&g_495,&g_6[1][5],&l_8}},{{&g_495,&g_6[1][5],&l_8},{&l_8,&g_495,(void*)0},{&g_184[0][2][0],&g_589,&l_2659},{&l_8,&g_495,(void*)0},{&g_589,(void*)0,(void*)0},{&l_13,&l_2659,&l_11},{(void*)0,&g_124,&g_124},{&g_6[4][6],&g_495,&g_2271},{&l_8,(void*)0,&g_495}},{{&l_11,&g_495,&l_8},{(void*)0,&g_2271,(void*)0},{&g_2271,&g_495,&g_495},{&g_124,(void*)0,&g_6[2][2]},{&g_184[0][6][1],&g_495,&l_11},{&g_2271,&g_184[0][2][0],&g_2271},{&g_495,&g_6[4][6],&g_2271},{(void*)0,&l_8,&g_124},{&l_8,(void*)0,&l_13}},{{&g_184[0][2][0],&g_124,&l_13},{&l_8,&l_11,&l_8},{(void*)0,(void*)0,&g_184[0][3][0]},{&g_495,&g_6[1][5],&l_11},{&g_2271,&g_589,(void*)0},{&g_184[0][6][1],&l_13,&g_495},{&g_124,&g_124,&l_8},{&g_2271,&g_6[1][5],&g_184[0][6][1]},{(void*)0,(void*)0,(void*)0}},{{&l_2659,&g_184[0][6][1],&g_495},{&l_2659,(void*)0,(void*)0},{&l_13,&g_495,&g_184[0][6][1]},{(void*)0,&g_124,&l_8},{(void*)0,&g_184[0][6][1],&g_495},{(void*)0,(void*)0,(void*)0},{(void*)0,&l_11,&l_11},{&g_589,&g_124,&g_184[0][3][0]},{&l_11,&g_495,&l_8}},{{&g_589,&l_2659,&l_13},{&g_495,&l_8,&l_13},{&g_6[1][5],&l_2659,&g_124},{(void*)0,&g_495,&g_2271},{(void*)0,&g_124,&g_2271},{&g_6[1][5],&l_11,&l_11},{&g_124,(void*)0,&g_6[2][2]},{&g_495,&g_184[0][6][1],&g_495},{(void*)0,&g_124,(void*)0}},{{&l_8,&g_495,&l_2659},{&l_8,(void*)0,&g_589},{&l_13,&g_184[0][6][1],(void*)0},{&l_8,(void*)0,&g_589},{&l_8,&g_6[1][5],&l_8},{(void*)0,&g_124,(void*)0},{&g_495,&l_13,&l_11},{&g_124,&g_589,(void*)0},{&g_6[1][5],&g_6[1][5],&l_8}},{{(void*)0,(void*)0,&g_124},{(void*)0,&l_11,(void*)0},{&g_6[1][5],&g_124,&g_124},{&g_495,(void*)0,(void*)0},{&g_589,&l_8,&g_124},{&l_11,&g_6[4][6],&l_8},{&g_589,&g_184[0][2][0],(void*)0},{(void*)0,&g_495,&l_11},{(void*)0,(void*)0,(void*)0}}};
        int32_t l_2662 = 0x2884DF24L;
        uint32_t l_2668 = 5UL;
        uint8_t l_2692 = 0x05L;
        int32_t l_2714 = 0x9A48AA32L;
        const uint32_t l_2729 = 0x5F3FC36AL;
        int64_t l_2765 = 4L;
        int i, j, k;
        ++l_2668;
        if ((safe_lshift_func_int16_t_s_u((-1L), g_701)))
        { /* block id: 1197 */
            int8_t l_2677 = 0x95L;
            uint16_t *l_2678 = (void*)0;
            int32_t l_2679 = (-5L);
            int8_t ***l_2682 = &g_1480;
            int8_t ****l_2683 = &l_2682;
            const int32_t *l_2690 = &l_2665;
            const int32_t **l_2689 = &l_2690;
            const int32_t *** const l_2688 = &l_2689;
            uint32_t l_2691[10][6] = {{18446744073709551615UL,18446744073709551615UL,0UL,18446744073709551615UL,18446744073709551615UL,0UL},{18446744073709551615UL,18446744073709551615UL,0UL,18446744073709551615UL,18446744073709551615UL,0UL},{18446744073709551615UL,18446744073709551615UL,0UL,18446744073709551615UL,18446744073709551615UL,0UL},{18446744073709551615UL,18446744073709551615UL,0UL,18446744073709551615UL,18446744073709551615UL,0UL},{18446744073709551615UL,18446744073709551615UL,0UL,18446744073709551615UL,18446744073709551615UL,0UL},{18446744073709551615UL,18446744073709551615UL,0UL,0UL,0UL,18446744073709551615UL},{0UL,0UL,18446744073709551615UL,0UL,0UL,18446744073709551615UL},{0UL,0UL,18446744073709551615UL,0UL,0UL,18446744073709551615UL},{0UL,0UL,18446744073709551615UL,0UL,0UL,18446744073709551615UL},{0UL,0UL,18446744073709551615UL,0UL,0UL,18446744073709551615UL}};
            uint64_t *l_2693 = &g_2557;
            int i, j;
            (*l_2660) = ((*l_2656) = ((safe_lshift_func_int8_t_s_s((safe_lshift_func_uint16_t_u_s(((l_2679 = l_2677) <= (((((*g_319) = (***g_958)) == (((*l_2693) = (((safe_sub_func_int32_t_s_s(l_2677, (&g_1480 == ((*l_2683) = l_2682)))) ^ ((safe_sub_func_int8_t_s_s((safe_add_func_int64_t_s_s((**g_303), (l_2688 == (void*)0))), (l_2691[1][3] = (((*l_2657) = (**l_2689)) >= (**l_2689))))) != l_2642[2][1])) | l_2692)) , &l_2643)) || l_4) && (*l_2657))), (***l_2688))), (*l_2656))) , (***l_2688)));
            return (*g_304);
        }
        else
        { /* block id: 1207 */
            int64_t *l_2701 = &g_1224;
            int64_t ** const l_2700 = &l_2701;
            int64_t ** const *l_2699 = &l_2700;
            int64_t * const **l_2705 = &l_2703;
            int32_t l_2728 = 0L;
            int32_t l_2770 = 0xE4D58664L;
            for (g_495 = 0; (g_495 != (-20)); --g_495)
            { /* block id: 1210 */
                int64_t ** const l_2698 = (void*)0;
                int64_t ** const *l_2697 = &l_2698;
                int64_t ** const **l_2696[8][8][4] = {{{&l_2697,&l_2697,&l_2697,(void*)0},{(void*)0,&l_2697,(void*)0,&l_2697},{&l_2697,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,(void*)0},{(void*)0,&l_2697,&l_2697,&l_2697},{(void*)0,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,(void*)0,(void*)0,&l_2697}},{{&l_2697,(void*)0,&l_2697,(void*)0},{&l_2697,(void*)0,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,(void*)0,&l_2697},{&l_2697,&l_2697,&l_2697,(void*)0},{&l_2697,&l_2697,(void*)0,&l_2697},{(void*)0,&l_2697,&l_2697,(void*)0},{(void*)0,(void*)0,&l_2697,&l_2697}},{{&l_2697,&l_2697,(void*)0,&l_2697},{&l_2697,(void*)0,(void*)0,&l_2697},{(void*)0,&l_2697,&l_2697,&l_2697},{&l_2697,(void*)0,&l_2697,(void*)0},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697}},{{(void*)0,&l_2697,&l_2697,&l_2697},{&l_2697,(void*)0,&l_2697,(void*)0},{(void*)0,(void*)0,&l_2697,&l_2697},{&l_2697,(void*)0,&l_2697,&l_2697},{&l_2697,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,(void*)0},{&l_2697,&l_2697,&l_2697,(void*)0}},{{(void*)0,&l_2697,(void*)0,&l_2697},{&l_2697,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,(void*)0},{(void*)0,&l_2697,&l_2697,&l_2697},{(void*)0,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,(void*)0,(void*)0,&l_2697},{&l_2697,(void*)0,&l_2697,(void*)0}},{{&l_2697,(void*)0,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,(void*)0},{&l_2697,(void*)0,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697},{(void*)0,(void*)0,&l_2697,&l_2697},{(void*)0,&l_2697,&l_2697,&l_2697}},{{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697},{(void*)0,(void*)0,&l_2697,&l_2697},{&l_2697,&l_2697,(void*)0,&l_2697},{&l_2697,&l_2697,(void*)0,&l_2697},{(void*)0,(void*)0,(void*)0,(void*)0},{&l_2697,&l_2697,(void*)0,&l_2697},{&l_2697,&l_2697,&l_2697,&l_2697}},{{&l_2697,&l_2697,&l_2697,&l_2697},{&l_2697,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,(void*)0,&l_2697},{(void*)0,&l_2697,(void*)0,&l_2697},{&l_2697,&l_2697,(void*)0,(void*)0},{&l_2697,&l_2697,&l_2697,&l_2697},{(void*)0,(void*)0,&l_2697,(void*)0},{&l_2697,(void*)0,&l_2697,&l_2697}}};
                int64_t * const ***l_2704[7][2][3];
                int32_t *l_2706 = &g_495;
                int i, j, k;
                for (i = 0; i < 7; i++)
                {
                    for (j = 0; j < 2; j++)
                    {
                        for (k = 0; k < 3; k++)
                            l_2704[i][j][k] = &l_2702;
                    }
                }
                (*g_1819) = &l_8;
                (*l_2657) |= ((l_2699 = &g_922[1][6]) != (l_2705 = l_2702));
                l_2707 = ((*g_1819) = l_2706);
                (*l_2660) = (((((*g_33) &= (((safe_lshift_func_int16_t_s_s(((void*)0 != l_2710), (***g_959))) && (*l_2706)) & ((safe_mul_func_int8_t_s_s((-2L), 0x86L)) , (!(*l_2660))))) > l_2714) , g_2715) != &g_2716);
            }
            if (((*g_923) > (safe_add_func_int64_t_s_s(((*l_2658) , ((safe_rshift_func_uint8_t_u_u(((*l_2707) = ((*g_469) , ((safe_mod_func_uint16_t_u_u((**g_2715), ((*g_1663) , ((((*g_1899) = (*g_1899)) == ((&g_2263 == ((safe_rshift_func_int16_t_s_s(((void*)0 == &g_2441), 3)) , &l_2647[1][0])) , g_2726)) && (*g_2727))))) == 1L))), l_2728)) && (**g_2726))), l_2729))))
            { /* block id: 1222 */
                return (**g_303);
            }
            else
            { /* block id: 1224 */
                const int32_t l_2737 = (-1L);
                uint32_t *l_2768[6][4][2] = {{{&g_612[0][3],(void*)0},{&g_696.f0,&g_1782.f0},{&g_945,&g_696.f0},{&g_612[0][0],&l_2668}},{{&g_612[0][0],&g_696.f0},{&g_945,&g_1782.f0},{&g_696.f0,(void*)0},{&g_612[0][3],&g_696.f0}},{{&l_2668,&g_612[0][0]},{&g_612[0][0],&g_612[0][0]},{&g_612[0][3],&g_1782.f0},{&g_612[0][0],&g_1782.f0}},{{&g_612[0][3],&g_612[0][0]},{&g_612[0][0],&g_612[0][0]},{&l_2668,&g_696.f0},{&g_612[0][3],(void*)0}},{{&g_696.f0,&g_1782.f0},{&g_945,&g_696.f0},{&g_612[0][0],&l_2668},{&g_612[0][0],&g_696.f0}},{{&g_945,&g_1782.f0},{&g_696.f0,(void*)0},{&g_612[0][3],&g_696.f0},{&l_2668,&g_612[0][0]}}};
                uint8_t l_2771 = 249UL;
                int i, j, k;
                for (l_2648 = (-9); (l_2648 <= 18); ++l_2648)
                { /* block id: 1227 */
                    int64_t l_2732[4] = {1L,1L,1L,1L};
                    int i;
                    return l_2732[0];
                }
                for (g_2441 = 0; (g_2441 <= 58); g_2441 = safe_add_func_int32_t_s_s(g_2441, 7))
                { /* block id: 1232 */
                    int32_t l_2743 = 1L;
                    int32_t l_2747 = 0x2B0380C2L;
                    for (g_658 = 0; (g_658 <= 1); g_658 += 1)
                    { /* block id: 1235 */
                        int i;
                        (*l_2658) ^= 0xFD1AF148L;
                    }
                    if ((((safe_mul_func_uint8_t_u_u((l_2737 && ((safe_rshift_func_uint8_t_u_s((l_2728 > (safe_div_func_uint8_t_u_u(0x01L, 0x89L))), 5)) | l_2737)), ((*g_251) ^ (l_2742[2] == (void*)0)))) , (*g_87)) , l_2743))
                    { /* block id: 1238 */
                        uint16_t l_2746 = 65527UL;
                        (*l_2707) = ((safe_mod_func_int8_t_s_s((l_2747 = l_2746), ((safe_add_func_uint64_t_u_u((safe_add_func_int8_t_s_s(((*g_33) = (!((l_2770 &= ((safe_lshift_func_uint8_t_u_u((((safe_mul_func_int8_t_s_s((safe_sub_func_int64_t_s_s((-4L), l_2743)), (safe_mod_func_int32_t_s_s((safe_sub_func_uint16_t_u_u((safe_div_func_int16_t_s_s((l_2765 >= ((8L >= 0x35L) != (l_2728 != (safe_sub_func_int16_t_s_s((l_2768[0][3][0] == (void*)0), (****g_958)))))), l_2737)), (*g_2716))), (*l_2657))))) < l_2728) >= 0xEBEE3D29L), 7)) ^ l_2769)) | (*l_2656)))), l_2743)), 0xC0EC810F4265DBAALL)) , (*g_251)))) && 0x187F9AFFL);
                        if (l_2771)
                            continue;
                        if (l_2747)
                            continue;
                    }
                    else
                    { /* block id: 1245 */
                        uint64_t *l_2776 = &l_4;
                        uint64_t **l_2775 = &l_2776;
                        uint64_t *** const l_2774 = &l_2775;
                        uint64_t *** const *l_2773 = &l_2774;
                        uint64_t *** const **l_2772 = &l_2773;
                        (*g_2778) = ((*l_2772) = &g_1899);
                    }
                }
            }
            if ((*l_2707))
                break;
        }
        for (l_2643 = 0; (l_2643 > (-2)); l_2643 = safe_sub_func_int64_t_s_s(l_2643, 3))
        { /* block id: 1255 */
            int16_t l_2782 = 0x62FDL;
            if (l_2782)
                break;
        }
        (*g_87) ^= ((*l_2707) = (safe_mod_func_uint16_t_u_u((safe_mod_func_int16_t_s_s((****g_958), (safe_rshift_func_uint16_t_u_s((safe_lshift_func_uint8_t_u_s(0xA8L, 0)), 6)))), (safe_unary_minus_func_uint64_t_u(0xA2A05921ACCEDC4ALL)))));
    }
    return (**g_303);
}


/* ------------------------------------------ */
/* 
 * reads : g_1305 g_2263 g_318 g_319 g_320 g_1480 g_33 g_34 g_962 g_2271 g_303 g_304 g_305 g_87 g_233 g_6 g_1782.f0 g_995 g_658 g_120 g_1810 g_1628 g_251 g_252 g_923 g_994 g_469 g_182 g_88 g_2441 g_180 g_959 g_338 g_1819 g_589 g_701 g_1710 g_1711 g_1712 g_605 g_1981 g_1637 g_124 g_495 g_2557 g_963 g_958 g_2191
 * writes: g_2263 g_120 g_34 g_962 g_2271 g_1480 g_2003 g_941.f2 g_6 g_88 g_923 g_234 g_1224 g_2342 g_338 g_124 g_1981 g_180 g_658 g_182 g_1100 g_1710 g_1628 g_589 g_701 g_495 g_2557 g_963 g_2479 g_591 g_319 g_603
 */
union U0  func_21(const int8_t * p_22, const int8_t * p_23)
{ /* block id: 969 */
    uint32_t *l_2254 = &g_941.f0;
    int32_t l_2259 = (-10L);
    int32_t l_2260 = 0x7A1178A4L;
    const union U0 l_2261[3] = {{0UL},{0UL},{0UL}};
    int32_t l_2262 = 0xA18A35B8L;
    int32_t l_2268 = 0x18EB14B4L;
    int32_t l_2269 = 5L;
    int8_t *l_2270 = &g_962;
    uint8_t ***l_2272 = &g_477;
    int64_t l_2285 = 0xC9EC02B7128489B8LL;
    uint32_t l_2328 = 1UL;
    int64_t ***l_2339 = &g_922[0][7];
    int8_t l_2354[5][3] = {{(-8L),0x98L,(-8L)},{0L,0x6FL,0L},{(-8L),0x98L,(-8L)},{0L,0x6FL,0L},{(-8L),0x98L,(-8L)}};
    int32_t l_2436 = 0x9EEC281CL;
    int32_t l_2487[2];
    int8_t ***l_2503 = &g_1480;
    int8_t ****l_2502 = &l_2503;
    uint8_t l_2518[10][2][8] = {{{253UL,0xACL,1UL,0xC4L,0xF7L,0xC4L,1UL,0xACL},{253UL,251UL,0x1FL,1UL,1UL,0x75L,0x44L,0xACL}},{{0x44L,0xF9L,253UL,0xC4L,253UL,0xF9L,0x44L,251UL},{0xC6L,0xC4L,0x1FL,0x75L,0x1FL,251UL,253UL,251UL}},{{0x1FL,251UL,253UL,251UL,0x1FL,1UL,1UL,0x75L},{0x44L,0xC4L,0UL,251UL,0xF7L,0x75L,0xF7L,251UL}},{{0UL,250UL,0UL,1UL,253UL,0xACL,1UL,0xC4L},{0xF7L,250UL,253UL,0x75L,0xC6L,0x75L,253UL,250UL}},{{0xF7L,0xC4L,1UL,0xACL,253UL,1UL,0UL,250UL},{0UL,251UL,0xF7L,0x75L,0xF7L,251UL,0UL,0xC4L}},{{0x44L,0x75L,1UL,1UL,0x1FL,251UL,253UL,251UL},{0x1FL,251UL,253UL,251UL,0x1FL,1UL,1UL,0x75L}},{{0x44L,0xC4L,0UL,251UL,0xF7L,0x75L,0xF7L,251UL},{0UL,250UL,0UL,1UL,253UL,0xACL,1UL,0xC4L}},{{0xF7L,250UL,253UL,0x75L,0xC6L,0x75L,253UL,250UL},{0xF7L,0xC4L,1UL,0xACL,253UL,1UL,0UL,250UL}},{{0UL,251UL,0xF7L,0x75L,0xF7L,251UL,0UL,0xC4L},{0x44L,0x75L,1UL,1UL,0x1FL,251UL,253UL,251UL}},{{0x1FL,251UL,253UL,251UL,0x1FL,1UL,1UL,0x75L},{0x44L,0xC4L,0UL,251UL,0xF7L,0x75L,0xF7L,251UL}}};
    uint32_t * const *l_2523 = &g_1663;
    int i, j, k;
    for (i = 0; i < 2; i++)
        l_2487[i] = 0x127A92B9L;
    if (((((safe_div_func_uint64_t_u_u((((((safe_mod_func_int16_t_s_s((g_2271 &= ((((void*)0 == l_2254) , (safe_mul_func_uint8_t_u_u((safe_lshift_func_int8_t_s_u((l_2260 |= (l_2259 = (*p_22))), 7)), (((l_2261[1] , ((g_2263 &= (l_2262 &= l_2261[1].f1)) || (l_2262 & ((safe_mul_func_uint8_t_u_u(l_2261[1].f0, ((*l_2270) &= ((**g_1480) &= ((l_2269 &= (l_2268 &= (safe_lshift_func_int8_t_s_u((((***g_318) = (l_2261[1].f1 , ((-1L) > l_2262))) , l_2261[1].f0), l_2262)))) || l_2269))))) | l_2261[1].f1)))) | l_2261[1].f0) & l_2261[1].f1)))) <= l_2261[1].f0)), l_2261[1].f1)) > l_2261[1].f0) < 0xE057L) != l_2261[1].f0) <= l_2261[1].f0), 0x8736BB284B5A019CLL)) && 0x2C0FL) , (void*)0) != l_2272))
    { /* block id: 980 */
        uint16_t l_2295 = 0xFD27L;
        int8_t *l_2296 = &g_34;
        int32_t *l_2297 = (void*)0;
        int64_t *l_2304 = &g_180;
        int32_t l_2324 = 1L;
        int32_t l_2327[1][4];
        int32_t l_2331 = (-6L);
        uint16_t l_2332 = 1UL;
        int64_t ****l_2340 = (void*)0;
        int64_t ****l_2341[10][2] = {{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339},{&l_2339,&l_2339}};
        union U0 l_2353 = {18446744073709551612UL};
        union U0 l_2379 = {18446744073709551615UL};
        int16_t l_2407 = 0L;
        int32_t l_2408[5] = {0x0353F72CL,0x0353F72CL,0x0353F72CL,0x0353F72CL,0x0353F72CL};
        uint16_t l_2494[9][2] = {{0x619EL,65535UL},{9UL,9UL},{0x79DDL,9UL},{9UL,65535UL},{0x619EL,0xC11CL},{0x79DDL,0x619EL},{0xC11CL,65535UL},{0xC11CL,0x619EL},{0x79DDL,0xC11CL}};
        int i, j;
        for (i = 0; i < 1; i++)
        {
            for (j = 0; j < 4; j++)
                l_2327[i][j] = 0x9990798EL;
        }
lbl_2388:
        for (g_2263 = 21; (g_2263 <= 13); g_2263--)
        { /* block id: 983 */
            uint32_t l_2277 = 0UL;
            int8_t ***l_2278 = (void*)0;
            int8_t ***l_2279 = &g_1480;
            int8_t **l_2281 = &l_2270;
            int8_t ***l_2280 = &l_2281;
            int16_t **l_2318 = &g_320;
            int32_t l_2319[1];
            int32_t *l_2325 = &l_2262;
            int32_t *l_2326[2][2];
            int i, j;
            for (i = 0; i < 1; i++)
                l_2319[i] = 1L;
            for (i = 0; i < 2; i++)
            {
                for (j = 0; j < 2; j++)
                    l_2326[i][j] = &g_6[1][5];
            }
            if ((safe_lshift_func_int8_t_s_s((((l_2277 && (l_2277 >= (((&p_23 != ((*l_2280) = ((*l_2279) = (void*)0))) , (l_2277 < (**g_303))) > 6L))) != 5L) || l_2262), (*g_33))))
            { /* block id: 986 */
                int8_t **l_2290 = (void*)0;
                int32_t l_2294 = (-1L);
                int32_t **l_2298 = &l_2297;
                int32_t **l_2299 = &g_2003[0][2];
                int32_t *l_2301 = (void*)0;
                int32_t **l_2300 = &l_2301;
                uint64_t *l_2302 = &g_941.f2;
                int32_t *l_2303 = &g_6[3][8];
                int64_t **l_2305 = &g_923;
                union U0 l_2320 = {4UL};
                (*g_87) = ((*l_2303) = (safe_unary_minus_func_uint64_t_u((safe_mul_func_uint16_t_u_u((l_2285 >= ((*l_2302) = (((*l_2300) = ((*l_2299) = ((*l_2298) = l_2297))) == (void*)0))), l_2294)))));
                if (((0x0A934032L & l_2295) & ((((*l_2305) = l_2304) != &l_2285) >= l_2295)))
                { /* block id: 998 */
                    int8_t l_2310 = 0xECL;
                    (*g_233) = &l_2294;
                    if (l_2310)
                        break;
                }
                else
                { /* block id: 1003 */
                    int8_t l_2315 = 4L;
                    (*l_2303) = (l_2319[0] = (0xD110966BL == (!((safe_rshift_func_int16_t_s_u(0x34E2L, (safe_unary_minus_func_int32_t_s((((l_2315 ^ (safe_lshift_func_uint8_t_u_u((l_2277 == ((void*)0 == l_2318)), (l_2297 == (void*)0)))) , ((l_2315 >= (-1L)) >= l_2295)) >= l_2277))))) , (*l_2303)))));
                    return l_2320;
                }
            }
            else
            { /* block id: 1008 */
                for (g_1224 = (-2); (g_1224 != (-18)); g_1224 = safe_sub_func_uint32_t_u_u(g_1224, 1))
                { /* block id: 1011 */
                    const union U0 *l_2323 = (void*)0;
                    l_2323 = l_2323;
                }
            }
            l_2328++;
            l_2332++;
        }
        if ((safe_rshift_func_int8_t_s_s((0x0F95343EE5DF6E27LL || (0UL > (g_1782.f0 > (safe_add_func_int32_t_s_s(((g_2342 = l_2339) != ((((safe_rshift_func_int8_t_s_s((safe_add_func_int8_t_s_s((safe_add_func_int32_t_s_s((safe_mod_func_int32_t_s_s(l_2261[1].f1, l_2260)), (safe_lshift_func_int8_t_s_s((l_2353 , 7L), 2)))), ((((*g_995) == l_2354[4][1]) && 0xC2L) > (*p_22)))), 7)) , (void*)0) == &g_2052) , (void*)0)), l_2328))))), (*p_22))))
        { /* block id: 1019 */
            int8_t l_2359 = 0xC9L;
            int32_t l_2377 = 0xB42CDAE5L;
            int32_t l_2378 = (-4L);
            for (g_338 = 0; (g_338 > (-9)); g_338 = safe_sub_func_uint64_t_u_u(g_338, 7))
            { /* block id: 1022 */
                int32_t *l_2357 = (void*)0;
                int32_t *l_2358[5] = {&g_2271,&g_2271,&g_2271,&g_2271,&g_2271};
                int32_t **l_2376 = &g_2003[0][0];
                int i;
                l_2359 &= (l_2327[0][3] = 0x9813C1FEL);
                (*g_87) = ((safe_add_func_int32_t_s_s((((safe_add_func_int64_t_s_s((1L > (l_2354[3][0] <= 0x77L)), ((safe_add_func_uint8_t_u_u((safe_sub_func_uint8_t_u_u(((l_2268 = l_2261[1].f0) < (((safe_add_func_int8_t_s_s(((l_2269 || ((safe_lshift_func_uint16_t_u_s((safe_mul_func_uint16_t_u_u((safe_rshift_func_int8_t_s_s(((l_2327[0][3] = (l_2377 = ((l_2376 != (void*)0) , l_2331))) == (*g_304)), 6)), g_658)), 4)) >= 0L)) ^ 65535UL), l_2328)) , 6L) <= (*g_320))), l_2353.f1)), l_2295)) > l_2285))) > l_2354[4][1]) <= l_2378), l_2354[1][1])) != l_2324);
                return l_2379;
            }
        }
        else
        { /* block id: 1031 */
            union U0 l_2387 = {0xFC170148L};
            int32_t l_2411 = 0x7416A418L;
            uint8_t **l_2414 = &g_63[0][4];
            uint32_t l_2437[6];
            int32_t l_2486[7][2] = {{1L,0x56B94FD7L},{0x715A1296L,0L},{0x56B94FD7L,0L},{0x715A1296L,0x56B94FD7L},{1L,1L},{1L,0x715A1296L},{(-1L),1L}};
            int16_t l_2489 = 0x2A48L;
            int16_t l_2491[1];
            int8_t l_2493[9] = {0L,0x7CL,0L,0x7CL,0L,0x7CL,0L,0x7CL,0L};
            int i, j;
            for (i = 0; i < 6; i++)
                l_2437[i] = 18446744073709551610UL;
            for (i = 0; i < 1; i++)
                l_2491[i] = 0xA129L;
            if (l_2261[1].f1)
            { /* block id: 1032 */
                for (g_2271 = 0; (g_2271 == (-28)); g_2271 = safe_sub_func_int64_t_s_s(g_2271, 5))
                { /* block id: 1035 */
                    for (g_124 = 0; (g_124 != 24); g_124 = safe_add_func_int16_t_s_s(g_124, 3))
                    { /* block id: 1038 */
                        int8_t l_2386 = 9L;
                        (*g_87) = (safe_rshift_func_uint8_t_u_u(l_2386, 3));
                    }
                }
                return l_2387;
            }
            else
            { /* block id: 1043 */
                int16_t l_2403 = 9L;
                const uint8_t ***l_2415 = &g_1710;
                const int64_t l_2435[8] = {(-1L),0x4E1C90321D70DFB1LL,(-1L),(-1L),0x4E1C90321D70DFB1LL,(-1L),(-1L),0x4E1C90321D70DFB1LL};
                uint32_t **l_2440 = (void*)0;
                union U0 l_2442 = {18446744073709551615UL};
                int64_t ****l_2480 = &g_2342;
                int8_t l_2482 = 1L;
                int32_t l_2483[9][1];
                int32_t l_2490 = 1L;
                int64_t l_2492 = (-10L);
                uint16_t l_2497 = 0UL;
                int i, j;
                for (i = 0; i < 9; i++)
                {
                    for (j = 0; j < 1; j++)
                        l_2483[i][j] = 0xE0A3F096L;
                }
                for (g_1981 = 0; (g_1981 <= 0); g_1981 += 1)
                { /* block id: 1046 */
                    uint8_t l_2406 = 0xE5L;
                    const uint32_t l_2410 = 1UL;
                    (**g_1810) = (-5L);
                    if (l_2285)
                        goto lbl_2388;
                    if (l_2295)
                        continue;
                    for (g_2263 = 0; (g_2263 <= 0); g_2263 += 1)
                    { /* block id: 1052 */
                        int8_t l_2395 = 0xCAL;
                        uint32_t *l_2409[9][10] = {{&g_1100,&g_605[6][0][7],(void*)0,&g_605[6][0][7],&g_605[6][0][7],(void*)0,&g_605[6][0][7],&g_1100,&g_605[6][0][7],(void*)0},{&g_605[0][0][1],&g_1100,&g_605[6][0][7],&g_1100,&g_605[0][0][1],(void*)0,(void*)0,&g_605[0][0][1],&g_1100,&g_605[6][0][7]},{&g_1100,&g_1100,&g_605[6][0][7],&g_605[0][0][1],&g_1100,&g_605[0][0][1],&g_605[6][0][7],&g_1100,&g_1100,&g_605[6][0][7]},{&g_1100,&g_605[0][0][1],(void*)0,(void*)0,&g_605[0][0][1],&g_1100,&g_605[6][0][7],&g_1100,&g_605[0][0][1],(void*)0},{&g_605[6][0][7],&g_1100,&g_605[6][0][7],(void*)0,&g_605[6][0][7],&g_605[6][0][7],(void*)0,&g_605[6][0][7],&g_1100,&g_605[6][0][7]},{&g_605[6][0][7],&g_1100,&g_1100,&g_605[0][0][1],&g_1100,&g_1100,&g_605[6][0][7],&g_605[6][0][7],&g_1100,&g_1100},{&g_1100,&g_605[6][0][7],&g_605[6][0][7],&g_1100,&g_1100,&g_605[0][0][1],&g_1100,&g_1100,&g_605[6][0][7],&g_605[6][0][7]},{&g_1100,&g_605[6][0][7],(void*)0,&g_605[6][0][7],&g_605[6][0][7],(void*)0,&g_605[6][0][7],&g_1100,&g_605[6][0][7],(void*)0},{&g_605[0][0][1],&g_1100,&g_605[6][0][7],&g_1100,&g_605[0][0][1],(void*)0,(void*)0,&g_605[0][0][1],&g_1100,&g_605[6][0][7]}};
                        int i, j;
                        (*g_87) = (l_2411 = (((safe_add_func_int64_t_s_s((safe_rshift_func_uint16_t_u_u((safe_sub_func_uint16_t_u_u(l_2395, (0x4D7835CFL < 0x78EF1C34L))), 15)), ((g_1100 = ((((l_2354[4][1] , ((*g_469) |= ((**g_994) = ((((safe_mul_func_uint16_t_u_u((safe_div_func_int8_t_s_s((safe_lshift_func_int16_t_s_s((safe_unary_minus_func_int8_t_s(1L)), l_2379.f0)), (*g_251))), (l_2403 & (((*g_923) = (((safe_mod_func_int8_t_s_s((l_2387.f1 == l_2406), l_2379.f0)) && l_2407) && l_2403)) || l_2408[3])))) == (*p_22)) >= l_2395) != l_2395)))) >= l_2395) , &g_612[5][3]) != (void*)0)) >= l_2410))) , 0UL) <= l_2407));
                    }
                }
                if ((safe_mod_func_uint32_t_u_u(((l_2414 != ((*l_2415) = &g_1711[1])) <= 0x4E571CB5L), 0x94A494A3L)))
                { /* block id: 1062 */
                    uint16_t l_2416 = 65535UL;
                    uint32_t **l_2438 = &g_469;
                    if (l_2332)
                    { /* block id: 1063 */
                        uint16_t l_2430[10][8] = {{2UL,0x2717L,5UL,0x44F2L,1UL,0xF95DL,4UL,0x5779L},{8UL,4UL,6UL,2UL,65535UL,0xA332L,8UL,0xD4E3L},{3UL,0x7E8EL,1UL,0UL,0x4429L,0x2717L,0x2717L,0x4429L},{0x539FL,0xCFE6L,0xCFE6L,0x539FL,5UL,0x2127L,0xD4E3L,0x2717L},{4UL,0UL,65526UL,0x4429L,65535UL,0x02C0L,0xA432L,0UL},{0xCFE6L,0UL,0x2717L,0x00A1L,0x49E6L,0x2127L,0UL,0x44F2L},{2UL,0xCFE6L,0xF95DL,0x7E8EL,0xCFE6L,0x2717L,0x44F2L,0x767FL},{0xD4E3L,0x7E8EL,9UL,65533UL,0xA432L,0xA332L,0xA432L,65533UL},{0x00A1L,4UL,0x00A1L,0x2127L,2UL,0xF95DL,0x5779L,65535UL},{0x44F2L,0x2717L,0xCFE6L,0x7E8EL,0xF95DL,0xCFE6L,2UL,0UL}};
                        uint32_t ***l_2439[4][2][1];
                        int i, j, k;
                        for (i = 0; i < 4; i++)
                        {
                            for (j = 0; j < 2; j++)
                            {
                                for (k = 0; k < 1; k++)
                                    l_2439[i][j][k] = &g_994;
                            }
                        }
                        (*g_87) ^= (((*g_923) = (((l_2285 | l_2416) > (safe_rshift_func_uint8_t_u_u(l_2285, 2))) ^ 1UL)) <= ((l_2440 = ((safe_mul_func_int8_t_s_s((safe_lshift_func_uint16_t_u_s((safe_mod_func_int8_t_s_s((safe_sub_func_uint8_t_u_u(((safe_div_func_uint16_t_u_u(((~l_2387.f1) , l_2430[5][0]), 65535UL)) <= (safe_mod_func_uint8_t_u_u((l_2416 ^ ((safe_mod_func_uint64_t_u_u(l_2435[3], (-1L))) < l_2295)), 1UL))), (*p_22))), 1L)), l_2436)), l_2437[5])) , l_2438)) != &g_995));
                        (*g_87) = ((l_2411 = g_2441) != l_2353.f0);
                        return l_2442;
                    }
                    else
                    { /* block id: 1070 */
                        int64_t l_2443 = 0x80BCDDCABE0E9D77LL;
                        (*g_87) |= (l_2443 = 0xE5D4F49BL);
                    }
                }
                else
                { /* block id: 1074 */
                    const union U0 **l_2451[7] = {&g_2032,&g_2032,&g_2032,&g_2032,&g_2032,&g_2032,&g_2032};
                    const union U0 ***l_2450 = &l_2451[3];
                    int32_t l_2474 = (-1L);
                    int32_t *l_2484[8] = {&l_2262,&l_2262,&l_2262,&l_2262,&l_2262,&l_2262,&l_2262,&l_2262};
                    int32_t l_2485 = (-1L);
                    int64_t l_2488 = 1L;
                    int i;
                    (*g_87) |= l_2261[1].f0;
                    for (l_2268 = 0; (l_2268 >= 19); l_2268 = safe_add_func_int32_t_s_s(l_2268, 7))
                    { /* block id: 1078 */
                        const uint8_t l_2461 = 252UL;
                        int64_t ****l_2481[5] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                        int i;
                        l_2483[3][0] |= (safe_lshift_func_int16_t_s_u((((safe_add_func_int32_t_s_s((l_2327[0][3] = ((l_2332 > ((void*)0 == l_2450)) , ((safe_mod_func_int16_t_s_s((safe_mul_func_int8_t_s_s(((safe_rshift_func_uint16_t_u_s((!((*l_2304) ^= ((l_2353 , l_2480) != l_2481[3]))), 3)) & l_2461), (*p_22))), l_2474)) & l_2437[5]))), l_2482)) >= l_2435[3]) == (***g_959)), 13));
                    }
                    --l_2494[0][0];
                    l_2497--;
                }
                for (g_962 = 10; (g_962 != 16); g_962++)
                { /* block id: 1090 */
                    uint32_t l_2504 = 0x1590B15AL;
                    int32_t *l_2507 = &l_2269;
                    uint64_t l_2511 = 0x6A2E7BC6022C7CA7LL;
                    if (g_338)
                        goto lbl_2388;
                    (*g_87) = l_2493[0];
                    if ((l_2502 != (void*)0))
                    { /* block id: 1093 */
                        return l_2387;
                    }
                    else
                    { /* block id: 1095 */
                        int32_t **l_2506 = &g_1628[4];
                        int32_t *l_2508 = &l_2487[0];
                        int32_t *l_2509 = &l_2483[3][0];
                        int32_t *l_2510[2][5];
                        int i, j;
                        for (i = 0; i < 2; i++)
                        {
                            for (j = 0; j < 5; j++)
                                l_2510[i][j] = &g_184[0][6][1];
                        }
                        l_2411 = (0x990DB746L || l_2504);
                        (*l_2506) = ((*g_1819) = &l_2327[0][3]);
                        (*l_2506) = l_2507;
                        --l_2511;
                    }
                    (*g_87) |= ((safe_sub_func_uint32_t_u_u(((0x12EE601DL && (safe_div_func_uint32_t_u_u(((((*p_22) > l_2518[0][1][7]) && 0x346CL) | (safe_rshift_func_int16_t_s_u((0UL != 0xAAB3L), ((*l_2507) = (safe_rshift_func_uint16_t_u_s(l_2494[6][1], 5)))))), l_2483[0][0]))) , (&g_1663 == l_2523)), l_2379.f1)) | 0x7B2A57E7L);
                }
                for (l_2407 = 0; (l_2407 <= (-29)); --l_2407)
                { /* block id: 1107 */
                    for (l_2331 = (-15); (l_2331 == 29); l_2331 = safe_add_func_uint64_t_u_u(l_2331, 1))
                    { /* block id: 1110 */
                        return l_2387;
                    }
                    for (g_589 = (-10); (g_589 > 22); ++g_589)
                    { /* block id: 1115 */
                        l_2483[0][0] &= 0x63A0B0ABL;
                    }
                }
            }
        }
    }
    else
    { /* block id: 1121 */
        uint8_t l_2536 = 0x47L;
        int16_t **l_2624[5] = {&g_320,&g_320,&g_320,&g_320,&g_320};
        int32_t l_2630[1];
        union U0 l_2639[1] = {{0x21E2B8F1L}};
        int i;
        for (i = 0; i < 1; i++)
            l_2630[i] = 0xC29CA7B4L;
        for (g_658 = 0; (g_658 <= 47); ++g_658)
        { /* block id: 1124 */
            uint8_t *l_2545 = &g_701;
            uint32_t *l_2548 = &g_658;
            int32_t l_2551[10][3] = {{3L,(-3L),0xE13F1E8FL},{0x65328846L,0L,(-3L)},{0x65328846L,4L,0L},{3L,(-1L),3L},{0L,4L,0x65328846L},{(-3L),0L,0x65328846L},{0xE13F1E8FL,(-3L),3L},{1L,1L,0L},{0xE13F1E8FL,0L,(-3L)},{(-3L),0L,0xE13F1E8FL}};
            uint64_t *l_2552 = &g_696.f2;
            uint64_t *l_2553 = &g_1782.f2;
            uint64_t *l_2554 = &g_84.f2;
            uint64_t *l_2555 = &g_696.f2;
            uint64_t *l_2556[3][5] = {{&g_2557,&g_2557,&g_2557,&g_49[1].f2,&g_49[1].f2},{&g_2557,&g_2557,&g_2557,&g_49[1].f2,&g_49[1].f2},{&g_2557,&g_2557,&g_2557,&g_49[1].f2,&g_49[1].f2}};
            int64_t l_2558 = (-1L);
            union U0 l_2562 = {0x1A2149D4L};
            int8_t l_2596 = 1L;
            uint32_t l_2613 = 0x86CDD4C9L;
            int32_t l_2629 = 0x075EBBC2L;
            uint16_t *l_2631 = &g_603;
            int i, j;
            if ((l_2260 ^ ((0x8899L || (safe_unary_minus_func_uint16_t_u(((*g_1480) == (((((l_2268 |= ((safe_div_func_int64_t_s_s(((safe_unary_minus_func_uint32_t_u(0xD948F821L)) , l_2536), (l_2261[1].f0 && ((safe_rshift_func_uint16_t_u_s((safe_rshift_func_int8_t_s_s((((safe_rshift_func_uint8_t_u_s((safe_div_func_uint8_t_u_u((--(*l_2545)), (((void*)0 != l_2548) , (safe_sub_func_int64_t_s_s(((*p_22) != (**g_1710)), l_2551[1][0]))))), 1)) <= (-10L)) && g_605[6][0][7]), 4)), 7)) && l_2536)))) == g_1981)) > 6UL) == l_2558) , l_2536) , p_22))))) || 0x07C9735651F97484LL)))
            { /* block id: 1127 */
                (*g_1819) = &l_2551[1][0];
            }
            else
            { /* block id: 1129 */
                int32_t l_2559 = 7L;
                int16_t **** const l_2576 = &g_318;
                int16_t * const *l_2579 = &g_320;
                int16_t * const **l_2578 = &l_2579;
                int16_t * const ***l_2577 = &l_2578;
                const int64_t l_2594 = 0x752EA2DE08940D19LL;
                (**g_1637) &= l_2536;
                (*g_87) |= (l_2536 > (l_2536 | l_2536));
                if (l_2559)
                    break;
                for (g_495 = 0; (g_495 <= (-22)); --g_495)
                { /* block id: 1135 */
                    uint16_t l_2567 = 6UL;
                    int16_t * const ***l_2580 = &l_2578;
                    for (l_2436 = 0; (l_2436 >= 0); l_2436 -= 1)
                    { /* block id: 1138 */
                        return l_2562;
                    }
                    for (g_2557 = 0; (g_2557 <= 2); g_2557 += 1)
                    { /* block id: 1143 */
                        uint16_t *l_2593 = &g_963;
                        int32_t l_2595 = 0x7718CFC3L;
                        uint32_t *l_2597 = &g_2479;
                        int32_t l_2598 = 0L;
                        uint16_t *l_2609 = &g_591[1];
                        int16_t l_2610[4][6];
                        int i, j;
                        for (i = 0; i < 4; i++)
                        {
                            for (j = 0; j < 6; j++)
                                l_2610[i][j] = 0x5A98L;
                        }
                        l_2598 ^= (l_2259 &= ((l_2562.f1 >= (safe_sub_func_int32_t_s_s((safe_add_func_int32_t_s_s(l_2567, (*g_995))), ((*l_2597) = ((safe_unary_minus_func_uint8_t_u(l_2536)) > (((((((safe_sub_func_uint32_t_u_u(((-9L) ^ (++(*g_469))), (safe_unary_minus_func_int8_t_s((((safe_mul_func_int16_t_s_s((l_2576 != (l_2580 = l_2577)), ((****g_958) = (safe_lshift_func_int8_t_s_u((safe_mod_func_uint16_t_u_u(((*l_2593) &= (safe_lshift_func_int8_t_s_s((safe_lshift_func_int16_t_s_u(0x8CC8L, (((((safe_add_func_uint8_t_u_u(((((safe_mod_func_uint32_t_u_u(0x053E06DEL, l_2261[1].f1)) < l_2354[4][1]) < 0x82B059514825D0DDLL) <= 0x10L), 0x5CL)) | 3UL) == l_2559) ^ l_2567) >= l_2567))), 5))), 0x2765L)), 2))))) > g_2191) , l_2594))))) | l_2595) < (**g_1710)) <= (*g_995)) >= l_2551[1][0]) > l_2596) | l_2536)))))) != l_2567));
                        l_2595 |= (safe_add_func_int16_t_s_s(((l_2558 && (l_2551[4][2] == ((safe_mod_func_uint32_t_u_u(((((*l_2270) |= (safe_mod_func_uint8_t_u_u(((*l_2545)++), 9UL))) == (*p_22)) != (l_2610[0][5] = ((*g_320) = ((l_2596 , ((*l_2609) = (++(*l_2593)))) , (***g_959))))), (safe_div_func_int64_t_s_s((4L != (*p_22)), ((*g_923) = (**g_303)))))) && 0xDBCD77B898DD3AD3LL))) || l_2536), l_2567));
                        if (l_2613)
                            break;
                        if (l_2536)
                            continue;
                    }
                }
            }
            l_2551[8][2] = (0UL > (safe_sub_func_int8_t_s_s(((((((safe_mul_func_int16_t_s_s((safe_lshift_func_uint16_t_u_s(((*l_2631) = (safe_add_func_uint8_t_u_u((0x9FL | 0x10L), ((l_2630[0] &= (safe_mod_func_uint32_t_u_u((l_2624[1] == ((*g_318) = l_2624[1])), (safe_rshift_func_int16_t_s_u(l_2536, (safe_rshift_func_uint8_t_u_s((((l_2562.f0 <= l_2629) , 0x6D5972E2A9631107LL) & l_2285), (*g_33)))))))) && (*g_923))))), l_2551[1][0])), l_2536)) <= (*p_22)) <= 0x6EL) < l_2487[0]) , (-6L)) , l_2630[0]), (*g_33))));
            for (g_124 = 0; (g_124 == (-22)); g_124 = safe_sub_func_uint32_t_u_u(g_124, 4))
            { /* block id: 1170 */
                uint8_t l_2636 = 0xCDL;
                l_2636 = (safe_lshift_func_uint8_t_u_u((l_2551[0][2] |= l_2436), 4));
                for (l_2328 = 0; (l_2328 < 31); l_2328 = safe_add_func_int8_t_s_s(l_2328, 3))
                { /* block id: 1175 */
                    return l_2639[0];
                }
            }
            l_2630[0] ^= (safe_add_func_int16_t_s_s(1L, 7UL));
        }
    }
    (*g_1819) = &l_2262;
    return l_2261[1];
}


/* ------------------------------------------ */
/* 
 * reads : g_59
 * writes: g_59
 */
int8_t * func_24(uint32_t  p_25, int8_t * p_26)
{ /* block id: 962 */
    int8_t *l_2248 = &g_1305;
    for (g_59 = 0; (g_59 == 53); g_59++)
    { /* block id: 965 */
        uint32_t l_2247 = 8UL;
        l_2247 |= 0xE35C6506L;
    }
    return l_2248;
}


/* ------------------------------------------ */
/* 
 * reads : g_320 g_120 g_994 g_995 g_658 g_86 g_87 g_88 g_403 g_963 g_591 g_6 g_469 g_182 g_959 g_319 g_683 g_589 g_304 g_305 g_184 g_33 g_34 g_701 g_233 g_495 g_396 g_49.f0 g_612 g_962 g_1161 g_318 g_560 g_923 g_180 g_303 g_251 g_252 g_524 g_1224 g_260 g_205.f0 g_84.f0 g_958 g_1100 g_1305 g_696.f0 g_84.f1 g_1181 g_59 g_1313 g_234 g_945
 * writes: g_560 g_403 g_59 g_963 g_88 g_591 g_84.f2 g_182 g_605 g_120 g_260 g_257 g_234 g_658 g_495 g_49.f2 g_184 g_962 g_589 g_1181 g_319 g_701 g_34 g_84.f0 g_6 g_180 g_945
 */
int32_t * func_27(uint8_t  p_28, int8_t  p_29, int8_t * p_30)
{ /* block id: 426 */
    uint8_t *l_1004 = &g_560;
    int32_t l_1008[1];
    int32_t l_1023 = 0x9858E9E9L;
    uint64_t l_1068 = 8UL;
    const uint32_t *l_1094 = &g_182;
    const uint32_t ** const l_1093 = &l_1094;
    const uint32_t ** const *l_1092 = &l_1093;
    union U0 l_1103 = {18446744073709551615UL};
    int64_t ***l_1108 = &g_922[1][6];
    int8_t l_1113 = 0xFEL;
    uint8_t l_1145 = 249UL;
    uint32_t l_1175 = 4294967290UL;
    int16_t ****l_1179[2][2][6] = {{{(void*)0,&g_318,(void*)0,&g_318,(void*)0,&g_318},{&g_318,&g_318,&g_318,&g_318,&g_318,&g_318}},{{(void*)0,&g_318,(void*)0,&g_318,(void*)0,&g_318},{&g_318,&g_318,&g_318,&g_318,&g_318,&g_318}}};
    int64_t l_1187 = 0x9C144FAAF6F17C03LL;
    uint16_t *l_1259 = &g_603;
    int64_t l_1276 = 0L;
    int32_t *l_1310 = &g_495;
    uint32_t l_1366[6][1][5] = {{{18446744073709551606UL,1UL,18446744073709551606UL,1UL,18446744073709551606UL}},{{0xD8A525F5L,0xD8A525F5L,0x0B987715L,0x0B987715L,0xD8A525F5L}},{{4UL,1UL,4UL,1UL,4UL}},{{0xD8A525F5L,0x0B987715L,0x0B987715L,0xD8A525F5L,0xD8A525F5L}},{{18446744073709551606UL,1UL,18446744073709551606UL,1UL,18446744073709551606UL}},{{0xD8A525F5L,0xD8A525F5L,0x0B987715L,0x0B987715L,0xD8A525F5L}}};
    int8_t ***l_1478 = (void*)0;
    union U0 * const l_1489 = &g_696;
    uint32_t l_1531 = 0x3C122AB5L;
    const union U0 l_1544 = {0xE8A2578AL};
    int64_t l_1631[5];
    uint64_t ***l_1644 = (void*)0;
    uint32_t l_1746 = 18446744073709551615UL;
    uint32_t l_1750 = 3UL;
    union U0 * const *l_1766 = &g_48[1];
    union U0 * const **l_1765[4][7] = {{&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766},{&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766},{&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766},{&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766,&l_1766}};
    union U0 **l_1768[5][10] = {{&g_83[2][6][0],&g_83[2][6][0],(void*)0,&g_83[2][6][0],(void*)0,&g_83[2][6][0],&g_83[2][6][0],&g_48[3],&g_83[3][5][0],&g_48[3]},{&g_83[2][6][0],&g_83[2][6][0],&g_83[6][2][0],&g_83[9][2][1],&g_83[2][6][0],&g_48[3],(void*)0,&g_83[2][6][0],&g_83[2][6][0],&g_48[3]},{&g_83[2][6][0],&g_83[2][6][0],&g_48[3],&g_83[2][6][0],(void*)0,(void*)0,&g_83[2][6][0],&g_48[3],&g_83[2][6][0],&g_83[2][6][0]},{&g_83[3][5][0],&g_83[2][6][0],&g_83[2][6][0],&g_83[2][6][0],&g_83[2][6][0],&g_83[2][6][0],&g_83[8][2][0],&g_83[9][2][1],&g_83[2][6][0],&g_83[6][0][0]},{&g_83[3][5][0],&g_83[2][6][0],(void*)0,&g_83[8][2][0],&g_48[3],&g_48[3],&g_83[9][2][1],&g_48[3],&g_48[3],&g_83[8][2][0]}};
    union U0 ***l_1767 = &l_1768[4][0];
    int32_t ***l_1821[4][4] = {{&g_1819,&g_1819,&g_1819,&g_1819},{&g_1819,&g_1819,&g_1819,&g_1819},{&g_1819,&g_1819,&g_1819,&g_1819},{&g_1819,&g_1819,&g_1819,&g_1819}};
    int64_t l_1829 = 0x10BC6FC53290CC58LL;
    int32_t l_1862 = 0x79F6FEE2L;
    uint64_t l_1877 = 0xFEF248371A85D40ALL;
    uint8_t l_1886 = 249UL;
    int32_t *l_2020 = &g_124;
    uint64_t l_2044 = 0x64D43D039428F8A5LL;
    int16_t l_2205 = 0L;
    int32_t l_2206 = (-1L);
    int64_t l_2207 = 0xFC0F73C5B25C9D2CLL;
    int64_t l_2208 = 2L;
    int64_t l_2210 = 1L;
    uint8_t l_2222[2];
    int32_t *l_2239 = &g_589;
    int i, j, k;
    for (i = 0; i < 1; i++)
        l_1008[i] = 0x417D3493L;
    for (i = 0; i < 5; i++)
        l_1631[i] = 1L;
    for (i = 0; i < 2; i++)
        l_2222[i] = 250UL;
    if ((((*l_1004) = 0xA8L) <= (safe_div_func_uint16_t_u_u(((~(l_1008[0] , (((safe_mul_func_uint8_t_u_u((l_1008[0] = 0xCBL), (safe_add_func_int64_t_s_s(p_28, 0L)))) != (safe_mod_func_int8_t_s_s((safe_div_func_uint32_t_u_u((((safe_lshift_func_int8_t_s_s((safe_sub_func_uint64_t_u_u((((safe_lshift_func_uint8_t_u_s((((l_1023 & p_29) , (safe_mul_func_uint8_t_u_u(p_28, (safe_rshift_func_int16_t_s_s((safe_mul_func_int8_t_s_s((((safe_add_func_int32_t_s_s(((2UL | p_28) & l_1023), 8L)) < (-1L)) & 0x793263F3L), (-3L))), (*g_320)))))) >= l_1023), 7)) <= 0L) & (*p_30)), p_28)), (*p_30))) , l_1023) , (**g_994)), p_28)), 6L))) == (**g_86)))) & 0L), 65534UL))))
    { /* block id: 429 */
        int32_t *l_1036 = &g_589;
        uint8_t ***l_1067 = &g_477;
        int64_t ***l_1107 = &g_922[1][6];
        int64_t l_1119 = 0L;
        int32_t l_1121 = 1L;
        int32_t l_1122 = 0x8F2DFC55L;
        int32_t l_1126 = 0x9F553DFAL;
        int32_t l_1127 = 0x558C6616L;
        int32_t l_1132 = (-9L);
        int32_t l_1139 = 0x71B71F91L;
        int32_t l_1141 = 0x744D32AEL;
        int32_t l_1142 = 0x20B23825L;
        int32_t l_1143 = 0x87D3C880L;
        int32_t l_1144[3];
        const int16_t ***l_1178 = (void*)0;
        const int16_t ****l_1177 = &l_1178;
        int16_t **l_1182 = &g_320;
        int32_t ***l_1188 = (void*)0;
        int32_t l_1210[5][3] = {{(-1L),(-1L),(-1L)},{4L,(-1L),0x9DEE3D7EL},{0xF837A53BL,(-1L),0xE149E855L},{4L,4L,0xE149E855L},{(-1L),0xF837A53BL,0x9DEE3D7EL}};
        uint16_t *l_1227 = (void*)0;
        union U0 **l_1281 = &g_83[2][6][0];
        int i, j;
        for (i = 0; i < 3; i++)
            l_1144[i] = 0x5EA22E2DL;
        for (g_403 = 0; (g_403 < (-2)); g_403 = safe_sub_func_int32_t_s_s(g_403, 2))
        { /* block id: 432 */
            const int64_t *l_1048 = &g_180;
            int32_t l_1066 = 0x6FFE22C6L;
            int32_t *l_1070 = &g_124;
            uint32_t ***l_1091 = &g_994;
            int32_t l_1102 = (-6L);
            for (g_59 = 0; (g_59 >= 59); g_59++)
            { /* block id: 435 */
                return l_1036;
            }
            for (g_963 = 0; (g_963 <= 1); g_963 += 1)
            { /* block id: 440 */
                int32_t **l_1069[7][9] = {{&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6]},{&l_1036,(void*)0,&l_1036,&l_1036,&l_1036,(void*)0,&l_1036,&l_1036,&l_1036},{&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6]},{&l_1036,&l_1036,&l_1036,&l_1036,&l_1036,&l_1036,&l_1036,&l_1036,&l_1036},{&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6]},{&l_1036,&l_1036,&l_1036,(void*)0,&l_1036,&l_1036,&l_1036,(void*)0,&l_1036},{&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6],&g_234[6]}};
                uint64_t *l_1095 = &g_84.f2;
                uint32_t *l_1096 = (void*)0;
                uint32_t *l_1097 = &g_605[4][0][7];
                uint16_t *l_1098 = &g_260;
                uint32_t *l_1099[4][10] = {{&g_658,&g_658,&g_1100,&g_658,&g_658,&g_1100,(void*)0,(void*)0,&g_1100,&g_658},{&g_658,(void*)0,(void*)0,&g_658,&g_1100,&g_1100,&g_658,&g_1100,&g_1100,&g_658},{&g_1100,&g_658,&g_1100,&g_1100,&g_658,(void*)0,(void*)0,&g_658,&g_1100,&g_1100},{(void*)0,(void*)0,&g_1100,&g_658,&g_658,&g_1100,&g_658,&g_658,&g_1100,(void*)0}};
                int16_t *l_1101 = &g_257;
                int i, j;
                (*g_87) ^= (safe_rshift_func_int8_t_s_s((safe_mul_func_int8_t_s_s(((safe_add_func_int64_t_s_s((((*p_30) = ((safe_add_func_int64_t_s_s(((safe_unary_minus_func_int16_t_s((safe_sub_func_int8_t_s_s(((((l_1048 != (g_591[g_963] , l_1048)) > (((safe_sub_func_int16_t_s_s(((!(((safe_add_func_int32_t_s_s((-1L), ((safe_lshift_func_int8_t_s_s(((safe_mod_func_uint32_t_u_u((g_6[(g_963 + 8)][g_963] , ((safe_add_func_uint32_t_u_u((safe_lshift_func_int8_t_s_s(((((p_28 , p_29) != (safe_div_func_int32_t_s_s((safe_add_func_int8_t_s_s(0x00L, l_1066)), (*g_469)))) || l_1008[0]) < 0x109CL), (*p_30))), l_1008[0])) > 0x87L)), 0xB62A32ABL)) != 18446744073709551607UL), (*p_30))) , 0x3E03C48EL))) , &g_477) != l_1067)) && g_6[6][2]), p_29)) >= 4294967295UL) , 0UL)) , l_1068) | 1UL), p_28)))) , l_1066), p_29)) && (***g_959))) , 1L), 0x7AF78AE32E64E2FBLL)) != p_29), 1UL)), g_6[(g_963 + 8)][g_963]));
                l_1070 = (void*)0;
                l_1102 ^= ((safe_mod_func_uint32_t_u_u(((safe_mod_func_int64_t_s_s((safe_add_func_uint32_t_u_u((*g_995), (((*l_1101) = ((l_1023 = ((g_683 , ((safe_lshift_func_uint16_t_u_s(((((0xB544L || (safe_rshift_func_uint16_t_u_s((safe_mod_func_int64_t_s_s(((g_591[g_963]++) ^ l_1066), ((safe_lshift_func_int16_t_s_u((*l_1036), 4)) && ((*l_1098) = (safe_mod_func_int32_t_s_s(((*g_304) != (((***g_959) &= ((safe_div_func_int32_t_s_s((*l_1036), ((*l_1097) = ((*g_469) = (((*l_1095) = (l_1091 != l_1092)) , l_1068))))) && p_29)) | p_28)), p_29)))))), p_29))) | (-3L)) > g_589) == (*p_30)), p_28)) , 65535UL)) >= p_29)) > 0x38992849L)) < g_184[0][2][1]))), 0x6240146FD9CE2506LL)) | (*g_33)), 0x64429631L)) & g_701);
                (*g_233) = &l_1008[0];
            }
        }
        if (((((**g_994) &= (*l_1036)) , ((l_1103 , (safe_mul_func_int16_t_s_s(((((safe_unary_minus_func_int32_t_s((p_28 >= l_1068))) , (void*)0) == (void*)0) & (((l_1108 = l_1107) != (void*)0) > (safe_sub_func_int64_t_s_s(((safe_lshift_func_uint16_t_u_u((p_28 < 1UL), 6)) != 0x0FL), 0x81DDC3A92E13E1A7LL)))), 2UL))) , l_1113)) == (*p_30)))
        { /* block id: 458 */
            int32_t *l_1117 = &g_184[0][0][1];
            uint32_t l_1118 = 0x200535A8L;
            int32_t l_1123 = 0x406D7043L;
            int32_t l_1125 = (-2L);
            int32_t l_1128 = 0xA48DA571L;
            int32_t l_1129 = (-1L);
            int32_t l_1130 = 0xC7036B78L;
            int32_t l_1131 = 0L;
            int32_t l_1136 = 0L;
            int32_t l_1137 = 0L;
            int32_t l_1138[10][1][2] = {{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}},{{0L,0L}}};
            int i, j, k;
            if (p_29)
            { /* block id: 459 */
                int32_t *l_1116[7][10] = {{&g_184[0][0][1],&l_1008[0],(void*)0,(void*)0,&l_1008[0],&g_6[1][5],(void*)0,&g_184[0][0][1],&l_1008[0],(void*)0},{&g_124,&g_495,&l_1008[0],(void*)0,&g_184[0][1][1],&g_184[0][1][1],(void*)0,&l_1008[0],&g_495,&g_124},{&l_1008[0],&g_184[0][0][1],&g_495,&l_1008[0],&l_1023,&l_1008[0],&l_1008[0],&l_1008[0],&l_1008[0],&g_184[0][6][1]},{&l_1008[0],&l_1008[0],&l_1008[0],&l_1008[0],&g_589,(void*)0,&g_589,&l_1008[0],&l_1008[0],&l_1008[0]},{&g_589,&l_1008[0],&g_495,&g_495,&g_184[0][3][0],&g_495,&l_1008[0],&g_184[0][6][1],&l_1008[0],&g_184[0][1][1]},{(void*)0,&l_1008[0],&g_184[0][3][0],&l_1008[0],(void*)0,&g_495,&g_495,(void*)0,&l_1008[0],&g_184[0][3][0]},{&g_589,&g_589,&l_1023,(void*)0,&l_1008[0],(void*)0,&g_495,&g_589,&g_589,&g_495}};
                int i, j;
                for (g_495 = 15; (g_495 != 21); g_495 = safe_add_func_uint8_t_u_u(g_495, 6))
                { /* block id: 462 */
                    return l_1117;
                }
                l_1119 = l_1118;
            }
            else
            { /* block id: 466 */
                int32_t *l_1120[10][2] = {{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495},{&g_495,&g_495}};
                int8_t l_1124[5][7] = {{0xC5L,0xC5L,2L,0xF9L,2L,0xC5L,0xC5L},{0xC5L,2L,0xF9L,2L,0xC5L,0xC5L,2L},{0x1CL,1L,0x1CL,2L,2L,0x1CL,1L},{2L,1L,0xF9L,0xF9L,1L,2L,1L},{0x1CL,2L,2L,0x1CL,1L,0x1CL,2L}};
                uint32_t l_1133 = 0x78676A15L;
                int32_t l_1140[2][1];
                int i, j;
                for (i = 0; i < 2; i++)
                {
                    for (j = 0; j < 1; j++)
                        l_1140[i][j] = 0x959B2A65L;
                }
                l_1133++;
                ++l_1145;
                (*l_1117) = (safe_rshift_func_int8_t_s_s((*p_30), (((safe_add_func_uint64_t_u_u(g_396, (safe_mul_func_uint16_t_u_u(0xE79CL, ((g_49[1].f2 = (((safe_mod_func_int16_t_s_s(l_1145, g_49[1].f0)) > 0xC75370ED0502F673LL) <= (l_1103 , ((*l_1004) = (((((**g_994) = 4294967295UL) > (!(4294967290UL ^ p_29))) > (*g_320)) , (*l_1117)))))) >= p_29))))) < g_612[2][0]) ^ p_29)));
            }
            for (g_962 = 0; (g_962 < 3); g_962 = safe_add_func_uint32_t_u_u(g_962, 3))
            { /* block id: 476 */
                int32_t *l_1159 = &g_184[0][6][1];
                int32_t **l_1160[5][9][1] = {{{&l_1036},{&l_1159},{&l_1117},{&g_234[6]},{&g_234[9]},{&l_1117},{(void*)0},{&g_234[9]},{&l_1159}},{{&l_1159},{&l_1159},{&g_234[9]},{(void*)0},{&l_1117},{&g_234[9]},{&g_234[6]},{&l_1117},{&l_1159}},{{&l_1036},{&l_1117},{&l_1117},{&l_1036},{&l_1159},{&l_1117},{&g_234[6]},{&g_234[9]},{&l_1117}},{{(void*)0},{&g_234[9]},{&l_1159},{&l_1159},{&l_1159},{&g_234[9]},{(void*)0},{&l_1117},{&g_234[9]}},{{&g_234[6]},{&l_1117},{&l_1159},{&l_1036},{&l_1117},{&l_1117},{&l_1036},{&l_1159},{&l_1117}}};
                int i, j, k;
                l_1117 = l_1159;
            }
            (*g_1161) = &l_1122;
        }
        else
        { /* block id: 480 */
            uint8_t ***l_1173 = &g_477;
            int32_t l_1174[9] = {0x902BE9CBL,0x902BE9CBL,0x902BE9CBL,0x902BE9CBL,0x902BE9CBL,0x902BE9CBL,0x902BE9CBL,0x902BE9CBL,0x902BE9CBL};
            int16_t *****l_1180[5][9][2] = {{{&l_1179[0][1][2],(void*)0},{&l_1179[1][0][2],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[1][1][1]},{&l_1179[1][1][1],&l_1179[1][0][2]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[1][1][5]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[0][1][2]}},{{(void*)0,&l_1179[0][1][2]},{&l_1179[0][0][0],(void*)0},{&l_1179[0][1][2],&l_1179[1][1][5]},{&l_1179[0][1][2],&l_1179[1][1][4]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[1][1][1],&l_1179[0][1][2]},{&l_1179[0][0][0],&l_1179[0][1][2]},{&l_1179[1][1][4],&l_1179[0][1][2]},{&l_1179[0][0][0],&l_1179[0][1][2]}},{{&l_1179[0][1][2],&l_1179[1][1][4]},{&l_1179[1][0][2],&l_1179[1][0][4]},{&l_1179[1][1][1],(void*)0},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[0][0][0]},{&l_1179[0][1][1],&l_1179[1][0][2]},{&l_1179[1][1][4],&l_1179[0][1][2]},{&l_1179[1][0][4],(void*)0},{&l_1179[0][0][0],&l_1179[0][1][2]}},{{&l_1179[1][1][1],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[1][1][4],&l_1179[0][0][0]},{&l_1179[0][0][3],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[1][0][4],&l_1179[0][1][2]},{&l_1179[1][0][2],&l_1179[0][1][1]},{&l_1179[1][0][2],&l_1179[0][1][2]},{&l_1179[1][0][4],&l_1179[0][1][2]}},{{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[0][0][3],&l_1179[0][0][0]},{&l_1179[1][1][4],&l_1179[0][1][2]},{&l_1179[0][1][2],&l_1179[0][1][2]},{&l_1179[1][1][1],&l_1179[0][1][2]},{&l_1179[0][0][0],(void*)0},{&l_1179[1][0][4],&l_1179[0][1][2]},{&l_1179[1][1][4],&l_1179[1][0][2]},{&l_1179[0][1][1],&l_1179[0][0][0]}}};
            uint8_t *l_1186 = &g_701;
            int32_t l_1211 = 0x3D7C105DL;
            uint32_t ***l_1223 = (void*)0;
            uint32_t ****l_1222 = &l_1223;
            const uint16_t *l_1258 = &g_963;
            uint8_t l_1278[1];
            int32_t **l_1300 = &g_234[4];
            int i, j, k;
            for (i = 0; i < 1; i++)
                l_1278[i] = 2UL;
            for (p_28 = 0; (p_28 != 47); ++p_28)
            { /* block id: 483 */
                int32_t l_1164 = (-1L);
                uint8_t ***l_1172 = &g_477;
                int32_t *l_1176 = &l_1139;
                (*l_1176) ^= ((((*p_30) = (*p_30)) < l_1008[0]) && (((p_28 == (-4L)) <= 0x86L) | (l_1164 >= ((safe_add_func_int8_t_s_s((~l_1023), ((((*l_1036) = p_29) < (((((safe_rshift_func_int16_t_s_u(((safe_rshift_func_uint16_t_u_u(0x7AA8L, l_1164)) , p_28), 5)) , l_1172) == l_1173) , l_1174[7]) | l_1175)) > 0L))) <= (*g_304)))));
                (*l_1176) = l_1145;
            }
            if ((((l_1174[3] > ((l_1188 = (((l_1177 == (g_1181 = l_1179[0][1][2])) > ((((((((*g_318) = l_1182) != (((*l_1036) = ((*l_1186) = (((*g_995) = ((*g_469) = ((safe_unary_minus_func_uint16_t_u((p_29 | 0xF2F6893DL))) , (l_1175 | (++(*l_1004)))))) || p_29))) , l_1182)) | l_1113) | p_28) > 0x2721L) & (-2L)) > l_1187)) , l_1188)) != (void*)0)) , &l_1108) == &l_1108))
            { /* block id: 497 */
                uint16_t *l_1193 = (void*)0;
                int32_t l_1204 = 0x1ADAD095L;
                int32_t l_1209 = 3L;
                uint32_t ***l_1221 = (void*)0;
                uint32_t ****l_1220[2];
                uint32_t *****l_1219 = &l_1220[1];
                int8_t **l_1240[5][3] = {{&g_33,&g_33,&g_33},{&g_33,&g_33,&g_33},{&g_33,&g_33,&g_33},{&g_33,&g_33,&g_33},{&g_33,&g_33,&g_33}};
                int32_t l_1265 = 0x30DFB867L;
                int32_t l_1269[9] = {1L,0xB6BDAC09L,1L,0xB6BDAC09L,1L,0xB6BDAC09L,1L,0xB6BDAC09L,1L};
                int i, j;
                for (i = 0; i < 2; i++)
                    l_1220[i] = &l_1221;
                l_1211 ^= ((((l_1174[5] || l_1174[4]) & l_1174[7]) < ((l_1008[0] ^= ((*g_33) = (((safe_div_func_uint16_t_u_u((g_963 |= (l_1023 = ((*l_1036) > p_28))), (safe_sub_func_int32_t_s_s((l_1209 ^= (+((safe_sub_func_int64_t_s_s(((safe_add_func_uint16_t_u_u(((~0L) & (l_1113 && ((l_1204 || ((((safe_lshift_func_int8_t_s_s((safe_mod_func_uint64_t_u_u((*l_1036), 0xA534361457E37EB1LL)), (*p_30))) && g_589) , l_1174[7]) && (***g_959))) == 0UL))), p_29)) , (*g_923)), (**g_303))) > l_1068))), 0x403B47ABL)))) , (*g_251)) , l_1210[2][0]))) > (*p_30))) , l_1174[7]);
                if ((!((g_84.f0 &= ((safe_mod_func_uint32_t_u_u((((safe_lshift_func_int8_t_s_s(l_1174[3], 7)) != ((safe_sub_func_int8_t_s_s(((*p_30) = l_1211), (*l_1036))) | ((((l_1222 = ((*l_1219) = (void*)0)) != g_524) || (-3L)) , (g_1224 , ((*g_33) = (((0x200EL & ((safe_sub_func_uint16_t_u_u((*l_1036), p_29)) & g_260)) , l_1227) == l_1193)))))) > 0x10L), (*g_469))) , g_205[6][0].f0)) , 0x1FC1L)))
                { /* block id: 509 */
                    uint32_t l_1234 = 0x6FDC06F0L;
                    const int16_t *l_1235 = &g_403;
                    int32_t l_1247 = 0x805FF4BAL;
                    int32_t l_1260 = (-1L);
                    if (p_29)
                    { /* block id: 510 */
                        int32_t *l_1236 = &g_6[8][8];
                        (*l_1236) ^= ((((p_28 == (safe_mod_func_int8_t_s_s(((((*p_30) = (safe_mod_func_int32_t_s_s(((&l_1103 != (void*)0) <= (((safe_rshift_func_int8_t_s_u((((0x1EL < l_1234) == g_88) <= (*p_30)), ((*l_1004) = l_1234))) || (l_1193 != (void*)0)) || l_1174[7])), (*l_1036)))) , l_1235) != l_1235), l_1103.f1))) == p_28) , 0x54ADL) > 65526UL);
                    }
                    else
                    { /* block id: 514 */
                        uint64_t l_1239 = 3UL;
                        int64_t *l_1242[3][4][8] = {{{&l_1187,&l_1187,&l_1119,&l_1187,&g_1224,&l_1187,(void*)0,&g_1224},{&l_1187,&l_1119,&l_1187,&l_1187,&l_1119,&l_1187,&l_1187,&l_1119},{(void*)0,&l_1119,&g_1224,(void*)0,&g_1224,&l_1187,&l_1187,&l_1119},{(void*)0,&l_1119,&l_1119,&g_1224,(void*)0,&l_1187,&l_1187,(void*)0}},{{&l_1187,&g_1224,&g_1224,&l_1187,&l_1119,&g_1224,&l_1187,&g_1224},{&l_1119,&g_1224,&l_1187,&g_1224,&l_1119,&l_1187,(void*)0,&l_1119},{&l_1187,&g_1224,&l_1119,&g_1224,&l_1119,&g_1224,&l_1187,(void*)0},{&l_1119,&g_1224,(void*)0,&g_1224,&l_1187,&l_1187,&l_1119,&l_1187}},{{&l_1187,&l_1119,&g_1224,&l_1119,&l_1187,&l_1187,&l_1119,&g_1224},{&l_1119,&l_1119,&l_1187,&l_1187,&l_1119,&l_1187,&g_1224,&l_1187},{&l_1187,&l_1119,&l_1119,&l_1119,&l_1119,&l_1187,&g_1224,&l_1187},{&l_1119,&l_1187,&l_1187,&l_1187,&l_1119,&g_1224,&l_1187,&g_1224}}};
                        uint16_t *l_1255 = &g_591[1];
                        int i, j, k;
                        (*g_87) ^= (l_1174[7] | (((safe_mul_func_int16_t_s_s((l_1239 = (l_1174[7] == (p_28 < (-5L)))), (((l_1209 , l_1240[4][0]) == l_1240[4][0]) , ((l_1008[0] |= ((*g_923) = (safe_unary_minus_func_int16_t_s(((****g_958) ^= l_1174[7]))))) , (safe_div_func_uint32_t_u_u((((*g_923) = (l_1247 &= ((safe_mul_func_uint16_t_u_u(65535UL, p_29)) ^ p_28))) || p_28), 0x406D3189L)))))) >= 0L) == l_1209));
                        (*l_1036) &= (safe_unary_minus_func_int8_t_s((safe_div_func_uint8_t_u_u((safe_lshift_func_int8_t_s_s(((p_29 < (safe_rshift_func_int8_t_s_s(((*p_30) &= (((*l_1255) ^= 7UL) | ((safe_lshift_func_int8_t_s_u((-3L), (0xFB8715F3L && ((l_1103 , l_1258) == l_1259)))) & (l_1260 < 1UL)))), 3))) & (-1L)), 5)), p_28))));
                    }
                }
                else
                { /* block id: 526 */
                    int32_t *l_1261 = &l_1127;
                    int32_t *l_1262 = &g_6[1][5];
                    return l_1262;
                }
                for (l_1119 = 22; (l_1119 == (-18)); l_1119 = safe_sub_func_int64_t_s_s(l_1119, 6))
                { /* block id: 531 */
                    int32_t *l_1266 = &l_1121;
                    int32_t *l_1267 = (void*)0;
                    int32_t *l_1268 = &l_1008[0];
                    int32_t *l_1270 = &l_1132;
                    int32_t *l_1271 = &l_1210[2][0];
                    int32_t *l_1272 = &l_1269[2];
                    int32_t *l_1273 = &l_1121;
                    int32_t *l_1274 = &g_184[0][7][1];
                    int32_t *l_1275[7][6][6] = {{{&l_1269[5],&l_1269[0],&l_1174[7],&l_1269[0],&l_1269[5],&l_1141},{&l_1174[7],&l_1023,&l_1174[7],&l_1008[0],&l_1209,&l_1269[5]},{&l_1269[0],&g_184[0][1][0],&l_1127,&l_1023,&g_184[0][6][0],(void*)0},{&l_1174[7],(void*)0,&l_1269[2],&g_495,&l_1008[0],(void*)0},{&l_1144[2],&l_1269[2],&g_495,&l_1121,&l_1210[3][0],&l_1174[3]},{&l_1269[0],&l_1209,&l_1121,&l_1121,&l_1209,&l_1269[0]}},{{&l_1023,&l_1209,&l_1209,&l_1023,(void*)0,&l_1127},{&l_1174[3],&g_495,&l_1269[5],&l_1144[2],(void*)0,&l_1008[0]},{&l_1174[3],&l_1174[7],&l_1144[2],&l_1023,&l_1121,&g_184[0][6][1]},{&l_1023,(void*)0,(void*)0,&l_1121,&l_1127,&g_184[0][6][0]},{&l_1269[0],&l_1210[2][2],&l_1209,&l_1121,&l_1209,&l_1210[2][2]},{&l_1144[2],&l_1174[3],(void*)0,&g_495,&l_1269[0],&g_184[0][1][0]}},{{&l_1174[7],&l_1126,&l_1127,&l_1269[0],&g_184[0][6][1],&g_495},{(void*)0,&l_1126,&l_1210[2][2],&l_1174[1],&l_1269[0],&l_1023},{&g_495,&l_1174[3],(void*)0,(void*)0,&l_1209,(void*)0},{(void*)0,&l_1210[2][2],&l_1121,&l_1127,&l_1127,&l_1121},{(void*)0,(void*)0,&l_1174[1],&l_1174[3],&l_1121,&l_1174[7]},{&g_495,&l_1174[7],&l_1174[7],&g_184[0][6][0],(void*)0,&l_1174[1]}},{{&l_1174[1],&g_495,&l_1174[7],&l_1209,(void*)0,&l_1174[7]},{&l_1269[2],&l_1209,&l_1174[1],&l_1269[5],&l_1209,&l_1121},{&l_1269[5],&l_1209,&l_1121,(void*)0,&l_1210[3][0],(void*)0},{(void*)0,&l_1269[2],(void*)0,&g_184[0][1][0],&l_1008[0],&l_1023},{&l_1008[0],(void*)0,&l_1210[2][2],&l_1174[7],&l_1144[2],&g_495},{&l_1209,&l_1174[7],&l_1127,&l_1174[7],&l_1023,&g_184[0][1][0]}},{{&l_1008[0],&l_1269[0],(void*)0,&g_184[0][1][0],(void*)0,&l_1210[2][2]},{(void*)0,(void*)0,&l_1209,(void*)0,&g_184[0][6][0],&g_184[0][6][0]},{&l_1269[5],(void*)0,(void*)0,&l_1269[5],&l_1174[7],&g_184[0][6][1]},{&l_1269[2],&g_184[0][1][0],&l_1144[2],&l_1209,&l_1023,&l_1008[0]},{&l_1174[1],&l_1121,&l_1269[5],&g_184[0][6][0],&l_1023,&l_1127},{&g_495,&g_184[0][1][0],&l_1209,&l_1174[3],&l_1174[7],&l_1269[0]}},{{(void*)0,(void*)0,&l_1121,&l_1127,&g_184[0][6][0],&l_1174[3]},{(void*)0,(void*)0,&g_495,(void*)0,(void*)0,(void*)0},{&g_495,&l_1269[0],&l_1269[2],&l_1174[1],&l_1023,(void*)0},{(void*)0,&l_1174[7],&l_1210[3][0],&l_1269[0],&l_1144[2],(void*)0},{&l_1174[7],(void*)0,&l_1269[2],&g_495,&l_1174[1],&l_1174[7]},{&g_184[0][6][1],&l_1269[5],&l_1210[2][2],&l_1127,&l_1174[3],&l_1008[0]}},{{(void*)0,&l_1121,&l_1209,&l_1209,&l_1121,(void*)0},{(void*)0,&l_1023,&l_1121,&l_1269[0],&l_1141,&l_1210[3][0]},{&l_1008[0],&l_1121,(void*)0,&g_184[0][6][1],&l_1209,&l_1174[1]},{&l_1008[0],&g_495,&g_184[0][6][1],&l_1269[0],&l_1127,&l_1126},{(void*)0,&l_1141,&l_1174[7],&l_1209,&l_1210[3][0],&l_1144[2]},{(void*)0,&g_495,&l_1023,&l_1127,&l_1023,&g_495}}};
                    int16_t l_1277 = 0xAB92L;
                    int i, j, k;
                    l_1278[0]--;
                }
                l_1281 = l_1281;
            }
            else
            { /* block id: 535 */
                int8_t l_1307[2][9] = {{9L,9L,0x1CL,1L,0xF7L,1L,0x1CL,9L,9L},{1L,0x52L,9L,1L,9L,0x52L,1L,1L,0x52L}};
                int i, j;
                for (l_1141 = 10; (l_1141 >= 7); l_1141--)
                { /* block id: 538 */
                    int8_t l_1306 = 0x82L;
                    (*g_87) = ((safe_div_func_int64_t_s_s(((safe_sub_func_int32_t_s_s(p_28, l_1103.f0)) | p_29), ((((safe_add_func_int32_t_s_s((safe_lshift_func_int8_t_s_s((safe_lshift_func_uint8_t_u_u(((*l_1004) = (safe_mul_func_int16_t_s_s(((safe_mul_func_int16_t_s_s((safe_add_func_int32_t_s_s(((l_1300 != l_1300) && (((*g_923) &= (safe_lshift_func_int8_t_s_s((((((p_28 , 0L) ^ g_1100) & ((**g_303) ^ p_28)) | 0L) , (*p_30)), g_1305))) , p_29)), p_29)), g_696.f0)) , l_1306), g_84.f1))), l_1306)), 1)), (*g_469))) , l_1306) < p_28) | l_1306))) & l_1307[0][4]);
                    (*g_87) = 0x4122F574L;
                }
            }
        }
    }
    else
    { /* block id: 546 */
        int64_t ***l_1338 = &g_922[1][0];
        int32_t l_1349 = 5L;
        int32_t *l_1360 = (void*)0;
        (*g_87) ^= ((void*)0 == (**g_1181));
        for (g_59 = 0; (g_59 == 6); ++g_59)
        { /* block id: 550 */
            int32_t **l_1311 = (void*)0;
            int32_t **l_1312 = (void*)0;
            int8_t **l_1318 = &g_33;
            uint64_t *l_1337 = &l_1103.f2;
            int32_t l_1339 = 1L;
            int64_t ****l_1356 = (void*)0;
            const uint32_t l_1416[8][6][5] = {{{0xC33562FFL,0xDC73A0ECL,1UL,0x0EC8807AL,0xDC73A0ECL},{0UL,0UL,0x9E6AB951L,4294967295UL,0xAB3DFF9BL},{1UL,0xDC73A0ECL,0xFAD82651L,1UL,1UL},{0UL,4294967295UL,4294967290UL,0xAB3DFF9BL,0x8AC0C878L},{0xE8B3AA44L,0x3A047B6FL,0x3A047B6FL,0xE8B3AA44L,4294967287UL},{0UL,0xD71CD73DL,4294967295UL,4294967295UL,4294967295UL}},{{0xC33562FFL,1UL,1UL,4294967287UL,1UL},{4294967295UL,4294967290UL,0x8252A8B9L,4294967295UL,0xAB3DFF9BL},{0x9F0D1260L,0xF96FFBC1L,7UL,0xE8B3AA44L,2UL},{0x4563D479L,0UL,0xAB3DFF9BL,0xAB3DFF9BL,0UL},{0xDC73A0ECL,4294967287UL,4294967295UL,1UL,0x0EC8807AL},{0xAE11277EL,0UL,4294967295UL,4294967295UL,0xD71CD73DL}},{{4294967295UL,0x9F0D1260L,4294967287UL,0x0EC8807AL,0xF96FFBC1L},{0xAE11277EL,4294967290UL,0xC7279A25L,0xAE11277EL,1UL},{0xDC73A0ECL,0xE8B3AA44L,0xFAD82651L,0x9F0D1260L,0x9F0D1260L},{0x4563D479L,0xB8D5226EL,0x4563D479L,1UL,0xAE11277EL},{0x9F0D1260L,0x3A047B6FL,4294967287UL,0xF96FFBC1L,0x0EC8807AL},{4294967295UL,0x8AC0C878L,0xB4254A2AL,0xD71CD73DL,4294967295UL}},{{0xC33562FFL,1UL,4294967287UL,0x0EC8807AL,1UL},{0UL,0UL,0x4563D479L,0UL,0xAB3DFF9BL},{0xE8B3AA44L,2UL,0xFAD82651L,2UL,0xE8B3AA44L},{0UL,4294967295UL,0xC7279A25L,0xAB3DFF9BL,4294967295UL},{1UL,0x3A047B6FL,4294967287UL,1UL,4294967287UL},{0UL,0xAE11277EL,4294967295UL,4294967295UL,4294967295UL}},{{0xC33562FFL,1UL,4294967295UL,4294967287UL,0xE8B3AA44L},{4294967295UL,4294967290UL,0xAB3DFF9BL,0x8AC0C878L,0x3D9825CFL},{1UL,1UL,0x9F0D1260L,0x3A047B6FL,4294967287UL},{0xB41E9E76L,0xAB3DFF9BL,0UL,0x3D9825CFL,0xAB3DFF9BL},{1UL,0xFAD82651L,1UL,0x0EC8807AL,0x44BB8DC6L},{0UL,0xAB3DFF9BL,4294967295UL,1UL,4294967290UL}},{{0x005C3FEEL,1UL,4294967292UL,0x44BB8DC6L,4294967295UL},{0xC7279A25L,1UL,1UL,0xC7279A25L,0xD222B842L},{4294967287UL,4294967287UL,0xF96FFBC1L,1UL,0xC33562FFL},{0xB41E9E76L,4294967290UL,0x16FF0F5EL,0xD222B842L,0UL},{0xC33562FFL,4294967292UL,4294967292UL,1UL,0x44BB8DC6L},{0UL,0x4563D479L,0x8AC0C878L,0xC7279A25L,0x8252A8B9L}},{{4294967289UL,1UL,0x44BB8DC6L,0x44BB8DC6L,1UL},{0xAB3DFF9BL,4294967295UL,0x63486DCDL,1UL,0x3D9825CFL},{0x3A047B6FL,4294967287UL,0xF96FFBC1L,0x0EC8807AL,4294967287UL},{0x63486DCDL,0UL,4294967295UL,0x3D9825CFL,0x4563D479L},{0x3A047B6FL,4294967292UL,7UL,0x3A047B6FL,0x46DBCCCCL},{0xAB3DFF9BL,0xC7279A25L,4294967295UL,0UL,0UL}},{{4294967289UL,0xEF73B438L,4294967289UL,0x46DBCCCCL,0x3A047B6FL},{0UL,1UL,0xD222B842L,0x4563D479L,0x3D9825CFL},{0xC33562FFL,4294967295UL,0x9F0D1260L,4294967287UL,0x0EC8807AL},{0xB41E9E76L,1UL,0xD222B842L,0x3D9825CFL,1UL},{4294967287UL,0xFAD82651L,4294967289UL,1UL,0x44BB8DC6L},{0xC7279A25L,0x8252A8B9L,4294967295UL,0x8252A8B9L,0xC7279A25L}}};
            int16_t l_1451 = 1L;
            int i, j, k;
            (*g_87) = (*g_87);
            (*g_1313) = l_1310;
        }
        return (*g_233);
    }
    for (g_945 = (-2); (g_945 == 60); g_945 = safe_add_func_uint64_t_u_u(g_945, 3))
    { /* block id: 619 */
        int32_t **l_1485 = (void*)0;
        int16_t *l_1487 = &g_120[0][4];
        uint64_t ***l_1492 = (void*)0;
        int32_t l_1525 = 1L;
        int32_t l_1529 = 0x222009B3L;
        union U0 **l_1576 = &g_83[3][0][0];
        int16_t l_1581 = 6L;
        int32_t l_1618 = 0x1F91B2DCL;
        int32_t l_1619 = (-1L);
        int32_t l_1620 = (-1L);
        int32_t l_1621 = 0xB950AC86L;
        int32_t l_1622 = (-1L);
        int32_t l_1623[7][8];
        int64_t l_1689 = (-8L);
        const union U0 *l_1781 = &g_1782;
        uint8_t *l_1798 = &l_1145;
        uint8_t *l_1800 = &g_59;
        uint64_t l_1817 = 0xD8D5BC300B01A9B3LL;
        int32_t ***l_1820 = &g_1819;
        union U0 l_1828 = {18446744073709551606UL};
        int8_t l_1838 = 0xE3L;
        uint32_t * const **l_1844 = (void*)0;
        uint32_t l_1917 = 0x65995BB5L;
        int8_t ***l_1929[10][1] = {{&g_1480},{&g_1480},{&g_1480},{&g_1480},{&g_1480},{&g_1480},{&g_1480},{&g_1480},{&g_1480},{&g_1480}};
        int8_t l_1940 = 0xB2L;
        int32_t l_1982 = 3L;
        int32_t *l_2001[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
        union U0 l_2014 = {0xFCF09CC2L};
        uint64_t l_2056 = 0x9097B3892EBBAE66LL;
        uint32_t l_2083 = 0x0A5080F1L;
        uint8_t l_2087 = 5UL;
        int16_t ****l_2148 = &g_318;
        const uint8_t l_2216 = 0xC8L;
        uint64_t *l_2223[10] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
        int64_t *l_2224 = &l_1187;
        const uint32_t l_2237 = 0xF68A5E5BL;
        uint16_t l_2238 = 2UL;
        int i, j;
        for (i = 0; i < 7; i++)
        {
            for (j = 0; j < 8; j++)
                l_1623[i][j] = (-10L);
        }
    }
    return l_2239;
}


/* ------------------------------------------ */
/* 
 * reads : g_34 g_48 g_6 g_59 g_49.f0 g_86 g_87 g_88 g_49.f1 g_33 g_124 g_84.f1 g_120 g_184 g_396 g_320 g_251 g_252 g_49 g_403 g_318 g_319 g_180 g_476 g_257 g_303 g_304 g_305 g_495 g_260 g_469 g_182 g_560 g_250 g_338 g_591 g_612 g_645 g_658 g_701 g_788 g_524 g_957 g_589 g_959 g_923 g_603
 * writes: g_34 g_59 g_63 g_6 g_83 g_88 g_124 g_180 g_182 g_184 g_469 g_403 g_477 g_319 g_84.f2 g_495 g_260 g_120 g_560 g_338 g_591 g_603 g_49.f2 g_605 g_612 g_701 g_788 g_234 g_962 g_963 g_589
 */
uint8_t  func_31(int8_t * p_32)
{ /* block id: 3 */
    int32_t * const l_37 = &g_6[8][1];
    uint16_t *l_559 = (void*)0;
    int32_t l_607 = 1L;
    int32_t l_610 = 0xB1E7EF0FL;
    int32_t l_611 = 8L;
    uint8_t **l_617 = &g_63[0][6];
    union U0 *l_695 = &g_696;
    int32_t l_704 = 0x070A81D2L;
    int64_t l_777[4] = {0L,0L,0L,0L};
    int32_t l_779 = 0L;
    int32_t l_781 = 0xB7101341L;
    int32_t l_783 = 1L;
    int32_t l_785[10] = {1L,1L,1L,1L,1L,1L,1L,1L,1L,1L};
    uint8_t l_792 = 0UL;
    uint32_t l_831 = 0xE09604E3L;
    const int8_t l_936 = 5L;
    int i;
    if ((func_35(((void*)0 == l_37)) , ((safe_sub_func_uint16_t_u_u((g_560 |= (g_260 = (~(*l_37)))), 0xD5DAL)) != ((4294967295UL & (((safe_add_func_uint64_t_u_u((g_180 & ((safe_div_func_int32_t_s_s((((safe_mul_func_uint16_t_u_u((((*g_469) == ((*l_37) > 0x1EF0L)) >= (*l_37)), 7UL)) != (*l_37)) <= g_250[1][0][0]), (*g_469))) < (*l_37))), 0xC113647E2D973F3CLL)) != (*l_37)) != 0x4693L)) == (*l_37)))))
    { /* block id: 206 */
        uint64_t l_575 = 1UL;
        uint8_t l_585 = 251UL;
        int32_t l_609[6][1][8] = {{{0x105A0B7BL,0x977A8B54L,0L,0xD1DDB145L,0x65EFBB43L,0xD1DDB145L,0L,0x977A8B54L}},{{0x7CF85693L,0L,0x0F9BA7B6L,0xD1DDB145L,0xE0AFCCCCL,0x64324570L,0x64324570L,0xE0AFCCCCL}},{{0L,0xE0AFCCCCL,0xE0AFCCCCL,0L,0x7CF85693L,0x977A8B54L,0x64324570L,0x105A0B7BL}},{{0L,0L,0x0F9BA7B6L,0x64324570L,0x0F9BA7B6L,0L,0L,0x65EFBB43L}},{{0x0F9BA7B6L,0L,0L,0x65EFBB43L,0x977A8B54L,0x977A8B54L,0x65EFBB43L,0L}},{{0xE0AFCCCCL,0x64324570L,0xE0AFCCCCL,0xD1DDB145L,0x0F9BA7B6L,0L,0x7CF85693L,0L}}};
        int16_t *** const *l_636 = &g_318;
        int16_t *** const **l_635 = &l_636;
        int32_t **l_657 = &g_234[4];
        int32_t ***l_656 = &l_657;
        uint64_t l_705 = 0x37B7E264E1526A09LL;
        int16_t l_720[8];
        uint32_t l_752 = 8UL;
        union U0 *l_817 = &g_49[1];
        uint16_t l_827 = 0x9B77L;
        int64_t l_845[8];
        uint32_t l_912 = 0x5B5B8D67L;
        int64_t **l_926[9] = {&g_923,(void*)0,(void*)0,&g_923,(void*)0,(void*)0,&g_923,(void*)0,(void*)0};
        uint8_t *l_960 = &g_560;
        int8_t *l_961 = &g_962;
        uint8_t *l_964[4][10][6] = {{{&l_792,&g_701,&g_701,(void*)0,&l_585,(void*)0},{(void*)0,(void*)0,&g_59,&g_701,(void*)0,(void*)0},{&l_792,&g_59,&g_701,&g_59,&l_585,(void*)0},{(void*)0,&l_792,(void*)0,&l_585,&g_701,&l_585},{&g_59,&l_585,&g_59,(void*)0,&l_585,&g_59},{&g_701,&l_585,&g_701,(void*)0,(void*)0,&g_701},{&l_585,&l_585,&l_585,(void*)0,&l_585,(void*)0},{&g_701,&l_585,&g_701,(void*)0,&l_792,&l_585},{&g_59,(void*)0,&l_792,&l_585,&l_792,(void*)0},{(void*)0,&l_585,&g_701,&g_59,&g_701,(void*)0}},{{&l_792,&l_792,&l_585,&g_701,&g_701,&l_585},{(void*)0,&l_792,&g_701,(void*)0,&g_701,&l_585},{&l_792,&l_585,&g_59,&l_585,&l_792,&g_701},{&l_792,(void*)0,(void*)0,(void*)0,&l_792,(void*)0},{&l_792,&l_585,&g_701,(void*)0,&l_585,&l_585},{(void*)0,&l_585,&g_59,&l_585,(void*)0,&l_585},{&l_792,&l_585,&g_701,&l_585,&l_585,(void*)0},{(void*)0,&l_585,(void*)0,&g_701,&g_701,&g_701},{&g_59,&l_792,&g_59,(void*)0,&l_585,&l_585},{&g_701,&g_59,&g_701,&l_585,(void*)0,&l_585}},{{&l_585,(void*)0,&l_585,&l_585,&l_585,(void*)0},{&g_701,&g_701,&g_701,(void*)0,&l_792,(void*)0},{&g_59,&l_585,&l_792,&g_701,&l_792,&l_585},{(void*)0,&g_59,&g_701,&l_585,&g_701,(void*)0},{&l_792,&l_585,&l_585,&l_585,&g_701,&g_701},{(void*)0,&l_585,&g_701,(void*)0,&g_701,&g_59},{&l_792,&g_59,&g_59,(void*)0,&l_792,&l_585},{&l_792,&l_585,(void*)0,&l_585,&l_792,(void*)0},{&l_792,&g_701,&g_701,(void*)0,&l_585,(void*)0},{(void*)0,&l_585,&g_701,(void*)0,&g_701,&l_585}},{{&g_701,&l_585,&l_585,&l_585,&l_792,&l_585},{&g_701,&l_585,&g_59,(void*)0,&g_701,(void*)0},{&l_585,&g_701,&l_585,&l_585,&l_792,&l_585},{(void*)0,&g_701,(void*)0,&l_585,&g_701,(void*)0},{&g_701,&g_59,&l_792,&l_585,&g_701,&l_585},{(void*)0,(void*)0,(void*)0,&l_585,&g_59,&g_59},{&l_585,&l_585,&g_701,(void*)0,&g_701,&l_585},{&g_701,&g_701,(void*)0,&l_585,(void*)0,&g_59},{&g_701,&l_585,&l_792,(void*)0,&l_792,(void*)0},{&l_792,&l_585,(void*)0,&l_585,(void*)0,&l_792}}};
        int i, j, k;
        for (i = 0; i < 8; i++)
            l_720[i] = 0xCC94L;
        for (i = 0; i < 8; i++)
            l_845[i] = 0x0A488B0CD82F86BDLL;
        for (g_338 = 0; (g_338 >= 2); g_338++)
        { /* block id: 209 */
            int64_t l_576 = 0x7B62FB341E33B9F0LL;
            uint64_t *l_577 = &g_49[1].f2;
            uint64_t *l_578 = &g_49[1].f2;
            uint64_t *l_579 = &g_84.f2;
            uint64_t *l_580 = &g_49[1].f2;
            uint64_t *l_581 = &g_49[1].f2;
            uint64_t *l_582 = &g_49[1].f2;
            uint64_t *l_583 = &g_84.f2;
            uint64_t *l_584 = &g_84.f2;
            uint16_t *l_588 = &g_260;
            uint16_t *l_590 = &g_591[1];
            int32_t l_600 = 0xFCCEE191L;
            int32_t l_601 = 1L;
            uint16_t *l_602 = &g_603;
            uint32_t *l_604[5][9][2];
            int32_t l_606[6][3][7] = {{{(-1L),0L,(-1L),0x4223753CL,(-1L),0L,(-1L)},{0L,1L,0xC337C4AFL,0x897F5B00L,0x897F5B00L,0xC337C4AFL,1L},{(-1L),0L,0x15F2D6F6L,0L,(-1L),0L,0x15F2D6F6L}},{{0x897F5B00L,0x897F5B00L,0xC337C4AFL,1L,0L,0L,1L},{(-1L),0x4223753CL,(-1L),0L,(-1L),0x4223753CL,(-1L)},{0x897F5B00L,1L,1L,0x897F5B00L,0L,0xC337C4AFL,0xC337C4AFL}},{{(-1L),0x4223753CL,0x15F2D6F6L,0x4223753CL,(-1L),0x4223753CL,0x15F2D6F6L},{0L,0x897F5B00L,1L,1L,0x897F5B00L,0L,0xC337C4AFL},{(-1L),0L,(-1L),0x4223753CL,(-1L),0L,(-1L)}},{{0L,1L,0xC337C4AFL,0x897F5B00L,0x897F5B00L,0xC337C4AFL,1L},{(-1L),0L,0x15F2D6F6L,0L,(-1L),0L,0x15F2D6F6L},{0x897F5B00L,0x897F5B00L,0xC337C4AFL,1L,0L,0L,1L}},{{(-1L),0x4223753CL,(-1L),0L,(-1L),0x4223753CL,(-1L)},{0x897F5B00L,1L,1L,0x897F5B00L,0L,0xC337C4AFL,0xC337C4AFL},{(-1L),0x4223753CL,0x15F2D6F6L,0x4223753CL,(-1L),0x4223753CL,0x15F2D6F6L}},{{0L,0x897F5B00L,1L,1L,0x897F5B00L,0L,0xC337C4AFL},{(-1L),0L,(-1L),0x4223753CL,(-1L),0L,(-1L)},{0L,1L,0xC337C4AFL,0x897F5B00L,0x897F5B00L,0xC337C4AFL,1L}}};
            int i, j, k;
            for (i = 0; i < 5; i++)
            {
                for (j = 0; j < 9; j++)
                {
                    for (k = 0; k < 2; k++)
                        l_604[i][j][k] = (void*)0;
                }
            }
            (*g_87) = (l_606[4][2][2] = ((safe_mul_func_int64_t_s_s((safe_sub_func_uint32_t_u_u((safe_div_func_uint64_t_u_u(18446744073709551615UL, l_575)), ((*g_469) = (((l_585++) == ((void*)0 == l_37)) || l_585)))), (((*l_588) = 0x521FL) < (--(*l_590))))) == (6L && (((g_605[6][0][7] = ((safe_add_func_uint8_t_u_u(((safe_add_func_uint8_t_u_u((((*l_582) = ((l_575 | (safe_lshift_func_uint16_t_u_s(((*l_602) = (((((l_600 = 1UL) > l_576) , l_601) > (*p_32)) > (*l_37))), l_601))) & (*l_37))) ^ 0x4C387488A5B82F43LL), 0x8BL)) != (-1L)), 0x19L)) >= l_575)) & l_576) , (*p_32)))));
        }
lbl_967:
        for (g_59 = 0; (g_59 <= 0); g_59 += 1)
        { /* block id: 223 */
            uint64_t *l_608[7] = {&l_575,(void*)0,(void*)0,&l_575,(void*)0,(void*)0,&l_575};
            uint8_t * const *l_618[2];
            uint16_t *l_619[5];
            int32_t l_620 = 0x59AC9F51L;
            int32_t l_625 = 0x53677104L;
            int32_t l_630 = 0x58670B58L;
            int32_t l_674 = 0xC5EC1F6FL;
            const union U0 l_721 = {18446744073709551613UL};
            uint64_t l_722 = 0x5A6E6647AD31C2B0LL;
            int16_t l_724 = 0x6427L;
            int32_t l_746 = (-6L);
            int32_t l_767 = 0xB84BFE6CL;
            int32_t l_768 = 0xAA2C6299L;
            int32_t l_770 = 0L;
            int32_t l_772 = 1L;
            int32_t l_774 = 0x4F2311EDL;
            int32_t l_775[2][1][8] = {{{0x1E81D7CAL,0x81211DBDL,0x1E81D7CAL,0x1E81D7CAL,0x81211DBDL,0x1E81D7CAL,0x1E81D7CAL,0x81211DBDL}},{{0x81211DBDL,0x1E81D7CAL,0x1E81D7CAL,0x81211DBDL,0x1E81D7CAL,0x1E81D7CAL,0x81211DBDL,0x1E81D7CAL}}};
            int16_t ****l_812 = &g_318;
            int16_t *****l_811 = &l_812;
            int32_t *l_830[7][1] = {{&l_779},{&l_779},{&l_781},{&l_779},{&l_779},{&l_781},{&l_779}};
            uint16_t l_859[8] = {0x8214L,0x5FBDL,0x8214L,0x5FBDL,0x8214L,0x5FBDL,0x8214L,0x5FBDL};
            uint16_t l_862 = 65535UL;
            uint32_t **l_886 = &g_469;
            uint32_t ***l_885 = &l_886;
            uint32_t ****l_884 = &l_885;
            uint32_t l_911 = 0x3FBBDA19L;
            int i, j, k;
            for (i = 0; i < 2; i++)
                l_618[i] = &g_63[0][4];
            for (i = 0; i < 5; i++)
                l_619[i] = &g_603;
            if ((l_607 = ((*l_37) = (0xB6F11A60L && ((g_612[0][0]--) , ((((safe_lshift_func_int8_t_s_u((*p_32), ((l_620 = (l_617 == l_618[1])) != (safe_sub_func_int16_t_s_s(0x5CAAL, (safe_div_func_int32_t_s_s((l_625 != 1L), (l_630 = (l_625 || ((safe_rshift_func_uint8_t_u_u((*l_37), l_585)) == l_625)))))))))) , l_630) , 255UL) && 255UL))))))
            { /* block id: 229 */
                int32_t l_637 = (-1L);
                union U0 *l_643[4] = {&g_49[1],&g_49[1],&g_49[1],&g_49[1]};
                int i;
                (*g_87) |= ((safe_mod_func_uint32_t_u_u(((l_635 == (void*)0) <= 0UL), (l_637 && ((((+((((*g_469) &= (&l_636 == ((((safe_rshift_func_uint16_t_u_s((((safe_add_func_uint32_t_u_u((*l_37), (6UL & (*l_37)))) || 2UL) , l_585), 1)) < l_609[0][0][3]) ^ (*l_37)) , (void*)0))) < l_637) , (*l_37))) >= l_637) , (void*)0) == l_643[1])))) , l_637);
                (*l_37) = ((!(((*l_37) | l_585) , l_585)) >= 0x46L);
            }
            else
            { /* block id: 233 */
                uint16_t l_651 = 0x524CL;
                int32_t **l_655 = (void*)0;
                int32_t *** const l_654 = &l_655;
                uint8_t ***l_659 = (void*)0;
                int32_t l_666 = (-6L);
                int32_t l_670 = 0x5B2D8420L;
                int32_t l_684 = (-7L);
                int32_t l_690 = (-1L);
                uint64_t l_691 = 1UL;
                int32_t *l_697 = &g_6[2][0];
                int32_t *l_698 = &l_607;
                int32_t *l_699 = &g_124;
                int32_t *l_700[6][8] = {{(void*)0,&g_6[1][5],&l_630,&g_6[1][5],(void*)0,&l_690,&l_684,&g_589},{(void*)0,&l_690,&l_684,&g_589,&l_684,&l_690,(void*)0,&g_6[1][5]},{(void*)0,&g_6[1][5],&l_684,&l_610,&g_6[2][4],&l_610,&l_684,&g_6[1][5]},{&l_684,&l_630,&l_630,&g_589,&g_6[2][4],&g_6[1][5],&g_6[2][4],&g_589},{(void*)0,&l_630,(void*)0,&g_6[1][5],&l_684,&l_610,&g_6[2][4],&l_610},{(void*)0,&g_6[1][5],&l_630,&g_6[1][5],(void*)0,&l_690,&l_684,&g_589}};
                const uint8_t l_723[6] = {0x0FL,0xA3L,0xA3L,0x0FL,0xA3L,0xA3L};
                uint64_t l_747 = 0xA22E8A119424A235LL;
                uint16_t l_757[5] = {0xCC3FL,0xCC3FL,0xCC3FL,0xCC3FL,0xCC3FL};
                int i, j;
                if ((0xF08EA95384B03408LL >= ((((((((((*l_37) = g_120[0][4]) , g_645) != (void*)0) < (((((((((((~(g_591[1] &= (((safe_add_func_uint32_t_u_u(((safe_sub_func_int8_t_s_s((*p_32), l_651)) || (0xED9EL <= (((l_620 && (safe_lshift_func_int16_t_s_s(l_651, 8))) & l_651) < 255UL))), (*g_469))) > g_184[0][5][1]) >= l_585))) , 0x35FB65A3L) && l_620) || l_575) < (*g_320)) < g_182) , l_654) == l_656) && l_585) != l_620) , 0x5D0DL)) , g_658) != l_625) >= g_182) || l_630) || (*l_37))))
                { /* block id: 236 */
                    int32_t *l_660 = &g_184[0][6][1];
                    int32_t *l_661 = (void*)0;
                    int32_t *l_662 = (void*)0;
                    int32_t *l_663 = &l_607;
                    int32_t *l_664 = &g_124;
                    int32_t *l_665 = (void*)0;
                    int32_t *l_667 = &l_625;
                    int32_t *l_668 = (void*)0;
                    int32_t *l_669 = &g_589;
                    int32_t *l_671 = &l_630;
                    int32_t *l_672 = (void*)0;
                    int32_t *l_673 = &g_124;
                    int32_t *l_675 = &l_607;
                    int32_t *l_676 = &l_609[2][0][4];
                    int32_t *l_677 = &g_6[6][3];
                    int32_t *l_678 = &l_620;
                    int32_t *l_679 = (void*)0;
                    int32_t *l_680 = &g_589;
                    int32_t *l_681 = &l_625;
                    int32_t *l_682 = &l_607;
                    int32_t *l_685 = &l_666;
                    int32_t *l_686 = (void*)0;
                    int32_t *l_687 = &l_609[1][0][5];
                    int32_t *l_688 = &g_6[1][5];
                    int32_t *l_689[1];
                    int i;
                    for (i = 0; i < 1; i++)
                        l_689[i] = &l_609[2][0][4];
                    for (g_560 = 0; (g_560 <= 0); g_560 += 1)
                    { /* block id: 239 */
                        (*l_37) = (&l_618[1] != l_659);
                    }
                    l_691++;
                }
                else
                { /* block id: 243 */
                    union U0 **l_694 = (void*)0;
                    l_695 = (void*)0;
                }
                g_701--;
                l_705++;
                if ((safe_add_func_int8_t_s_s(((*g_33) = (((*l_37) = (safe_add_func_int8_t_s_s((safe_rshift_func_int16_t_s_s(((void*)0 == l_659), 1)), (g_180 ^ (((((safe_mul_func_int16_t_s_s((***g_318), (9UL <= ((safe_add_func_int32_t_s_s((**g_86), (((((((l_720[5] == (l_722 = (((l_721 , l_721) , (*l_37)) , l_620))) ^ g_84.f1) || l_721.f1) || 0UL) , (*p_32)) || (*l_37)) != 65532UL))) & 0xD4L)))) ^ 0xF65FFBEAL) != l_723[2]) & 0L) > (*g_320)))))) & l_724)), l_721.f1)))
                { /* block id: 251 */
                    uint64_t l_729 = 18446744073709551607UL;
                    int64_t *l_739 = (void*)0;
                    int32_t l_740[10][8] = {{0x395BF1A5L,(-10L),0xC9BB5EB5L,(-10L),0x395BF1A5L,0xC9BB5EB5L,(-1L),(-1L)},{0x808B6CEFL,(-10L),(-4L),(-4L),(-10L),0x808B6CEFL,(-8L),(-10L)},{(-1L),(-8L),(-4L),(-1L),(-4L),(-8L),(-1L),0x808B6CEFL},{(-10L),0x395BF1A5L,0xC9BB5EB5L,(-1L),(-1L),0xC9BB5EB5L,0x395BF1A5L,(-10L)},{0x808B6CEFL,(-1L),(-8L),(-4L),(-1L),(-4L),(-8L),(-1L)},{(-10L),(-8L),0x808B6CEFL,(-10L),(-4L),(-4L),(-10L),0x808B6CEFL},{(-1L),(-1L),0xC9BB5EB5L,0x395BF1A5L,(-10L),0xC9BB5EB5L,(-10L),0x395BF1A5L},{0x808B6CEFL,0x395BF1A5L,0x808B6CEFL,(-4L),0x395BF1A5L,(-8L),(-8L),0x395BF1A5L},{0x395BF1A5L,(-8L),(-8L),0x395BF1A5L,(-4L),0x808B6CEFL,0x395BF1A5L,0x808B6CEFL},{0x395BF1A5L,(-10L),0xC9BB5EB5L,(-10L),0x395BF1A5L,0xC9BB5EB5L,(-1L),(-1L)}};
                    int32_t l_766 = 0x230D91F6L;
                    int i, j;
                    if (((*l_699) &= ((safe_mul_func_uint16_t_u_u((((*l_37) | (*p_32)) > (safe_div_func_int32_t_s_s(l_729, l_620))), (((*l_37) < (!(0x6DL && (safe_sub_func_int8_t_s_s((safe_add_func_uint64_t_u_u((&l_617 == &l_618[0]), (g_180 &= (safe_mod_func_int32_t_s_s(((safe_mod_func_uint16_t_u_u(((((**g_319) >= (**g_319)) < 0x898BAB60L) != l_729), 0xEFF2L)) > 0xD3A4L), l_625))))), (*g_33)))))) >= 0xCA429FA6L))) , (*l_37))))
                    { /* block id: 254 */
                        int64_t l_741[4];
                        int32_t l_742 = 0x5937DE89L;
                        int32_t l_743 = 0x8A62C0E9L;
                        int32_t l_744 = (-1L);
                        int32_t l_745 = (-1L);
                        int i;
                        for (i = 0; i < 4; i++)
                            l_741[i] = 0x28AE2C867E51899FLL;
                        l_747--;
                        if (l_740[7][3])
                            continue;
                        return l_724;
                    }
                    else
                    { /* block id: 258 */
                        int16_t l_750 = 4L;
                        int32_t l_751[9] = {(-1L),0xBEDE67A4L,(-1L),(-1L),0xBEDE67A4L,(-1L),(-1L),0xBEDE67A4L,(-1L)};
                        int8_t **l_756 = (void*)0;
                        int8_t ***l_755 = &l_756;
                        int i;
                        ++l_752;
                        (*l_755) = &p_32;
                        --l_757[3];
                    }
                    for (l_630 = 1; (l_630 >= 0); l_630 -= 1)
                    { /* block id: 265 */
                        int32_t l_760 = 0x6BE273C1L;
                        int32_t l_761 = (-8L);
                        int32_t l_762 = 0x93C63978L;
                        int32_t l_763 = 1L;
                        int32_t l_764 = 9L;
                        int32_t l_765 = 4L;
                        int32_t l_769 = 0x5490E48BL;
                        int32_t l_771 = 5L;
                        int32_t l_773 = 0xE17205F5L;
                        int32_t l_776 = 7L;
                        int32_t l_778 = 0x527F8284L;
                        int32_t l_780 = 0x5C91A955L;
                        int32_t l_782 = 0x82B09C8DL;
                        int32_t l_784 = 0x43B28AEEL;
                        int32_t l_786 = 0L;
                        int32_t l_787[10][10] = {{0xAF0BDC36L,0L,(-2L),(-2L),0L,0xAF0BDC36L,0L,0x5F8D4D24L,(-7L),0x8CB1DD13L},{0x62B11879L,(-9L),0x5B02DE92L,0x022838D3L,0xD23A9F52L,(-7L),1L,0x163186ABL,0L,8L},{0x62B11879L,(-10L),2L,1L,(-1L),0xAF0BDC36L,8L,(-9L),0xD23A9F52L,0L},{0xAF0BDC36L,8L,(-9L),0xD23A9F52L,0L,0x1FD6E08EL,0x5644FC2AL,0x1FD6E08EL,0L,0xD23A9F52L},{5L,0x5F8D4D24L,5L,1L,0xA95A056BL,0x6D7396A5L,0x1FD6E08EL,(-1L),8L,0L},{0xE28E958BL,1L,0x1FD6E08EL,5L,0x6D7396A5L,0xD23A9F52L,0xD0464852L,(-1L),0x8CB1DD13L,(-7L)},{9L,(-2L),5L,0x5644FC2AL,8L,0x53A32223L,2L,0x1FD6E08EL,0x022838D3L,0L},{(-2L),0xA95A056BL,(-9L),(-1L),0x62B11879L,0x62B11879L,(-1L),(-9L),0xA95A056BL,(-2L)},{0x1FD6E08EL,0L,2L,0x5F8D4D24L,0L,0x54573CD5L,5L,0x163186ABL,0xAF0BDC36L,1L},{0x8CB1DD13L,0x62B11879L,0x5B02DE92L,0L,0L,0L,(-10L),0x5F8D4D24L,1L,(-2L)}};
                        int i, j;
                        (**g_86) = 0x1A04E0A3L;
                        if (g_120[g_59][(l_630 + 2)])
                            break;
                        g_788[6]++;
                    }
                    for (l_722 = 0; (l_722 <= 1); l_722 += 1)
                    { /* block id: 272 */
                        int64_t l_791 = 0x8D893AC9F14785DDLL;
                        l_792++;
                        return l_791;
                    }
                }
                else
                { /* block id: 276 */
                    (**l_656) = (void*)0;
                }
            }
        }
lbl_968:
        (*l_37) = ((*l_37) == (((g_524 != (void*)0) < ((g_260 = (((((*g_469) > (safe_sub_func_uint8_t_u_u(((*p_32) | (g_957[0] != (void*)0)), ((l_609[1][0][3] |= (((*l_37) ^ (g_963 = ((*l_961) = (((*l_960) = 1UL) >= 254UL)))) | (**g_319))) > 0xDDL)))) & (*l_37)) > 0L) | (*l_37))) && g_250[0][0][0])) || 0L));
        for (g_589 = 0; (g_589 < 14); g_589++)
        { /* block id: 398 */
            uint32_t l_969 = 0x2AFD829AL;
            if (l_752)
                goto lbl_967;
            for (g_34 = 0; (g_34 >= 0); g_34 -= 1)
            { /* block id: 402 */
                for (l_792 = 0; (l_792 <= 0); l_792 += 1)
                { /* block id: 405 */
                    if (g_124)
                        goto lbl_968;
                    for (l_752 = 0; (l_752 <= 0); l_752 += 1)
                    { /* block id: 409 */
                        int i, j, k;
                        ++l_969;
                        if (g_184[g_34][(l_792 + 5)][l_752])
                            break;
                    }
                }
            }
        }
    }
    else
    { /* block id: 416 */
        union U0 l_972 = {18446744073709551614UL};
        int32_t **l_973 = &g_234[3];
        int32_t *l_984[4][4] = {{&g_184[0][2][1],&g_6[1][5],(void*)0,(void*)0},{&g_184[0][4][1],&g_6[1][5],&g_6[1][5],&g_184[0][4][1]},{&g_6[1][5],&g_184[0][4][1],&g_184[0][2][1],(void*)0},{&g_6[1][5],&g_184[0][2][1],&g_6[1][5],(void*)0}};
        uint64_t l_989[4] = {0x92719BE7E83633E8LL,0x92719BE7E83633E8LL,0x92719BE7E83633E8LL,0x92719BE7E83633E8LL};
        uint32_t l_990[10][10] = {{0xCA60DF1BL,0x4A5B0F8CL,1UL,0xC99925B5L,0x8BF8075CL,4294967295UL,2UL,1UL,4294967295UL,0x657ECA3BL},{0xF501461EL,0x0E32A8E8L,4294967295UL,0xF501461EL,1UL,0x96A157FBL,1UL,0x7480CEA8L,0xA7A85A4FL,0x7480CEA8L},{0x0E32A8E8L,3UL,0x9D8E61C1L,0x7480CEA8L,0x9D8E61C1L,3UL,0x0E32A8E8L,0xB767095FL,0x657ECA3BL,0x4A5B0F8CL},{0xB767095FL,0x4B022507L,1UL,0xD6CF01DBL,0x0E32A8E8L,0xCA60DF1BL,0xD6CF01DBL,1UL,4294967295UL,0xB767095FL},{1UL,0x4B022507L,0xA7A85A4FL,0x850F90A0L,0x7480CEA8L,0xB50D2463L,0x0E32A8E8L,0x4A5B0F8CL,0x636FE242L,0x850F90A0L},{0x850F90A0L,3UL,0xC99925B5L,0x4B022507L,1UL,0x07091C4DL,1UL,0x9D8E61C1L,0x9D8E61C1L,1UL},{1UL,0x0E32A8E8L,0x07091C4DL,0x07091C4DL,0x0E32A8E8L,1UL,2UL,4294967292UL,0xD6CF01DBL,0UL},{4294967292UL,0x657ECA3BL,0UL,3UL,0xB767095FL,4294967292UL,0x07091C4DL,0x657ECA3BL,1UL,1UL},{2UL,4294967295UL,0x2AFFBF09L,4294967295UL,0x0E1F4090L,0x0D788B6BL,1UL,0x0E1F4090L,0x96A157FBL,0x9D8E61C1L},{0x0D788B6BL,1UL,0x0E1F4090L,0x96A157FBL,0x9D8E61C1L,4294967295UL,0UL,0xC99925B5L,0UL,4294967295UL}};
        int i, j;
        (*l_973) = (l_972 , (void*)0);
        l_704 &= ((safe_sub_func_uint8_t_u_u((*l_37), (&l_936 != ((safe_mul_func_int16_t_s_s((((safe_mod_func_uint8_t_u_u((safe_lshift_func_uint8_t_u_u((*l_37), 0)), ((((((**g_303) , 0UL) , (*l_37)) || 0x27487389L) <= (((safe_sub_func_int32_t_s_s((l_785[8] = l_972.f0), (safe_add_func_uint64_t_u_u(((safe_sub_func_uint64_t_u_u(((((***g_959) |= (-1L)) > 0xF288L) == (*g_923)), g_260)) | (*p_32)), 0x291029103649F427LL)))) ^ l_989[1]) >= g_603)) & (*l_37)))) > 5L) , (*l_37)), l_990[6][3])) , p_32)))) ^ (*l_37));
    }
    return (*l_37);
}


/* ------------------------------------------ */
/* 
 * reads : g_34 g_48 g_6 g_59 g_49.f0 g_86 g_87 g_88 g_49.f1 g_33 g_124 g_84.f1 g_120 g_184 g_396 g_320 g_251 g_252 g_49 g_403 g_318 g_319 g_180 g_476 g_257 g_303 g_304 g_305 g_495 g_260 g_469 g_182
 * writes: g_34 g_59 g_63 g_6 g_83 g_88 g_124 g_180 g_182 g_184 g_469 g_403 g_477 g_319 g_84.f2 g_495 g_260 g_120
 */
union U0  func_35(uint32_t  p_36)
{ /* block id: 4 */
    int32_t *l_40 = &g_6[3][5];
    int32_t *l_494 = &g_495;
    int64_t *l_512 = &g_180;
    int64_t **l_511 = &l_512;
    union U0 l_521 = {1UL};
    uint32_t **l_527 = &g_469;
    uint32_t ***l_526 = &l_527;
    uint64_t *l_541 = &l_521.f2;
    int32_t *l_542 = &g_184[0][6][1];
    int32_t *l_543 = (void*)0;
    int32_t *l_544 = &g_495;
    int32_t *l_545 = (void*)0;
    int32_t l_546 = 6L;
    int32_t *l_547 = (void*)0;
    int32_t *l_548 = (void*)0;
    int32_t *l_549[4] = {&g_124,&g_124,&g_124,&g_124};
    int16_t l_550 = 5L;
    int8_t l_551 = 0x7FL;
    int16_t l_552[5] = {0x56CBL,0x56CBL,0x56CBL,0x56CBL,0x56CBL};
    uint8_t l_553 = 0x6FL;
    int i;
    (*l_494) &= ((*l_40) = func_38(l_40));
    for (g_260 = 0; (g_260 <= 50); g_260 = safe_add_func_int8_t_s_s(g_260, 1))
    { /* block id: 187 */
        int32_t l_508 = 0x547531B4L;
        uint32_t **l_523 = (void*)0;
        uint32_t ***l_522[8][1][9] = {{{&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523}},{{&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523}},{{&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523}},{{&l_523,&l_523,(void*)0,&l_523,&l_523,&l_523,&l_523,&l_523,(void*)0}},{{&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523}},{{&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523}},{{&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523,&l_523}},{{&l_523,&l_523,(void*)0,&l_523,&l_523,(void*)0,&l_523,&l_523,&l_523}}};
        uint32_t ****l_525 = (void*)0;
        int i, j, k;
        for (g_59 = 24; (g_59 > 31); ++g_59)
        { /* block id: 190 */
            int64_t **l_514 = &l_512;
            int64_t ***l_513 = &l_514;
            int64_t **l_516[3];
            int64_t ***l_515 = &l_516[2];
            int i;
            for (i = 0; i < 3; i++)
                l_516[i] = &l_512;
            (*l_40) ^= ((safe_mod_func_uint32_t_u_u((((safe_lshift_func_uint16_t_u_u((safe_lshift_func_uint8_t_u_u(((safe_sub_func_int16_t_s_s((l_508 >= (((void*)0 == l_494) | 0x4994EE8CL)), (0xB0BE5E19F3B91370LL ^ ((safe_div_func_int64_t_s_s((p_36 >= (l_511 == ((*l_515) = ((*l_513) = &l_512)))), (safe_div_func_uint64_t_u_u((safe_mul_func_int16_t_s_s((***g_318), (-4L))), g_59)))) , 0x3899F46419FEDB11LL)))) > (**g_86)), p_36)), 10)) | p_36) != p_36), 0x44AEDD72L)) | p_36);
            return l_521;
        }
        l_526 = l_522[2][0][8];
    }
    (*l_542) ^= (safe_sub_func_int64_t_s_s((p_36 ^ (safe_div_func_uint64_t_u_u((*l_494), ((safe_mod_func_uint16_t_u_u((!((*l_541) = ((safe_lshift_func_uint16_t_u_s((((safe_lshift_func_uint16_t_u_s((safe_sub_func_int64_t_s_s((*l_40), (*g_304))), ((((&g_184[0][2][1] == &g_495) ^ (*l_494)) <= (-10L)) , ((**g_319) = (((*l_512) = (((**g_319) > p_36) && (*l_494))) < g_120[0][4]))))) , p_36) ^ (*g_469)), p_36)) < g_182))), p_36)) || (*l_494))))), 0x6BAE8261AC73CE3ALL));
    ++l_553;
    return l_521;
}


/* ------------------------------------------ */
/* 
 * reads : g_34 g_48 g_6 g_59 g_49.f0 g_86 g_87 g_88 g_49.f1 g_33 g_124 g_84.f1 g_120 g_184 g_396 g_320 g_251 g_252 g_49 g_403 g_318 g_319 g_180 g_476 g_257 g_303 g_304 g_305
 * writes: g_34 g_59 g_63 g_6 g_83 g_88 g_124 g_180 g_182 g_184 g_469 g_403 g_477 g_319 g_84.f2
 */
int32_t  func_38(int32_t * p_39)
{ /* block id: 5 */
    int32_t *l_60 = &g_6[1][5];
    union U0 l_85[1] = {{0xD8B3B4CCL}};
    uint64_t l_101 = 0xE4BB11E40316972ALL;
    const int32_t l_104 = 0L;
    const int32_t l_122[10] = {0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L,0x241DCAF1L};
    int32_t l_130[10] = {0x60FE9342L,0x229ECF7FL,0x60FE9342L,0x229ECF7FL,0x60FE9342L,0x229ECF7FL,0x60FE9342L,0x229ECF7FL,0x60FE9342L,0x229ECF7FL};
    uint8_t l_152 = 0xDDL;
    uint16_t l_178 = 0UL;
    int64_t *l_179 = &g_180;
    uint32_t *l_181[7] = {&g_182,&g_182,&g_182,&g_182,&g_182,&g_182,&g_182};
    int32_t *l_183[3];
    int64_t **l_196 = &l_179;
    int64_t ***l_195 = &l_196;
    union U0 l_206 = {8UL};
    int32_t l_218[7] = {(-10L),(-10L),(-10L),(-10L),(-10L),(-10L),(-10L)};
    uint8_t l_219 = 0x1DL;
    union U0 **l_275 = &g_83[1][4][1];
    int8_t *l_315 = &g_34;
    const int16_t * const l_329 = &g_120[0][0];
    const int16_t * const *l_328[8][3] = {{&l_329,&l_329,&l_329},{&l_329,(void*)0,&l_329},{&l_329,&l_329,&l_329},{&l_329,&l_329,&l_329},{&l_329,(void*)0,&l_329},{&l_329,&l_329,&l_329},{&l_329,&l_329,&l_329},{&l_329,(void*)0,&l_329}};
    const int16_t * const **l_327 = &l_328[4][0];
    uint64_t l_362[7];
    int32_t *l_369 = &g_124;
    const int16_t *l_389 = &g_120[0][4];
    const int16_t **l_388 = &l_389;
    const int16_t ***l_387 = &l_388;
    const int16_t ****l_386[4] = {&l_387,&l_387,&l_387,&l_387};
    int i, j;
    for (i = 0; i < 3; i++)
        l_183[i] = &g_184[0][6][1];
    for (i = 0; i < 7; i++)
        l_362[i] = 18446744073709551615UL;
    for (g_34 = 0; (g_34 >= 20); ++g_34)
    { /* block id: 8 */
        uint8_t *l_58 = &g_59;
        int32_t l_71 = (-1L);
        int32_t l_72[10] = {(-8L),(-8L),(-1L),(-8L),(-8L),(-1L),(-8L),(-8L),(-1L),(-8L)};
        union U0 **l_80 = (void*)0;
        union U0 *l_82 = &g_49[1];
        union U0 **l_81[9] = {&g_48[2],&g_48[2],&g_48[2],&g_48[2],&g_48[2],&g_48[2],&g_48[2],&g_48[2],&g_48[2]};
        union U0 *l_109[2][2] = {{&l_85[0],&l_85[0]},{&l_85[0],&l_85[0]}};
        int16_t *l_118 = (void*)0;
        int16_t *l_119[5];
        int32_t l_121 = 3L;
        int32_t *l_123[2];
        int i, j;
        for (i = 0; i < 5; i++)
            l_119[i] = &g_120[0][4];
        for (i = 0; i < 2; i++)
            l_123[i] = &g_124;
        g_83[2][6][0] = func_43(g_48[3], (g_83[2][6][0] = func_50((l_72[8] |= ((safe_add_func_int8_t_s_s(((func_54((0x9DL > ((*l_58) &= g_6[1][5])), l_60, g_6[1][5]) != (safe_lshift_func_uint16_t_u_s((((safe_rshift_func_int16_t_s_s(0xCD35L, 0)) != l_71) > ((-1L) < g_49[1].f0)), 10))) & 2L), (-1L))) & 0L)))), l_60, l_85[0]);
        (*g_87) &= ((*l_60) &= l_71);
        g_124 ^= ((((*l_60) | ((*p_39) < (l_72[8] | ((safe_mod_func_int64_t_s_s((safe_div_func_uint16_t_u_u((*l_60), (safe_mul_func_uint8_t_u_u((safe_sub_func_int8_t_s_s((safe_mul_func_uint8_t_u_u(l_101, (safe_div_func_uint64_t_u_u(g_49[1].f1, (((((l_104 >= (((safe_mod_func_uint64_t_u_u((safe_rshift_func_uint8_t_u_u((l_121 = (l_109[1][0] != (((safe_sub_func_uint64_t_u_u((safe_mul_func_int16_t_s_s(((l_71 = (safe_sub_func_uint16_t_u_u(((((safe_mod_func_int16_t_s_s(((l_72[2] , (*l_60)) >= l_72[2]), (*l_60))) >= l_71) >= g_6[2][0]) && (*l_60)), 0UL))) , (*l_60)), l_72[7])), l_72[7])) , (*l_60)) , &g_49[1]))), 0)), 1L)) & (*l_60)) == 0x6ABB3E6AL)) == 0x3BE29DAAL) , 0x30626F2AL) , g_88) , 18446744073709551615UL))))), l_72[8])), (*g_33))))), (*l_60))) , (*l_60))))) && l_71) != l_122[0]);
    }
    for (g_59 = 0; (g_59 <= 4); g_59++)
    { /* block id: 36 */
        int32_t *l_127 = &g_6[9][5];
        int32_t *l_128 = &g_124;
        int32_t *l_129 = &g_6[3][0];
        int32_t *l_131 = &l_130[7];
        int32_t l_132 = (-9L);
        int32_t *l_133 = &l_130[5];
        int32_t *l_134 = (void*)0;
        int32_t *l_135 = &l_132;
        int32_t *l_136 = &l_130[5];
        int32_t *l_137 = (void*)0;
        int32_t *l_138 = (void*)0;
        int32_t l_139[1];
        int32_t *l_140 = &g_6[1][5];
        int32_t *l_141 = &l_139[0];
        int32_t *l_142 = &g_6[1][5];
        int32_t *l_143 = &g_6[1][5];
        int32_t *l_144 = (void*)0;
        int32_t *l_145 = (void*)0;
        int32_t *l_146 = &l_130[5];
        int32_t *l_147 = &l_139[0];
        int32_t *l_148 = &l_139[0];
        int32_t *l_149[5] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
        int32_t l_150[6][9] = {{(-10L),0x05A9BBA2L,3L,0x88185611L,0x679D41D1L,0x679D41D1L,0x88185611L,3L,0x05A9BBA2L},{2L,3L,1L,0x9BA58C66L,0x679D41D1L,1L,(-10L),0x05A9BBA2L,3L},{7L,(-7L),1L,0x88185611L,(-7L),1L,0x9BA58C66L,1L,(-7L)},{7L,3L,3L,7L,0x05A9BBA2L,(-7L),2L,1L,3L},{2L,0x05A9BBA2L,0x679D41D1L,0x2363870EL,0x0B307BF7L,(-7L),0x9BA58C66L,0x05A9BBA2L,0x05A9BBA2L},{(-10L),1L,0x05A9BBA2L,0x2363870EL,0x05A9BBA2L,1L,(-10L),3L,1L}};
        int32_t l_151 = (-1L);
        int i, j;
        for (i = 0; i < 1; i++)
            l_139[i] = (-1L);
        l_152--;
        if ((*l_60))
            continue;
    }
    g_184[0][4][1] ^= (+((safe_add_func_uint32_t_u_u((g_182 = (safe_div_func_uint32_t_u_u(0x670E1877L, (safe_div_func_int32_t_s_s((g_124 = (safe_sub_func_uint8_t_u_u(0x2BL, ((safe_div_func_int16_t_s_s(((*l_60) = (safe_sub_func_uint64_t_u_u(((*l_60) && (safe_sub_func_int64_t_s_s((safe_add_func_uint32_t_u_u((((*l_179) = ((safe_div_func_int32_t_s_s((((l_85[0] , ((((*l_60) >= (((*l_60) ^ ((((safe_lshift_func_int16_t_s_u(7L, 11)) < (((safe_mul_func_int8_t_s_s((((2UL <= 0x5EL) != (*l_60)) || g_34), (*l_60))) && (*l_60)) <= (-3L))) >= 4294967290UL) || (*l_60))) & (-1L))) >= 0x9E7346D4L) , (*l_60))) , l_178) , (*l_60)), 0x1D5C9785L)) >= 65532UL)) > g_6[1][5]), g_84.f1)), 0x380971268E897661LL))), (*l_60)))), l_130[5])) && (*l_60))))), g_120[0][4]))))), g_120[0][3])) && (*g_87)));
    for (g_59 = 0; (g_59 < 11); g_59++)
    { /* block id: 47 */
        int64_t l_202 = 0L;
        int64_t ***l_207[3][8][3] = {{{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{(void*)0,&l_196,&l_196},{(void*)0,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,(void*)0,&l_196}},{{&l_196,&l_196,(void*)0},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{(void*)0,&l_196,&l_196},{(void*)0,&l_196,&l_196},{&l_196,&l_196,&l_196}},{{&l_196,(void*)0,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,&l_196},{&l_196,&l_196,(void*)0},{&l_196,&l_196,&l_196}}};
        int32_t l_209 = 0x99D2557CL;
        int32_t l_210[9] = {7L,(-9L),7L,(-9L),7L,(-9L),7L,(-9L),7L};
        int32_t l_216 = 0x5FF4A1B5L;
        uint64_t l_232[3];
        int32_t * const l_244 = &g_6[7][5];
        uint8_t l_255 = 1UL;
        union U0 l_267[8] = {{18446744073709551608UL},{18446744073709551608UL},{18446744073709551608UL},{18446744073709551608UL},{18446744073709551608UL},{18446744073709551608UL},{18446744073709551608UL},{18446744073709551608UL}};
        const union U0 *l_309 = &g_49[1];
        const union U0 **l_308 = &l_309;
        uint16_t l_343 = 65535UL;
        int64_t * const *l_394[6] = {&l_179,&l_179,&l_179,&l_179,&l_179,&l_179};
        int64_t * const **l_393 = &l_394[3];
        uint64_t l_398[6] = {0x789D0943BD1DED99LL,0x789D0943BD1DED99LL,18446744073709551614UL,0x789D0943BD1DED99LL,0x789D0943BD1DED99LL,18446744073709551614UL};
        int32_t l_444 = 0L;
        int i, j, k;
        for (i = 0; i < 3; i++)
            l_232[i] = 1UL;
        for (l_178 = 0; (l_178 < 24); l_178++)
        { /* block id: 50 */
            int64_t **l_190 = &l_179;
            int64_t ***l_189 = &l_190;
            int8_t l_201 = 0L;
            int32_t l_208 = 0x6C7403DBL;
            int32_t l_212 = 0x3DD0E6EDL;
            int32_t l_213 = 2L;
            int32_t l_215[3][1][3] = {{{0L,0L,0L}},{{1L,5L,1L}},{{0L,0L,0L}}};
            const int16_t *l_224 = &g_120[0][4];
            int16_t *l_225 = &g_120[0][1];
            union U0 **l_265 = &g_48[5];
            int16_t ***l_322 = &g_319;
            int32_t **l_367 = (void*)0;
            int i, j, k;
            (*l_189) = &l_179;
        }
        if ((*p_39))
            continue;
        for (l_255 = (-23); (l_255 < 41); ++l_255)
        { /* block id: 119 */
            uint8_t l_385 = 3UL;
            int32_t l_397 = 0x88783B51L;
            int32_t l_434[10][7] = {{(-1L),0L,0xE0BA2815L,1L,2L,1L,0xE0BA2815L},{2L,2L,0L,(-1L),(-3L),1L,0x3A936209L},{0x52172798L,0L,(-9L),2L,(-9L),0L,0xBF6FE707L},{0x2513F74BL,(-3L),0L,(-9L),0L,(-3L),0x2513F74BL},{0x5E1269DEL,0x2513F74BL,0L,(-9L),(-1L),0xBF6FE707L,2L},{0x2E4AD3AEL,0x52172798L,(-1L),2L,0x5E1269DEL,(-9L),(-9L)},{(-1L),7L,0L,7L,(-1L),0x3A936209L,1L},{1L,7L,0L,0x2513F74BL,(-9L),1L,0x5E1269DEL},{7L,0x52172798L,(-9L),0xE0BA2815L,0L,0L,0xE0BA2815L},{1L,0x2513F74BL,1L,0L,0xBF6FE707L,0x52172798L,0xE0BA2815L}};
            uint16_t l_475[7];
            int16_t **l_487[1][3][9] = {{{&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320},{&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320},{&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320,&g_320}}};
            int i, j, k;
            for (i = 0; i < 7; i++)
                l_475[i] = 0x1E50L;
            for (l_152 = 12; (l_152 < 56); l_152 = safe_add_func_int8_t_s_s(l_152, 6))
            { /* block id: 122 */
                uint64_t l_384 = 18446744073709551610UL;
                const int16_t *****l_390 = &l_386[1];
                int32_t **l_392 = &l_369;
                int32_t ***l_391 = &l_392;
                int64_t * const ***l_395 = &l_393;
                uint16_t l_435 = 0x1203L;
                int32_t l_436 = 0xC28FAB63L;
                int32_t l_450 = 9L;
                int32_t l_452 = 0x58BA745AL;
                int32_t l_453[5] = {0x4751B99CL,0x4751B99CL,0x4751B99CL,0x4751B99CL,0x4751B99CL};
                uint32_t *l_467 = &g_182;
                int i;
                if (((safe_add_func_uint8_t_u_u((safe_mod_func_int32_t_s_s((safe_rshift_func_int8_t_s_u((((safe_sub_func_int8_t_s_s(((+(((!(l_384 && (l_385 = 0xAD90BDA3L))) , (void*)0) != ((*l_390) = l_386[1]))) < (((((&g_234[6] != ((*l_391) = &g_234[6])) > (l_207[2][5][0] == ((*l_395) = l_393))) | (((((*l_369) = (((((((g_396 < l_397) , 255UL) && 0x2AL) <= (*l_244)) , (*p_39)) || (*p_39)) == l_398[4])) & 0xCF161F47L) | (*l_244)) ^ 0x9CL)) , (void*)0) == &g_180)), (*g_33))) | (*p_39)) < (*g_320)), (*l_60))), 1L)), l_397)) ^ g_184[0][6][1]))
                { /* block id: 128 */
                    (*l_369) &= (safe_lshift_func_int8_t_s_s((*g_251), (*l_60)));
                }
                else
                { /* block id: 130 */
                    uint8_t *l_404[10][5][4] = {{{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255},{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255}},{{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255},{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255}},{{&l_255,(void*)0,&g_59,&l_255},{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255},{&g_59,&l_255,&g_59,(void*)0}},{{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255},{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255}},{{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255},{&l_255,(void*)0,&g_59,&l_255},{&g_59,&l_255,&g_59,(void*)0},{&l_255,&l_255,(void*)0,&l_255}},{{&l_255,(void*)0,&g_59,&l_255},{&g_59,(void*)0,(void*)0,&g_59},{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_59}},{{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_59},{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0}},{{(void*)0,(void*)0,(void*)0,&g_59},{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_59},{&g_59,(void*)0,&l_255,(void*)0}},{{&g_59,&g_59,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_59},{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_59}},{{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,&g_59},{&g_59,(void*)0,&l_255,(void*)0},{&g_59,&g_59,(void*)0,(void*)0}}};
                    int32_t l_411 = (-1L);
                    int i, j, k;
                    if (((((**l_308) , (*l_195)) != ((((**l_196) = 1L) ^ (safe_mul_func_uint16_t_u_u((((*l_244) ^= g_403) & ((((*g_33) > 253UL) != ((safe_add_func_int8_t_s_s((((safe_mul_func_uint16_t_u_u((l_397 == (&g_260 != &l_343)), (*l_369))) && l_397) , l_411), l_411)) , 9L)) & (***g_318))), l_411))) , (void*)0)) , (*p_39)))
                    { /* block id: 133 */
                        uint32_t l_412 = 0UL;
                        if ((*p_39))
                            break;
                        l_412--;
                    }
                    else
                    { /* block id: 136 */
                        uint64_t l_427 = 18446744073709551607UL;
                        (*l_369) = (((l_385 != l_385) && (safe_add_func_uint8_t_u_u((l_434[1][3] &= (safe_mul_func_int8_t_s_s(l_385, ((&p_39 != ((*l_391) = &g_234[8])) ^ (safe_lshift_func_int16_t_s_s((safe_add_func_int8_t_s_s((l_411 = (safe_sub_func_uint16_t_u_u((safe_add_func_uint64_t_u_u(l_427, (safe_sub_func_int8_t_s_s((safe_sub_func_int16_t_s_s((-1L), ((safe_lshift_func_uint16_t_u_s(0xB2BCL, 7)) , (((*g_33) , (*l_60)) ^ l_397)))), 0x86L)))), l_385))), l_397)), (*l_369))))))), 0x1DL))) , (*g_87));
                        if (l_435)
                            continue;
                        return l_427;
                    }
                    if (l_436)
                        continue;
                }
                (*p_39) = l_385;
                for (l_216 = 0; (l_216 <= (-24)); --l_216)
                { /* block id: 149 */
                    int16_t l_445 = (-1L);
                    int32_t l_447 = 0xD3C0F29BL;
                    int32_t l_448 = 2L;
                    int32_t l_449[8][8][1] = {{{0x2D532479L},{(-6L)},{0x5CCBD2D6L},{(-6L)},{0x2D532479L},{0x1C097D34L},{1L},{2L}},{{0x2D532479L},{0L},{0x5CCBD2D6L},{0L},{0x2D532479L},{2L},{1L},{0x1C097D34L}},{{0x2D532479L},{(-6L)},{0x5CCBD2D6L},{(-6L)},{0x2D532479L},{0x1C097D34L},{1L},{2L}},{{0x2D532479L},{0L},{0x5CCBD2D6L},{0L},{0x2D532479L},{2L},{1L},{0x1C097D34L}},{{0x2D532479L},{(-6L)},{0x5CCBD2D6L},{(-6L)},{0x2D532479L},{0x1C097D34L},{1L},{2L}},{{0x2D532479L},{0L},{0x5CCBD2D6L},{0L},{0x2D532479L},{2L},{1L},{0x1C097D34L}},{{0x2D532479L},{(-6L)},{0x5CCBD2D6L},{(-6L)},{0x2D532479L},{0x1C097D34L},{1L},{2L}},{{0x2D532479L},{0L},{0x5CCBD2D6L},{0L},{0x2D532479L},{2L},{1L},{0x1C097D34L}}};
                    uint64_t l_455 = 5UL;
                    uint32_t **l_468[7] = {&l_181[3],&l_181[3],&l_181[3],&l_181[3],&l_181[3],&l_181[3],&l_181[3]};
                    int16_t *l_470 = &g_403;
                    int64_t **l_473 = &l_179;
                    uint64_t *l_474[9] = {&l_398[0],&l_398[0],&l_398[0],&l_398[0],&l_398[0],&l_398[0],&l_398[0],&l_398[0],&l_398[0]};
                    int i, j, k;
                    for (l_385 = (-7); (l_385 <= 49); l_385++)
                    { /* block id: 152 */
                        return (*p_39);
                    }
                    for (g_34 = 8; (g_34 <= 18); g_34 = safe_add_func_uint16_t_u_u(g_34, 4))
                    { /* block id: 157 */
                        int8_t l_443 = 1L;
                        int32_t l_446 = 0xFF098935L;
                        int32_t l_451 = 8L;
                        int32_t l_454 = 0xD903A9DCL;
                        l_455++;
                        if ((**g_86))
                            continue;
                    }
                    if (((safe_div_func_uint64_t_u_u((safe_sub_func_int32_t_s_s((((safe_add_func_uint64_t_u_u(0x337BE4DDF5017F1ALL, (~(l_434[8][6] , (((0x5EB64F150657BC51LL <= (l_455 || ((l_449[7][7][0] = (0x49L == (safe_sub_func_int8_t_s_s(((((((g_469 = l_467) != (l_181[3] = &g_182)) & ((*l_470) &= (**g_319))) < (((**l_196) &= ((safe_div_func_int16_t_s_s(((l_85[0] , l_434[1][3]) == (*g_87)), 0x4010L)) < 18446744073709551615UL)) , 0L)) , l_473) != &g_304), (*l_244))))) , 65531UL))) || l_449[7][7][0]) , 0x543953DF7DD08CF5LL))))) , 0xB774B55E0C45A794LL) , (*p_39)), g_184[0][1][0])), l_475[2])) >= (*l_244)))
                    { /* block id: 166 */
                        uint32_t l_484 = 0UL;
                        int16_t ***l_488 = &g_319;
                        int32_t l_491 = 0xA65281B0L;
                        uint16_t *l_492 = &l_178;
                        (*g_476) = &g_63[0][1];
                        (*l_369) |= (safe_sub_func_int16_t_s_s((safe_lshift_func_uint8_t_u_s((safe_mul_func_int16_t_s_s(l_484, ((*l_470) = (((safe_div_func_int16_t_s_s((((((*g_318) = l_487[0][2][0]) == (void*)0) , l_488) == ((safe_rshift_func_int8_t_s_u((((l_491 = (*p_39)) > 0L) & ((g_84.f2 = ((((*l_492) = g_257) == l_385) , (&g_303 != &g_303))) < (**g_303))), 5)) , (void*)0)), 65530UL)) , (*l_244)) , (**g_319))))), 6)), (*l_244)));
                        (**g_86) = (*l_244);
                    }
                    else
                    { /* block id: 175 */
                        int32_t l_493 = (-1L);
                        return l_493;
                    }
                }
            }
        }
    }
    return (*p_39);
}


/* ------------------------------------------ */
/* 
 * reads : g_86 g_6
 * writes: g_6
 */
union U0 * func_43(union U0 * p_44, union U0 * p_45, int32_t * p_46, union U0  p_47)
{ /* block id: 23 */
    int8_t l_89 = 0x96L;
    union U0 *l_90 = &g_49[1];
    (*p_46) |= (0x5FB3F51ED022C1C4LL || (g_86 == &p_46));
    (*p_46) ^= l_89;
    return l_90;
}


/* ------------------------------------------ */
/* 
 * reads : g_6 g_34
 * writes: g_6
 */
union U0 * func_50(uint64_t  p_51)
{ /* block id: 17 */
    int32_t *l_73 = &g_6[9][3];
    int8_t l_74 = 0x4EL;
    uint64_t l_77 = 4UL;
    uint8_t *l_78[7] = {&g_59,&g_59,&g_59,&g_59,&g_59,&g_59,&g_59};
    union U0 *l_79 = (void*)0;
    int i;
    (*l_73) = 0L;
    (*l_73) &= l_74;
    (*l_73) = ((*l_73) == (p_51 > (p_51 <= (((safe_mod_func_int32_t_s_s((((l_77 == 6UL) || ((l_78[0] != l_78[4]) >= 0L)) && g_6[7][6]), g_34)) & p_51) >= 0x6F217CF0AE94942BLL))));
    return l_79;
}


/* ------------------------------------------ */
/* 
 * reads : g_6 g_59
 * writes: g_63 g_6
 */
int64_t  func_54(uint8_t  p_55, int32_t * p_56, uint8_t  p_57)
{ /* block id: 10 */
    uint8_t *l_62 = (void*)0;
    int32_t *l_64 = &g_6[3][2];
    int32_t **l_65 = &l_64;
    union U0 l_66 = {0UL};
    (*p_56) |= (+(l_62 != (g_63[0][6] = l_62)));
    (*l_65) = l_64;
    (*p_56) = (l_66 , ((**l_65) <= g_59));
    return p_57;
}




/* ---------------------------------------- */
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();
    for (i = 0; i < 10; i++)
    {
        for (j = 0; j < 9; j++)
        {
            transparent_crc(g_6[i][j], "g_6[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_34, "g_34", print_hash_value);
    for (i = 0; i < 3; i++)
    {
        transparent_crc(g_49[i].f0, "g_49[i].f0", print_hash_value);
        transparent_crc(g_49[i].f1, "g_49[i].f1", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_59, "g_59", print_hash_value);
    transparent_crc(g_84.f0, "g_84.f0", print_hash_value);
    transparent_crc(g_84.f1, "g_84.f1", print_hash_value);
    transparent_crc(g_88, "g_88", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 6; j++)
        {
            transparent_crc(g_120[i][j], "g_120[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_124, "g_124", print_hash_value);
    transparent_crc(g_180, "g_180", print_hash_value);
    transparent_crc(g_182, "g_182", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 8; j++)
        {
            for (k = 0; k < 2; k++)
            {
                transparent_crc(g_184[i][j][k], "g_184[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 9; j++)
        {
            transparent_crc(g_205[i][j].f0, "g_205[i][j].f0", print_hash_value);
            transparent_crc(g_205[i][j].f1, "g_205[i][j].f1", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 2; j++)
        {
            for (k = 0; k < 6; k++)
            {
                transparent_crc(g_250[i][j][k], "g_250[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_252, "g_252", print_hash_value);
    transparent_crc(g_257, "g_257", print_hash_value);
    transparent_crc(g_260, "g_260", print_hash_value);
    transparent_crc(g_305, "g_305", print_hash_value);
    transparent_crc(g_338, "g_338", print_hash_value);
    transparent_crc(g_396, "g_396", print_hash_value);
    transparent_crc(g_403, "g_403", print_hash_value);
    transparent_crc(g_495, "g_495", print_hash_value);
    transparent_crc(g_560, "g_560", print_hash_value);
    transparent_crc(g_589, "g_589", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_591[i], "g_591[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_603, "g_603", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        for (j = 0; j < 1; j++)
        {
            for (k = 0; k < 8; k++)
            {
                transparent_crc(g_605[i][j][k], "g_605[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    for (i = 0; i < 6; i++)
    {
        for (j = 0; j < 4; j++)
        {
            transparent_crc(g_612[i][j], "g_612[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_658, "g_658", print_hash_value);
    transparent_crc(g_683, "g_683", print_hash_value);
    transparent_crc(g_696.f0, "g_696.f0", print_hash_value);
    transparent_crc(g_696.f1, "g_696.f1", print_hash_value);
    transparent_crc(g_701, "g_701", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        transparent_crc(g_788[i], "g_788[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_941.f0, "g_941.f0", print_hash_value);
    transparent_crc(g_941.f1, "g_941.f1", print_hash_value);
    transparent_crc(g_945, "g_945", print_hash_value);
    transparent_crc(g_962, "g_962", print_hash_value);
    transparent_crc(g_963, "g_963", print_hash_value);
    transparent_crc(g_1100, "g_1100", print_hash_value);
    transparent_crc(g_1224, "g_1224", print_hash_value);
    transparent_crc(g_1305, "g_1305", print_hash_value);
    transparent_crc(g_1429, "g_1429", print_hash_value);
    transparent_crc(g_1712, "g_1712", print_hash_value);
    for (i = 0; i < 10; i++)
    {
        transparent_crc(g_1747[i], "g_1747[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_1782.f0, "g_1782.f0", print_hash_value);
    transparent_crc(g_1782.f1, "g_1782.f1", print_hash_value);
    transparent_crc(g_1834, "g_1834", print_hash_value);
    transparent_crc(g_1863, "g_1863", print_hash_value);
    transparent_crc(g_1948, "g_1948", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 9; j++)
        {
            transparent_crc(g_1965[i][j], "g_1965[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_1981, "g_1981", print_hash_value);
    transparent_crc(g_2033.f0, "g_2033.f0", print_hash_value);
    transparent_crc(g_2033.f1, "g_2033.f1", print_hash_value);
    transparent_crc(g_2191, "g_2191", print_hash_value);
    transparent_crc(g_2263, "g_2263", print_hash_value);
    transparent_crc(g_2271, "g_2271", print_hash_value);
    transparent_crc(g_2441, "g_2441", print_hash_value);
    transparent_crc(g_2479, "g_2479", print_hash_value);
    transparent_crc(g_2557, "g_2557", print_hash_value);
    transparent_crc(g_2717, "g_2717", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 782
XXX total union variables: 31

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: 37
breakdown:
   depth: 1, occurrence: 236
   depth: 2, occurrence: 71
   depth: 3, occurrence: 8
   depth: 4, occurrence: 2
   depth: 5, occurrence: 1
   depth: 6, occurrence: 2
   depth: 9, occurrence: 1
   depth: 11, occurrence: 2
   depth: 12, occurrence: 2
   depth: 14, occurrence: 2
   depth: 15, occurrence: 1
   depth: 17, occurrence: 1
   depth: 18, occurrence: 2
   depth: 19, occurrence: 1
   depth: 20, occurrence: 6
   depth: 21, occurrence: 6
   depth: 22, occurrence: 4
   depth: 23, occurrence: 3
   depth: 25, occurrence: 3
   depth: 26, occurrence: 2
   depth: 27, occurrence: 3
   depth: 28, occurrence: 1
   depth: 29, occurrence: 2
   depth: 30, occurrence: 1
   depth: 31, occurrence: 1
   depth: 32, occurrence: 1
   depth: 33, occurrence: 2
   depth: 36, occurrence: 1
   depth: 37, occurrence: 5

XXX total number of pointers: 664

XXX times a variable address is taken: 1353
XXX times a pointer is dereferenced on RHS: 483
breakdown:
   depth: 1, occurrence: 392
   depth: 2, occurrence: 65
   depth: 3, occurrence: 20
   depth: 4, occurrence: 6
XXX times a pointer is dereferenced on LHS: 379
breakdown:
   depth: 1, occurrence: 330
   depth: 2, occurrence: 33
   depth: 3, occurrence: 9
   depth: 4, occurrence: 7
XXX times a pointer is compared with null: 50
XXX times a pointer is compared with address of another variable: 11
XXX times a pointer is compared with another pointer: 18
XXX times a pointer is qualified to be dereferenced: 12656

XXX max dereference level: 4
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 1833
   level: 2, occurrence: 385
   level: 3, occurrence: 250
   level: 4, occurrence: 39
XXX number of pointers point to pointers: 287
XXX number of pointers point to scalars: 355
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 27.7
XXX average alias set size: 1.34

XXX times a non-volatile is read: 2348
XXX times a non-volatile is write: 1102
XXX times a volatile is read: 136
XXX    times read thru a pointer: 74
XXX times a volatile is write: 80
XXX    times written thru a pointer: 58
XXX times a volatile is available for access: 1.84e+03
XXX percentage of non-volatile access: 94.1

XXX forward jumps: 0
XXX backward jumps: 7

XXX stmts: 255
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 35
   depth: 1, occurrence: 33
   depth: 2, occurrence: 32
   depth: 3, occurrence: 54
   depth: 4, occurrence: 48
   depth: 5, occurrence: 53

XXX percentage a fresh-made variable is used: 15.5
XXX percentage an existing variable is used: 84.5
********************* end of statistics **********************/

