{"type": "func", "start": 9665676, "end": 9665852, "name": "GJChestSprite::create", "pseudocode": "// \n// GJChestSprite::create from 0x937c8c to 0x937d3c (176 bytes)\n// \n// 16 xrefs:\n// > DailyLevelNode::init @ 0x91422c\n// > GauntletNode::generateNode @ 0x91a9b0\n// > GauntletNode::generateNode @ 0x91aa28\n// > GauntletNode::generateNode @ 0x91bbd4\n// > GauntletNode::generateNode @ 0x91bc4c\n// > RewardUnlockLayer::init @ 0x938188\n// > SecretLayer3::init @ 0x9457cc\n// > SecretLayer3::init @ 0x945a00\n// > SecretLayer4::init @ 0x94afa4\n// > FollowRewardPage::init @ 0x96405c\n// > SecretRewardsLayer::init @ 0xa62db0\n// > SecretRewardsLayer::init @ 0xa630c4\n// > SecretRewardsLayer::generateChestItems @ 0xa6a414\n// > GJPathRewardPopup::init @ 0xa7147c\n// > GJPathRewardPopup::init @ 0xa714e8\n// > <???> @ 0xc7ad0\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\nGJChestSprite *GJChestSprite::create(int a1)\n{\n  __int64 v2; // x19\n\n  v2 = operator new(0x260u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);\n  *(_DWORD *)(v2 + 596) = 0;\n  *(_QWORD *)v2 = &off_11B2380;\n  *(_QWORD *)(v2 + 320) = &off_11B2858;\n  *(_QWORD *)(v2 + 344) = &off_11B28D8;\n  *(_DWORD *)(v2 + 600) = 0;\n  *(_BYTE *)(v2 + 604) = 0;\n  if ( GJChestSprite::init((GJChestSprite *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    return (GJChestSprite *)v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJChestSprite::create from 0x937c8c to 0x937d3c (176 bytes)\n; \n; 16 xrefs:\n; > DailyLevelNode::init @ 0x91422c\n; > GauntletNode::generateNode @ 0x91a9b0\n; > GauntletNode::generateNode @ 0x91aa28\n; > GauntletNode::generateNode @ 0x91bbd4\n; > GauntletNode::generateNode @ 0x91bc4c\n; > RewardUnlockLayer::init @ 0x938188\n; > SecretLayer3::init @ 0x9457cc\n; > SecretLayer3::init @ 0x945a00\n; > SecretLayer4::init @ 0x94afa4\n; > FollowRewardPage::init @ 0x96405c\n; > SecretRewardsLayer::init @ 0xa62db0\n; > SecretRewardsLayer::init @ 0xa630c4\n; > SecretRewardsLayer::generateChestItems @ 0xa6a414\n; > GJPathRewardPopup::init @ 0xa7147c\n; > GJPathRewardPopup::init @ 0xa714e8\n; > <???> @ 0xc7ad0\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,#-0x20+var_s0]!                          ; +0x0, 0x937c8c\nMOV             X29, SP                                                ; +0x4, 0x937c90\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x937c94\nMOV             W20, W0                                                ; +0xc, 0x937c98\nMOV             X0, #0x260; unsigned __int64                           ; +0x10, 0x937c9c\nBL              _Znwm; operator new(ulong)                             ; +0x14, 0x937ca0\nMOV             X19, X0                                                ; +0x18, 0x937ca4\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x1c, 0x937ca8\nADRP            X2, #_ZTV13GJChestSprite_ptr@PAGE                      ; +0x20, 0x937cac\nMOV             X0, X19; this                                          ; +0x24, 0x937cb0\nMOV             W1, W20; int                                           ; +0x28, 0x937cb4\nLDR             X2, [X2,#_ZTV13GJChestSprite_ptr@PAGEOFF]; `vtable for'GJChestSprite ... ; +0x2c, 0x937cb8\nSTR             WZR, [X19,#0x254]                                      ; +0x30, 0x937cbc\nADD             X4, X2, #0x10                                          ; +0x34, 0x937cc0\nADD             X3, X2, #0x4E8                                         ; +0x38, 0x937cc4\nSTR             X4, [X19]                                              ; +0x3c, 0x937cc8\nADD             X2, X2, #0x568                                         ; +0x40, 0x937ccc\nSTR             X3, [X19,#0x140]                                       ; +0x44, 0x937cd0\nSTR             X2, [X19,#0x158]                                       ; +0x48, 0x937cd4\nSTR             WZR, [X19,#0x258]                                      ; +0x4c, 0x937cd8\nSTRB            WZR, [X19,#0x25C]                                      ; +0x50, 0x937cdc\nBL              _ZN13GJChestSprite4initEi; GJChestSprite::init(int)    ; +0x54, 0x937ce0\nUXTB            W0, W0                                                 ; +0x58, 0x937ce4\nCBZ             W0, loc_937D04                                         ; +0x5c, 0x937ce8\nMOV             X0, X19; this                                          ; +0x60, 0x937cec\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x64, 0x937cf0\nMOV             X0, X19                                                ; +0x68, 0x937cf4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x6c, 0x937cf8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x70, 0x937cfc\nRET                                                                    ; +0x74, 0x937d00\nLDR             X1, [X19]                                              ; +0x78, 0x937d04\nMOV             X0, X19                                                ; +0x7c, 0x937d08\nMOV             X19, #0                                                ; +0x80, 0x937d0c\nLDR             X1, [X1,#0x10]                                         ; +0x84, 0x937d10\nBLR             X1                                                     ; +0x88, 0x937d14\nMOV             X0, X19                                                ; +0x8c, 0x937d18\nLDP             X19, X20, [SP,#var_s10]                                ; +0x90, 0x937d1c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x94, 0x937d20\nRET                                                                    ; +0x98, 0x937d24\nMOV             X20, X0                                                ; +0x9c, 0x937d28\nMOV             X0, X19; p                                             ; +0xa0, 0x937d2c\nBL              _ZdlPv; operator delete(void *)                        ; +0xa4, 0x937d30\nMOV             X0, X20                                                ; +0xa8, 0x937d34\nBL              _Unwind_Resume                                         ; +0xac, 0x937d38", "xrefs": ["DailyLevelNode::init @ 0x91422c", "GauntletNode::generateNode @ 0x91a9b0", "GauntletNode::generateNode @ 0x91aa28", "GauntletNode::generateNode @ 0x91bbd4", "GauntletNode::generateNode @ 0x91bc4c", "RewardUnlockLayer::init @ 0x938188", "SecretLayer3::init @ 0x9457cc", "SecretLayer3::init @ 0x945a00", "SecretLayer4::init @ 0x94afa4", "FollowRewardPage::init @ 0x96405c", "SecretRewardsLayer::init @ 0xa62db0", "SecretRewardsLayer::init @ 0xa630c4", "SecretRewardsLayer::generateChestItems @ 0xa6a414", "GJPathRewardPopup::init @ 0xa7147c", "GJPathRewardPopup::init @ 0xa714e8", "<???> @ 0xc7ad0"], "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"}