; ; cocos2d::CCMenu::alignItemsVerticallyWithPadding from 0x180058d50 to 0x180058f64 (532 bytes) ; ; 3 xrefs: ; > cocos2d::CCMenu::alignItemsVertically @ 0x180058d48 ; > @ 0x1801438a8 ; > @ 0x1801b2a78 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x180058d50 mov [rsp+arg_10], rbp ; +0x5, 0x180058d55 mov [rsp+arg_18], rsi ; +0xa, 0x180058d5a push rdi ; +0xf, 0x180058d5f push r14 ; +0x10, 0x180058d60 push r15 ; +0x12, 0x180058d62 sub rsp, 60h ; +0x14, 0x180058d64 movaps [rsp+78h+var_28], xmm6 ; +0x18, 0x180058d68 mov r14, rcx ; +0x1d, 0x180058d6d mov rcx, [rcx+0D0h]; this ; +0x20, 0x180058d70 xor r15d, r15d ; +0x27, 0x180058d77 movaps [rsp+78h+var_38], xmm7 ; +0x2a, 0x180058d7a movaps xmm6, xmm1 ; +0x2f, 0x180058d7f xorps xmm6, cs:xmmword_1800E61C0 ; +0x32, 0x180058d82 movaps xmm7, xmm1 ; +0x39, 0x180058d89 movaps [rsp+78h+var_48], xmm8 ; +0x3c, 0x180058d8c test rcx, rcx ; +0x42, 0x180058d92 jz loc_180058E2B ; +0x45, 0x180058d95 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x180058d9b test eax, eax ; +0x50, 0x180058da0 jz loc_180058E2B ; +0x52, 0x180058da2 mov rax, [r14+0D0h] ; +0x58, 0x180058da8 test rax, rax ; +0x5f, 0x180058daf jz short loc_180058E2B ; +0x62, 0x180058db2 mov rdi, [rax+38h] ; +0x64, 0x180058db4 mov eax, [rdi] ; +0x68, 0x180058db8 test eax, eax ; +0x6a, 0x180058dba jz short loc_180058E2B ; +0x6c, 0x180058dbc mov rdi, [rdi+10h] ; +0x6e, 0x180058dbe lea rbp, [rax-1] ; +0x72, 0x180058dc2 lea rbp, [rdi+rbp*8] ; +0x76, 0x180058dc6 cmp rdi, rbp ; +0x7a, 0x180058dca ja short loc_180058E2B ; +0x7d, 0x180058dcd nop ; +0x7f, 0x180058dcf mov rcx, [rdi] ; +0x80, 0x180058dd0 test rcx, rcx ; +0x83, 0x180058dd3 jz short loc_180058E2B ; +0x86, 0x180058dd6 lea r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x88, 0x180058dd8 mov [rsp+78h+var_58], r15d ; +0x8f, 0x180058ddf lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x94, 0x180058de4 xor edx, edx ; +0x9b, 0x180058deb call __RTDynamicCast ; +0x9d, 0x180058ded mov rsi, rax ; +0xa2, 0x180058df2 test rax, rax ; +0xa5, 0x180058df5 jz short loc_180058E22 ; +0xa8, 0x180058df8 mov rdx, [rax] ; +0xaa, 0x180058dfa mov rcx, rax ; +0xad, 0x180058dfd call qword ptr [rdx+130h] ; +0xb0, 0x180058e00 mov rdx, [rsi] ; +0xb6, 0x180058e06 mov rcx, rsi ; +0xb9, 0x180058e09 mov rbx, rax ; +0xbc, 0x180058e0c call qword ptr [rdx+90h] ; +0xbf, 0x180058e0f mulss xmm0, dword ptr [rbx+4] ; +0xc5, 0x180058e15 addss xmm0, xmm7 ; +0xca, 0x180058e1a addss xmm6, xmm0 ; +0xce, 0x180058e1e add rdi, 8 ; +0xd2, 0x180058e22 cmp rdi, rbp ; +0xd6, 0x180058e26 jbe short loc_180058DD0 ; +0xd9, 0x180058e29 mov rcx, [r14+0D0h]; this ; +0xdb, 0x180058e2b movss xmm8, cs:dword_1800E6308 ; +0xe2, 0x180058e32 mulss xmm6, xmm8 ; +0xeb, 0x180058e3b test rcx, rcx ; +0xf0, 0x180058e40 jz loc_180058F3B ; +0xf3, 0x180058e43 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf9, 0x180058e49 test eax, eax ; +0xfe, 0x180058e4e jz loc_180058F3B ; +0x100, 0x180058e50 mov rax, [r14+0D0h] ; +0x106, 0x180058e56 test rax, rax ; +0x10d, 0x180058e5d jz loc_180058F3B ; +0x110, 0x180058e60 mov rsi, [rax+38h] ; +0x116, 0x180058e66 mov eax, [rsi] ; +0x11a, 0x180058e6a test eax, eax ; +0x11c, 0x180058e6c jz loc_180058F3B ; +0x11e, 0x180058e6e mov rsi, [rsi+10h] ; +0x124, 0x180058e74 lea rbp, [rax-1] ; +0x128, 0x180058e78 lea rbp, [rsi+rbp*8] ; +0x12c, 0x180058e7c cmp rsi, rbp ; +0x130, 0x180058e80 ja loc_180058F3B ; +0x133, 0x180058e83 nop dword ptr [rax+00000000h] ; +0x139, 0x180058e89 mov rcx, [rsi] ; +0x140, 0x180058e90 test rcx, rcx ; +0x143, 0x180058e93 jz loc_180058F3B ; +0x146, 0x180058e96 lea r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x14c, 0x180058e9c mov [rsp+78h+var_58], r15d ; +0x153, 0x180058ea3 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x158, 0x180058ea8 xor edx, edx ; +0x15f, 0x180058eaf call __RTDynamicCast ; +0x161, 0x180058eb1 mov r14, rax ; +0x166, 0x180058eb6 test rax, rax ; +0x169, 0x180058eb9 jz short loc_180058F2E ; +0x16c, 0x180058ebc mov rdi, [rax] ; +0x16e, 0x180058ebe mov rcx, rax ; +0x171, 0x180058ec1 call qword ptr [rdi+130h] ; +0x174, 0x180058ec4 mov rdx, [r14] ; +0x17a, 0x180058eca mov rcx, r14 ; +0x17d, 0x180058ecd mov rbx, rax ; +0x180, 0x180058ed0 call qword ptr [rdx+90h] ; +0x183, 0x180058ed3 mulss xmm0, dword ptr [rbx+4] ; +0x189, 0x180058ed9 movaps xmm2, xmm6 ; +0x18e, 0x180058ede lea rcx, [rsp+78h+arg_0] ; +0x191, 0x180058ee1 xorps xmm1, xmm1 ; +0x199, 0x180058ee9 mulss xmm0, xmm8 ; +0x19c, 0x180058eec subss xmm2, xmm0 ; +0x1a1, 0x180058ef1 call kmVec2Fill ; +0x1a5, 0x180058ef5 mov rdx, rax ; +0x1aa, 0x180058efa mov rcx, r14 ; +0x1ad, 0x180058efd call qword ptr [rdi+0B8h] ; +0x1b0, 0x180058f00 mov rax, [r14] ; +0x1b6, 0x180058f06 mov rcx, r14 ; +0x1b9, 0x180058f09 call qword ptr [rax+130h] ; +0x1bc, 0x180058f0c mov rdx, [r14] ; +0x1c2, 0x180058f12 mov rcx, r14 ; +0x1c5, 0x180058f15 mov rbx, rax ; +0x1c8, 0x180058f18 call qword ptr [rdx+90h] ; +0x1cb, 0x180058f1b mulss xmm0, dword ptr [rbx+4] ; +0x1d1, 0x180058f21 addss xmm0, xmm7 ; +0x1d6, 0x180058f26 subss xmm6, xmm0 ; +0x1da, 0x180058f2a add rsi, 8 ; +0x1de, 0x180058f2e cmp rsi, rbp ; +0x1e2, 0x180058f32 jbe loc_180058E90 ; +0x1e5, 0x180058f35 movaps xmm6, [rsp+78h+var_28] ; +0x1eb, 0x180058f3b lea r11, [rsp+78h+var_18] ; +0x1f0, 0x180058f40 mov rbx, [r11+28h] ; +0x1f5, 0x180058f45 mov rbp, [r11+30h] ; +0x1f9, 0x180058f49 mov rsi, [r11+38h] ; +0x1fd, 0x180058f4d movaps xmm8, xmmword ptr [r11-30h] ; +0x201, 0x180058f51 movaps xmm7, [rsp+78h+var_38] ; +0x206, 0x180058f56 mov rsp, r11 ; +0x20b, 0x180058f5b pop r15 ; +0x20e, 0x180058f5e pop r14 ; +0x210, 0x180058f60 pop rdi ; +0x212, 0x180058f62 retn ; +0x213, 0x180058f63