; ; cocos2d::CCMenu::alignItemsVerticallyWithPadding from 0x18005acb0 to 0x18005aecb (539 bytes) ; ; 3 xrefs: ; > cocos2d::CCMenu::alignItemsVertically @ 0x18005aca8 ; > @ 0x18014cf68 ; > @ 0x1801bcd0c ; ; 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, 0x18005acb0 mov [rsp+arg_10], rbp ; +0x5, 0x18005acb5 push rsi ; +0xa, 0x18005acba push rdi ; +0xb, 0x18005acbb push r14 ; +0xc, 0x18005acbc sub rsp, 70h ; +0xe, 0x18005acbe movaps [rsp+88h+var_28], xmm6 ; +0x12, 0x18005acc2 mov rbp, rcx ; +0x17, 0x18005acc7 mov rcx, [rcx+0D0h]; this ; +0x1a, 0x18005acca xor r14d, r14d ; +0x21, 0x18005acd1 movaps [rsp+88h+var_38], xmm7 ; +0x24, 0x18005acd4 movaps xmm7, xmm1 ; +0x29, 0x18005acd9 xorps xmm7, cs:xmmword_1800EC220 ; +0x2c, 0x18005acdc movaps [rsp+88h+var_48], xmm8 ; +0x33, 0x18005ace3 movaps xmm8, xmm1 ; +0x39, 0x18005ace9 movaps [rsp+88h+var_58], xmm9 ; +0x3d, 0x18005aced test rcx, rcx ; +0x43, 0x18005acf3 jz loc_18005AD93 ; +0x46, 0x18005acf6 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4c, 0x18005acfc test eax, eax ; +0x51, 0x18005ad01 jz loc_18005AD93 ; +0x53, 0x18005ad03 mov rax, [rbp+0D0h] ; +0x59, 0x18005ad09 test rax, rax ; +0x60, 0x18005ad10 jz short loc_18005AD93 ; +0x63, 0x18005ad13 mov rbx, [rax+38h] ; +0x65, 0x18005ad15 mov eax, [rbx] ; +0x69, 0x18005ad19 test eax, eax ; +0x6b, 0x18005ad1b jz short loc_18005AD93 ; +0x6d, 0x18005ad1d mov rbx, [rbx+10h] ; +0x6f, 0x18005ad1f lea rsi, [rax-1] ; +0x73, 0x18005ad23 lea rsi, [rbx+rsi*8] ; +0x77, 0x18005ad27 cmp rbx, rsi ; +0x7b, 0x18005ad2b ja short loc_18005AD93 ; +0x7e, 0x18005ad2e mov rcx, [rbx] ; +0x80, 0x18005ad30 test rcx, rcx ; +0x83, 0x18005ad33 jz short loc_18005AD93 ; +0x86, 0x18005ad36 lea r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x88, 0x18005ad38 mov [rsp+88h+var_68], r14d ; +0x8f, 0x18005ad3f lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x94, 0x18005ad44 xor edx, edx ; +0x9b, 0x18005ad4b call __RTDynamicCast ; +0x9d, 0x18005ad4d mov rdi, rax ; +0xa2, 0x18005ad52 test rax, rax ; +0xa5, 0x18005ad55 jz short loc_18005AD8A ; +0xa8, 0x18005ad58 mov rcx, [rax] ; +0xaa, 0x18005ad5a mov rdx, [rcx+140h] ; +0xad, 0x18005ad5d mov rcx, rax ; +0xb4, 0x18005ad64 call rdx ; +0xb7, 0x18005ad67 mov rcx, [rdi] ; +0xb9, 0x18005ad69 movss xmm6, dword ptr [rax+4] ; +0xbc, 0x18005ad6c mov rdx, [rcx+90h] ; +0xc1, 0x18005ad71 mov rcx, rdi ; +0xc8, 0x18005ad78 call rdx ; +0xcb, 0x18005ad7b mulss xmm0, xmm6 ; +0xcd, 0x18005ad7d addss xmm0, xmm8 ; +0xd1, 0x18005ad81 addss xmm7, xmm0 ; +0xd6, 0x18005ad86 add rbx, 8 ; +0xda, 0x18005ad8a cmp rbx, rsi ; +0xde, 0x18005ad8e jbe short loc_18005AD30 ; +0xe1, 0x18005ad91 mov rcx, [rbp+0D0h]; this ; +0xe3, 0x18005ad93 movss xmm9, cs:dword_1800EC358 ; +0xea, 0x18005ad9a mulss xmm7, xmm9 ; +0xf3, 0x18005ada3 test rcx, rcx ; +0xf8, 0x18005ada8 jz loc_18005AEA2 ; +0xfb, 0x18005adab call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x101, 0x18005adb1 test eax, eax ; +0x106, 0x18005adb6 jz loc_18005AEA2 ; +0x108, 0x18005adb8 mov rax, [rbp+0D0h] ; +0x10e, 0x18005adbe test rax, rax ; +0x115, 0x18005adc5 jz loc_18005AEA2 ; +0x118, 0x18005adc8 mov rdi, [rax+38h] ; +0x11e, 0x18005adce mov eax, [rdi] ; +0x122, 0x18005add2 test eax, eax ; +0x124, 0x18005add4 jz loc_18005AEA2 ; +0x126, 0x18005add6 mov rdi, [rdi+10h] ; +0x12c, 0x18005addc lea rbp, [rax-1] ; +0x130, 0x18005ade0 lea rbp, [rdi+rbp*8] ; +0x134, 0x18005ade4 cmp rdi, rbp ; +0x138, 0x18005ade8 ja loc_18005AEA2 ; +0x13b, 0x18005adeb mov rcx, [rdi] ; +0x141, 0x18005adf1 test rcx, rcx ; +0x144, 0x18005adf4 jz loc_18005AEA2 ; +0x147, 0x18005adf7 lea r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x14d, 0x18005adfd mov [rsp+88h+var_68], r14d ; +0x154, 0x18005ae04 lea r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x159, 0x18005ae09 xor edx, edx ; +0x160, 0x18005ae10 call __RTDynamicCast ; +0x162, 0x18005ae12 mov rsi, rax ; +0x167, 0x18005ae17 test rax, rax ; +0x16a, 0x18005ae1a jz short loc_18005AE95 ; +0x16d, 0x18005ae1d mov rbx, [rax] ; +0x16f, 0x18005ae1f mov rcx, rax ; +0x172, 0x18005ae22 call qword ptr [rbx+140h] ; +0x175, 0x18005ae25 mov rcx, [rsi] ; +0x17b, 0x18005ae2b movss xmm6, dword ptr [rax+4] ; +0x17e, 0x18005ae2e mov rdx, [rcx+90h] ; +0x183, 0x18005ae33 mov rcx, rsi ; +0x18a, 0x18005ae3a call rdx ; +0x18d, 0x18005ae3d mulss xmm0, xmm6 ; +0x18f, 0x18005ae3f lea rcx, [rsp+88h+arg_0] ; +0x193, 0x18005ae43 movaps xmm2, xmm7 ; +0x19b, 0x18005ae4b xorps xmm1, xmm1 ; +0x19e, 0x18005ae4e mulss xmm0, xmm9 ; +0x1a1, 0x18005ae51 subss xmm2, xmm0 ; +0x1a6, 0x18005ae56 call kmVec2Fill ; +0x1aa, 0x18005ae5a mov rdx, rax ; +0x1af, 0x18005ae5f mov rcx, rsi ; +0x1b2, 0x18005ae62 call qword ptr [rbx+0B8h] ; +0x1b5, 0x18005ae65 mov rax, [rsi] ; +0x1bb, 0x18005ae6b mov rcx, rsi ; +0x1be, 0x18005ae6e call qword ptr [rax+140h] ; +0x1c1, 0x18005ae71 mov rcx, rsi ; +0x1c7, 0x18005ae77 movss xmm6, dword ptr [rax+4] ; +0x1ca, 0x18005ae7a mov rax, [rsi] ; +0x1cf, 0x18005ae7f call qword ptr [rax+90h] ; +0x1d2, 0x18005ae82 mulss xmm0, xmm6 ; +0x1d8, 0x18005ae88 addss xmm0, xmm8 ; +0x1dc, 0x18005ae8c subss xmm7, xmm0 ; +0x1e1, 0x18005ae91 add rdi, 8 ; +0x1e5, 0x18005ae95 cmp rdi, rbp ; +0x1e9, 0x18005ae99 jbe loc_18005ADF1 ; +0x1ec, 0x18005ae9c movaps xmm6, [rsp+88h+var_28] ; +0x1f2, 0x18005aea2 lea r11, [rsp+88h+var_18] ; +0x1f7, 0x18005aea7 mov rbx, [r11+28h] ; +0x1fc, 0x18005aeac mov rbp, [r11+30h] ; +0x200, 0x18005aeb0 movaps xmm8, xmmword ptr [r11-30h] ; +0x204, 0x18005aeb4 movaps xmm9, xmmword ptr [r11-40h] ; +0x209, 0x18005aeb9 movaps xmm7, [rsp+88h+var_38] ; +0x20e, 0x18005aebe mov rsp, r11 ; +0x213, 0x18005aec3 pop r14 ; +0x216, 0x18005aec6 pop rdi ; +0x218, 0x18005aec8 pop rsi ; +0x219, 0x18005aec9 retn ; +0x21a, 0x18005aeca