// // sub_1004CDAF0 from 0x1004cdaf0 to 0x1004cdcdc (492 bytes) // // 5 xrefs: // > sub_1004CD5C0 @ 0x1004cd7d4 // > sub_1004CD5C0 @ 0x1004cda00 // > sub_1004CD5C0 @ 0x1004cda28 // > EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x1004ce1c4 // > EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x1004ce28c // // 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:27 +0000 // __int64 __fastcall sub_1004CDAF0(__int64 a1, __int64 a2, const char *a3) { __int64 v6; // x3 char *v7; // x0 _QWORD *v8; // x0 __int64 v9; // x0 __int64 v10; // x19 __int64 v12; // x0 double WinSize; // d0 void *v14; // x20 float v15; // [xsp+0h] [xbp-40h] BYREF __int64 v16; // [xsp+8h] [xbp-38h] BYREF sub_1004CDA94(a1); *(_QWORD *)(a1 + 1104) = a2; if ( a2 && (cocos2d::CCObject::retain(a2), (unsigned int)sub_1002E757C(a2)) ) { if ( *(_DWORD *)(a1 + 1048) == 1 ) v6 = 35; else v6 = 34; v7 = CustomListView::create(a2, a1 + 1032, 0, v6, 180.0, 340.0, *(float *)(a1 + 1200)); v8 = GJCommentListLayer::create((__int64)v7, 340.0, 180.0); *(_QWORD *)(a1 + 1056) = v8; (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v8, 5); v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v9, &v16); v10 = *(_QWORD *)(a1 + 1056); sub_1000262BC( &v15, (float)(*(float *)&v16 + -340.0) * 0.5, (float)((float)(*((float *)&v16 + 1) + -180.0) * 0.5) + -30.0); return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v10 + 184LL))(v10, &v15); } else { v12 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v12, &v16); v14 = cocos2d::CCLabelBMFont::create_1(a3, "bigFont.fnt", WinSize); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v14 + 160LL))(v14, 0.6); BYTE2(v15) = -56; LOWORD(v15) = -14136; (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v14 + 1072LL))(v14, &v15); sub_1000262BC(&v15, *(float *)&v16 * 0.5, (float)(*((float *)&v16 + 1) * 0.5) + -10.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v14 + 184LL))(v14, &v15); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v14 + 72LL))(v14, 9999); return (*(__int64 (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v14, 5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source