// // sub_10039385C from 0x10039385c to 0x100393a04 (424 bytes) // // 1 xrefs: // > EndLevelLayer::customSetup @ 0x100392b6c // // 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 11:03:39 +0000 // void __usercall sub_10039385C(__int64 a1@, _QWORD *a2@) { _DWORD *v4; // x8 int v5; // w24 int v6; // w23 int v7; // w22 int v8; // w8 _BOOL4 v11; // w9 char v13; // w8 std::string *v14; // x8 void *v15; // x0 char *CString; // x0 std::string v17; // [xsp+8h] [xbp-48h] BYREF if ( !*(_QWORD *)(a1 + 608) ) { sub_100009900(a2, ""); return; } sub_100009900(&v17, "all coins"); v4 = *(_DWORD **)(*(_QWORD *)(a1 + 608) + 1936LL); v5 = v4[252] - v4[253]; v6 = v4[255] - v4[256]; v7 = v4[258] - v4[259]; v8 = v4[241]; v11 = v5 == 1 || v6 == 1 || v7 == 1; if ( v8 >= 2 && v11 ) { std::string::assign(&v17, "coin "); if ( v5 == 1 ) { if ( v6 == 1 ) { v13 = 1; LABEL_23: if ( v7 != 1 && *(int *)(*(_QWORD *)(*(_QWORD *)(a1 + 608) + 1936LL) + 964LL) >= 3 ) { if ( (v13 & 1) == 0 ) std::string::append(&v17, ", "); std::string::append(&v17, "3"); } goto LABEL_28; } } else { std::string::append(&v17, "1"); if ( v6 == 1 ) { LABEL_22: v13 = 0; goto LABEL_23; } std::string::append(&v17, ", "); } std::string::append(&v17, "2"); goto LABEL_22; } LABEL_28: if ( (v17.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v17; else v14 = (std::string *)v17.__r_.__value_.__r.__words[0]; v15 = sub_1003065B0("You need to collect %s to verify the level!", (const char *)v14); CString = (char *)cocos2d::CCString::getCString((__int64)v15); sub_100009900(a2, CString); if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v17.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source