{"type": "func", "start": 5146196, "end": 5146244, "name": "GJChestSprite::init", "pseudocode": "// \n// GJChestSprite::init from 0x4e8654 to 0x4e8684 (48 bytes)\n// \n// 1 xrefs:\n// > GJChestSprite::create @ 0x4e86c8\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\nbool GJChestSprite::init(GJChestSprite *a1, int a2)\n{\n  _BOOL4 v4; // r5\n  GJChestSprite_vtbl *v5; // r3\n\n  v4 = cocos2d::CCSprite::init(a1);\n  if ( v4 )\n  {\n    v5 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    a1->m_chestType = a2;\n    v5->setContentSize(a1, &stru_AC6F98);\n    GJChestSprite::switchToState(a1, Closed, 0);\n  }\n  return v4;\n}", "assembly": "; \n; GJChestSprite::init from 0x4e8654 to 0x4e8684 (48 bytes)\n; \n; 1 xrefs:\n; > GJChestSprite::create @ 0x4e86c8\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-R6,LR}                                             ; +0x0, 0x4e8654\nMOV             R4, R0                                                 ; +0x2, 0x4e8656\nMOV             R6, R1                                                 ; +0x4, 0x4e8658\nBL              _ZN7cocos2d8CCSprite4initEv; cocos2d::CCSprite::init(void) ; +0x6, 0x4e865a\nMOV             R5, R0                                                 ; +0xa, 0x4e865e\nCBZ             R0, loc_4E8680                                         ; +0xc, 0x4e8660\nLDR             R3, [R4]                                               ; +0xe, 0x4e8662\nMOV             R0, R4                                                 ; +0x10, 0x4e8664\nLDR             R1, =(stru_AC6F90 - 0x4E8670)                          ; +0x12, 0x4e8666\nSTR.W           R6, [R4,#0x1FC]                                        ; +0x14, 0x4e8668\nADD             R1, PC; stru_AC6F90                                    ; +0x18, 0x4e866c\nLDR.W           R3, [R3,#0x98]                                         ; +0x1a, 0x4e866e\nADDS            R1, #(stru_AC6F98 - 0xAC6F90)                          ; +0x1e, 0x4e8672\nBLX             R3                                                     ; +0x20, 0x4e8674\nMOV             R0, R4                                                 ; +0x22, 0x4e8676\nMOVS            R1, #2                                                 ; +0x24, 0x4e8678\nMOVS            R2, #0                                                 ; +0x26, 0x4e867a\nBL              _ZN13GJChestSprite13switchToStateE16ChestSpriteStateb; GJChestSprite::switchToState(ChestSpriteState,bool) ; +0x28, 0x4e867c\nMOV             R0, R5                                                 ; +0x2c, 0x4e8680\nPOP             {R4-R6,PC}                                             ; +0x2e, 0x4e8682", "xrefs": ["GJChestSprite::create @ 0x4e86c8"], "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"}