// // sub_1004ACF7C from 0x1004acf7c to 0x1004ad280 (772 bytes) // // 3 xrefs: // > sub_1004ACAD0 @ 0x1004acc84 // > sub_1004AD9B0 @ 0x1004adc24 // > sub_1004AD9B0 @ 0x1004ade34 // // 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:06:08 +0000 // __int64 __fastcall sub_1004ACF7C(__int64 a1, int a2, float a3, float a4) { void *v8; // x22 float *v9; // x0 __int64 v10; // x0 void *v11; // x21 float *v12; // x0 __int64 v13; // x0 __int64 result; // x0 void *v15; // x0 const char *CString; // x0 void *v17; // x20 float v18; // [xsp+8h] [xbp-48h] BYREF v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png"); sub_1000262BC(&v18, 0.5, 0.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v8 + 296LL))(v8, &v18); v9 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v8 + 328LL))(v8); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v8 + 128LL))(v8, (float)(a4 + -2.0) / *v9); v10 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v8 + 328LL))(v8); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v8 + 144LL))(v8, 8.0 / *(float *)(v10 + 4)); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v8 + 960LL))(v8, &unk_10076F858); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v8 + 912LL))(v8, 110); sub_1000262BC(&v18, a3, 33.5); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v8 + 184LL))(v8, &v18); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v8); v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png"); sub_1000262BC(&v18, 0.5, 0.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v11 + 296LL))(v11, &v18); v12 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v11 + 328LL))(v11); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v11 + 128LL))(v11, (float)(a4 + -5.0) / *v12); v13 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v11 + 328LL))(v11); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v11 + 144LL))(v11, 5.0 / *(float *)(v13 + 4)); BYTE2(v18) = 23; LOWORD(v18) = 12371; (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v11 + 960LL))(v11, &v18); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v11 + 912LL))(v11, 130); sub_1000262BC(&v18, a3, 35.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v11 + 184LL))(v11, &v18); result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v11); if ( a2 >= 1 && !(a2 % 5u) ) { v15 = sub_1003065B0("%i", a2); CString = (const char *)cocos2d::CCString::getCString((__int64)v15); v17 = cocos2d::CCLabelBMFont::create_1(CString, "chatFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.495); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v17 + 1072LL))(v17, &unk_10076F858); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v17 + 1024LL))(v17, 200); sub_1000262BC(&v18, a3, 25.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v17 + 184LL))(v17, &v18); return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 456LL))(a1, v17); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source