// // sub_10009D344 from 0x10009d344 to 0x10009d5dc (664 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100093d9c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:58:29 +0000 // __int64 __fastcall sub_10009D344(__int64 a1, _QWORD *a2, __int64 *a3) { __int64 *v6; // x1 bool v7; // w0 bool v8; // w22 _BOOL4 v9; // w22 __int64 v10; // x20 _BOOL4 v11; // w0 _BOOL4 v12; // w23 _BOOL4 v13; // w0 _BOOL4 v14; // w23 __int64 result; // x0 __int64 (*v16)(void); // x8 __int64 v17; // x23 unsigned int v18; // w0 __int64 v19; // x0 __int64 v20; // x21 __int64 v21; // x0 __int64 v22; // x0 __int64 v23; // x0 char *CString; // x0 __int64 v25; // x0 char *v26; // x0 int v27; // w0 __int64 v28; // x0 __int64 v29; // x22 __int64 v30; // x0 void *v31; // [xsp+8h] [xbp-78h] BYREF char v32; // [xsp+1Fh] [xbp-61h] std::string __str; // [xsp+20h] [xbp-60h] BYREF void *__p[2]; // [xsp+38h] [xbp-48h] BYREF char v35; // [xsp+4Fh] [xbp-31h] v6 = a3; if ( *((char *)a3 + 23) < 0 ) v6 = (__int64 *)*a3; sub_1000ADC9C(a1, v6); sub_100009900(__p, "weekly_state"); v7 = sub_1000045BC(a3, __p); v8 = v7; if ( v35 < 0 ) { operator delete(__p[0]); if ( v8 ) goto LABEL_5; } else if ( v7 ) { LABEL_5: v9 = 0; v10 = 1; goto LABEL_12; } sub_100009900(__p, "event_state"); v9 = sub_1000045BC(a3, __p); if ( v35 < 0 ) operator delete(__p[0]); if ( v9 ) v10 = 2; else v10 = 0; LABEL_12: sub_100009900(__p, "-1"); v11 = sub_1000045BC(a2, __p); v12 = v11; if ( v35 < 0 ) { operator delete(__p[0]); if ( v12 ) goto LABEL_33; } else if ( v11 ) { goto LABEL_33; } sub_100009900(__p, "-2"); v13 = sub_1000045BC(a2, __p); v14 = v13; if ( v35 < 0 ) { operator delete(__p[0]); if ( v14 ) goto LABEL_18; } else if ( v13 ) { LABEL_18: result = *(_QWORD *)(a1 + 1432); if ( !result ) return result; v16 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v16(); } v17 = sub_1000A72B8(a2, "|"); v18 = sub_1002E757C(v17); if ( v9 ) { if ( v18 > 3 ) goto LABEL_23; LABEL_33: result = *(_QWORD *)(a1 + 1432); if ( !result ) return result; v16 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v16(); } if ( v18 < 2 ) goto LABEL_33; LABEL_23: v19 = cocos2d::CCArray::stringAtIndex(v17, 0); v20 = cocos2d::CCString::intValue(v19); v21 = cocos2d::CCArray::stringAtIndex(v17, 1); v22 = cocos2d::CCString::intValue(v21); sub_1000CD58C(a1, v20, v22, v10); if ( !v9 ) goto LABEL_30; v23 = cocos2d::CCArray::stringAtIndex(v17, 2); CString = (char *)cocos2d::CCString::getCString(v23); sub_100009900(&__str, CString); v25 = cocos2d::CCArray::stringAtIndex(v17, 3); v26 = (char *)cocos2d::CCString::getCString(v25); v27 = (unsigned int)sub_100009900(&v31, v26); v28 = sub_1000BA9A8(v27, &__str); v29 = v28; if ( v32 < 0 ) operator delete(v31); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( v29 ) { v30 = GameStatsManager::sharedState(v28); sub_1003D2360(v30, v20, v29); LABEL_30: result = *(_QWORD *)(a1 + 1432); if ( result ) return (**(__int64 (__fastcall ***)(__int64, __int64))result)(result, v10); return result; } result = *(_QWORD *)(a1 + 1432); if ( result ) { v16 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v16(); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source