{"type": "func", "start": 7943136, "end": 7943384, "name": "GJItemIcon::changeToLockedState", "pseudocode": "// \n// GJItemIcon::changeToLockedState from 0x7933e0 to 0x7934d8 (248 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::getItems @ 0x796d44\n// > GJGarageLayer::setupSpecialPage @ 0x79742c\n// > ShardsPage::init @ 0x95cdcc\n// > GJPathPage::init @ 0xa70290\n// > <???> @ 0x796b0\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 *v3; // x19\n  cocos2d::CCSprite *m_player; // x0\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21\n  __int64 v6; // x0\n  cocos2d::CCSprite_vtbl *v7; // x3\n  _BYTE v9[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  GJItemIcon::darkenStoreItem(a1, (ShopType)&byte_5);\n  v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_lockGray_001.png\");\n  a1->addChild_0(a1, v3, 10);\n  m_player = a1->m_player;\n  setPosition = v3->setPosition;\n  v6 = (__int64)m_player->getPosition(m_player);\n  setPosition(v3, (const cocos2d::CCPoint *)v6);\n  v3->setScale(v3, a2 * 0.8);\n  v3->setOpacity(v3, 4294967240LL);\n  v7 = v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  memset(v9, 175, 3);\n  v7->setColor(v3, (const cocos2d::ccColor3B *)v9);\n}", "assembly": "; \n; GJItemIcon::changeToLockedState from 0x7933e0 to 0x7934d8 (248 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::getItems @ 0x796d44\n; > GJGarageLayer::setupSpecialPage @ 0x79742c\n; > ShardsPage::init @ 0x95cdcc\n; > GJPathPage::init @ 0xa70290\n; > <???> @ 0x796b0\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             X29, X30, [SP,#var_50]!                                ; +0x0, 0x7933e0\nMOV             W1, #byte_5; this                                      ; +0x4, 0x7933e4\nMOV             X29, SP                                                ; +0x8, 0x7933e8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x7933ec\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7933f0\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0x7933f4\nSTR             Q0, [X29,#0x50+var_20]                                 ; +0x18, 0x7933f8\nMOV             X21, X0                                                ; +0x1c, 0x7933fc\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x793400\nLDR             X2, [X20]                                              ; +0x24, 0x793404\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x28, 0x793408\nBL              _ZN10GJItemIcon15darkenStoreItemE8ShopType; GJItemIcon::darkenStoreItem(ShopType) ; +0x2c, 0x79340c\nADRL            X0, aGjLockgray001P; \"GJ_lockGray_001.png\"             ; +0x30, 0x793410\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x38, 0x793418\nMOV             X19, X0                                                ; +0x3c, 0x79341c\nLDR             X3, [X21]                                              ; +0x40, 0x793420\nMOV             X0, X21                                                ; +0x44, 0x793424\nMOV             W2, #0xA                                               ; +0x48, 0x793428\nMOV             X1, X19                                                ; +0x4c, 0x79342c\nLDR             X3, [X3,#0x1C0]                                        ; +0x50, 0x793430\nBLR             X3                                                     ; +0x54, 0x793434\nLDR             X1, [X21,#0x258]                                       ; +0x58, 0x793438\nLDR             X2, [X19]                                              ; +0x5c, 0x79343c\nMOV             X0, X1                                                 ; +0x60, 0x793440\nLDR             X1, [X1]                                               ; +0x64, 0x793444\nLDR             X21, [X2,#0xB8]                                        ; +0x68, 0x793448\nLDR             X1, [X1,#0xC0]                                         ; +0x6c, 0x79344c\nBLR             X1                                                     ; +0x70, 0x793450\nMOV             X1, X0                                                 ; +0x74, 0x793454\nMOV             X0, X19                                                ; +0x78, 0x793458\nBLR             X21                                                    ; +0x7c, 0x79345c\nLDR             S1, =0x3F4CCCCD                                        ; +0x80, 0x793460\nLDR             X1, [X19]                                              ; +0x84, 0x793464\nLDR             Q0, [X29,#0x50+var_20]                                 ; +0x88, 0x793468\nMOV             X0, X19                                                ; +0x8c, 0x79346c\nFMUL            S0, S0, S1                                             ; +0x90, 0x793470\nLDR             X1, [X1,#0xA0]                                         ; +0x94, 0x793474\nBLR             X1                                                     ; +0x98, 0x793478\nLDR             X2, [X19]                                              ; +0x9c, 0x79347c\nMOV             X0, X19                                                ; +0xa0, 0x793480\nMOV             W1, #0xFFFFFFC8                                        ; +0xa4, 0x793484\nLDR             X2, [X2,#0x380]                                        ; +0xa8, 0x793488\nBLR             X2                                                     ; +0xac, 0x79348c\nLDR             X3, [X19]                                              ; +0xb0, 0x793490\nMOV             W2, #0xFFFFFFAF                                        ; +0xb4, 0x793494\nMOV             X0, X19                                                ; +0xb8, 0x793498\nADD             X1, X29, #0x50+var_10                                  ; +0xbc, 0x79349c\nSTRB            W2, [X29,#0x50+var_10]                                 ; +0xc0, 0x7934a0\nLDR             X3, [X3,#0x3B0]                                        ; +0xc4, 0x7934a4\nSTRB            W2, [X29,#0x50+var_F]                                  ; +0xc8, 0x7934a8\nSTRB            W2, [X29,#0x50+var_E]                                  ; +0xcc, 0x7934ac\nBLR             X3                                                     ; +0xd0, 0x7934b0\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xd4, 0x7934b4\nLDR             X0, [X20]                                              ; +0xd8, 0x7934b8\nCMP             X1, X0                                                 ; +0xdc, 0x7934bc\nB.NE            loc_7934D4                                             ; +0xe0, 0x7934c0\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xe4, 0x7934c4\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xe8, 0x7934c8\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xec, 0x7934cc\nRET                                                                    ; +0xf0, 0x7934d0\nBL              .__stack_chk_fail                                      ; +0xf4, 0x7934d4", "xrefs": ["GJGarageLayer::getItems @ 0x796d44", "GJGarageLayer::setupSpecialPage @ 0x79742c", "ShardsPage::init @ 0x95cdcc", "GJPathPage::init @ 0xa70290", "<???> @ 0x796b0"], "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"}