{"type": "func", "start": 4298145836, "end": 4298146152, "name": "GJItemIcon::darkenStoreItem", "pseudocode": "// \n// GJItemIcon::darkenStoreItem from 0x10030802c to 0x100308168 (316 bytes)\n// \n// 6 xrefs:\n// > GJGarageLayer::setupSpecialPage @ 0x100305628\n// > GJItemIcon::darkenStoreItem_1 @ 0x100305de4\n// > GJItemIcon::darkenStoreItem_1 @ 0x100305df0\n// > GJItemIcon::changeToLockedState @ 0x100305e18\n// > ShardsPage::init @ 0x1003a2964\n// > GJPathPage::init @ 0x1003b96fc\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  int v2; // w20\n  _BOOL4 m_isIcon; // w21\n  SimplePlayer *m_player; // x19\n  GJRobotSprite *m_robotSprite; // x0\n  GJRobotSprite *m_spiderSprite; // x0\n  __int64 v7; // x0\n  __int64 v8; // x19\n  unsigned int v9; // w20\n  __int64 v10; // x0\n\n  v2 = *(_DWORD *)&a2.r;\n  m_isIcon = a1->m_isIcon;\n  m_player = (SimplePlayer *)a1->m_player;\n  ((void (__fastcall *)(SimplePlayer *, _BYTE *))m_player->setColor)(m_player, algn_100644D16);\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)(v2 & 0xFFFFFF));\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)(v2 & 0xFFFFFF));\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    v7 = ((__int64 (__fastcall *)(SimplePlayer *))m_player->getChildren)(m_player);\n    if ( v7 )\n    {\n      v8 = v7;\n      if ( (unsigned int)sub_10024A36C(v7) )\n      {\n        v9 = 0;\n        do\n        {\n          v10 = sub_10024A388(v8, v9);\n          (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 328LL))(v10, 0);\n          ++v9;\n        }\n        while ( v9 < (unsigned int)sub_10024A36C(v8) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::darkenStoreItem from 0x10030802c to 0x100308168 (316 bytes)\n; \n; 6 xrefs:\n; > GJGarageLayer::setupSpecialPage @ 0x100305628\n; > GJItemIcon::darkenStoreItem_1 @ 0x100305de4\n; > GJItemIcon::darkenStoreItem_1 @ 0x100305df0\n; > GJItemIcon::changeToLockedState @ 0x100305e18\n; > ShardsPage::init @ 0x1003a2964\n; > GJPathPage::init @ 0x1003b96fc\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10030802c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100308030\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100308034\nADD             X29, SP, #0x20                                         ; +0xc, 0x100308038\nMOV             X20, X1                                                ; +0x10, 0x10030803c\nLDRB            W21, [X0,#0x26C]                                       ; +0x14, 0x100308040\nLDR             X19, [X0,#0x258]                                       ; +0x18, 0x100308044\nLDR             X8, [X19]                                              ; +0x1c, 0x100308048\nLDR             X8, [X8,#0x3B0]                                        ; +0x20, 0x10030804c\nADRL            X1, algn_100644D16                                     ; +0x24, 0x100308050\nMOV             X0, X19                                                ; +0x2c, 0x100308058\nBLR             X8                                                     ; +0x30, 0x10030805c\nLDR             X8, [X19]                                              ; +0x34, 0x100308060\nLDR             X8, [X8,#0x380]                                        ; +0x38, 0x100308064\nMOV             X0, X19                                                ; +0x3c, 0x100308068\nMOV             W1, #0x78 ; 'x'                                        ; +0x40, 0x10030806c\nBLR             X8                                                     ; +0x44, 0x100308070\nCMP             W21, #1                                                ; +0x48, 0x100308074\nB.NE            loc_100308104                                          ; +0x4c, 0x100308078\nSTRB            WZR, [X19,#0x294]                                      ; +0x50, 0x10030807c\nMOV             X0, X19                                                ; +0x54, 0x100308080\nBL              SimplePlayer__updateColors                             ; +0x58, 0x100308084\nMOV             X0, X19                                                ; +0x5c, 0x100308088\nBL              SimplePlayer__hideSecondary                            ; +0x60, 0x10030808c\nLDR             X0, [X19,#0x280]                                       ; +0x64, 0x100308090\nCBZ             X0, loc_1003080C4                                      ; +0x68, 0x100308094\nAND             X1, X20, #0xFFFFFF                                     ; +0x6c, 0x100308098\nBL              GJRobotSprite__updateColor01                           ; +0x70, 0x10030809c\nLDR             X0, [X19,#0x280]                                       ; +0x74, 0x1003080a0\nLDR             X8, [X0]                                               ; +0x78, 0x1003080a4\nLDR             X8, [X8,#0x380]                                        ; +0x7c, 0x1003080a8\nMOV             W1, #0xBE                                              ; +0x80, 0x1003080ac\nBLR             X8                                                     ; +0x84, 0x1003080b0\nLDR             X0, [X19,#0x280]                                       ; +0x88, 0x1003080b4\nLDR             X8, [X0]                                               ; +0x8c, 0x1003080b8\nLDR             X8, [X8,#0x4D8]                                        ; +0x90, 0x1003080bc\nBLR             X8                                                     ; +0x94, 0x1003080c0\nLDR             X0, [X19,#0x288]                                       ; +0x98, 0x1003080c4\nCBZ             X0, loc_100308158                                      ; +0x9c, 0x1003080c8\nAND             X1, X20, #0xFFFFFF                                     ; +0xa0, 0x1003080cc\nBL              GJRobotSprite__updateColor01                           ; +0xa4, 0x1003080d0\nLDR             X0, [X19,#0x288]                                       ; +0xa8, 0x1003080d4\nLDR             X8, [X0]                                               ; +0xac, 0x1003080d8\nLDR             X8, [X8,#0x380]                                        ; +0xb0, 0x1003080dc\nMOV             W1, #0xBE                                              ; +0xb4, 0x1003080e0\nBLR             X8                                                     ; +0xb8, 0x1003080e4\nLDR             X0, [X19,#0x288]                                       ; +0xbc, 0x1003080e8\nLDR             X8, [X0]                                               ; +0xc0, 0x1003080ec\nLDR             X1, [X8,#0x4D8]                                        ; +0xc4, 0x1003080f0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc8, 0x1003080f4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xcc, 0x1003080f8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xd0, 0x1003080fc\nBR              X1                                                     ; +0xd4, 0x100308100\nLDR             X8, [X19]                                              ; +0xd8, 0x100308104\nLDR             X8, [X8,#0x1D8]                                        ; +0xdc, 0x100308108\nMOV             X0, X19                                                ; +0xe0, 0x10030810c\nBLR             X8                                                     ; +0xe4, 0x100308110\nCBZ             X0, loc_100308158                                      ; +0xe8, 0x100308114\nMOV             X19, X0                                                ; +0xec, 0x100308118\nBL              sub_10024A36C                                          ; +0xf0, 0x10030811c\nCBZ             W0, loc_100308158                                      ; +0xf4, 0x100308120\nMOV             W20, #0                                                ; +0xf8, 0x100308124\nMOV             X0, X19                                                ; +0xfc, 0x100308128\nMOV             X1, X20                                                ; +0x100, 0x10030812c\nBL              sub_10024A388                                          ; +0x104, 0x100308130\nLDR             X8, [X0]                                               ; +0x108, 0x100308134\nLDR             X8, [X8,#0x148]                                        ; +0x10c, 0x100308138\nMOV             W1, #0                                                 ; +0x110, 0x10030813c\nBLR             X8                                                     ; +0x114, 0x100308140\nADD             W20, W20, #1                                           ; +0x118, 0x100308144\nMOV             X0, X19                                                ; +0x11c, 0x100308148\nBL              sub_10024A36C                                          ; +0x120, 0x10030814c\nCMP             W20, W0                                                ; +0x124, 0x100308150\nB.CC            loc_100308128                                          ; +0x128, 0x100308154\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x12c, 0x100308158\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x130, 0x10030815c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x134, 0x100308160\nRET                                                                    ; +0x138, 0x100308164", "xrefs": ["GJGarageLayer::setupSpecialPage @ 0x100305628", "GJItemIcon::darkenStoreItem_1 @ 0x100305de4", "GJItemIcon::darkenStoreItem_1 @ 0x100305df0", "GJItemIcon::changeToLockedState @ 0x100305e18", "ShardsPage::init @ 0x1003a2964", "GJPathPage::init @ 0x1003b96fc"], "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"}