; ; GJGarageLayer::getItems from 0x1402767f0 to 0x140276ab8 (712 bytes) ; ; 3 xrefs: ; > GJGarageLayer::setupPage @ 0x1402761e8 ; > GJGarageLayer::getItems_1 @ 0x1402767d0 ; > @ 0x1406d0f8c ; ; 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 rax, rsp ; +0x0, 0x1402767f0 mov [rax+10h], rbx ; +0x3, 0x1402767f3 mov [rax+20h], r9d ; +0x7, 0x1402767f7 push rbp ; +0xb, 0x1402767fb push rsi ; +0xc, 0x1402767fc push rdi ; +0xd, 0x1402767fd push r12 ; +0xe, 0x1402767fe push r13 ; +0x10, 0x140276800 push r14 ; +0x12, 0x140276802 push r15 ; +0x14, 0x140276804 sub rsp, 90h ; +0x16, 0x140276806 movaps xmmword ptr [rax-48h], xmm6 ; +0x1d, 0x14027680d movaps xmmword ptr [rax-58h], xmm7 ; +0x21, 0x140276811 movaps xmmword ptr [rax-68h], xmm8 ; +0x25, 0x140276815 movaps xmmword ptr [rax-78h], xmm9 ; +0x2a, 0x14027681a mov ebx, r8d ; +0x2f, 0x14027681f mov edi, edx ; +0x32, 0x140276822 mov rbp, rcx ; +0x34, 0x140276824 add rcx, 208h ; +0x37, 0x140276827 lea rdx, [rax+20h] ; +0x3e, 0x14027682e call sub_14012CE70 ; +0x42, 0x140276832 mov [rax], ebx ; +0x47, 0x140276837 cmp cs:qword_1406C2ED8, 0 ; +0x49, 0x140276839 jnz short loc_14027686E ; +0x51, 0x140276841 mov ecx, 668h; Size ; +0x53, 0x140276843 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x58, 0x140276848 mov [rsp+0C8h+arg_0], rax ; +0x5d, 0x14027684d mov rcx, rax ; +0x65, 0x140276855 call sub_14017AB00 ; +0x68, 0x140276858 nop ; +0x6d, 0x14027685d mov cs:qword_1406C2ED8, rax ; +0x6e, 0x14027685e mov rdx, [rax] ; +0x75, 0x140276865 mov rcx, rax ; +0x78, 0x140276868 call qword ptr [rdx+48h] ; +0x7b, 0x14027686b mov edx, [rsp+0C8h+arg_18] ; +0x7e, 0x14027686e call GameManager__iconTypeToUnlockType ; +0x85, 0x140276875 mov r13d, eax ; +0x8a, 0x14027687a call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x8d, 0x14027687d mov r14, rax ; +0x93, 0x140276883 mov [rsp+0C8h+arg_0], rax ; +0x96, 0x140276886 lea rcx, aPlayersquare00; "playerSquare_001.png" ; +0x9e, 0x14027688e call cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xa5, 0x140276895 mov [rsp+0C8h+var_98], rax ; +0xab, 0x14027689b mov qword ptr [rbp+228h], 0 ; +0xb0, 0x1402768a0 lea ecx, [rbx+rbx*8] ; +0xbb, 0x1402768ab lea ecx, ds:0[rcx*4] ; +0xbe, 0x1402768ae lea r12d, [rcx+24h] ; +0xc5, 0x1402768b5 cmp edi, r12d ; +0xc9, 0x1402768b9 cmovl r12d, edi ; +0xcc, 0x1402768bc lea esi, [rcx+1] ; +0xd0, 0x1402768c0 cmp esi, r12d ; +0xd3, 0x1402768c3 jg loc_140276A86 ; +0xd6, 0x1402768c6 movss xmm9, cs:dword_140622B08 ; +0xdc, 0x1402768cc movss xmm8, cs:flt_140622C24 ; +0xe5, 0x1402768d5 xchg ax, ax ; +0xee, 0x1402768de lea rbx, GJGarageLayer__onSelect ; +0xf0, 0x1402768e0 mov rcx, cs:qword_1406C2ED8 ; +0xf7, 0x1402768e7 test rcx, rcx ; +0xfe, 0x1402768ee jnz short loc_140276922 ; +0x101, 0x1402768f1 mov ecx, 668h; Size ; +0x103, 0x1402768f3 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x108, 0x1402768f8 mov [rsp+0C8h+var_90], rax ; +0x10d, 0x1402768fd mov rcx, rax ; +0x112, 0x140276902 call sub_14017AB00 ; +0x115, 0x140276905 nop ; +0x11a, 0x14027690a mov cs:qword_1406C2ED8, rax ; +0x11b, 0x14027690b mov rdx, [rax] ; +0x122, 0x140276912 mov rcx, rax ; +0x125, 0x140276915 call qword ptr [rdx+48h] ; +0x128, 0x140276918 mov rcx, cs:qword_1406C2ED8 ; +0x12b, 0x14027691b mov r8d, [rsp+0C8h+arg_18] ; +0x132, 0x140276922 mov edx, esi ; +0x13a, 0x14027692a call GameManager__isIconUnlocked ; +0x13c, 0x14027692c movzx r15d, al ; +0x141, 0x140276931 mov edx, esi ; +0x145, 0x140276935 mov ecx, r13d ; +0x147, 0x140276937 call GJItemIcon__createBrowserItem ; +0x14a, 0x14027693a mov r14, rax ; +0x14f, 0x14027693f test rax, rax ; +0x152, 0x140276942 jz loc_140276A6E ; +0x155, 0x140276945 mov ecx, r13d ; +0x15b, 0x14027694b call GJItemIcon__scaleForType ; +0x15e, 0x14027694e movaps xmm7, xmm0 ; +0x163, 0x140276953 mov rdx, [r14] ; +0x166, 0x140276956 movaps xmm1, xmm0 ; +0x169, 0x140276959 mov rcx, r14 ; +0x16c, 0x14027695c call qword ptr [rdx+0A0h] ; +0x16f, 0x14027695f mov ecx, 208h; Size ; +0x175, 0x140276965 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x17a, 0x14027696a mov [rsp+0C8h+var_88], rax ; +0x17f, 0x14027696f mov rcx, rax ; +0x184, 0x140276974 call CCMenuItemSpriteExtra__CCMenuItemSpriteExtra ; +0x187, 0x140276977 mov rdi, rax ; +0x18c, 0x14027697c test rax, rax ; +0x18f, 0x14027697f jz short loc_1402769B4 ; +0x192, 0x140276982 mov [rsp+0C8h+var_A8], rbx ; +0x194, 0x140276984 mov r9, rbp ; +0x199, 0x140276989 xor r8d, r8d ; +0x19c, 0x14027698c mov rdx, r14 ; +0x19f, 0x14027698f mov rcx, rax ; +0x1a2, 0x140276992 call CCMenuItemSpriteExtra__init ; +0x1a5, 0x140276995 mov rcx, rdi ; +0x1aa, 0x14027699a test al, al ; +0x1ad, 0x14027699d jz short loc_1402769A9 ; +0x1af, 0x14027699f call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1b1, 0x1402769a1 jmp short loc_1402769B6 ; +0x1b7, 0x1402769a7 mov rax, [rdi] ; +0x1b9, 0x1402769a9 mov edx, 1 ; +0x1bc, 0x1402769ac call qword ptr [rax+8] ; +0x1c1, 0x1402769b1 xor edi, edi ; +0x1c4, 0x1402769b4 mov rbx, [rdi] ; +0x1c6, 0x1402769b6 mov rcx, [rsp+0C8h+var_98] ; +0x1c9, 0x1402769b9 mov rax, [rcx] ; +0x1ce, 0x1402769be call qword ptr [rax+130h] ; +0x1d1, 0x1402769c1 mov rdx, rax ; +0x1d7, 0x1402769c7 mov rcx, rdi ; +0x1da, 0x1402769ca call qword ptr [rbx+128h] ; +0x1dd, 0x1402769cd mov rbx, [r14] ; +0x1e3, 0x1402769d3 mov rax, [rdi] ; +0x1e6, 0x1402769d6 mov rcx, rdi ; +0x1e9, 0x1402769d9 call qword ptr [rax+130h] ; +0x1ec, 0x1402769dc movss xmm6, dword ptr [rax+4] ; +0x1f2, 0x1402769e2 mov rax, [rdi] ; +0x1f7, 0x1402769e7 mov rcx, rdi ; +0x1fa, 0x1402769ea call qword ptr [rax+130h] ; +0x1fd, 0x1402769ed mulss xmm6, xmm9 ; +0x203, 0x1402769f3 movss xmm1, dword ptr [rax] ; +0x208, 0x1402769f8 mulss xmm1, xmm9 ; +0x20c, 0x1402769fc movaps xmm2, xmm6 ; +0x211, 0x140276a01 lea rcx, [rsp+0C8h+var_80] ; +0x214, 0x140276a04 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x219, 0x140276a09 mov rdx, rax ; +0x21f, 0x140276a0f mov rcx, r14 ; +0x222, 0x140276a12 call qword ptr [rbx+0B8h] ; +0x225, 0x140276a15 mov rax, [rdi] ; +0x22b, 0x140276a1b mov edx, esi ; +0x22e, 0x140276a1e mov rcx, rdi ; +0x230, 0x140276a20 call qword ptr [rax+40h] ; +0x233, 0x140276a23 mov eax, [rsp+0C8h+arg_18] ; +0x236, 0x140276a26 mov [rdi+200h], eax ; +0x23d, 0x140276a2d mov rdx, rdi ; +0x243, 0x140276a33 mov rbx, [rsp+0C8h+arg_0] ; +0x246, 0x140276a36 mov rcx, rbx ; +0x24e, 0x140276a3e call cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x251, 0x140276a41 cmp esi, [rsp+0C8h+arg_20] ; +0x257, 0x140276a47 jnz short loc_140276A57 ; +0x25e, 0x140276a4e mov [rbp+228h], rdi ; +0x260, 0x140276a50 test r15b, r15b ; +0x267, 0x140276a57 jnz short loc_140276A76 ; +0x26a, 0x140276a5a movaps xmm1, xmm8 ; +0x26c, 0x140276a5c divss xmm1, xmm7 ; +0x270, 0x140276a60 mov rcx, r14 ; +0x274, 0x140276a64 call GJItemIcon__changeToLockedState ; +0x277, 0x140276a67 jmp short loc_140276A76 ; +0x27c, 0x140276a6c mov rbx, [rsp+0C8h+arg_0] ; +0x27e, 0x140276a6e inc esi ; +0x286, 0x140276a76 cmp esi, r12d ; +0x288, 0x140276a78 jle loc_1402768E0 ; +0x28b, 0x140276a7b mov rax, rbx ; +0x291, 0x140276a81 jmp short loc_140276A89 ; +0x294, 0x140276a84 mov rax, r14 ; +0x296, 0x140276a86 lea r11, [rsp+0C8h+var_38] ; +0x299, 0x140276a89 mov rbx, [r11+48h] ; +0x2a1, 0x140276a91 movaps xmm6, xmmword ptr [r11-10h] ; +0x2a5, 0x140276a95 movaps xmm7, [rsp+0C8h+var_58] ; +0x2aa, 0x140276a9a movaps xmm8, xmmword ptr [r11-30h] ; +0x2af, 0x140276a9f movaps xmm9, xmmword ptr [r11-40h] ; +0x2b4, 0x140276aa4 mov rsp, r11 ; +0x2b9, 0x140276aa9 pop r15 ; +0x2bc, 0x140276aac pop r14 ; +0x2be, 0x140276aae pop r13 ; +0x2c0, 0x140276ab0 pop r12 ; +0x2c2, 0x140276ab2 pop rdi ; +0x2c4, 0x140276ab4 pop rsi ; +0x2c5, 0x140276ab5 pop rbp ; +0x2c6, 0x140276ab6 retn ; +0x2c7, 0x140276ab7