{"type": "func", "start": 4298577840, "end": 4298578164, "name": "GJItemIcon::darkenStoreItem", "pseudocode": "// \n// GJItemIcon::darkenStoreItem from 0x1003717b0 to 0x1003718f4 (324 bytes)\n// \n// 11 xrefs:\n// > GJPathPage::init @ 0x1003000f9\n// > GJGarageLayer::setupSpecialPage @ 0x10036d9d1\n// > GJGarageLayer::getItems @ 0x10036dd38\n// > GJItemIcon::darkenStoreItem_1 @ 0x10036e551\n// > GJItemIcon::darkenStoreItem_1 @ 0x10036e55c\n// > GJItemIcon::darkenStoreItem_1 @ 0x10036e567\n// > GJItemIcon::darkenStoreItem_1 @ 0x10036e572\n// > GJItemIcon::darkenStoreItem_1 @ 0x10036e57d\n// > GJItemIcon::darkenStoreItem_1 @ 0x10036e588\n// > GJItemIcon::changeToLockedState @ 0x10036e5c8\n// > ShardsPage::init @ 0x1004c6ab7\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJItemIcon::darkenStoreItem(GJItemIcon *a1, cocos2d::ccColor3B a2)\n{\n  bool m_isIcon; // r15\n  SimplePlayer *m_player; // rbx\n  GJRobotSprite *m_robotSprite; // rdi\n  GJRobotSprite *m_spiderSprite; // rdi\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  unsigned int v8; // r14d\n  __int64 v9; // rax\n\n  m_isIcon = a1->m_isIcon;\n  m_player = (SimplePlayer *)a1->m_player;\n  ((void (__fastcall *)(SimplePlayer *, void *))m_player->setColor)(m_player, &unk_100819EA0);\n  ((void (__fastcall *)(SimplePlayer *, __int64))m_player->setOpacity)(m_player, 120);\n  if ( m_isIcon )\n  {\n    m_player->m_hasGlowOutline = 0;\n    SimplePlayer::updateColors(m_player);\n    SimplePlayer::hideSecondary(m_player);\n    m_robotSprite = m_player->m_robotSprite;\n    if ( m_robotSprite )\n    {\n      GJRobotSprite::updateColor01(m_robotSprite, (cocos2d::ccColor3B)*(unsigned int *)&a2.r);\n      ((void (__fastcall *)(GJRobotSprite *, __int64))m_player->m_robotSprite->setOpacity)(m_player->m_robotSprite, 190);\n      ((void (__fastcall *)(GJRobotSprite *))m_player->m_robotSprite->hideSecondary)(m_player->m_robotSprite);\n    }\n    m_spiderSprite = m_player->m_spiderSprite;\n    if ( m_spiderSprite )\n    {\n      GJRobotSprite::updateColor01(m_spiderSprite, (cocos2d::ccColor3B)*(unsigned int *)&a2.r);\n      ((void (__fastcall *)(GJSpiderSprite *, __int64))m_player->m_spiderSprite->setOpacity)(\n        m_player->m_spiderSprite,\n        190);\n      ((void (__fastcall *)(GJSpiderSprite *))m_player->m_spiderSprite->hideSecondary)(m_player->m_spiderSprite);\n    }\n  }\n  else\n  {\n    v6 = ((__int64 (__fastcall *)(SimplePlayer *))m_player->getChildren)(m_player);\n    if ( v6 )\n    {\n      v7 = v6;\n      if ( (unsigned int)sub_100720070(v6) )\n      {\n        v8 = 0;\n        do\n        {\n          v9 = sub_1007200C0(v7, v8);\n          (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 328LL))(v9, 0);\n          ++v8;\n        }\n        while ( v8 < (unsigned int)sub_100720070(v7) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::darkenStoreItem from 0x1003717b0 to 0x1003718f4 (324 bytes)\n; \n; 11 xrefs:\n; > GJPathPage::init @ 0x1003000f9\n; > GJGarageLayer::setupSpecialPage @ 0x10036d9d1\n; > GJGarageLayer::getItems @ 0x10036dd38\n; > GJItemIcon::darkenStoreItem_1 @ 0x10036e551\n; > GJItemIcon::darkenStoreItem_1 @ 0x10036e55c\n; > GJItemIcon::darkenStoreItem_1 @ 0x10036e567\n; > GJItemIcon::darkenStoreItem_1 @ 0x10036e572\n; > GJItemIcon::darkenStoreItem_1 @ 0x10036e57d\n; > GJItemIcon::darkenStoreItem_1 @ 0x10036e588\n; > GJItemIcon::changeToLockedState @ 0x10036e5c8\n; > ShardsPage::init @ 0x1004c6ab7\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1003717b0\nmov     rbp, rsp                                                       ; +0x1, 0x1003717b1\npush    r15                                                            ; +0x4, 0x1003717b4\npush    r14                                                            ; +0x6, 0x1003717b6\npush    rbx                                                            ; +0x8, 0x1003717b8\npush    rax                                                            ; +0x9, 0x1003717b9\nmov     r14d, esi                                                      ; +0xa, 0x1003717ba\nmovzx   r15d, byte ptr [rdi+26Ch]                                      ; +0xd, 0x1003717bd\nmov     rbx, [rdi+258h]                                                ; +0x15, 0x1003717c5\nmov     rax, [rbx]                                                     ; +0x1c, 0x1003717cc\nlea     rsi, unk_100819EA0                                             ; +0x1f, 0x1003717cf\nmov     rdi, rbx                                                       ; +0x26, 0x1003717d6\ncall    qword ptr [rax+3B0h]                                           ; +0x29, 0x1003717d9\nmov     rax, [rbx]                                                     ; +0x2f, 0x1003717df\nmov     rdi, rbx                                                       ; +0x32, 0x1003717e2\nmov     esi, 78h ; 'x'                                                 ; +0x35, 0x1003717e5\ncall    qword ptr [rax+380h]                                           ; +0x3a, 0x1003717ea\ncmp     r15b, 1                                                        ; +0x40, 0x1003717f0\njnz     loc_100371891                                                  ; +0x44, 0x1003717f4\nmov     byte ptr [rbx+294h], 0                                         ; +0x4a, 0x1003717fa\nmov     rdi, rbx                                                       ; +0x51, 0x100371801\ncall    SimplePlayer__updateColors                                     ; +0x54, 0x100371804\nmov     rdi, rbx                                                       ; +0x59, 0x100371809\ncall    SimplePlayer__hideSecondary                                    ; +0x5c, 0x10037180c\nmov     rdi, [rbx+280h]                                                ; +0x61, 0x100371811\ntest    rdi, rdi                                                       ; +0x68, 0x100371818\njz      short loc_10037184A                                            ; +0x6b, 0x10037181b\nmov     esi, r14d                                                      ; +0x6d, 0x10037181d\ncall    GJRobotSprite__updateColor01                                   ; +0x70, 0x100371820\nmov     rdi, [rbx+280h]                                                ; +0x75, 0x100371825\nmov     rax, [rdi]                                                     ; +0x7c, 0x10037182c\nmov     esi, 0BEh                                                      ; +0x7f, 0x10037182f\ncall    qword ptr [rax+380h]                                           ; +0x84, 0x100371834\nmov     rdi, [rbx+280h]                                                ; +0x8a, 0x10037183a\nmov     rax, [rdi]                                                     ; +0x91, 0x100371841\ncall    qword ptr [rax+4D8h]                                           ; +0x94, 0x100371844\nmov     rdi, [rbx+288h]                                                ; +0x9a, 0x10037184a\ntest    rdi, rdi                                                       ; +0xa1, 0x100371851\njz      loc_1003718E9                                                  ; +0xa4, 0x100371854\nmov     esi, r14d                                                      ; +0xaa, 0x10037185a\ncall    GJRobotSprite__updateColor01                                   ; +0xad, 0x10037185d\nmov     rdi, [rbx+288h]                                                ; +0xb2, 0x100371862\nmov     rax, [rdi]                                                     ; +0xb9, 0x100371869\nmov     esi, 0BEh                                                      ; +0xbc, 0x10037186c\ncall    qword ptr [rax+380h]                                           ; +0xc1, 0x100371871\nmov     rdi, [rbx+288h]                                                ; +0xc7, 0x100371877\nmov     rax, [rdi]                                                     ; +0xce, 0x10037187e\nadd     rsp, 8                                                         ; +0xd1, 0x100371881\npop     rbx                                                            ; +0xd5, 0x100371885\npop     r14                                                            ; +0xd6, 0x100371886\npop     r15                                                            ; +0xd8, 0x100371888\npop     rbp                                                            ; +0xda, 0x10037188a\njmp     qword ptr [rax+4D8h]                                           ; +0xdb, 0x10037188b\nmov     rax, [rbx]                                                     ; +0xe1, 0x100371891\nmov     rdi, rbx                                                       ; +0xe4, 0x100371894\ncall    qword ptr [rax+1D8h]                                           ; +0xe7, 0x100371897\ntest    rax, rax                                                       ; +0xed, 0x10037189d\njz      short loc_1003718E9                                            ; +0xf0, 0x1003718a0\nmov     rbx, rax                                                       ; +0xf2, 0x1003718a2\nmov     rdi, rax                                                       ; +0xf5, 0x1003718a5\ncall    sub_100720070                                                  ; +0xf8, 0x1003718a8\ntest    eax, eax                                                       ; +0xfd, 0x1003718ad\njz      short loc_1003718E9                                            ; +0xff, 0x1003718af\nxor     r14d, r14d                                                     ; +0x101, 0x1003718b1\nnop     word ptr [rax+rax+00000000h]                                   ; +0x104, 0x1003718b4\nmov     rdi, rbx                                                       ; +0x110, 0x1003718c0\nmov     esi, r14d                                                      ; +0x113, 0x1003718c3\ncall    sub_1007200C0                                                  ; +0x116, 0x1003718c6\nmov     rcx, [rax]                                                     ; +0x11b, 0x1003718cb\nmov     rdi, rax                                                       ; +0x11e, 0x1003718ce\nxor     esi, esi                                                       ; +0x121, 0x1003718d1\ncall    qword ptr [rcx+148h]                                           ; +0x123, 0x1003718d3\ninc     r14d                                                           ; +0x129, 0x1003718d9\nmov     rdi, rbx                                                       ; +0x12c, 0x1003718dc\ncall    sub_100720070                                                  ; +0x12f, 0x1003718df\ncmp     r14d, eax                                                      ; +0x134, 0x1003718e4\njb      short loc_1003718C0                                            ; +0x137, 0x1003718e7\nadd     rsp, 8                                                         ; +0x139, 0x1003718e9\npop     rbx                                                            ; +0x13d, 0x1003718ed\npop     r14                                                            ; +0x13e, 0x1003718ee\npop     r15                                                            ; +0x140, 0x1003718f0\npop     rbp                                                            ; +0x142, 0x1003718f2\nretn                                                                   ; +0x143, 0x1003718f3", "xrefs": ["GJPathPage::init @ 0x1003000f9", "GJGarageLayer::setupSpecialPage @ 0x10036d9d1", "GJGarageLayer::getItems @ 0x10036dd38", "GJItemIcon::darkenStoreItem_1 @ 0x10036e551", "GJItemIcon::darkenStoreItem_1 @ 0x10036e55c", "GJItemIcon::darkenStoreItem_1 @ 0x10036e567", "GJItemIcon::darkenStoreItem_1 @ 0x10036e572", "GJItemIcon::darkenStoreItem_1 @ 0x10036e57d", "GJItemIcon::darkenStoreItem_1 @ 0x10036e588", "GJItemIcon::changeToLockedState @ 0x10036e5c8", "ShardsPage::init @ 0x1004c6ab7"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}