; ; GJItemIcon::darkenStoreItem from 0x14027b340 to 0x14027b569 (553 bytes) ; ; 6 xrefs: ; > GJGarageLayer::setupSpecialPage @ 0x1402770f7 ; > GJItemIcon::darkenStoreItem_1 @ 0x14027b334 ; > GJItemIcon::changeToLockedState @ 0x14027b665 ; > GJShopLayer::init @ 0x1402ab392 ; > ShardsPage::init @ 0x14048c0c9 ; > @ 0x1406d1124 ; ; 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_0], rbx ; +0x0, 0x14027b340 mov [rsp+arg_8], rsi ; +0x5, 0x14027b345 push rdi ; +0xa, 0x14027b34a sub rsp, 20h ; +0xb, 0x14027b34b mov rdi, [rcx+258h] ; +0xf, 0x14027b34f mov rsi, rdx ; +0x16, 0x14027b356 cmp byte ptr [rcx+26Ch], 0 ; +0x19, 0x14027b359 lea rdx, stru_140529AB8 ; +0x20, 0x14027b360 mov rax, [rdi+140h] ; +0x27, 0x14027b367 lea rcx, [rdi+140h] ; +0x2e, 0x14027b36e jz loc_14027B4F7 ; +0x35, 0x14027b375 call qword ptr [rax] ; +0x3b, 0x14027b37b mov rax, [rdi+140h] ; +0x3d, 0x14027b37d lea rcx, [rdi+140h] ; +0x44, 0x14027b384 mov dl, 78h ; 'x' ; +0x4b, 0x14027b38b call qword ptr [rax+28h] ; +0x4d, 0x14027b38d mov rcx, rdi ; +0x50, 0x14027b390 mov byte ptr [rdi+294h], 0 ; +0x53, 0x14027b393 call SimplePlayer__updateColors ; +0x5a, 0x14027b39a mov rcx, [rdi+260h] ; +0x5f, 0x14027b39f xor edx, edx ; +0x66, 0x14027b3a6 mov rax, [rcx] ; +0x68, 0x14027b3a8 call qword ptr [rax+140h] ; +0x6b, 0x14027b3ab mov rcx, [rdi+268h] ; +0x71, 0x14027b3b1 xor edx, edx ; +0x78, 0x14027b3b8 mov rax, [rcx] ; +0x7a, 0x14027b3ba call qword ptr [rax+140h] ; +0x7d, 0x14027b3bd mov rcx, [rdi+278h] ; +0x83, 0x14027b3c3 xor edx, edx ; +0x8a, 0x14027b3ca mov rax, [rcx] ; +0x8c, 0x14027b3cc call qword ptr [rax+140h] ; +0x8f, 0x14027b3cf mov rcx, [rdi+270h] ; +0x95, 0x14027b3d5 xor edx, edx ; +0x9c, 0x14027b3dc mov rax, [rcx] ; +0x9e, 0x14027b3de call qword ptr [rax+140h] ; +0xa1, 0x14027b3e1 mov rcx, [rdi+280h] ; +0xa7, 0x14027b3e7 test rcx, rcx ; +0xae, 0x14027b3ee jz short loc_14027B3FC ; +0xb1, 0x14027b3f1 mov rax, [rcx] ; +0xb3, 0x14027b3f3 call qword ptr [rax+440h] ; +0xb6, 0x14027b3f6 mov rcx, [rdi+280h] ; +0xbc, 0x14027b3fc test rcx, rcx ; +0xc3, 0x14027b403 jz short loc_14027B41A ; +0xc6, 0x14027b406 mov rcx, [rcx+300h] ; +0xc8, 0x14027b408 xor edx, edx ; +0xcf, 0x14027b40f mov rax, [rcx] ; +0xd1, 0x14027b411 call qword ptr [rax+140h] ; +0xd4, 0x14027b414 mov rcx, [rdi+288h] ; +0xda, 0x14027b41a test rcx, rcx ; +0xe1, 0x14027b421 jz short loc_14027B42F ; +0xe4, 0x14027b424 mov rax, [rcx] ; +0xe6, 0x14027b426 call qword ptr [rax+440h] ; +0xe9, 0x14027b429 mov rcx, [rdi+288h] ; +0xef, 0x14027b42f test rcx, rcx ; +0xf6, 0x14027b436 jz short loc_14027B44D ; +0xf9, 0x14027b439 mov rcx, [rcx+300h] ; +0xfb, 0x14027b43b xor edx, edx ; +0x102, 0x14027b442 mov rax, [rcx] ; +0x104, 0x14027b444 call qword ptr [rax+140h] ; +0x107, 0x14027b447 mov rcx, [rdi+280h] ; +0x10d, 0x14027b44d test rcx, rcx ; +0x114, 0x14027b454 jz short loc_14027B498 ; +0x117, 0x14027b457 movzx eax, word ptr [rsi] ; +0x119, 0x14027b459 mov [rcx+2F1h], ax ; +0x11c, 0x14027b45c movzx eax, byte ptr [rsi+2] ; +0x123, 0x14027b463 mov [rcx+2F3h], al ; +0x127, 0x14027b467 call GJRobotSprite__updateColors ; +0x12d, 0x14027b46d mov rcx, [rdi+280h] ; +0x132, 0x14027b472 mov dl, 0BEh ; +0x139, 0x14027b479 add rcx, 140h ; +0x13b, 0x14027b47b mov rax, [rcx] ; +0x142, 0x14027b482 call qword ptr [rax+28h] ; +0x145, 0x14027b485 mov rcx, [rdi+280h] ; +0x148, 0x14027b488 mov rax, [rcx] ; +0x14f, 0x14027b48f call qword ptr [rax+440h] ; +0x152, 0x14027b492 mov rcx, [rdi+288h] ; +0x158, 0x14027b498 test rcx, rcx ; +0x15f, 0x14027b49f jz loc_14027B559 ; +0x162, 0x14027b4a2 movzx eax, word ptr [rsi] ; +0x168, 0x14027b4a8 mov [rcx+2F1h], ax ; +0x16b, 0x14027b4ab movzx eax, byte ptr [rsi+2] ; +0x172, 0x14027b4b2 mov [rcx+2F3h], al ; +0x176, 0x14027b4b6 call GJRobotSprite__updateColors ; +0x17c, 0x14027b4bc mov rcx, [rdi+288h] ; +0x181, 0x14027b4c1 mov dl, 0BEh ; +0x188, 0x14027b4c8 add rcx, 140h ; +0x18a, 0x14027b4ca mov rax, [rcx] ; +0x191, 0x14027b4d1 call qword ptr [rax+28h] ; +0x194, 0x14027b4d4 mov rcx, [rdi+288h] ; +0x197, 0x14027b4d7 mov rax, [rcx] ; +0x19e, 0x14027b4de mov rbx, [rsp+28h+arg_0] ; +0x1a1, 0x14027b4e1 mov rsi, [rsp+28h+arg_8] ; +0x1a6, 0x14027b4e6 add rsp, 20h ; +0x1ab, 0x14027b4eb pop rdi ; +0x1af, 0x14027b4ef jmp qword ptr [rax+440h] ; +0x1b0, 0x14027b4f0 call qword ptr [rax] ; +0x1b7, 0x14027b4f7 mov rax, [rdi+140h] ; +0x1b9, 0x14027b4f9 lea rcx, [rdi+140h] ; +0x1c0, 0x14027b500 mov dl, 78h ; 'x' ; +0x1c7, 0x14027b507 call qword ptr [rax+28h] ; +0x1c9, 0x14027b509 mov rax, [rdi] ; +0x1cc, 0x14027b50c mov rcx, rdi ; +0x1cf, 0x14027b50f call qword ptr [rax+1D0h] ; +0x1d2, 0x14027b512 mov rdi, rax ; +0x1d8, 0x14027b518 test rax, rax ; +0x1db, 0x14027b51b jz short loc_14027B559 ; +0x1de, 0x14027b51e mov rcx, rax ; +0x1e0, 0x14027b520 xor ebx, ebx ; +0x1e3, 0x14027b523 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1e5, 0x14027b525 test eax, eax ; +0x1eb, 0x14027b52b jz short loc_14027B559 ; +0x1ed, 0x14027b52d nop ; +0x1ef, 0x14027b52f mov edx, ebx ; +0x1f0, 0x14027b530 mov rcx, rdi ; +0x1f2, 0x14027b532 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1f5, 0x14027b535 xor edx, edx ; +0x1fb, 0x14027b53b mov rcx, rax ; +0x1fd, 0x14027b53d mov r8, [rax] ; +0x200, 0x14027b540 call qword ptr [r8+140h] ; +0x203, 0x14027b543 mov rcx, rdi ; +0x20a, 0x14027b54a inc ebx ; +0x20d, 0x14027b54d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x20f, 0x14027b54f cmp ebx, eax ; +0x215, 0x14027b555 jb short loc_14027B530 ; +0x217, 0x14027b557 mov rbx, [rsp+28h+arg_0] ; +0x219, 0x14027b559 mov rsi, [rsp+28h+arg_8] ; +0x21e, 0x14027b55e add rsp, 20h ; +0x223, 0x14027b563 pop rdi ; +0x227, 0x14027b567 retn ; +0x228, 0x14027b568