{"type": "func", "start": 4210216, "end": 4210368, "name": "GJItemIcon::changeToLockedState", "pseudocode": "// \n// GJItemIcon::changeToLockedState from 0x403e28 to 0x403ec0 (152 bytes)\n// \n// 4 xrefs:\n// > GJGarageLayer::getItems @ 0x405d16\n// > GJGarageLayer::setupSpecialPage @ 0x406124\n// > ShardsPage::init @ 0x4fbe86\n// > GJPathPage::init @ 0x58e00a\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::changeToLockedState(GJItemIcon *a1, float a2)\n{\n  cocos2d::CCSprite *v4; // r4\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7\n  const cocos2d::CCPoint *v6; // r0\n  void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2\n  _BYTE v8[4]; // [sp+0h] [bp-Ch] BYREF\n\n  GJItemIcon::darkenStoreItem(a1, (ShopType)&byte_5);\n  v4 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_lockGray_001.png\");\n  a1->addChild_0(a1, v4, 10);\n  setPosition = v4->setPosition;\n  v6 = a1->m_player->getPosition(a1->m_player);\n  setPosition(v4, v6);\n  ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v4->setScale)(v4, a2 * 0.8);\n  v4->setOpacity(v4, 200);\n  setColor = v4->setColor;\n  memset(v8, 175, 3);\n  setColor(v4, (const cocos2d::ccColor3B *)v8);\n}", "assembly": "; \n; GJItemIcon::changeToLockedState from 0x403e28 to 0x403ec0 (152 bytes)\n; \n; 4 xrefs:\n; > GJGarageLayer::getItems @ 0x405d16\n; > GJGarageLayer::setupSpecialPage @ 0x406124\n; > ShardsPage::init @ 0x4fbe86\n; > GJPathPage::init @ 0x58e00a\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            {R4-R7,LR}                                             ; +0x0, 0x403e28\nMOV             R6, R0                                                 ; +0x2, 0x403e2a\nLDR             R5, =(__stack_chk_guard_ptr - 0x403E36)                ; +0x4, 0x403e2c\nVPUSH           {D8}                                                   ; +0x6, 0x403e2e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x403e32\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x403e34\nLDR             R3, [R5]                                               ; +0xe, 0x403e36\nVMOV            S16, R1                                                ; +0x10, 0x403e38\nSUB             SP, SP, #0xC                                           ; +0x14, 0x403e3c\nMOVS            R1, #byte_5; this                                      ; +0x16, 0x403e3e\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x18, 0x403e40\nBL              _ZN10GJItemIcon15darkenStoreItemE8ShopType; GJItemIcon::darkenStoreItem(ShopType) ; +0x1a, 0x403e42\nLDR             R0, =(aGjLockgray001P - 0x403E4C); \"GJ_lockGray_001.png\" ; +0x1e, 0x403e46\nADD             R0, PC; \"GJ_lockGray_001.png\"                          ; +0x20, 0x403e48\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x22, 0x403e4a\nLDR             R3, [R6]                                               ; +0x26, 0x403e4e\nMOVS            R2, #0xA                                               ; +0x28, 0x403e50\nLDR.W           R3, [R3,#0xE0]                                         ; +0x2a, 0x403e52\nMOV             R4, R0                                                 ; +0x2e, 0x403e56\nMOV             R0, R6                                                 ; +0x30, 0x403e58\nMOV             R1, R4                                                 ; +0x32, 0x403e5a\nBLX             R3                                                     ; +0x34, 0x403e5c\nLDR             R3, [R4]                                               ; +0x36, 0x403e5e\nLDR.W           R0, [R6,#0x1FC]                                        ; +0x38, 0x403e60\nLDR             R7, [R3,#0x5C]                                         ; +0x3c, 0x403e64\nLDR             R3, [R0]                                               ; +0x3e, 0x403e66\nLDR             R3, [R3,#0x60]                                         ; +0x40, 0x403e68\nBLX             R3                                                     ; +0x42, 0x403e6a\nMOV             R1, R0                                                 ; +0x44, 0x403e6c\nMOV             R0, R4                                                 ; +0x46, 0x403e6e\nBLX             R7                                                     ; +0x48, 0x403e70\nVLDR            S15, =0.8                                              ; +0x4a, 0x403e72\nLDR             R3, [R4]                                               ; +0x4e, 0x403e76\nMOV             R0, R4                                                 ; +0x50, 0x403e78\nVMUL.F32        S15, S16, S15                                          ; +0x52, 0x403e7a\nLDR             R3, [R3,#0x50]                                         ; +0x56, 0x403e7e\nVMOV            R1, S15                                                ; +0x58, 0x403e80\nBLX             R3                                                     ; +0x5c, 0x403e84\nLDR             R3, [R4]                                               ; +0x5e, 0x403e86\nMOV             R0, R4                                                 ; +0x60, 0x403e88\nMOVS            R1, #0xC8                                              ; +0x62, 0x403e8a\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x64, 0x403e8c\nBLX             R3                                                     ; +0x68, 0x403e90\nLDR             R3, [R4]                                               ; +0x6a, 0x403e92\nMOV             R0, R4                                                 ; +0x6c, 0x403e94\nMOV             R1, SP                                                 ; +0x6e, 0x403e96\nLDR.W           R2, [R3,#0x1D8]                                        ; +0x70, 0x403e98\nMOVS            R3, #0xAF                                              ; +0x74, 0x403e9c\nSTRB.W          R3, [SP,#0xC+var_C]                                    ; +0x76, 0x403e9e\nSTRB.W          R3, [SP,#0xC+var_B]                                    ; +0x7a, 0x403ea2\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x7e, 0x403ea6\nBLX             R2                                                     ; +0x82, 0x403eaa\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x84, 0x403eac\nLDR             R3, [R5]                                               ; +0x86, 0x403eae\nCMP             R2, R3                                                 ; +0x88, 0x403eb0\nBEQ             loc_403EB8                                             ; +0x8a, 0x403eb2\nBLX             __stack_chk_fail                                       ; +0x8c, 0x403eb4\nADD             SP, SP, #0xC                                           ; +0x90, 0x403eb8\nVPOP            {D8}                                                   ; +0x92, 0x403eba\nPOP             {R4-R7,PC}                                             ; +0x96, 0x403ebe", "xrefs": ["GJGarageLayer::getItems @ 0x405d16", "GJGarageLayer::setupSpecialPage @ 0x406124", "ShardsPage::init @ 0x4fbe86", "GJPathPage::init @ 0x58e00a"], "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"}