; ; GJItemIcon::toggleEnabledState from 0x14027b570 to 0x14027b62c (188 bytes) ; ; 5 xrefs: ; > GJGarageLayer::setupSpecialPage @ 0x140276f82 ; > GJGarageLayer::onToggleItem @ 0x1402779ce ; > @ 0x1406876b0 ; > @ 0x1406876c0 ; > @ 0x1406d1130 ; ; 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 ; sub rsp, 28h ; +0x0, 0x14027b570 cmp byte ptr [rcx+26Ch], 0 ; +0x4, 0x14027b574 jnz loc_14027B627 ; +0xb, 0x14027b57b mov [rsp+28h+arg_8], rbx ; +0x11, 0x14027b581 mov rbx, [rcx+258h] ; +0x16, 0x14027b586 mov [rsp+28h+var_8], rdi ; +0x1d, 0x14027b58d test dl, dl ; +0x22, 0x14027b592 jz short loc_14027B5B4 ; +0x24, 0x14027b594 movzx eax, cs:word_140529AC4 ; +0x26, 0x14027b596 lea rdx, [rsp+28h+arg_10] ; +0x2d, 0x14027b59d mov [rsp+28h+arg_10], ax ; +0x32, 0x14027b5a2 movzx eax, cs:byte_140529AC6 ; +0x37, 0x14027b5a7 mov [rsp+28h+arg_12], al ; +0x3e, 0x14027b5ae jmp short loc_14027B5C5 ; +0x42, 0x14027b5b2 mov [rsp+28h+arg_0], 6464h ; +0x44, 0x14027b5b4 lea rdx, [rsp+28h+arg_0] ; +0x4b, 0x14027b5bb mov [rsp+28h+arg_2], 64h ; 'd' ; +0x50, 0x14027b5c0 lea rcx, [rbx+140h] ; +0x55, 0x14027b5c5 mov rax, [rcx] ; +0x5c, 0x14027b5cc call qword ptr [rax] ; +0x5f, 0x14027b5cf mov rax, [rbx] ; +0x61, 0x14027b5d1 mov rcx, rbx ; +0x64, 0x14027b5d4 call qword ptr [rax+1D0h] ; +0x67, 0x14027b5d7 mov rdi, rax ; +0x6d, 0x14027b5dd test rax, rax ; +0x70, 0x14027b5e0 jz short loc_14027B61D ; +0x73, 0x14027b5e3 mov rcx, rax ; +0x75, 0x14027b5e5 xor ebx, ebx ; +0x78, 0x14027b5e8 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7a, 0x14027b5ea test eax, eax ; +0x80, 0x14027b5f0 jz short loc_14027B61D ; +0x82, 0x14027b5f2 mov edx, ebx ; +0x84, 0x14027b5f4 mov rcx, rdi ; +0x86, 0x14027b5f6 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x14027b5f9 mov dl, 1 ; +0x8f, 0x14027b5ff mov rcx, rax ; +0x91, 0x14027b601 mov r8, [rax] ; +0x94, 0x14027b604 call qword ptr [r8+140h] ; +0x97, 0x14027b607 mov rcx, rdi ; +0x9e, 0x14027b60e inc ebx ; +0xa1, 0x14027b611 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa3, 0x14027b613 cmp ebx, eax ; +0xa9, 0x14027b619 jb short loc_14027B5F4 ; +0xab, 0x14027b61b mov rbx, [rsp+28h+arg_8] ; +0xad, 0x14027b61d mov rdi, [rsp+28h+var_8] ; +0xb2, 0x14027b622 add rsp, 28h ; +0xb7, 0x14027b627 retn ; +0xbb, 0x14027b62b