{"type": "func", "start": 4296825632, "end": 4296825768, "name": "GJChestSprite::create", "pseudocode": "// \n// GJChestSprite::create from 0x1001c5b20 to 0x1001c5ba8 (136 bytes)\n// \n// 15 xrefs:\n// > DailyLevelNode::init @ 0x1001bb500\n// > GauntletNode::generateNode @ 0x1001c1fd0\n// > GauntletNode::generateNode @ 0x1001c2048\n// > GauntletNode::generateNode @ 0x1001c228c\n// > GauntletNode::generateNode @ 0x1001c2308\n// > RewardUnlockLayer::init @ 0x1001c54a0\n// > SecretRewardsLayer::init @ 0x1002e8a58\n// > SecretRewardsLayer::init @ 0x1002e8fb8\n// > SecretRewardsLayer::generateChestItems @ 0x1002eb120\n// > SecretLayer3::init @ 0x10030ea14\n// > SecretLayer3::init @ 0x10030ec38\n// > SecretLayer4::init @ 0x1003546e4\n// > GJPathRewardPopup::init @ 0x1003bbad0\n// > GJPathRewardPopup::init @ 0x1003bbb40\n// > FollowRewardPage::init @ 0x100425024\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 *__fastcall GJChestSprite::create(int a1)\n{\n  char *v2; // x19\n\n  v2 = (char *)operator new(0x260u);\n  cocos2d::CCSprite::CCSprite(v2);\n  *(_QWORD *)v2 = &off_1007B8A48;\n  *((_QWORD *)v2 + 40) = off_1007B8F20;\n  *((_QWORD *)v2 + 43) = off_1007B8FA0;\n  v2[604] = 0;\n  *(_QWORD *)(v2 + 596) = 0;\n  if ( GJChestSprite::init((GJChestSprite *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (GJChestSprite *)v2;\n}", "assembly": "; \n; GJChestSprite::create from 0x1001c5b20 to 0x1001c5ba8 (136 bytes)\n; \n; 15 xrefs:\n; > DailyLevelNode::init @ 0x1001bb500\n; > GauntletNode::generateNode @ 0x1001c1fd0\n; > GauntletNode::generateNode @ 0x1001c2048\n; > GauntletNode::generateNode @ 0x1001c228c\n; > GauntletNode::generateNode @ 0x1001c2308\n; > RewardUnlockLayer::init @ 0x1001c54a0\n; > SecretRewardsLayer::init @ 0x1002e8a58\n; > SecretRewardsLayer::init @ 0x1002e8fb8\n; > SecretRewardsLayer::generateChestItems @ 0x1002eb120\n; > SecretLayer3::init @ 0x10030ea14\n; > SecretLayer3::init @ 0x10030ec38\n; > SecretLayer4::init @ 0x1003546e4\n; > GJPathRewardPopup::init @ 0x1003bbad0\n; > GJPathRewardPopup::init @ 0x1003bbb40\n; > FollowRewardPage::init @ 0x100425024\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001c5b20\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001c5b24\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001c5b28\nMOV             X20, X0                                                ; +0xc, 0x1001c5b2c\nMOV             W0, #0x260; __sz                                       ; +0x10, 0x1001c5b30\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x1001c5b34\nMOV             X19, X0                                                ; +0x18, 0x1001c5b38\nBL              cocos2d__CCSprite__CCSprite                            ; +0x1c, 0x1001c5b3c\nADRL            X8, off_1007B8A48                                      ; +0x20, 0x1001c5b40\nSTR             X8, [X19]                                              ; +0x28, 0x1001c5b48\nADD             X9, X8, #(off_1007B8F20 - 0x1007B8A48)                 ; +0x2c, 0x1001c5b4c\nSTR             X9, [X19,#0x140]                                       ; +0x30, 0x1001c5b50\nADD             X8, X8, #(off_1007B8FA0 - 0x1007B8A48)                 ; +0x34, 0x1001c5b54\nSTR             X8, [X19,#0x158]                                       ; +0x38, 0x1001c5b58\nADD             X8, X19, #0x254                                        ; +0x3c, 0x1001c5b5c\nSTRB            WZR, [X19,#0x25C]                                      ; +0x40, 0x1001c5b60\nSTR             XZR, [X8]                                              ; +0x44, 0x1001c5b64\nMOV             X0, X19                                                ; +0x48, 0x1001c5b68\nMOV             X1, X20                                                ; +0x4c, 0x1001c5b6c\nBL              GJChestSprite__init                                    ; +0x50, 0x1001c5b70\nCBZ             W0, loc_1001C5B84                                      ; +0x54, 0x1001c5b74\nMOV             X0, X19                                                ; +0x58, 0x1001c5b78\nBL              cocos2d__CCObject__autorelease                         ; +0x5c, 0x1001c5b7c\nB               loc_1001C5B98                                          ; +0x60, 0x1001c5b80\nLDR             X8, [X19]                                              ; +0x64, 0x1001c5b84\nLDR             X8, [X8,#0x10]                                         ; +0x68, 0x1001c5b88\nMOV             X0, X19                                                ; +0x6c, 0x1001c5b8c\nBLR             X8                                                     ; +0x70, 0x1001c5b90\nMOV             X19, #0                                                ; +0x74, 0x1001c5b94\nMOV             X0, X19                                                ; +0x78, 0x1001c5b98\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x1001c5b9c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x1001c5ba0\nRET                                                                    ; +0x84, 0x1001c5ba4", "xrefs": ["DailyLevelNode::init @ 0x1001bb500", "GauntletNode::generateNode @ 0x1001c1fd0", "GauntletNode::generateNode @ 0x1001c2048", "GauntletNode::generateNode @ 0x1001c228c", "GauntletNode::generateNode @ 0x1001c2308", "RewardUnlockLayer::init @ 0x1001c54a0", "SecretRewardsLayer::init @ 0x1002e8a58", "SecretRewardsLayer::init @ 0x1002e8fb8", "SecretRewardsLayer::generateChestItems @ 0x1002eb120", "SecretLayer3::init @ 0x10030ea14", "SecretLayer3::init @ 0x10030ec38", "SecretLayer4::init @ 0x1003546e4", "GJPathRewardPopup::init @ 0x1003bbad0", "GJPathRewardPopup::init @ 0x1003bbb40", "FollowRewardPage::init @ 0x100425024"], "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"}