; ; cocos2d::CCMenu::alignItemsHorizontallyWithPadding from 0x180059fb0 to 0x18005a1d8 (552 bytes) ; ; 3 xrefs: ; > cocos2d::CCMenu::alignItemsHorizontally @ 0x180059fa8 ; > @ 0x18014cf68 ; > @ 0x1801bccb8 ; ; 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:21:48 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x180059fb0 mov [rsp+arg_10], rbp ; +0x5, 0x180059fb5 push rsi ; +0xa, 0x180059fba push rdi ; +0xb, 0x180059fbb push r14 ; +0xc, 0x180059fbc sub rsp, 70h ; +0xe, 0x180059fbe movaps [rsp+88h+var_28], xmm6 ; +0x12, 0x180059fc2 mov rbp, rcx ; +0x17, 0x180059fc7 mov rcx, [rcx+0D0h]; this ; +0x1a, 0x180059fca xor r14d, r14d ; +0x21, 0x180059fd1 movaps [rsp+88h+var_38], xmm7 ; +0x24, 0x180059fd4 movaps xmm7, xmm1 ; +0x29, 0x180059fd9 movaps [rsp+88h+var_48], xmm8 ; +0x2c, 0x180059fdc movaps xmm8, xmm1 ; +0x32, 0x180059fe2 movaps [rsp+88h+var_58], xmm9 ; +0x36, 0x180059fe6 movss xmm9, dword ptr cs:xmmword_1800EC220 ; +0x3c, 0x180059fec xorps xmm7, xmm9 ; +0x45, 0x180059ff5 test rcx, rcx ; +0x49, 0x180059ff9 jz loc_18005A098 ; +0x4c, 0x180059ffc call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x18005a002 test eax, eax ; +0x57, 0x18005a007 jz loc_18005A098 ; +0x59, 0x18005a009 mov rax, [rbp+0D0h] ; +0x5f, 0x18005a00f test rax, rax ; +0x66, 0x18005a016 jz short loc_18005A098 ; +0x69, 0x18005a019 mov rbx, [rax+38h] ; +0x6b, 0x18005a01b mov eax, [rbx] ; +0x6f, 0x18005a01f test eax, eax ; +0x71, 0x18005a021 jz short loc_18005A098 ; +0x73, 0x18005a023 mov rbx, [rbx+10h] ; +0x75, 0x18005a025 lea rsi, [rax-1] ; +0x79, 0x18005a029 lea rsi, [rbx+rsi*8] ; +0x7d, 0x18005a02d cmp rbx, rsi ; +0x81, 0x18005a031 ja short loc_18005A098 ; +0x84, 0x18005a034 mov rcx, [rbx] ; +0x86, 0x18005a036 test rcx, rcx ; +0x89, 0x18005a039 jz short loc_18005A098 ; +0x8c, 0x18005a03c lea r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x8e, 0x18005a03e mov [rsp+88h+var_68], r14d ; +0x95, 0x18005a045 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x9a, 0x18005a04a xor edx, edx ; +0xa1, 0x18005a051 call __RTDynamicCast ; +0xa3, 0x18005a053 mov rdi, rax ; +0xa8, 0x18005a058 test rax, rax ; +0xab, 0x18005a05b jz short loc_18005A08F ; +0xae, 0x18005a05e mov rcx, [rax] ; +0xb0, 0x18005a060 mov rdx, [rcx+140h] ; +0xb3, 0x18005a063 mov rcx, rax ; +0xba, 0x18005a06a call rdx ; +0xbd, 0x18005a06d mov rcx, [rdi] ; +0xbf, 0x18005a06f movss xmm6, dword ptr [rax] ; +0xc2, 0x18005a072 mov rdx, [rcx+80h] ; +0xc6, 0x18005a076 mov rcx, rdi ; +0xcd, 0x18005a07d call rdx ; +0xd0, 0x18005a080 mulss xmm0, xmm6 ; +0xd2, 0x18005a082 addss xmm0, xmm8 ; +0xd6, 0x18005a086 addss xmm7, xmm0 ; +0xdb, 0x18005a08b add rbx, 8 ; +0xdf, 0x18005a08f cmp rbx, rsi ; +0xe3, 0x18005a093 jbe short loc_18005A036 ; +0xe6, 0x18005a096 mov rcx, [rbp+0D0h]; this ; +0xe8, 0x18005a098 xorps xmm7, xmm9 ; +0xef, 0x18005a09f movss xmm9, cs:dword_1800EC358 ; +0xf3, 0x18005a0a3 mulss xmm7, xmm9 ; +0xfc, 0x18005a0ac test rcx, rcx ; +0x101, 0x18005a0b1 jz loc_18005A1AF ; +0x104, 0x18005a0b4 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x10a, 0x18005a0ba test eax, eax ; +0x10f, 0x18005a0bf jz loc_18005A1AF ; +0x111, 0x18005a0c1 mov rax, [rbp+0D0h] ; +0x117, 0x18005a0c7 test rax, rax ; +0x11e, 0x18005a0ce jz loc_18005A1AF ; +0x121, 0x18005a0d1 mov rdi, [rax+38h] ; +0x127, 0x18005a0d7 mov eax, [rdi] ; +0x12b, 0x18005a0db test eax, eax ; +0x12d, 0x18005a0dd jz loc_18005A1AF ; +0x12f, 0x18005a0df mov rdi, [rdi+10h] ; +0x135, 0x18005a0e5 lea rbp, [rax-1] ; +0x139, 0x18005a0e9 lea rbp, [rdi+rbp*8] ; +0x13d, 0x18005a0ed cmp rdi, rbp ; +0x141, 0x18005a0f1 ja loc_18005A1AF ; +0x144, 0x18005a0f4 nop word ptr [rax+rax+00h] ; +0x14a, 0x18005a0fa mov rcx, [rdi] ; +0x150, 0x18005a100 test rcx, rcx ; +0x153, 0x18005a103 jz loc_18005A1AF ; +0x156, 0x18005a106 lea r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x15c, 0x18005a10c mov [rsp+88h+var_68], r14d ; +0x163, 0x18005a113 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x168, 0x18005a118 xor edx, edx ; +0x16f, 0x18005a11f call __RTDynamicCast ; +0x171, 0x18005a121 mov rsi, rax ; +0x176, 0x18005a126 test rax, rax ; +0x179, 0x18005a129 jz short loc_18005A1A2 ; +0x17c, 0x18005a12c mov rcx, [rax] ; +0x17e, 0x18005a12e mov rdx, [rcx+140h] ; +0x181, 0x18005a131 mov rcx, rax ; +0x188, 0x18005a138 call rdx ; +0x18b, 0x18005a13b mov rbx, [rsi] ; +0x18d, 0x18005a13d mov rcx, rsi ; +0x190, 0x18005a140 movss xmm6, dword ptr [rax] ; +0x193, 0x18005a143 call qword ptr [rbx+80h] ; +0x197, 0x18005a147 mulss xmm0, xmm6 ; +0x19d, 0x18005a14d xorps xmm2, xmm2 ; +0x1a1, 0x18005a151 lea rcx, [rsp+88h+arg_0] ; +0x1a4, 0x18005a154 mulss xmm0, xmm9 ; +0x1ac, 0x18005a15c addss xmm0, xmm7 ; +0x1b1, 0x18005a161 movaps xmm1, xmm0 ; +0x1b5, 0x18005a165 call kmVec2Fill ; +0x1b8, 0x18005a168 mov rdx, rax ; +0x1bd, 0x18005a16d mov rcx, rsi ; +0x1c0, 0x18005a170 call qword ptr [rbx+0B8h] ; +0x1c3, 0x18005a173 mov rax, [rsi] ; +0x1c9, 0x18005a179 mov rcx, rsi ; +0x1cc, 0x18005a17c call qword ptr [rax+140h] ; +0x1cf, 0x18005a17f mov rcx, rsi ; +0x1d5, 0x18005a185 movss xmm6, dword ptr [rax] ; +0x1d8, 0x18005a188 mov rax, [rsi] ; +0x1dc, 0x18005a18c call qword ptr [rax+80h] ; +0x1df, 0x18005a18f mulss xmm0, xmm6 ; +0x1e5, 0x18005a195 addss xmm0, xmm8 ; +0x1e9, 0x18005a199 addss xmm7, xmm0 ; +0x1ee, 0x18005a19e add rdi, 8 ; +0x1f2, 0x18005a1a2 cmp rdi, rbp ; +0x1f6, 0x18005a1a6 jbe loc_18005A100 ; +0x1f9, 0x18005a1a9 movaps xmm6, [rsp+88h+var_28] ; +0x1ff, 0x18005a1af lea r11, [rsp+88h+var_18] ; +0x204, 0x18005a1b4 mov rbx, [r11+28h] ; +0x209, 0x18005a1b9 mov rbp, [r11+30h] ; +0x20d, 0x18005a1bd movaps xmm8, xmmword ptr [r11-30h] ; +0x211, 0x18005a1c1 movaps xmm9, xmmword ptr [r11-40h] ; +0x216, 0x18005a1c6 movaps xmm7, [rsp+88h+var_38] ; +0x21b, 0x18005a1cb mov rsp, r11 ; +0x220, 0x18005a1d0 pop r14 ; +0x223, 0x18005a1d3 pop rdi ; +0x225, 0x18005a1d5 pop rsi ; +0x226, 0x18005a1d6 retn ; +0x227, 0x18005a1d7