// // cocos2d::CCMenu::alignItemsInRows from 0x100874cf0 to 0x100874daa (186 bytes) // // 1 xrefs: // > sub_100874C40 @ 0x100874cc4 // // 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 12:36:52 +0000 // __int64 __fastcall cocos2d::CCMenu::alignItemsInRows(__int64 a1, int a2, unsigned int *a3) { int v4; // r12d void *v5; // r15 int *v6; // rax _DWORD *v7; // r13 unsigned __int64 v8; // rcx int *v9; // rax v4 = a2; v5 = sub_1007FE900(); if ( a2 ) { do { while ( 1 ) { v7 = operator new(0x40u); cocos2d::CCObject::CCObject((__int64)v7); *(_QWORD *)v7 = off_100ABB920; v7[14] = v4; cocos2d::CCObject::autorelease((__int64)v7); sub_1007FEBF0((__int64)v5, (__int64)v7); v8 = *a3; if ( v8 <= 0x28 ) break; v6 = *((int **)a3 + 1); *((_QWORD *)a3 + 1) = v6 + 2; v4 = *v6; if ( !*v6 ) return cocos2d::CCMenu::alignItemsInRowsWithArray(a1, v5); } v9 = (int *)(*((_QWORD *)a3 + 2) + v8); *a3 = v8 + 8; v4 = *v9; } while ( *v9 ); } return cocos2d::CCMenu::alignItemsInRowsWithArray(a1, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source