// // sub_10052ADC8 from 0x10052adc8 to 0x10052b0f4 (812 bytes) // // 1 xrefs: // > SongUsagePopup::songUsageFinished @ 0x10052ab48 // // 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:07:17 +0000 // __int64 __fastcall sub_10052ADC8(__int64 a1, __int64 a2, __int64 a3, int a4, float a5) { __int64 v10; // x0 void *v11; // x19 __int64 v12; // x24 float v13; // s9 __int64 v14; // x0 void *v15; // x23 __int64 v16; // x0 int v17; // w9 __int64 v18; // x8 __int64 v19; // x9 __int64 v20; // x10 int v21; // w8 float v24; // s0 float v25; // s15 const char *v26; // x0 void *v27; // x23 float v28; // s0 __int64 v30; // [xsp+0h] [xbp-A0h] BYREF __int64 v31; // [xsp+8h] [xbp-98h] BYREF v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10, &v31); v11 = cocos2d::CCNode::create(); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v11, 2); if ( a4 < 1 ) { v28 = -22.0; goto LABEL_25; } v12 = (unsigned int)a4; v13 = 0.0; do { v14 = a2; if ( *(char *)(a2 + 23) < 0 ) v14 = *(_QWORD *)a2; v15 = cocos2d::CCSprite::createWithSpriteFrameName(v14); v16 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v15 + 328LL))(v15); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v15 + 160LL))(v15, 19.2 / *(float *)(v16 + 4)); v17 = *(char *)(a2 + 23); if ( v17 < 0 ) { if ( *(_QWORD *)(a2 + 8) != 18 ) goto LABEL_19; v18 = *(_QWORD *)a2; } else { v18 = a2; if ( v17 != 18 ) goto LABEL_19; } v19 = *(_QWORD *)v18; v20 = *(_QWORD *)(v18 + 8); v21 = *(unsigned __int16 *)(v18 + 16); if ( v19 == 0x634974726F707865LL && v20 == 0x702E3130305F6E6FLL && v21 == 26478 ) { v24 = (*(float (__fastcall **)(void *))(*(_QWORD *)v15 + 168LL))(v15); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v15 + 160LL))(v15, v24 * 0.9); } LABEL_19: (*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v15, 2); (*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v15 + 336LL))(&v30, v15); v25 = *(float *)&v30; sub_1000262BC((float *)&v30, v13 + (float)(*(float *)&v30 * 0.5), 0.0); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v15 + 184LL))(v15, &v30); v26 = (const char *)a3; if ( *(char *)(a3 + 23) < 0 ) v26 = *(const char **)a3; v27 = cocos2d::CCLabelBMFont::create_1(v26, "bigFont.fnt"); sub_1000262BC((float *)&v30, 0.0, 0.5); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v27 + 296LL))(v27, &v30); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v27 + 160LL))(v27, 0.5); (*(void (__fastcall **)(void *, void *, __int64))(*(_QWORD *)v11 + 464LL))(v11, v27, 2); sub_1000262BC((float *)&v30, (float)(v13 + v25) + 6.0, 0.0); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v27 + 184LL))(v27, &v30); (*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v27 + 336LL))(&v30, v27); v13 = v13 + (float)((float)((float)(v25 + 6.0) + *(float *)&v30) + 22.0); a3 += 24; a2 += 24; --v12; } while ( v12 ); v28 = v13 + -22.0; if ( (float)(v13 + -22.0) > 340.0 ) { (*(void (__fastcall **)(void *, float))(*(_QWORD *)v11 + 160LL))(v11, 340.0 / v28); v28 = 340.0; } LABEL_25: sub_1000262BC((float *)&v30, (float)(*(float *)&v31 * 0.5) - (float)(v28 * 0.5), a5); return (*(__int64 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v11 + 184LL))(v11, &v30); }
GD Web Decomp Icon

GD Web Decomp

Raw Source