// // RateLevelLayer::selectRating from 0x14055e160 to 0x14055e2ae (334 bytes) // // 3 xrefs: // > RateLevelLayer::init @ 0x14055e12a // > RateLevelLayer::init @ 0x14055de0e // > @ 0x14092c234 // // This function is hookable on this platform (idp: pc, 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:34:13 +0000 // __int64 __fastcall RateLevelLayer::selectRating(__int64 a1, __int64 a2) { int v3; // eax unsigned int i; // ebx char *v5; // rcx void (__fastcall *v6)(char *, __int16 *); // r8 __int16 *v7; // rdx __int64 v8; // rcx char v9; // al __int64 result; // rax _QWORD *v11; // rbx __int64 v12; // rcx __int64 v13; // rcx __int64 v14; // rcx _BYTE v15[3]; // [rsp+30h] [rbp+8h] BYREF if ( a2 ) v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); else v3 = -1; *(_DWORD *)(a1 + 684) = v3; for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); ++i ) { v5 = (char *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), i) + 320; v6 = **(void (__fastcall ***)(char *, __int16 *))v5; if ( *(_DWORD *)(a1 + 684) == i ) { v7 = &word_140704600; } else { memset(v15, 125, sizeof(v15)); v7 = (__int16 *)v15; } v6(v5, v7); } v8 = *(_QWORD *)(a1 + 664); if ( *(_DWORD *)(a1 + 684) == -1 ) { *(_WORD *)v15 = -22874; v9 = -90; } else { *(_WORD *)v15 = -1; v9 = -1; } v15[2] = v9; result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 952LL))(v8); v11 = (_QWORD *)result; v12 = *(_QWORD *)(result + 632); if ( v12 ) result = (**(__int64 (__fastcall ***)(__int64, _BYTE *))(v12 + 368))(v12 + 368, v15); v13 = v11[80]; if ( v13 ) result = (**(__int64 (__fastcall ***)(__int64, _BYTE *))(v13 + 320))(v13 + 320, v15); v14 = v11[82]; if ( v14 ) return (**(__int64 (__fastcall ***)(__int64, _BYTE *))(v14 + 320))(v14 + 320, v15); v14 = v11[81]; if ( v14 ) return (**(__int64 (__fastcall ***)(__int64, _BYTE *))(v14 + 320))(v14 + 320, v15); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source