// // sub_100008C9C from 0x100008c9c to 0x1000090b8 (1052 bytes) // // 2 xrefs: // > sub_1000089EC @ 0x100008ab0 // > sub_10007A434 @ 0x10007a584 // // 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:57:12 +0000 // __int64 __fastcall sub_100008C9C(__int64 a1, __int64 a2, float a3) { __int64 v6; // x19 float v7; // s9 __n128 v8; // q1 __n128 v9; // q0 __int64 v10; // x0 __int16 v11; // w8 __int64 v12; // x22 __int64 v13; // x23 __int64 v14; // x0 __int64 v15; // x1 char *v16; // x0 std::string *v17; // x0 __int64 v18; // x24 __n128 v19; // q0 __n128 v20; // q1 __int64 v21; // x25 unsigned int v22; // w27 std::string::reference v23; // x0 __int64 v24; // x28 const std::string::value_type *v25; // x1 std::string *v26; // x0 __int64 v27; // x26 __n128 v28; // q0 __n128 v29; // q1 std::string::reference v30; // x0 void (__fastcall *v31)(__int64, void *); // x8 __int64 v32; // x1 __int64 v35; // [xsp+8h] [xbp-A8h] BYREF __int64 v36; // [xsp+10h] [xbp-A0h] BYREF std::string v37; // [xsp+18h] [xbp-98h] BYREF __int16 v38; // [xsp+34h] [xbp-7Ch] BYREF char v39; // [xsp+36h] [xbp-7Ah] _BYTE v40[8]; // [xsp+38h] [xbp-78h] BYREF v6 = sub_1002E736C(); v7 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5; v8.n128_f32[0] = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) + 4) * 0.5; v9.n128_f32[0] = v7; v10 = sub_1000262BC(v40, v9, v8); v39 = -1; v38 = -1; if ( !*(_DWORD *)(a2 + 56) ) { if ( *(_QWORD *)a2 ) { v39 = 0; v11 = -256; } else { v39 = 0; v11 = 255; } v38 = v11; } v12 = sub_1000090EC(v10); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v12); v13 = (unsigned int)*std::string::at((std::string *)(a2 + 8), 0); v14 = ObjectToolbox::sharedState(); if ( (unsigned int)(v13 - 50) > 0x1A ) v15 = 2895; else v15 = *(unsigned int *)&aP_4[4 * (unsigned __int8)(v13 - 50)]; v16 = (char *)ObjectToolbox::intKeyToFrame(v14, v15); sub_100009900((int)&v37, v16); if ( (v37.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v17 = &v37; else v17 = (std::string *)v37.__r_.__value_.__r.__words[0]; v18 = cocos2d::CCSprite::createWithSpriteFrameName(v17); sub_1000079AC(v13, v18); v19.n128_f64[0] = (*(double (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v18 + 960LL))(v18, &v38); sub_1000078A0(v13, (__int64)&v35, v19, v20); sub_100026318(&v36, v40, &v35); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL))(v18, &v36); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v12 + 464LL))(v12, v18, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v18 + 912LL))(v18); sub_1002E74E0(v6, v18); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 72LL))(v18, 0); v21 = -8; do { v22 = v21 + 9; v23 = std::string::at((std::string *)(a2 + 8), v21 + 9); v24 = (unsigned int)*v23; if ( (sub_100007904(*v23, (int)v21 + 9) & 1) == 0 ) { v25 = "smartBlock01b_001.png"; if ( (unsigned int)(v24 - 50) < 0x1B ) v25 = off_1008AD9A0[(unsigned __int8)(v24 - 50)]; std::string::assign(&v37, v25); if ( (v37.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v26 = &v37; else v26 = (std::string *)v37.__r_.__value_.__r.__words[0]; v27 = cocos2d::CCSprite::createWithSpriteFrameName(v26); sub_1000079AC(v24, v27); v28.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v12 + 464LL))(v12, v27, 0); sub_1000078A0(v24, (__int64)&v36, v28, v29); if ( v22 <= 6 && ((1 << v22) & 0x62) != 0 ) *((float *)&v36 + 1) = *((float *)&v36 + 1) + 30.0; if ( v22 <= 8 && ((1 << v22) & 0x184) != 0 ) *((float *)&v36 + 1) = *((float *)&v36 + 1) + -30.0; if ( v21 == -4 || (v22 & 0xB) == 3 ) *(float *)&v36 = *(float *)&v36 + -30.0; if ( v21 == -1 || (v22 & 0xD) == 4 ) *(float *)&v36 = *(float *)&v36 + 30.0; sub_100026318(&v35, v40, &v36); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL))(v27, &v35); v30 = std::string::at((std::string *)(a1 + 320), v21 + 9); v31 = *(void (__fastcall **)(__int64, void *))(*(_QWORD *)v27 + 960LL); if ( *v30 == 48 ) { v31(v27, &unk_10075BAB7); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v27 + 912LL))(v27, (unsigned int)(int)(float)(a3 * 150.0)); v32 = 2; } else { v31(v27, &v38); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v27 + 912LL))(v27, (unsigned int)(int)(float)(a3 * 255.0)); v32 = 1; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 72LL))(v27, v32); sub_1002E74E0(v6, v27); } } while ( !__CFADD__(v21++, 1) ); if ( SHIBYTE(v37.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v37.__r_.__value_.__l.__data_); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source