{"type": "func", "start": 4209904, "end": 4209946, "name": "GJItemIcon::darkenStoreItem", "pseudocode": "// \n// GJItemIcon::darkenStoreItem from 0x403cf0 to 0x403d1a (42 bytes)\n// \n// 4 xrefs:\n// > GJItemIcon::changeToLockedState @ 0x403e42\n// > GJGarageLayer::setupSpecialPage @ 0x4060f0\n// > GJShopLayer::didPurchaseItem @ 0x4e1946\n// > GJShopLayer::init @ 0x4e3ac8\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\nvoid GJItemIcon::darkenStoreItem(GJItemIcon *a1, ShopType a2)\n{\n  int v3; // r0\n  int v4; // r2\n  int v5; // [sp+4h] [bp-4h]\n\n  HIBYTE(v5) = HIBYTE(a2);\n  *(cocos2d::ccColor3B *)&v3 = GJItemIcon::unlockedColorForType(a2);\n  LOWORD(v5) = v3;\n  BYTE2(v5) = BYTE2(v3);\n  GJItemIcon::darkenStoreItem((int)a1, v5, v4);\n}", "assembly": "; \n; GJItemIcon::darkenStoreItem from 0x403cf0 to 0x403d1a (42 bytes)\n; \n; 4 xrefs:\n; > GJItemIcon::changeToLockedState @ 0x403e42\n; > GJGarageLayer::setupSpecialPage @ 0x4060f0\n; > GJShopLayer::didPurchaseItem @ 0x4e1946\n; > GJShopLayer::init @ 0x4e3ac8\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            {R0,R1,R4,LR}                                          ; +0x0, 0x403cf0\nMOV             R4, R0                                                 ; +0x2, 0x403cf2\nMOV             R0, R1; this                                           ; +0x4, 0x403cf4\nBL              _ZN10GJItemIcon20unlockedColorForTypeEi; GJItemIcon::unlockedColorForType(int) ; +0x6, 0x403cf6\nSTRB.W          R0, [SP,#8+var_4]                                      ; +0xa, 0x403cfa\nUBFX.W          R3, R0, #8, #8                                         ; +0xe, 0x403cfe\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x12, 0x403d02\nSTRB.W          R3, [SP,#8+var_4+1]                                    ; +0x16, 0x403d06\nSTRB.W          R0, [SP,#8+var_4+2]                                    ; +0x1a, 0x403d0a\nMOV             R0, R4                                                 ; +0x1e, 0x403d0e\nLDR             R1, [SP,#8+var_4]                                      ; +0x20, 0x403d10\nBL              _ZN10GJItemIcon15darkenStoreItemEN7cocos2d10_ccColor3BE; GJItemIcon::darkenStoreItem(cocos2d::_ccColor3B) ; +0x22, 0x403d12\nADD             SP, SP, #8                                             ; +0x26, 0x403d16\nPOP             {R4,PC}                                                ; +0x28, 0x403d18", "xrefs": ["GJItemIcon::changeToLockedState @ 0x403e42", "GJGarageLayer::setupSpecialPage @ 0x4060f0", "GJShopLayer::didPurchaseItem @ 0x4e1946", "GJShopLayer::init @ 0x4e3ac8"], "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"}