Skip to content

Instantly share code, notes, and snippets.

@MrToph MrToph/mumachayinmm.cpp Secret
Created Sep 15, 2019

Embed
What would you like to do?
EOSPlay hack attacker contract
#include <math.h>
#include <string.h>
#include "contracts/decompiled.h"
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
#define LIKELY(x) __builtin_expect(!!(x), 1)
#define TRAP(x) (wasm_rt_trap(WASM_RT_TRAP_##x), 0)
#define FUNC_PROLOGUE \
if (++wasm_rt_call_stack_depth > WASM_RT_MAX_CALL_STACK_DEPTH) \
TRAP(EXHAUSTION)
#define FUNC_EPILOGUE --wasm_rt_call_stack_depth
#define UNREACHABLE TRAP(UNREACHABLE)
#define CALL_INDIRECT(table, t, ft, x, ...) \
(LIKELY((x) < table.size && table.data[x].func && \
table.data[x].func_type == func_types[ft]) \
? ((t)table.data[x].func)(__VA_ARGS__) \
: TRAP(CALL_INDIRECT))
#define MEMCHECK(mem, a, t) \
if (UNLIKELY((a) + sizeof(t) > mem->size)) TRAP(OOB)
#define DEFINE_LOAD(name, t1, t2, t3) \
static inline t3 name(wasm_rt_memory_t* mem, u64 addr) { \
MEMCHECK(mem, addr, t1); \
t1 result; \
memcpy(&result, &mem->data[addr], sizeof(t1)); \
return (t3)(t2)result; \
}
#define DEFINE_STORE(name, t1, t2) \
static inline void name(wasm_rt_memory_t* mem, u64 addr, t2 value) { \
MEMCHECK(mem, addr, t1); \
t1 wrapped = (t1)value; \
memcpy(&mem->data[addr], &wrapped, sizeof(t1)); \
}
DEFINE_LOAD(i32_load, u32, u32, u32);
DEFINE_LOAD(i64_load, u64, u64, u64);
DEFINE_LOAD(f32_load, f32, f32, f32);
DEFINE_LOAD(f64_load, f64, f64, f64);
DEFINE_LOAD(i32_load8_s, s8, s32, u32);
DEFINE_LOAD(i64_load8_s, s8, s64, u64);
DEFINE_LOAD(i32_load8_u, u8, u32, u32);
DEFINE_LOAD(i64_load8_u, u8, u64, u64);
DEFINE_LOAD(i32_load16_s, s16, s32, u32);
DEFINE_LOAD(i64_load16_s, s16, s64, u64);
DEFINE_LOAD(i32_load16_u, u16, u32, u32);
DEFINE_LOAD(i64_load16_u, u16, u64, u64);
DEFINE_LOAD(i64_load32_s, s32, s64, u64);
DEFINE_LOAD(i64_load32_u, u32, u64, u64);
DEFINE_STORE(i32_store, u32, u32);
DEFINE_STORE(i64_store, u64, u64);
DEFINE_STORE(f32_store, f32, f32);
DEFINE_STORE(f64_store, f64, f64);
DEFINE_STORE(i32_store8, u8, u32);
DEFINE_STORE(i32_store16, u16, u32);
DEFINE_STORE(i64_store8, u8, u64);
DEFINE_STORE(i64_store16, u16, u64);
DEFINE_STORE(i64_store32, u32, u64);
#define I32_CLZ(x) ((x) ? __builtin_clz(x) : 32)
#define I64_CLZ(x) ((x) ? __builtin_clzll(x) : 64)
#define I32_CTZ(x) ((x) ? __builtin_ctz(x) : 32)
#define I64_CTZ(x) ((x) ? __builtin_ctzll(x) : 64)
#define I32_POPCNT(x) (__builtin_popcount(x))
#define I64_POPCNT(x) (__builtin_popcountll(x))
#define DIV_S(ut, min, x, y) \
((UNLIKELY((y) == 0)) ? TRAP(DIV_BY_ZERO) \
: (UNLIKELY((x) == min && (y) == -1)) ? TRAP(INT_OVERFLOW) \
: (ut)((x) / (y)))
#define REM_S(ut, min, x, y) \
((UNLIKELY((y) == 0)) ? TRAP(DIV_BY_ZERO) \
: (UNLIKELY((x) == min && (y) == -1)) ? 0 \
: (ut)((x) % (y)))
#define I32_DIV_S(x, y) DIV_S(u32, INT32_MIN, (s32)x, (s32)y)
#define I64_DIV_S(x, y) DIV_S(u64, INT64_MIN, (s64)x, (s64)y)
#define I32_REM_S(x, y) REM_S(u32, INT32_MIN, (s32)x, (s32)y)
#define I64_REM_S(x, y) REM_S(u64, INT64_MIN, (s64)x, (s64)y)
#define DIVREM_U(op, x, y) \
((UNLIKELY((y) == 0)) ? TRAP(DIV_BY_ZERO) : ((x) op (y)))
#define DIV_U(x, y) DIVREM_U(/, x, y)
#define REM_U(x, y) DIVREM_U(%, x, y)
#define ROTL(x, y, mask) \
(((x) << ((y) & (mask))) | ((x) >> (((mask) - (y) + 1) & (mask))))
#define ROTR(x, y, mask) \
(((x) >> ((y) & (mask))) | ((x) << (((mask) - (y) + 1) & (mask))))
#define I32_ROTL(x, y) ROTL(x, y, 31)
#define I64_ROTL(x, y) ROTL(x, y, 63)
#define I32_ROTR(x, y) ROTR(x, y, 31)
#define I64_ROTR(x, y) ROTR(x, y, 63)
#define FMIN(x, y) \
((UNLIKELY((x) != (x))) ? NAN \
: (UNLIKELY((y) != (y))) ? NAN \
: (UNLIKELY((x) == 0 && (y) == 0)) ? (signbit(x) ? x : y) \
: (x < y) ? x : y)
#define FMAX(x, y) \
((UNLIKELY((x) != (x))) ? NAN \
: (UNLIKELY((y) != (y))) ? NAN \
: (UNLIKELY((x) == 0 && (y) == 0)) ? (signbit(x) ? y : x) \
: (x > y) ? x : y)
#define TRUNC_S(ut, st, ft, min, max, maxop, x) \
((UNLIKELY((x) != (x))) ? TRAP(INVALID_CONVERSION) \
: (UNLIKELY((x) < (ft)(min) || (x) maxop (ft)(max))) ? TRAP(INT_OVERFLOW) \
: (ut)(st)(x))
#define I32_TRUNC_S_F32(x) TRUNC_S(u32, s32, f32, INT32_MIN, INT32_MAX, >=, x)
#define I64_TRUNC_S_F32(x) TRUNC_S(u64, s64, f32, INT64_MIN, INT64_MAX, >=, x)
#define I32_TRUNC_S_F64(x) TRUNC_S(u32, s32, f64, INT32_MIN, INT32_MAX, >, x)
#define I64_TRUNC_S_F64(x) TRUNC_S(u64, s64, f64, INT64_MIN, INT64_MAX, >=, x)
#define TRUNC_U(ut, ft, max, maxop, x) \
((UNLIKELY((x) != (x))) ? TRAP(INVALID_CONVERSION) \
: (UNLIKELY((x) <= (ft)-1 || (x) maxop (ft)(max))) ? TRAP(INT_OVERFLOW) \
: (ut)(x))
#define I32_TRUNC_U_F32(x) TRUNC_U(u32, f32, UINT32_MAX, >=, x)
#define I64_TRUNC_U_F32(x) TRUNC_U(u64, f32, UINT64_MAX, >=, x)
#define I32_TRUNC_U_F64(x) TRUNC_U(u32, f64, UINT32_MAX, >, x)
#define I64_TRUNC_U_F64(x) TRUNC_U(u64, f64, UINT64_MAX, >=, x)
#define DEFINE_REINTERPRET(name, t1, t2) \
static inline t2 name(t1 x) { \
t2 result; \
memcpy(&result, &x, sizeof(result)); \
return result; \
}
DEFINE_REINTERPRET(f32_reinterpret_i32, u32, f32)
DEFINE_REINTERPRET(i32_reinterpret_f32, f32, u32)
DEFINE_REINTERPRET(f64_reinterpret_i64, u64, f64)
DEFINE_REINTERPRET(i64_reinterpret_f64, f64, u64)
static u32 func_types[23];
static void init_func_types(void) {
func_types[0] = wasm_rt_register_func_type(3, 0, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[1] = wasm_rt_register_func_type(2, 0, WASM_RT_I32, WASM_RT_I32);
func_types[2] = wasm_rt_register_func_type(5, 0, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[3] = wasm_rt_register_func_type(1, 0, WASM_RT_I32);
func_types[4] = wasm_rt_register_func_type(2, 0, WASM_RT_I32, WASM_RT_I64);
func_types[5] = wasm_rt_register_func_type(3, 0, WASM_RT_I32, WASM_RT_I64, WASM_RT_I64);
func_types[6] = wasm_rt_register_func_type(0, 0);
func_types[7] = wasm_rt_register_func_type(0, 1, WASM_RT_I64);
func_types[8] = wasm_rt_register_func_type(2, 0, WASM_RT_I64, WASM_RT_I64);
func_types[9] = wasm_rt_register_func_type(0, 1, WASM_RT_I32);
func_types[10] = wasm_rt_register_func_type(2, 1, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[11] = wasm_rt_register_func_type(3, 1, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[12] = wasm_rt_register_func_type(1, 0, WASM_RT_I64);
func_types[13] = wasm_rt_register_func_type(4, 1, WASM_RT_I64, WASM_RT_I64, WASM_RT_I64, WASM_RT_I64, WASM_RT_I32);
func_types[14] = wasm_rt_register_func_type(4, 0, WASM_RT_I32, WASM_RT_I64, WASM_RT_I32, WASM_RT_I32);
func_types[15] = wasm_rt_register_func_type(6, 1, WASM_RT_I64, WASM_RT_I64, WASM_RT_I64, WASM_RT_I64, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[16] = wasm_rt_register_func_type(1, 1, WASM_RT_I32, WASM_RT_I32);
func_types[17] = wasm_rt_register_func_type(5, 0, WASM_RT_I32, WASM_RT_I64, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[18] = wasm_rt_register_func_type(1, 0, WASM_RT_F64);
func_types[19] = wasm_rt_register_func_type(3, 0, WASM_RT_I64, WASM_RT_I64, WASM_RT_I64);
func_types[20] = wasm_rt_register_func_type(4, 0, WASM_RT_I32, WASM_RT_I32, WASM_RT_I64, WASM_RT_I32);
func_types[21] = wasm_rt_register_func_type(4, 0, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
func_types[22] = wasm_rt_register_func_type(8, 0, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32, WASM_RT_I32);
}
static u32 _ZeqRK11checksum256S1_(u32, u32);
static u32 _ZeqRK11checksum160S1_(u32, u32);
static u32 _ZneRK11checksum160S1_(u32, u32);
static u32 now(void);
static void _ZN5eosio12require_authERKNS_16permission_levelE(u32);
static void apply(u64, u64, u64);
static void f27(u32, u32, u32);
static u32 f28(u32, u32);
static void f29(u32, u32);
static u32 f30(u32, u32);
static void f31(u32, u32, u32);
static void f32_0(u32, u32, u32, u32, u32);
static u32 f33(u32, u32);
static void f34(u32);
static u32 f35(u32, u32);
static void f36(u32, u32);
static u32 f37(u32, u32);
static void f38(u32, u32);
static void f39(u32, u64);
static u32 f40(u32, u32);
static void f41(u32);
static void f42(u32, u32);
static void f43(u32);
static void f44(u32, u64);
static void f45(u32, u32);
static void f46(u32, u64, u64);
static u32 f47(u32, u32);
static u32 f48(u32, u32);
static void f49(u32, u32, u64, u32);
static void f50(u32, u32, u64, u32);
static void f51(u32, u32);
static void f52(u32, u32, u32, u32);
static void f53(u32, u32);
static u32 f54(u32, u32);
static void f55(u32, u32, u64, u32);
static void f56(u32, u32, u64, u32);
static void f57(u32, u32);
static void f58(u32, u32, u32, u32);
static void f59(u32, u32);
static void f60(u32, u32, u64, u32);
static void f61(u32, u32, u64, u32);
static void f62(u32, u32);
static void f63(u32, u32, u64, u32);
static void f64_0(u32, u32, u64, u32);
static void f65(u32, u32);
static void f66(u32, u32);
static void f67(u32, u32);
static u32 f68(u32, u32);
static u32 f69(u32, u32);
static u32 f70(u32, u32);
static void f71(u32, u32, u64, u32);
static void f72(u32, u32, u64, u32);
static void f73(u32, u32, u64, u32);
static void f74(u32, u32, u64, u32);
static void f75(u32, u32, u64, u32);
static void f76(u32, u32, u64, u32);
static void f77(u32, u32);
static u32 f78(u32, u32);
static void f79(u32, u32, u64, u32);
static void f80(u32, u32, u64, u32);
static void f81(u32, u32, u32, u32);
static void f82(u32, u32, u32, u32, u32);
static void f83(u32, u32);
static u32 f84(u32);
static u32 f85(u32, u32);
static u32 f86(u32, u32);
static u32 f87(u32, u32);
static u32 f88(u32, u32);
static void f89(u32, u32, u64, u32);
static void f90(u32, u32, u64, u32);
static void f91(u32, u32, u32, u32, u32);
static u32 f92(u32, u32, u32);
static u32 malloc(u32);
static u32 f94(u32, u32);
static u32 f95(u32);
static void free(u32);
static u32 f97(u32);
static void f98(u32);
static void f99(u32);
static u32 f100(u32, u32, u32);
static void f101(u32, u32, u32, u32, u32, u32, u32, u32);
static void f102(u32);
static u32 memcmp_0(u32, u32, u32);
static u32 strlen_0(u32);
static void f105(void);
static void init_globals(void) {
}
static wasm_rt_memory_t memory;
static wasm_rt_table_t T0;
static u32 _ZeqRK11checksum256S1_(u32 p0, u32 p1) {
FUNC_PROLOGUE;
u32 i0, i1, i2;
i0 = p0;
i1 = p1;
i2 = 32u;
i0 = memcmp_0(i0, i1, i2);
i0 = !(i0);
FUNC_EPILOGUE;
return i0;
}
static u32 _ZeqRK11checksum160S1_(u32 p0, u32 p1) {
FUNC_PROLOGUE;
u32 i0, i1, i2;
i0 = p0;
i1 = p1;
i2 = 32u;
i0 = memcmp_0(i0, i1, i2);
i0 = !(i0);
FUNC_EPILOGUE;
return i0;
}
static u32 _ZneRK11checksum160S1_(u32 p0, u32 p1) {
FUNC_PROLOGUE;
u32 i0, i1, i2;
i0 = p0;
i1 = p1;
i2 = 32u;
i0 = memcmp_0(i0, i1, i2);
i1 = 0u;
i0 = i0 != i1;
FUNC_EPILOGUE;
return i0;
}
static u32 now(void) {
FUNC_PROLOGUE;
u32 i0;
u64 j0, j1;
j0 = (*Z_envZ_current_timeZ_jv)();
j1 = 1000000ull;
j0 = DIV_U(j0, j1);
i0 = (u32)(j0);
FUNC_EPILOGUE;
return i0;
}
static void _ZN5eosio12require_authERKNS_16permission_levelE(u32 p0) {
FUNC_PROLOGUE;
u32 i0, i1;
u64 j0, j1;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
i1 = p0;
j1 = i64_load((&memory), (u64)(i1 + 8));
(*Z_envZ_require_auth2Z_vjj)(j0, j1);
FUNC_EPILOGUE;
}
static void apply(u64 p0, u64 p1, u64 p2) {
u32 l3 = 0, l4 = 0, l9 = 0;
u64 l5 = 0, l6 = 0, l7 = 0, l8 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3;
u64 j0, j1, j2;
i0 = 0u;
i1 = 0u;
i1 = i32_load((&memory), (u64)(i1 + 4));
i2 = 240u;
i1 -= i2;
l9 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
j0 = 0ull;
l6 = j0;
j0 = 59ull;
l5 = j0;
i0 = 16u;
l4 = i0;
j0 = 0ull;
l7 = j0;
L0:
j0 = l6;
j1 = 6ull;
i0 = j0 > j1;
if (i0) {goto B5;}
i0 = l4;
i0 = i32_load8_s((&memory), (u64)(i0));
l3 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B4;}
i0 = l3;
i1 = 165u;
i0 += i1;
l3 = i0;
goto B3;
B5:;
j0 = 0ull;
l8 = j0;
j0 = l6;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B2;}
goto B1;
B4:;
i0 = l3;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l3;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l3 = i0;
B3:;
i0 = l3;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l8 = j0;
B2:;
j0 = l8;
j1 = 31ull;
j0 &= j1;
j1 = l5;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l8 = j0;
B1:;
i0 = l4;
i1 = 1u;
i0 += i1;
l4 = i0;
j0 = l6;
j1 = 1ull;
j0 += j1;
l6 = j0;
j0 = l8;
j1 = l7;
j0 |= j1;
l7 = j0;
j0 = l5;
j1 = 18446744073709551611ull;
j0 += j1;
l5 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L0;}
j0 = l7;
j1 = p2;
i0 = j0 != j1;
if (i0) {goto B6;}
j0 = 0ull;
l6 = j0;
j0 = 59ull;
l5 = j0;
i0 = 32u;
l4 = i0;
j0 = 0ull;
l7 = j0;
L7:
j0 = l6;
j1 = 4ull;
i0 = j0 > j1;
if (i0) {goto B12;}
i0 = l4;
i0 = i32_load8_s((&memory), (u64)(i0));
l3 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B11;}
i0 = l3;
i1 = 165u;
i0 += i1;
l3 = i0;
goto B10;
B12:;
j0 = 0ull;
l8 = j0;
j0 = l6;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B9;}
goto B8;
B11:;
i0 = l3;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l3;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l3 = i0;
B10:;
i0 = l3;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l8 = j0;
B9:;
j0 = l8;
j1 = 31ull;
j0 &= j1;
j1 = l5;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l8 = j0;
B8:;
i0 = l4;
i1 = 1u;
i0 += i1;
l4 = i0;
j0 = l6;
j1 = 1ull;
j0 += j1;
l6 = j0;
j0 = l8;
j1 = l7;
j0 |= j1;
l7 = j0;
j0 = l5;
j1 = 18446744073709551611ull;
j0 += j1;
l5 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L7;}
j0 = l7;
j1 = p1;
i0 = j0 == j1;
i1 = 48u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
B6:;
j0 = p1;
j1 = p0;
i0 = j0 == j1;
if (i0) {goto B14;}
j0 = 0ull;
l6 = j0;
j0 = 59ull;
l5 = j0;
i0 = 16u;
l4 = i0;
j0 = 0ull;
l7 = j0;
L15:
j0 = l6;
j1 = 6ull;
i0 = j0 > j1;
if (i0) {goto B20;}
i0 = l4;
i0 = i32_load8_s((&memory), (u64)(i0));
l3 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B19;}
i0 = l3;
i1 = 165u;
i0 += i1;
l3 = i0;
goto B18;
B20:;
j0 = 0ull;
l8 = j0;
j0 = l6;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B17;}
goto B16;
B19:;
i0 = l3;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l3;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l3 = i0;
B18:;
i0 = l3;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l8 = j0;
B17:;
j0 = l8;
j1 = 31ull;
j0 &= j1;
j1 = l5;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l8 = j0;
B16:;
i0 = l4;
i1 = 1u;
i0 += i1;
l4 = i0;
j0 = l6;
j1 = 1ull;
j0 += j1;
l6 = j0;
j0 = l8;
j1 = l7;
j0 |= j1;
l7 = j0;
j0 = l5;
j1 = 18446744073709551611ull;
j0 += j1;
l5 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L15;}
j0 = l7;
j1 = p2;
i0 = j0 != j1;
if (i0) {goto B13;}
B14:;
i0 = l9;
j1 = p0;
i64_store((&memory), (u64)(i0 + 232), j1);
j0 = p2;
j1 = 14029719294158831615ull;
i0 = (u64)((s64)j0 > (s64)j1);
if (i0) {goto B33;}
j0 = p2;
j1 = 14029416526700871679ull;
i0 = (u64)((s64)j0 <= (s64)j1);
if (i0) {goto B32;}
j0 = p2;
j1 = 14029624643636166655ull;
i0 = (u64)((s64)j0 > (s64)j1);
if (i0) {goto B30;}
j0 = p2;
j1 = 14029416526700871680ull;
i0 = j0 == j1;
if (i0) {goto B28;}
j0 = p2;
j1 = 14029478758629507072ull;
i0 = j0 != j1;
if (i0) {goto B13;}
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 180), i1);
i0 = l9;
i1 = 1u;
i32_store((&memory), (u64)(i0 + 176), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 176));
i64_store((&memory), (u64)(i0 + 56), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 56u;
i1 += i2;
i0 = f37(i0, i1);
goto B13;
B33:;
j0 = p2;
j1 = 4923676291099525119ull;
i0 = (u64)((s64)j0 <= (s64)j1);
if (i0) {goto B31;}
j0 = p2;
j1 = 7746191359077253119ull;
i0 = (u64)((s64)j0 > (s64)j1);
if (i0) {goto B29;}
j0 = p2;
j1 = 4923676291099525120ull;
i0 = j0 == j1;
if (i0) {goto B27;}
j0 = p2;
j1 = 5350276357316149248ull;
i0 = j0 != j1;
if (i0) {goto B13;}
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 220), i1);
i0 = l9;
i1 = 2u;
i32_store((&memory), (u64)(i0 + 216), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 216));
i64_store((&memory), (u64)(i0 + 16), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 16u;
i1 += i2;
i0 = f30(i0, i1);
goto B13;
B32:;
j0 = p2;
j1 = 13737667713340276736ull;
i0 = j0 == j1;
if (i0) {goto B26;}
j0 = p2;
j1 = 14026056419166388224ull;
i0 = j0 == j1;
if (i0) {goto B25;}
j0 = p2;
j1 = 14029391595821334528ull;
i0 = j0 != j1;
if (i0) {goto B13;}
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 172), i1);
i0 = l9;
i1 = 3u;
i32_store((&memory), (u64)(i0 + 168), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 168));
i64_store((&memory), (u64)(i0 + 64), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 64u;
i1 += i2;
i0 = f40(i0, i1);
goto B13;
B31:;
j0 = p2;
j1 = 14029719294158831616ull;
i0 = j0 == j1;
if (i0) {goto B24;}
j0 = p2;
j1 = 14029723605051375616ull;
i0 = j0 == j1;
if (i0) {goto B23;}
j0 = p2;
j1 = 14289214081914109952ull;
i0 = j0 != j1;
if (i0) {goto B13;}
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 212), i1);
i0 = l9;
i1 = 4u;
i32_store((&memory), (u64)(i0 + 208), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 208));
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 24u;
i1 += i2;
i0 = f28(i0, i1);
goto B13;
B30:;
j0 = p2;
j1 = 14029624643636166656ull;
i0 = j0 == j1;
if (i0) {goto B22;}
j0 = p2;
j1 = 14029695040206405632ull;
i0 = j0 != j1;
if (i0) {goto B13;}
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 132), i1);
i0 = l9;
i1 = 5u;
i32_store((&memory), (u64)(i0 + 128), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 128));
i64_store((&memory), (u64)(i0 + 104), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 104u;
i1 += i2;
i0 = f37(i0, i1);
goto B13;
B29:;
j0 = p2;
j1 = 7746191359077253120ull;
i0 = j0 == j1;
if (i0) {goto B21;}
j0 = p2;
j1 = 8421045207927095296ull;
i0 = j0 != j1;
if (i0) {goto B13;}
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 196), i1);
i0 = l9;
i1 = 6u;
i32_store((&memory), (u64)(i0 + 192), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 192));
i64_store((&memory), (u64)(i0 + 40), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 40u;
i1 += i2;
i0 = f35(i0, i1);
goto B13;
B28:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 204), i1);
i0 = l9;
i1 = 7u;
i32_store((&memory), (u64)(i0 + 200), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 200));
i64_store((&memory), (u64)(i0 + 32), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 32u;
i1 += i2;
i0 = f33(i0, i1);
goto B13;
B27:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 148), i1);
i0 = l9;
i1 = 8u;
i32_store((&memory), (u64)(i0 + 144), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 144));
i64_store((&memory), (u64)(i0 + 88), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 88u;
i1 += i2;
i0 = f35(i0, i1);
goto B13;
B26:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 228), i1);
i0 = l9;
i1 = 9u;
i32_store((&memory), (u64)(i0 + 224), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 224));
i64_store((&memory), (u64)(i0 + 8), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 8u;
i1 += i2;
i0 = f28(i0, i1);
goto B13;
B25:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 164), i1);
i0 = l9;
i1 = 10u;
i32_store((&memory), (u64)(i0 + 160), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 160));
i64_store((&memory), (u64)(i0 + 72), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 72u;
i1 += i2;
i0 = f35(i0, i1);
goto B13;
B24:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 124), i1);
i0 = l9;
i1 = 11u;
i32_store((&memory), (u64)(i0 + 120), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 120));
i64_store((&memory), (u64)(i0 + 112), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 112u;
i1 += i2;
i0 = f47(i0, i1);
goto B13;
B23:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 140), i1);
i0 = l9;
i1 = 12u;
i32_store((&memory), (u64)(i0 + 136), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 136));
i64_store((&memory), (u64)(i0 + 96), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 96u;
i1 += i2;
i0 = f40(i0, i1);
goto B13;
B22:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 156), i1);
i0 = l9;
i1 = 13u;
i32_store((&memory), (u64)(i0 + 152), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 152));
i64_store((&memory), (u64)(i0 + 80), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 80u;
i1 += i2;
i0 = f37(i0, i1);
goto B13;
B21:;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 188), i1);
i0 = l9;
i1 = 14u;
i32_store((&memory), (u64)(i0 + 184), i1);
i0 = l9;
i1 = l9;
j1 = i64_load((&memory), (u64)(i1 + 184));
i64_store((&memory), (u64)(i0 + 48), j1);
i0 = l9;
i1 = 232u;
i0 += i1;
i1 = l9;
i2 = 48u;
i1 += i2;
i0 = f37(i0, i1);
B13:;
i0 = 0u;
i1 = l9;
i2 = 240u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
FUNC_EPILOGUE;
}
// HINT: SEEMS LIKE run function
static void f27(u32 p0, u32 number, u32 p2) {
u32 l3 = 0, l7 = 0, l9 = 0;
u64 l4 = 0, l5 = 0, l6 = 0;
f64 l8 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2;
u64 j0, j1, j2, j3, j4;
f64 d0, d1;
i0 = 0u;
i1 = 0u;
i1 = i32_load((&memory), (u64)(i1 + 4));
i2 = 128u;
i1 -= i2;
l9 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
(*Z_envZ_require_authZ_vj)(j0);
i0 = l9;
i1 = 120u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 104), j1);
i0 = l9;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l6 = j1;
i64_store((&memory), (u64)(i0 + 88), j1);
i0 = l9;
j1 = l6;
i64_store((&memory), (u64)(i0 + 96), j1);
i0 = l9;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 112), j1);
i0 = l9;
i1 = 88u;
i0 += i1;
j1 = l6;
j2 = l6;
j3 = 4982871467403247616ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f48(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 32));
l6 = j0;
j1 = 18446744073709551116ull;
j0 += j1;
l4 = j0;
j0 = l6;
j1 = (*Z_envZ_current_timeZ_jv)();
j2 = 1000ull;
j1 = DIV_U(j1, j2);
l5 = j1;
i0 = j0 == j1;
if (i0) {goto B3;}
j0 = l4;
j1 = l5;
i0 = j0 == j1;
if (i0) {goto B3;}
i0 = l9;
i1 = 48u;
i0 += i1;
i1 = 32u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 64), j1);
i0 = l9;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l6 = j1;
i64_store((&memory), (u64)(i0 + 48), j1);
i0 = l9;
j1 = l6;
i64_store((&memory), (u64)(i0 + 56), j1);
i0 = l9;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 72), j1);
i0 = l9;
i1 = 48u;
i0 += i1;
j1 = l6;
j2 = l6;
j3 = 9521031824726294528ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f78(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 8));
i0 = !(j0);
if (i0) {goto B0;}
i0 = l9;
i1 = 8u;
i0 += i1;
i1 = 32u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l9;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l6 = j1;
i64_store((&memory), (u64)(i0 + 8), j1);
i0 = l9;
j1 = l6;
i64_store((&memory), (u64)(i0 + 16), j1);
i0 = l9;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 32), j1);
i0 = l9;
i1 = 8u;
i0 += i1;
j1 = l6;
j2 = l6;
j3 = 8419281591276142592ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f54(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 8));
i0 = !(j0);
if (i0) {goto B4;} // skips the print a:
d0 = 1;
l8 = d0;
i0 = number;
i1 = 1u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B5;} // i0 skips loop
L6:
d0 = l8;
d1 = 2.7999999999999998;
d0 *= d1;
l8 = d0;
i0 = number; // counter = counter
i1 = 4294967295u; // -1
i0 += i1; // counter - 1
number = i0; // number = counter
if (i0) {goto L6;}
B5:;
i0 = 992u; // HINT: a: string
(*Z_envZ_printsZ_vi)(i0);
d0 = l8;
(*Z_envZ_printdfZ_vd)(d0);
B4:;
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 32));
l3 = i0;
i0 = !(i0);
if (i0) {goto B0;}
i0 = l9;
i1 = 36u;
i0 += i1;
l7 = i0;
i0 = i32_load((&memory), (u64)(i0));
number = i0;
i1 = l3;
i0 = i0 == i1;
if (i0) {goto B2;}
L7:
i0 = number;
i1 = 4294967272u;
i0 += i1;
number = i0;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
i0 = number;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
i0 = !(i0);
if (i0) {goto B8;}
i0 = p0;
f98(i0);
B8:;
i0 = l3;
i1 = number;
i0 = i0 != i1;
if (i0) {goto L7;}
i0 = l9;
i1 = 32u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
number = i0;
goto B1;
B3:;
L9:
goto L9;
B2:;
i0 = l3;
number = i0;
B1:;
i0 = l7;
i1 = l3;
i32_store((&memory), (u64)(i0), i1);
i0 = number;
f98(i0);
B0:;
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 72));
l3 = i0;
i0 = !(i0);
if (i0) {goto B10;}
i0 = l9;
i1 = 76u;
i0 += i1;
l7 = i0;
i0 = i32_load((&memory), (u64)(i0));
number = i0;
i1 = l3;
i0 = i0 == i1;
if (i0) {goto B12;}
L13:
i0 = number;
i1 = 4294967272u;
i0 += i1;
number = i0;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
i0 = number;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
i0 = !(i0);
if (i0) {goto B14;}
i0 = p0;
f98(i0);
B14:;
i0 = l3;
i1 = number;
i0 = i0 != i1;
if (i0) {goto L13;}
i0 = l9;
i1 = 72u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
number = i0;
goto B11;
B12:;
i0 = l3;
number = i0;
B11:;
i0 = l7;
i1 = l3;
i32_store((&memory), (u64)(i0), i1);
i0 = number;
f98(i0);
B10:;
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 112));
l3 = i0;
i0 = !(i0);
if (i0) {goto B15;}
i0 = l9;
i1 = 116u;
i0 += i1;
l7 = i0;
i0 = i32_load((&memory), (u64)(i0));
number = i0;
i1 = l3;
i0 = i0 == i1;
if (i0) {goto B17;}
L18:
i0 = number;
i1 = 4294967272u;
i0 += i1;
number = i0;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
i0 = number;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
i0 = !(i0);
if (i0) {goto B19;}
i0 = p0;
f98(i0);
B19:;
i0 = l3;
i1 = number;
i0 = i0 != i1;
if (i0) {goto L18;}
i0 = l9;
i1 = 112u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
number = i0;
goto B16;
B17:;
i0 = l3;
number = i0;
B16:;
i0 = l7;
i1 = l3;
i32_store((&memory), (u64)(i0), i1);
i0 = number;
f98(i0);
B15:;
i0 = 0u;
i1 = l9;
i2 = 128u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
FUNC_EPILOGUE;
}
static u32 f28(u32 p0, u32 p1) {
u32 l2 = 0, l3 = 0, l4 = 0, l5 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3;
u64 j1;
i0 = 0u;
i0 = i32_load((&memory), (u64)(i0 + 4));
i1 = 16u;
i0 -= i1;
l3 = i0;
l5 = i0;
i0 = 0u;
i1 = l3;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p1;
i0 = i32_load((&memory), (u64)(i0 + 4));
l2 = i0;
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
l4 = i0;
i0 = (*Z_envZ_action_data_sizeZ_iv)();
p1 = i0;
i0 = !(i0);
if (i0) {goto B3;}
i0 = p1;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B2;}
i0 = p1;
i0 = malloc(i0);
l3 = i0;
goto B1;
B3:;
i0 = 0u;
l3 = i0;
goto B0;
B2:;
i0 = 0u;
i1 = l3;
i2 = p1;
i3 = 15u;
i2 += i3;
i3 = 4294967280u;
i2 &= i3;
i1 -= i2;
l3 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
B1:;
i0 = l3;
i1 = p1;
i0 = (*Z_envZ_read_action_dataZ_iii)(i0, i1);
B0:;
i0 = l5;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 8), j1);
i0 = p1;
i1 = 3u;
i0 = i0 > i1;
i1 = 112u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l5;
i1 = 8u;
i0 += i1;
i1 = l3;
i2 = 4u;
i0 = (*Z_envZ_memcpyZ_iiii)(i0, i1, i2);
i0 = p1;
i1 = 4294967292u;
i0 &= i1;
i1 = 4u;
i0 = i0 != i1;
i1 = 112u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l5;
i1 = 8u;
i0 += i1;
i1 = 4u;
i0 |= i1;
i1 = l3;
i2 = 4u;
i1 += i2;
i2 = 4u;
i0 = (*Z_envZ_memcpyZ_iiii)(i0, i1, i2);
i0 = p1;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B4;}
i0 = l3;
free(i0);
B4:;
i0 = p0;
i1 = l2;
i2 = 1u;
i1 = (u32)((s32)i1 >> (i2 & 31));
i0 += i1;
p1 = i0;
i0 = l5;
i0 = i32_load((&memory), (u64)(i0 + 12));
l3 = i0;
i0 = l5;
i0 = i32_load((&memory), (u64)(i0 + 8));
p0 = i0;
i0 = l2;
i1 = 1u;
i0 &= i1;
i0 = !(i0);
if (i0) {goto B5;}
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
i1 = l4;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
l4 = i0;
B5:;
i0 = p1;
i1 = p0;
i2 = l3;
i3 = l4;
CALL_INDIRECT(T0, void (*)(u32, u32, u32), 0, i3, i0, i1, i2);
i0 = 0u;
i1 = l5;
i2 = 16u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = 1u;
FUNC_EPILOGUE;
return i0;
}
static void f29(u32 p0, u32 p1) {
u32 l3 = 0, l4 = 0, l9 = 0;
u64 l2 = 0, l5 = 0, l6 = 0, l7 = 0, l8 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3, i4, i5;
u64 j0, j1, j2, j3;
i0 = 0u;
i1 = 0u;
i1 = i32_load((&memory), (u64)(i1 + 4));
i2 = 160u;
i1 -= i2;
l9 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = l9;
i1 = p1;
i32_store((&memory), (u64)(i0 + 140), i1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
(*Z_envZ_require_authZ_vj)(j0);
i0 = l9;
i1 = 128u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 112), j1);
i0 = l9;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l6 = j1;
i64_store((&memory), (u64)(i0 + 96), j1);
i0 = l9;
j1 = l6;
i64_store((&memory), (u64)(i0 + 104), j1);
i0 = l9;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 120), j1);
j0 = l6;
j1 = l6;
j2 = 9521031824726294528ull;
j3 = 0ull;
i0 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j0, j1, j2, j3);
p1 = i0;
i1 = 0u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B1;}
i0 = l9;
i1 = 96u;
i0 += i1;
i1 = p1;
i0 = f78(i0, i1);
p1 = i0;
goto B0;
B1:;
i0 = l9;
i1 = 32u;
i0 += i1;
i1 = l9;
i2 = 96u;
i1 += i2;
i2 = p0;
j2 = i64_load((&memory), (u64)(i2));
i3 = l9;
i4 = 16u;
i3 += i4;
f89(i0, i1, j2, i3);
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 36));
p1 = i0;
B0:;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l6 = j0;
i0 = l9;
i1 = l9;
i2 = 140u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 32), i1);
i0 = p1;
i1 = 0u;
i0 = i0 != i1;
i1 = 128u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l9;
i1 = 96u;
i0 += i1;
i1 = p1;
j2 = l6;
i3 = l9;
i4 = 32u;
i3 += i4;
f90(i0, i1, j2, i3);
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 140));
i1 = 1u;
i0 = i0 != i1;
if (i0) {goto B2;}
j0 = (*Z_envZ_current_timeZ_jv)();
l6 = j0;
i0 = l9;
i1 = 60u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
i1 = 64u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 44), i1);
i0 = l9;
i1 = 0u;
i32_store8((&memory), (u64)(i0 + 48), i1);
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 52), i1);
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 56), i1);
i0 = l9;
j1 = l6;
j2 = 1000000ull;
j1 = DIV_U(j1, j2);
i1 = (u32)(j1);
i2 = 60u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 32), i1);
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 68), i1);
i0 = l9;
i1 = 72u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
i1 = 76u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 80), i1);
i0 = l9;
i1 = 84u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
i1 = 88u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l9;
i1 = 68u;
i0 += i1;
l4 = i0;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l2 = j0;
j0 = 0ull;
l6 = j0;
j0 = 59ull;
l5 = j0;
i0 = 816u;
p1 = i0;
j0 = 0ull;
l7 = j0;
L3:
j0 = l6;
j1 = 5ull;
i0 = j0 > j1;
if (i0) {goto B8;}
i0 = p1;
i0 = i32_load8_s((&memory), (u64)(i0));
l3 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B7;}
i0 = l3;
i1 = 165u;
i0 += i1;
l3 = i0;
goto B6;
B8:;
j0 = 0ull;
l8 = j0;
j0 = l6;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B5;}
goto B4;
B7:;
i0 = l3;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l3;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l3 = i0;
B6:;
i0 = l3;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l8 = j0;
B5:;
j0 = l8;
j1 = 31ull;
j0 &= j1;
j1 = l5;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l8 = j0;
B4:;
i0 = p1;
i1 = 1u;
i0 += i1;
p1 = i0;
j0 = l6;
j1 = 1ull;
j0 += j1;
l6 = j0;
j0 = l8;
j1 = l7;
j0 |= j1;
l7 = j0;
j0 = l5;
j1 = 18446744073709551611ull;
j0 += j1;
l5 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L3;}
i0 = l9;
j1 = l7;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l9;
j1 = l2;
i64_store((&memory), (u64)(i0 + 16), j1);
j0 = 0ull;
l6 = j0;
j0 = 59ull;
l5 = j0;
i0 = 960u;
p1 = i0;
j0 = 0ull;
l7 = j0;
L9:
j0 = l6;
j1 = 4ull;
i0 = j0 > j1;
if (i0) {goto B14;}
i0 = p1;
i0 = i32_load8_s((&memory), (u64)(i0));
l3 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B13;}
i0 = l3;
i1 = 165u;
i0 += i1;
l3 = i0;
goto B12;
B14:;
j0 = 0ull;
l8 = j0;
j0 = l6;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B11;}
goto B10;
B13:;
i0 = l3;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l3;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l3 = i0;
B12:;
i0 = l3;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l8 = j0;
B11:;
j0 = l8;
j1 = 31ull;
j0 &= j1;
j1 = l5;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l8 = j0;
B10:;
i0 = p1;
i1 = 1u;
i0 += i1;
p1 = i0;
j0 = l6;
j1 = 1ull;
j0 += j1;
l6 = j0;
j0 = l8;
j1 = l7;
j0 |= j1;
l7 = j0;
j0 = l5;
j1 = 18446744073709551611ull;
j0 += j1;
l5 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L9;}
i0 = l9;
j1 = l7;
i64_store((&memory), (u64)(i0 + 144), j1);
i0 = l9;
j1 = 4295067296ull;
i64_store((&memory), (u64)(i0 + 8), j1);
i0 = l4;
i1 = l9;
i2 = 16u;
i1 += i2;
i2 = p0;
i3 = l9;
i4 = 144u;
i3 += i4;
i4 = l9;
i5 = 8u;
i4 += i5;
f91(i0, i1, i2, i3, i4);
i0 = l9;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l9;
j1 = 99ull;
i64_store((&memory), (u64)(i0 + 16), j1);
i0 = l9;
i1 = 16u;
i0 += i1;
i0 = (*Z_envZ_cancel_deferredZ_ii)(i0);
i0 = l9;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l9;
j1 = 99ull;
i64_store((&memory), (u64)(i0 + 16), j1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l6 = j0;
i0 = l9;
i1 = 144u;
i0 += i1;
i1 = l9;
i2 = 32u;
i1 += i2;
f83(i0, i1);
i0 = l9;
i1 = 16u;
i0 += i1;
j1 = l6;
i2 = l9;
i2 = i32_load((&memory), (u64)(i2 + 144));
p1 = i2;
i3 = l9;
i3 = i32_load((&memory), (u64)(i3 + 148));
i4 = p1;
i3 -= i4;
i4 = 0u;
(*Z_envZ_send_deferredZ_vijiii)(i0, j1, i2, i3, i4);
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 144));
p1 = i0;
i0 = !(i0);
if (i0) {goto B15;}
i0 = l9;
i1 = p1;
i32_store((&memory), (u64)(i0 + 148), i1);
i0 = p1;
f98(i0);
B15:;
i0 = l9;
i1 = 32u;
i0 += i1;
i0 = f84(i0);
B2:;
i0 = l9;
i0 = i32_load((&memory), (u64)(i0 + 120));
p0 = i0;
i0 = !(i0);
if (i0) {goto B16;}
i0 = l9;
i1 = 124u;
i0 += i1;
l4 = i0;
i0 = i32_load((&memory), (u64)(i0));
p1 = i0;
i1 = p0;
i0 = i0 == i1;
if (i0) {goto B18;}
L19:
i0 = p1;
i1 = 4294967272u;
i0 += i1;
p1 = i0;
i0 = i32_load((&memory), (u64)(i0));
l3 = i0;
i0 = p1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l3;
i0 = !(i0);
if (i0) {goto B20;}
i0 = l3;
f98(i0);
B20:;
i0 = p0;
i1 = p1;
i0 = i0 != i1;
if (i0) {goto L19;}
i0 = l9;
i1 = 120u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p1 = i0;
goto B17;
B18:;
i0 = p0;
p1 = i0;
B17:;
i0 = l4;
i1 = p0;
i32_store((&memory), (u64)(i0), i1);
i0 = p1;
f98(i0);
B16:;
i0 = 0u;
i1 = l9;
i2 = 160u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
FUNC_EPILOGUE;
}
static u32 f30(u32 p0, u32 p1) {
u32 l2 = 0, l3 = 0, l4 = 0, l5 = 0, l6 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3;
i0 = 0u;
i0 = i32_load((&memory), (u64)(i0 + 4));
i1 = 16u;
i0 -= i1;
l6 = i0;
l5 = i0;
i0 = 0u;
i1 = l6;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p1;
i0 = i32_load((&memory), (u64)(i0 + 4));
l2 = i0;
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
l4 = i0;
i0 = 0u;
l3 = i0;
i0 = (*Z_envZ_action_data_sizeZ_iv)();
p1 = i0;
i0 = !(i0);
if (i0) {goto B0;}
i0 = p1;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B2;}
i0 = p1;
i0 = malloc(i0);
l3 = i0;
goto B1;
B2:;
i0 = 0u;
i1 = l6;
i2 = p1;
i3 = 15u;
i2 += i3;
i3 = 4294967280u;
i2 &= i3;
i1 -= i2;
l3 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
B1:;
i0 = l3;
i1 = p1;
i0 = (*Z_envZ_read_action_dataZ_iii)(i0, i1);
B0:;
i0 = l5;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 8), i1);
i0 = p1;
i1 = 3u;
i0 = i0 > i1;
i1 = 112u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l5;
i1 = 8u;
i0 += i1;
i1 = l3;
i2 = 4u;
i0 = (*Z_envZ_memcpyZ_iiii)(i0, i1, i2);
i0 = l5;
i0 = i32_load((&memory), (u64)(i0 + 8));
l6 = i0;
i0 = p1;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B3;}
i0 = l3;
free(i0);
B3:;
i0 = p0;
i1 = l2;
i2 = 1u;
i1 = (u32)((s32)i1 >> (i2 & 31));
i0 += i1;
p1 = i0;
i0 = l2;
i1 = 1u;
i0 &= i1;
i0 = !(i0);
if (i0) {goto B4;}
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
i1 = l4;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
l4 = i0;
B4:;
i0 = p1;
i1 = l6;
i2 = l4;
CALL_INDIRECT(T0, void (*)(u32, u32), 1, i2, i0, i1);
i0 = 0u;
i1 = l5;
i2 = 16u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = 1u;
FUNC_EPILOGUE;
return i0;
}
static void f31(u32 p0, u32 p1, u32 p2) {
u32 l3 = 0, l4 = 0, l5 = 0, l6 = 0, l8 = 0, l9 = 0, l10 = 0, l11 = 0,
l12 = 0, l13 = 0, l14 = 0, l15 = 0, l16 = 0, l17 = 0, l18 = 0, l19 = 0,
l20 = 0, l21 = 0, l26 = 0;
u64 l7 = 0, l22 = 0, l23 = 0, l24 = 0, l25 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3, i4, i5;
u64 j0, j1, j2, j3, j4;
i0 = 0u;
i1 = 0u;
i1 = i32_load((&memory), (u64)(i1 + 4));
i2 = 304u;
i1 -= i2;
l26 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
(*Z_envZ_require_authZ_vj)(j0);
i0 = l26;
i1 = 280u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 264), j1);
i0 = l26;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l23 = j1;
i64_store((&memory), (u64)(i0 + 248), j1);
i0 = l26;
j1 = l23;
i64_store((&memory), (u64)(i0 + 256), j1);
i0 = l26;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 272), j1);
i0 = l26;
i1 = 248u;
i0 += i1;
j1 = l23;
j2 = l23;
j3 = 4982871467403247616ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f48(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 32));
l23 = j0;
j0 = (*Z_envZ_current_timeZ_jv)();
l25 = j0;
i0 = 944u;
(*Z_envZ_printsZ_vi)(i0);
j0 = l25;
j1 = 1000ull;
j0 = DIV_U(j0, j1);
l25 = j0;
(*Z_envZ_printuiZ_vj)(j0);
j0 = l23;
j1 = 18446744073709551116ull;
j0 += j1;
l22 = j0;
j0 = l23;
j1 = l25;
i0 = j0 == j1;
if (i0) {goto B4;}
j0 = l22;
j1 = l25;
i0 = j0 == j1;
if (i0) {goto B4;}
i0 = l26;
i1 = 208u;
i0 += i1;
i1 = 32u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 224), j1);
i0 = l26;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l25 = j1;
i64_store((&memory), (u64)(i0 + 208), j1);
i0 = l26;
j1 = l25;
i64_store((&memory), (u64)(i0 + 216), j1);
j0 = 0ull;
l23 = j0;
i0 = l26;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 232), j1);
i0 = l26;
i1 = 208u;
i0 += i1;
j1 = l25;
j2 = l25;
j3 = 9521031824726294528ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f78(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 8));
i0 = !(j0);
if (i0) {goto B0;}
j0 = (*Z_envZ_current_timeZ_jv)();
l25 = j0;
i0 = l26;
i1 = 172u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
i1 = 144u;
i0 += i1;
i1 = 32u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 156), i1);
i0 = l26;
i1 = 0u;
i32_store8((&memory), (u64)(i0 + 160), i1);
i0 = l26;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 164), i1);
i0 = l26;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 168), i1);
i0 = l26;
j1 = l25;
j2 = 1000000ull;
j1 = DIV_U(j1, j2);
i1 = (u32)(j1);
i2 = 60u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 144), i1);
i0 = l26;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 180), i1);
i0 = l26;
i1 = 184u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
i1 = 188u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 192), i1);
i0 = l26;
i1 = 196u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
i1 = 200u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p2;
i1 = 1u;
i0 += i1;
l21 = i0;
i0 = l26;
i1 = 180u;
i0 += i1;
l4 = i0;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l7 = j0;
j0 = 59ull;
l22 = j0;
i0 = 816u;
p2 = i0;
j0 = 0ull;
l24 = j0;
L5:
j0 = l23;
j1 = 5ull;
i0 = j0 > j1;
if (i0) {goto B10;}
i0 = p2;
i0 = i32_load8_s((&memory), (u64)(i0));
l8 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B9;}
i0 = l8;
i1 = 165u;
i0 += i1;
l8 = i0;
goto B8;
B10:;
j0 = 0ull;
l25 = j0;
j0 = l23;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B7;}
goto B6;
B9:;
i0 = l8;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l8;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l8 = i0;
B8:;
i0 = l8;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l25 = j0;
B7:;
j0 = l25;
j1 = 31ull;
j0 &= j1;
j1 = l22;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l25 = j0;
B6:;
i0 = p2;
i1 = 1u;
i0 += i1;
p2 = i0;
j0 = l23;
j1 = 1ull;
j0 += j1;
l23 = j0;
j0 = l25;
j1 = l24;
j0 |= j1;
l24 = j0;
j0 = l22;
j1 = 18446744073709551611ull;
j0 += j1;
l22 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L5;}
i0 = l26;
j1 = l24;
i64_store((&memory), (u64)(i0 + 40), j1);
i0 = l26;
j1 = l7;
i64_store((&memory), (u64)(i0 + 32), j1);
j0 = 0ull;
l23 = j0;
j0 = 59ull;
l22 = j0;
i0 = 960u;
p2 = i0;
j0 = 0ull;
l24 = j0;
L11:
j0 = l23;
j1 = 4ull;
i0 = j0 > j1;
if (i0) {goto B16;}
i0 = p2;
i0 = i32_load8_s((&memory), (u64)(i0));
l8 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B15;}
i0 = l8;
i1 = 165u;
i0 += i1;
l8 = i0;
goto B14;
B16:;
j0 = 0ull;
l25 = j0;
j0 = l23;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B13;}
goto B12;
B15:;
i0 = l8;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l8;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l8 = i0;
B14:;
i0 = l8;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l25 = j0;
B13:;
j0 = l25;
j1 = 31ull;
j0 &= j1;
j1 = l22;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l25 = j0;
B12:;
i0 = p2;
i1 = 1u;
i0 += i1;
p2 = i0;
j0 = l23;
j1 = 1ull;
j0 += j1;
l23 = j0;
j0 = l25;
j1 = l24;
j0 |= j1;
l24 = j0;
j0 = l22;
j1 = 18446744073709551611ull;
j0 += j1;
l22 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L11;}
i0 = l26;
j1 = l24;
i64_store((&memory), (u64)(i0 + 104), j1);
i0 = l26;
i1 = p1;
i32_store((&memory), (u64)(i0 + 16), i1);
i0 = l26;
i1 = l21;
i32_store((&memory), (u64)(i0 + 20), i1);
i0 = l4;
i1 = l26;
i2 = 32u;
i1 += i2;
i2 = p0;
i3 = l26;
i4 = 104u;
i3 += i4;
i4 = l26;
i5 = 16u;
i4 += i5;
f82(i0, i1, i2, i3, i4);
i0 = l26;
i1 = l21;
i2 = 100u;
i1 *= i2;
j1 = (u64)(s64)(s32)(i1);
l23 = j1;
j2 = 63ull;
j1 = (u64)((s64)j1 >> (j2 & 63));
l25 = j1;
i64_store((&memory), (u64)(i0 + 40), j1);
i0 = l26;
j1 = l23;
i64_store((&memory), (u64)(i0 + 32), j1);
i0 = l26;
i1 = 32u;
i0 += i1;
i0 = (*Z_envZ_cancel_deferredZ_ii)(i0);
i0 = l26;
j1 = l25;
i64_store((&memory), (u64)(i0 + 40), j1);
i0 = l26;
j1 = l23;
i64_store((&memory), (u64)(i0 + 32), j1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l23 = j0;
i0 = l26;
i1 = 104u;
i0 += i1;
i1 = l26;
i2 = 144u;
i1 += i2;
f83(i0, i1);
i0 = l26;
i1 = 32u;
i0 += i1;
j1 = l23;
i2 = l26;
i2 = i32_load((&memory), (u64)(i2 + 104));
p2 = i2;
i3 = l26;
i3 = i32_load((&memory), (u64)(i3 + 108));
i4 = p2;
i3 -= i4;
i4 = 0u;
(*Z_envZ_send_deferredZ_vijiii)(i0, j1, i2, i3, i4);
i0 = l26;
i0 = i32_load((&memory), (u64)(i0 + 104));
p2 = i0;
i0 = !(i0);
if (i0) {goto B17;}
i0 = l26;
i1 = p2;
i32_store((&memory), (u64)(i0 + 108), i1);
i0 = p2;
f98(i0);
B17:;
i0 = l26;
i1 = 136u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 120), j1);
i0 = l26;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l23 = j1;
i64_store((&memory), (u64)(i0 + 104), j1);
i0 = l26;
j1 = l23;
i64_store((&memory), (u64)(i0 + 112), j1);
i0 = l26;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 128), j1);
i0 = l26;
i1 = 104u;
i0 += i1;
j1 = l23;
j2 = l23;
j3 = 8419281591276142592ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f54(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 8));
i0 = !(j0);
if (i0) {goto B18;}
i0 = l26;
i1 = 104u;
i0 += i1;
i1 = l26;
j1 = i64_load((&memory), (u64)(i1 + 104));
i2 = l26;
i3 = 104u;
i2 += i3;
i3 = 8u;
i2 += i3;
j2 = i64_load((&memory), (u64)(i2));
j3 = 8419281591276142592ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f54(i0, i1);
i0 = i32_load((&memory), (u64)(i0 + 16));
l3 = i0;
i1 = 1u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B18;}
i0 = l21;
i1 = 10000u;
i0 *= i1;
l6 = i0;
i0 = l21;
i1 = 1000u;
i0 *= i1;
l5 = i0;
i0 = l26;
i1 = 68u;
i0 += i1;
l4 = i0;
i0 = l26;
i1 = 44u;
i0 += i1;
l9 = i0;
i0 = l26;
i1 = 48u;
i0 += i1;
l10 = i0;
i0 = l26;
i1 = 52u;
i0 += i1;
l11 = i0;
i0 = l26;
i1 = 56u;
i0 += i1;
l12 = i0;
i0 = l26;
i1 = 60u;
i0 += i1;
l13 = i0;
i0 = l26;
i1 = 64u;
i0 += i1;
l14 = i0;
i0 = l26;
i1 = 72u;
i0 += i1;
l15 = i0;
i0 = l26;
i1 = 76u;
i0 += i1;
l16 = i0;
i0 = l26;
i1 = 80u;
i0 += i1;
l17 = i0;
i0 = l26;
i1 = 84u;
i0 += i1;
l18 = i0;
i0 = l26;
i1 = 88u;
i0 += i1;
l19 = i0;
i0 = l26;
i1 = 16u;
i0 += i1;
i1 = 8u;
i0 += i1;
l20 = i0;
i0 = 0u;
l21 = i0;
L19:
j0 = (*Z_envZ_current_timeZ_jv)();
l23 = j0;
i0 = l9;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l10;
i1 = 0u;
i32_store8((&memory), (u64)(i0), i1);
i0 = l11;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l12;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l13;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l14;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l26;
j1 = l23;
j2 = 1000000ull;
j1 = DIV_U(j1, j2);
i1 = (u32)(j1);
i2 = 60u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 32), i1);
i0 = l4;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l15;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l16;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l17;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l18;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l19;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l7 = j0;
j0 = 0ull;
l23 = j0;
j0 = 59ull;
l22 = j0;
i0 = 816u;
p2 = i0;
j0 = 0ull;
l24 = j0;
L20:
j0 = l23;
j1 = 5ull;
i0 = j0 > j1;
if (i0) {goto B25;}
i0 = p2;
i0 = i32_load8_s((&memory), (u64)(i0));
l8 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B24;}
i0 = l8;
i1 = 165u;
i0 += i1;
l8 = i0;
goto B23;
B25:;
j0 = 0ull;
l25 = j0;
j0 = l23;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B22;}
goto B21;
B24:;
i0 = l8;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l8;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l8 = i0;
B23:;
i0 = l8;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l25 = j0;
B22:;
j0 = l25;
j1 = 31ull;
j0 &= j1;
j1 = l22;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l25 = j0;
B21:;
i0 = p2;
i1 = 1u;
i0 += i1;
p2 = i0;
j0 = l23;
j1 = 1ull;
j0 += j1;
l23 = j0;
j0 = l25;
j1 = l24;
j0 |= j1;
l24 = j0;
j0 = l22;
j1 = 18446744073709551611ull;
j0 += j1;
l22 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L20;}
i0 = l20;
j1 = l24;
i64_store((&memory), (u64)(i0), j1);
i0 = l26;
j1 = l7;
i64_store((&memory), (u64)(i0 + 16), j1);
j0 = 0ull;
l23 = j0;
j0 = 59ull;
l22 = j0;
i0 = 976u;
p2 = i0;
j0 = 0ull;
l24 = j0;
L26:
j0 = l23;
j1 = 2ull;
i0 = j0 > j1;
if (i0) {goto B31;}
i0 = p2;
i0 = i32_load8_s((&memory), (u64)(i0));
l8 = i0;
i1 = 4294967199u;
i0 += i1;
i1 = 255u;
i0 &= i1;
i1 = 25u;
i0 = i0 > i1;
if (i0) {goto B30;}
i0 = l8;
i1 = 165u;
i0 += i1;
l8 = i0;
goto B29;
B31:;
j0 = 0ull;
l25 = j0;
j0 = l23;
j1 = 11ull;
i0 = j0 <= j1;
if (i0) {goto B28;}
goto B27;
B30:;
i0 = l8;
i1 = 208u;
i0 += i1;
i1 = 0u;
i2 = l8;
i3 = 4294967247u;
i2 += i3;
i3 = 255u;
i2 &= i3;
i3 = 5u;
i2 = i2 < i3;
i0 = i2 ? i0 : i1;
l8 = i0;
B29:;
i0 = l8;
j0 = (u64)(i0);
j1 = 56ull;
j0 <<= (j1 & 63);
j1 = 56ull;
j0 = (u64)((s64)j0 >> (j1 & 63));
l25 = j0;
B28:;
j0 = l25;
j1 = 31ull;
j0 &= j1;
j1 = l22;
j2 = 4294967295ull;
j1 &= j2;
j0 <<= (j1 & 63);
l25 = j0;
B27:;
i0 = p2;
i1 = 1u;
i0 += i1;
p2 = i0;
j0 = l23;
j1 = 1ull;
j0 += j1;
l23 = j0;
j0 = l25;
j1 = l24;
j0 |= j1;
l24 = j0;
j0 = l22;
j1 = 18446744073709551611ull;
j0 += j1;
l22 = j0;
j1 = 18446744073709551610ull;
i0 = j0 != j1;
if (i0) {goto L26;}
i0 = l26;
j1 = l24;
i64_store((&memory), (u64)(i0 + 288), j1);
i0 = l26;
i1 = l21;
i2 = l5;
i1 += i2;
i32_store((&memory), (u64)(i0 + 12), i1);
i0 = l26;
i1 = p1;
i32_store((&memory), (u64)(i0 + 8), i1);
i0 = l4;
i1 = l26;
i2 = 16u;
i1 += i2;
i2 = p0;
i3 = l26;
i4 = 288u;
i3 += i4;
i4 = l26;
i5 = 8u;
i4 += i5;
f82(i0, i1, i2, i3, i4);
i0 = l26;
i1 = l21;
i2 = l6;
i1 += i2;
j1 = (u64)(s64)(s32)(i1);
l23 = j1;
j2 = 63ull;
j1 = (u64)((s64)j1 >> (j2 & 63));
l25 = j1;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l26;
j1 = l23;
i64_store((&memory), (u64)(i0 + 16), j1);
i0 = l26;
i1 = 16u;
i0 += i1;
i0 = (*Z_envZ_cancel_deferredZ_ii)(i0);
i0 = l26;
j1 = l25;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l26;
j1 = l23;
i64_store((&memory), (u64)(i0 + 16), j1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l23 = j0;
i0 = l26;
i1 = 288u;
i0 += i1;
i1 = l26;
i2 = 32u;
i1 += i2;
f83(i0, i1);
i0 = l26;
i1 = 16u;
i0 += i1;
j1 = l23;
i2 = l26;
i2 = i32_load((&memory), (u64)(i2 + 288));
p2 = i2;
i3 = l26;
i3 = i32_load((&memory), (u64)(i3 + 292));
i4 = p2;
i3 -= i4;
i4 = 0u;
(*Z_envZ_send_deferredZ_vijiii)(i0, j1, i2, i3, i4);
i0 = l26;
i0 = i32_load((&memory), (u64)(i0 + 288));
p2 = i0;
i0 = !(i0);
if (i0) {goto B32;}
i0 = l26;
i1 = p2;
i32_store((&memory), (u64)(i0 + 292), i1);
i0 = p2;
f98(i0);
B32:;
i0 = l26;
i1 = 32u;
i0 += i1;
i0 = f84(i0);
i0 = l21;
i1 = 1u;
i0 += i1;
l21 = i0;
i1 = l3;
i0 = i0 != i1;
if (i0) {goto L19;}
B18:;
i0 = l26;
i0 = i32_load((&memory), (u64)(i0 + 128));
p0 = i0;
i0 = !(i0);
if (i0) {goto B1;}
i0 = l26;
i1 = 132u;
i0 += i1;
l21 = i0;
i0 = i32_load((&memory), (u64)(i0));
p2 = i0;
i1 = p0;
i0 = i0 == i1;
if (i0) {goto B3;}
L33:
i0 = p2;
i1 = 4294967272u;
i0 += i1;
p2 = i0;
i0 = i32_load((&memory), (u64)(i0));
l8 = i0;
i0 = p2;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l8;
i0 = !(i0);
if (i0) {goto B34;}
i0 = l8;
f98(i0);
B34:;
i0 = p0;
i1 = p2;
i0 = i0 != i1;
if (i0) {goto L33;}
i0 = l26;
i1 = 128u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p2 = i0;
goto B2;
B4:;
L35:
goto L35;
B3:;
i0 = p0;
p2 = i0;
B2:;
i0 = l21;
i1 = p0;
i32_store((&memory), (u64)(i0), i1);
i0 = p2;
f98(i0);
B1:;
i0 = l26;
i1 = 144u;
i0 += i1;
i0 = f84(i0);
B0:;
i0 = l26;
i0 = i32_load((&memory), (u64)(i0 + 232));
p0 = i0;
i0 = !(i0);
if (i0) {goto B36;}
i0 = l26;
i1 = 236u;
i0 += i1;
l21 = i0;
i0 = i32_load((&memory), (u64)(i0));
p2 = i0;
i1 = p0;
i0 = i0 == i1;
if (i0) {goto B38;}
L39:
i0 = p2;
i1 = 4294967272u;
i0 += i1;
p2 = i0;
i0 = i32_load((&memory), (u64)(i0));
l8 = i0;
i0 = p2;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l8;
i0 = !(i0);
if (i0) {goto B40;}
i0 = l8;
f98(i0);
B40:;
i0 = p0;
i1 = p2;
i0 = i0 != i1;
if (i0) {goto L39;}
i0 = l26;
i1 = 232u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p2 = i0;
goto B37;
B38:;
i0 = p0;
p2 = i0;
B37:;
i0 = l21;
i1 = p0;
i32_store((&memory), (u64)(i0), i1);
i0 = p2;
f98(i0);
B36:;
i0 = l26;
i0 = i32_load((&memory), (u64)(i0 + 272));
p0 = i0;
i0 = !(i0);
if (i0) {goto B41;}
i0 = l26;
i1 = 276u;
i0 += i1;
l21 = i0;
i0 = i32_load((&memory), (u64)(i0));
p2 = i0;
i1 = p0;
i0 = i0 == i1;
if (i0) {goto B43;}
L44:
i0 = p2;
i1 = 4294967272u;
i0 += i1;
p2 = i0;
i0 = i32_load((&memory), (u64)(i0));
l8 = i0;
i0 = p2;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l8;
i0 = !(i0);
if (i0) {goto B45;}
i0 = l8;
f98(i0);
B45:;
i0 = p0;
i1 = p2;
i0 = i0 != i1;
if (i0) {goto L44;}
i0 = l26;
i1 = 272u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p2 = i0;
goto B42;
B43:;
i0 = p0;
p2 = i0;
B42:;
i0 = l21;
i1 = p0;
i32_store((&memory), (u64)(i0), i1);
i0 = p2;
f98(i0);
B41:;
i0 = 0u;
i1 = l26;
i2 = 304u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
FUNC_EPILOGUE;
}
static void f32_0(u32 p0, u32 p1, u32 p2, u32 p3, u32 p4) {
u32 l5 = 0, l7 = 0, l8 = 0;
u64 l6 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3, i4;
u64 j0, j1, j2, j3, j4;
i0 = 0u;
i1 = 0u;
i1 = i32_load((&memory), (u64)(i1 + 4));
i2 = 112u;
i1 -= i2;
l8 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = l8;
i1 = p1;
i32_store((&memory), (u64)(i0 + 108), i1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
(*Z_envZ_require_authZ_vj)(j0);
i0 = l8;
i1 = 64u;
i0 += i1;
i1 = 32u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l8;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 80), j1);
i0 = l8;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 88), j1);
i0 = l8;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l6 = j1;
i64_store((&memory), (u64)(i0 + 64), j1);
i0 = l8;
j1 = l6;
i64_store((&memory), (u64)(i0 + 72), j1);
i0 = l8;
i1 = 64u;
i0 += i1;
j1 = l6;
j2 = l6;
j3 = 9521031824726294528ull;
j4 = 0ull;
i1 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j1, j2, j3, j4);
i0 = f78(i0, i1);
j0 = i64_load((&memory), (u64)(i0 + 8));
j1 = 1ull;
i0 = j0 == j1;
i1 = 912u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l8;
i1 = 24u;
i0 += i1;
i1 = 32u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l8;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 40), j1);
i0 = l8;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 48), j1);
i0 = l8;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l6 = j1;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l8;
j1 = l6;
i64_store((&memory), (u64)(i0 + 32), j1);
j0 = l6;
j1 = l6;
j2 = 8419281591276142592ull;
j3 = 0ull;
i0 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j0, j1, j2, j3);
p1 = i0;
i1 = 0u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B1;}
i0 = l8;
i1 = 24u;
i0 += i1;
i1 = p1;
i0 = f54(i0, i1);
goto B0;
B1:;
i0 = l8;
i1 = 8u;
i0 += i1;
i1 = l8;
i2 = 24u;
i1 += i2;
i2 = p0;
j2 = i64_load((&memory), (u64)(i2));
i3 = l8;
i4 = 16u;
i3 += i4;
f79(i0, i1, j2, i3);
B0:;
i0 = 0u;
p1 = i0;
i0 = l8;
j0 = i64_load((&memory), (u64)(i0 + 24));
i1 = l8;
i2 = 32u;
i1 += i2;
j1 = i64_load((&memory), (u64)(i1));
j2 = 8419281591276142592ull;
j3 = 0ull;
i0 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j0, j1, j2, j3);
l5 = i0;
i1 = 0u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B2;}
i0 = l8;
i1 = 24u;
i0 += i1;
i1 = l5;
i0 = f54(i0, i1);
p1 = i0;
B2:;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l6 = j0;
i0 = l8;
i1 = l8;
i2 = 108u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 8), i1);
i0 = p1;
i1 = 0u;
i0 = i0 != i1;
i1 = 128u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l8;
i1 = 24u;
i0 += i1;
i1 = p1;
j2 = l6;
i3 = l8;
i4 = 8u;
i3 += i4;
f80(i0, i1, j2, i3);
i0 = l8;
i0 = i32_load((&memory), (u64)(i0 + 48));
l5 = i0;
i0 = !(i0);
if (i0) {goto B3;}
i0 = l8;
i1 = 52u;
i0 += i1;
l7 = i0;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
i1 = l5;
i0 = i0 == i1;
if (i0) {goto B5;}
L6:
i0 = p0;
i1 = 4294967272u;
i0 += i1;
p0 = i0;
i0 = i32_load((&memory), (u64)(i0));
p1 = i0;
i0 = p0;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p1;
i0 = !(i0);
if (i0) {goto B7;}
i0 = p1;
f98(i0);
B7:;
i0 = l5;
i1 = p0;
i0 = i0 != i1;
if (i0) {goto L6;}
i0 = l8;
i1 = 48u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
goto B4;
B5:;
i0 = l5;
p0 = i0;
B4:;
i0 = l7;
i1 = l5;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
f98(i0);
B3:;
i0 = l8;
i0 = i32_load((&memory), (u64)(i0 + 88));
l5 = i0;
i0 = !(i0);
if (i0) {goto B8;}
i0 = l8;
i1 = 92u;
i0 += i1;
l7 = i0;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
i1 = l5;
i0 = i0 == i1;
if (i0) {goto B10;}
L11:
i0 = p0;
i1 = 4294967272u;
i0 += i1;
p0 = i0;
i0 = i32_load((&memory), (u64)(i0));
p1 = i0;
i0 = p0;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = p1;
i0 = !(i0);
if (i0) {goto B12;}
i0 = p1;
f98(i0);
B12:;
i0 = l5;
i1 = p0;
i0 = i0 != i1;
if (i0) {goto L11;}
i0 = l8;
i1 = 88u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
goto B9;
B10:;
i0 = l5;
p0 = i0;
B9:;
i0 = l7;
i1 = l5;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
f98(i0);
B8:;
i0 = 0u;
i1 = l8;
i2 = 112u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
FUNC_EPILOGUE;
}
static u32 f33(u32 p0, u32 p1) {
u32 l2 = 0, l3 = 0, l4 = 0, l5 = 0, l6 = 0, l7 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3, i4, i5;
u64 j1;
i0 = 0u;
i0 = i32_load((&memory), (u64)(i0 + 4));
i1 = 48u;
i0 -= i1;
l7 = i0;
l6 = i0;
i0 = 0u;
i1 = l7;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p1;
i0 = i32_load((&memory), (u64)(i0 + 4));
l2 = i0;
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
l5 = i0;
i0 = (*Z_envZ_action_data_sizeZ_iv)();
l3 = i0;
i0 = !(i0);
if (i0) {goto B3;}
i0 = l3;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B2;}
i0 = l3;
i0 = malloc(i0);
p1 = i0;
goto B1;
B3:;
i0 = 0u;
p1 = i0;
goto B0;
B2:;
i0 = 0u;
i1 = l7;
i2 = l3;
i3 = 15u;
i2 += i3;
i3 = 4294967280u;
i2 &= i3;
i1 -= i2;
p1 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
B1:;
i0 = p1;
i1 = l3;
i0 = (*Z_envZ_read_action_dataZ_iii)(i0, i1);
B0:;
i0 = l6;
j1 = 0ull;
i64_store((&memory), (u64)(i0), j1);
i0 = l6;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 8), j1);
i0 = l6;
i1 = p1;
i32_store((&memory), (u64)(i0 + 20), i1);
i0 = l6;
i1 = p1;
i32_store((&memory), (u64)(i0 + 16), i1);
i0 = l6;
i1 = p1;
i2 = l3;
i1 += i2;
i32_store((&memory), (u64)(i0 + 24), i1);
i0 = l6;
i1 = l6;
i2 = 16u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 32), i1);
i0 = l6;
i1 = l6;
i32_store((&memory), (u64)(i0 + 40), i1);
i0 = l6;
i1 = 40u;
i0 += i1;
i1 = l6;
i2 = 32u;
i1 += i2;
f77(i0, i1);
i0 = l3;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B4;}
i0 = p1;
free(i0);
B4:;
i0 = p0;
i1 = l2;
i2 = 1u;
i1 = (u32)((s32)i1 >> (i2 & 31));
i0 += i1;
p1 = i0;
i0 = l6;
i1 = 12u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
l3 = i0;
i0 = l6;
i1 = 8u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
l7 = i0;
i0 = l6;
i0 = i32_load((&memory), (u64)(i0 + 4));
p0 = i0;
i0 = l6;
i0 = i32_load((&memory), (u64)(i0));
l4 = i0;
i0 = l2;
i1 = 1u;
i0 &= i1;
i0 = !(i0);
if (i0) {goto B5;}
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
i1 = l5;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
l5 = i0;
B5:;
i0 = p1;
i1 = l4;
i2 = p0;
i3 = l7;
i4 = l3;
i5 = l5;
CALL_INDIRECT(T0, void (*)(u32, u32, u32, u32, u32), 2, i5, i0, i1, i2, i3, i4);
i0 = 0u;
i1 = l6;
i2 = 48u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = 1u;
FUNC_EPILOGUE;
return i0;
}
static void f34(u32 p0) {
u32 l1 = 0, l2 = 0, l4 = 0, l5 = 0;
u64 l3 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3, i4;
u64 j0, j1, j2, j3;
i0 = 0u;
i1 = 0u;
i1 = i32_load((&memory), (u64)(i1 + 4));
i2 = 64u;
i1 -= i2;
l5 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
(*Z_envZ_require_authZ_vj)(j0);
i0 = l5;
i1 = 56u;
i0 += i1;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l5;
j1 = 18446744073709551615ull;
i64_store((&memory), (u64)(i0 + 40), j1);
i0 = l5;
i1 = p0;
j1 = i64_load((&memory), (u64)(i1));
l3 = j1;
i64_store((&memory), (u64)(i0 + 24), j1);
i0 = l5;
j1 = l3;
i64_store((&memory), (u64)(i0 + 32), j1);
i0 = l5;
j1 = 0ull;
i64_store((&memory), (u64)(i0 + 48), j1);
j0 = l3;
j1 = l3;
j2 = 8419281591276142592ull;
j3 = 0ull;
i0 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j0, j1, j2, j3);
l2 = i0;
i1 = 0u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B1;}
i0 = l5;
i1 = 24u;
i0 += i1;
i1 = l2;
i0 = f54(i0, i1);
goto B0;
B1:;
i0 = l5;
i1 = 8u;
i0 += i1;
i1 = l5;
i2 = 24u;
i1 += i2;
i2 = p0;
j2 = i64_load((&memory), (u64)(i2));
i3 = l5;
i4 = 16u;
i3 += i4;
f75(i0, i1, j2, i3);
B0:;
i0 = 0u;
l2 = i0;
i0 = l5;
j0 = i64_load((&memory), (u64)(i0 + 24));
i1 = l5;
i2 = 32u;
i1 += i2;
j1 = i64_load((&memory), (u64)(i1));
j2 = 8419281591276142592ull;
j3 = 0ull;
i0 = (*Z_envZ_db_lowerbound_i64Z_ijjjj)(j0, j1, j2, j3);
l1 = i0;
i1 = 0u;
i0 = (u32)((s32)i0 < (s32)i1);
if (i0) {goto B2;}
i0 = l5;
i1 = 24u;
i0 += i1;
i1 = l1;
i0 = f54(i0, i1);
l2 = i0;
B2:;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
l3 = j0;
i0 = l2;
i1 = 0u;
i0 = i0 != i1;
i1 = 128u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l5;
i1 = 24u;
i0 += i1;
i1 = l2;
j2 = l3;
i3 = l5;
i4 = 8u;
i3 += i4;
f76(i0, i1, j2, i3);
i0 = l5;
i0 = i32_load((&memory), (u64)(i0 + 48));
l1 = i0;
i0 = !(i0);
if (i0) {goto B3;}
i0 = l5;
i1 = 52u;
i0 += i1;
l4 = i0;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
i1 = l1;
i0 = i0 == i1;
if (i0) {goto B5;}
L6:
i0 = p0;
i1 = 4294967272u;
i0 += i1;
p0 = i0;
i0 = i32_load((&memory), (u64)(i0));
l2 = i0;
i0 = p0;
i1 = 0u;
i32_store((&memory), (u64)(i0), i1);
i0 = l2;
i0 = !(i0);
if (i0) {goto B7;}
i0 = l2;
f98(i0);
B7:;
i0 = l1;
i1 = p0;
i0 = i0 != i1;
if (i0) {goto L6;}
i0 = l5;
i1 = 48u;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p0 = i0;
goto B4;
B5:;
i0 = l1;
p0 = i0;
B4:;
i0 = l4;
i1 = l1;
i32_store((&memory), (u64)(i0), i1);
i0 = p0;
f98(i0);
B3:;
i0 = 0u;
i1 = l5;
i2 = 64u;
i1 += i2;
i32_store((&memory), (u64)(i0 + 4), i1);
FUNC_EPILOGUE;
}
static u32 f35(u32 p0, u32 p1) {
u32 l2 = 0, l3 = 0, l4 = 0, l5 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3;
i0 = 0u;
i0 = i32_load((&memory), (u64)(i0 + 4));
l5 = i0;
l4 = i0;
i0 = p1;
i0 = i32_load((&memory), (u64)(i0 + 4));
l2 = i0;
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
p1 = i0;
i0 = (*Z_envZ_action_data_sizeZ_iv)();
l3 = i0;
i0 = !(i0);
if (i0) {goto B0;}
i0 = l3;
i1 = 512u;
i0 = i0 <= i1;
if (i0) {goto B1;}
i0 = l3;
i0 = malloc(i0);
l5 = i0;
i1 = l3;
i0 = (*Z_envZ_read_action_dataZ_iii)(i0, i1);
i0 = l5;
free(i0);
goto B0;
B1:;
i0 = 0u;
i1 = l5;
i2 = l3;
i3 = 15u;
i2 += i3;
i3 = 4294967280u;
i2 &= i3;
i1 -= i2;
l5 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = l5;
i1 = l3;
i0 = (*Z_envZ_read_action_dataZ_iii)(i0, i1);
B0:;
i0 = p0;
i1 = l2;
i2 = 1u;
i1 = (u32)((s32)i1 >> (i2 & 31));
i0 += i1;
l3 = i0;
i0 = l2;
i1 = 1u;
i0 &= i1;
i0 = !(i0);
if (i0) {goto B2;}
i0 = l3;
i0 = i32_load((&memory), (u64)(i0));
i1 = p1;
i0 += i1;
i0 = i32_load((&memory), (u64)(i0));
p1 = i0;
B2:;
i0 = l3;
i1 = p1;
CALL_INDIRECT(T0, void (*)(u32), 3, i1, i0);
i0 = 0u;
i1 = l4;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = 1u;
FUNC_EPILOGUE;
return i0;
}
static void f36(u32 p0, u32 p1) {
FUNC_PROLOGUE;
u32 i0;
u64 j0;
i0 = p0;
j0 = i64_load((&memory), (u64)(i0));
(*Z_envZ_require_authZ_vj)(j0);
FUNC_EPILOGUE;
}
static u32 f37(u32 p0, u32 p1) {
u32 l2 = 0, l3 = 0, l4 = 0, l5 = 0, l6 = 0;
FUNC_PROLOGUE;
u32 i0, i1, i2, i3;
i0 = 0u;
i0 = i32_load((&memory), (u64)(i0 + 4));
i1 = 16u;
i0 -= i1;
l6 = i0;
l5 = i0;
i0 = 0u;
i1 = l6;
i32_store((&memory), (u64)(i0 + 4), i1);
i0 = p1;
i0 = i32_load((&memory), (u64)(i0 + 4));
l2 = i0;
i0 = p1;
i0 = i32_load((&memory), (u64)(i0));
l4 = i0;
i0 = 0u;
l3 = i0;
i0 = (*Z_envZ_action_data_sizeZ_iv)();
p1 = i0;
i0 = !(i0);
if (i0) {goto B0;}
i0 = p1;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B2;}
i0 = p1;
i0 = malloc(i0);
l3 = i0;
goto B1;
B2:;
i0 = 0u;
i1 = l6;
i2 = p1;
i3 = 15u;
i2 += i3;
i3 = 4294967280u;
i2 &= i3;
i1 -= i2;
l3 = i1;
i32_store((&memory), (u64)(i0 + 4), i1);
B1:;
i0 = l3;
i1 = p1;
i0 = (*Z_envZ_read_action_dataZ_iii)(i0, i1);
B0:;
i0 = l5;
i1 = 0u;
i32_store((&memory), (u64)(i0 + 8), i1);
i0 = p1;
i1 = 3u;
i0 = i0 > i1;
i1 = 112u;
(*Z_envZ_eosio_assertZ_vii)(i0, i1);
i0 = l5;
i1 = 8u;
i0 += i1;
i1 = l3;
i2 = 4u;
i0 = (*Z_envZ_memcpyZ_iiii)(i0, i1, i2);
i0 = l5;
i0 = i32_load((&memory), (u64)(i0 + 8));
l6 = i0;
i0 = p1;
i1 = 513u;
i0 = i0 < i1;
if (i0) {goto B3;}
i0 = l3;
free(i0);
B3:;
i0 = p0;
i1 = l2;
i2 = 1u;
i1 = (u32)((s32)i1 >> (i2 & 31));
i0 += i1;
p1 = i0;
i0 = l2;
i1 = 1u;
i0 &= i1;
i0 = !(i0);