// // sub_1000D1324 from 0x1000d1324 to 0x1000d1578 (596 bytes) // // 1 xrefs: // > GJGameLevel::dataLoaded @ 0x1000d2e78 // // 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:54 +0000 // void __fastcall sub_1000D1324(__int64 a1, char *a2) { __int64 v3; // x20 __int64 v4; // x0 const char *CString; // x0 __int64 v6; // x21 __int64 v7; // x23 __int64 v8; // x0 const char *v9; // x0 __int128 v10; // q1 __int64 v11; // x0 char *v12; // x1 char v13; // w21 std::string::size_type size; // x22 std::string *p_str; // x23 __int64 v16; // x24 unsigned __int64 v17; // x0 std::string __str; // [xsp+8h] [xbp-A8h] BYREF void *__p[2]; // [xsp+20h] [xbp-90h] BYREF __int128 v20; // [xsp+30h] [xbp-80h] _OWORD v21[3]; // [xsp+40h] [xbp-70h] BYREF __int64 v22; // [xsp+70h] [xbp-40h] if ( a2[23] < 0 ) a2 = *(char **)a2; sub_100009900(__p, a2); v3 = sub_1000A72B8((std::string *)__p, ","); if ( SBYTE7(v20) < 0 ) operator delete(__p[0]); if ( (unsigned int)sub_1002E757C(v3) ) { v4 = cocos2d::CCArray::stringAtIndex(v3, 0); CString = (const char *)cocos2d::CCString::getCString(v4); if ( atoi(CString) >= 1 ) { v6 = 0; v22 = 0; v20 = 0u; memset(v21, 0, sizeof(v21)); *(_OWORD *)__p = 0u; do { v7 = v6 + 1; if ( v6 + 1 >= (int)sub_1002E757C(v3) ) break; v8 = cocos2d::CCArray::stringAtIndex(v3, (unsigned int)(v6 + 1)); v9 = (const char *)cocos2d::CCString::getCString(v8); *((_DWORD *)__p + v6++) = atoi(v9); } while ( v7 != 22 ); *(_OWORD *)a1 = *(_OWORD *)__p; *(_QWORD *)(a1 + 16) = v20; *(_DWORD *)(a1 + 24) = DWORD2(v20); *(float *)(a1 + 28) = (float)SHIDWORD(v20); *(_DWORD *)(a1 + 32) = v21[0]; v10 = *(_OWORD *)((char *)&v21[1] + 4); *(_OWORD *)(a1 + 64) = *(_OWORD *)((char *)v21 + 4); *(_OWORD *)(a1 + 80) = v10; *(_QWORD *)(a1 + 36) = *(_QWORD *)((char *)&v21[2] + 4); if ( (unsigned int)sub_1002E757C(v3) <= 0x14 ) { v12 = ""; } else { v11 = cocos2d::CCArray::stringAtIndex(v3, 20); v12 = (char *)cocos2d::CCString::getCString(v11); } sub_100009900(&__str, v12); v13 = HIBYTE(__str.__r_.__value_.__r.__words[2]); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) { size = __str.__r_.__value_.__l.__size_; if ( __str.__r_.__value_.__l.__size_ - 1 >= 0x13 ) { *(_QWORD *)(a1 + 48) = 0; *(_QWORD *)(a1 + 56) = v22; LABEL_29: operator delete(__str.__r_.__value_.__l.__data_); return; } p_str = (std::string *)__str.__r_.__value_.__r.__words[0]; } else { if ( (unsigned int)HIBYTE(__str.__r_.__value_.__r.__words[2]) - 1 >= 0x13 ) { *(_QWORD *)(a1 + 48) = 0; *(_QWORD *)(a1 + 56) = v22; return; } size = HIBYTE(__str.__r_.__value_.__r.__words[2]); p_str = &__str; } v16 = 0; while ( memchr("0123456789", p_str->__r_.__value_.__s.__data_[v16], 0xAu) ) { if ( size == ++v16 ) goto LABEL_25; } if ( v16 != -1 ) { v17 = 0; goto LABEL_26; } LABEL_25: v17 = std::stoull(&__str, nullptr, 10); v13 = HIBYTE(__str.__r_.__value_.__r.__words[2]); LABEL_26: *(_QWORD *)(a1 + 48) = v17; *(_QWORD *)(a1 + 56) = v22; if ( v13 < 0 ) goto LABEL_29; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source