{"type": "func", "start": 8239352, "end": 8239532, "name": "CreatorLayer::onAdventureMap", "pseudocode": "// \n// CreatorLayer::onAdventureMap from 0x7db8f8 to 0x7db9ac (180 bytes)\n// \n// 4 xrefs:\n// > CreatorLayer::dialogClosed @ 0x7db9e8\n// > <???> @ 0x8c020\n// > CreatorLayer::init @ 0x7dd48c\n// > <???> @ 0x1543b08\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:23 +0000\n// \n\n__int64 __fastcall CreatorLayer::onAdventureMap(CreatorLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x20\n  char v4; // [xsp+20h] [xbp+20h] BYREF\n  char v5[13]; // [xsp+21h] [xbp+21h] BYREF\n  __int16 v6; // [xsp+2Eh] [xbp+2Eh]\n  void *v7; // [xsp+30h] [xbp+30h]\n\n  v5[12] = 0;\n  v6 = 0;\n  v7 = nullptr;\n  strcpy(v5, \"mapPromo.pn\");\n  v4 = 24;\n  v2 = GJPromoPopup::create(&v4);\n  if ( (v4 & 1) != 0 )\n    operator delete(v7);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreatorLayer::onAdventureMap from 0x7db8f8 to 0x7db9ac (180 bytes)\n; \n; 4 xrefs:\n; > CreatorLayer::dialogClosed @ 0x7db9e8\n; > <???> @ 0x8c020\n; > CreatorLayer::init @ 0x7dd48c\n; > <???> @ 0x1543b08\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:23 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7db8f8\nADRP            X1, #aMappromoPng@PAGE; \"mapPromo.png\"                 ; +0x4, 0x7db8fc\nMOV             X29, SP                                                ; +0x8, 0x7db900\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x7db904\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7db908\nADD             X1, X1, #aMappromoPng@PAGEOFF; \"mapPromo.png\"          ; +0x14, 0x7db90c\nADD             X2, X29, #0x40+var_20                                  ; +0x18, 0x7db910\nSTR             XZR, [X29,#0x28]                                       ; +0x1c, 0x7db914\nMOV             X0, X2                                                 ; +0x20, 0x7db918\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x24, 0x7db91c\nLDR             X4, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x7db920\nLDR             X3, [X1]; \"mapPromo.png\"                               ; +0x2c, 0x7db924\nLDR             W1, [X1,#(aMappromoPng+8 - 0x1143570)]; \".png\"         ; +0x30, 0x7db928\nLDR             X4, [X4]                                               ; +0x34, 0x7db92c\nSTR             X4, [X29,#0x40+var_8]                                  ; +0x38, 0x7db930\nMOV             W4, #0x18                                              ; +0x3c, 0x7db934\nSTUR            X3, [X29,#0x21]                                        ; +0x40, 0x7db938\nSTRB            W4, [X29,#0x40+var_20]                                 ; +0x44, 0x7db93c\nSTUR            W1, [X29,#0x29]                                        ; +0x48, 0x7db940\nBL              _ZN12GJPromoPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; GJPromoPopup::create(std::string) ; +0x4c, 0x7db944\nMOV             X20, X0                                                ; +0x50, 0x7db948\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0x54, 0x7db94c\nTBZ             W0, #0, loc_7DB95C                                     ; +0x58, 0x7db950\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x5c, 0x7db954\nBL              _ZdlPv; operator delete(void *)                        ; +0x60, 0x7db958\nLDR             X1, [X20]                                              ; +0x64, 0x7db95c\nMOV             X0, X20                                                ; +0x68, 0x7db960\nLDR             X1, [X1,#0x520]                                        ; +0x6c, 0x7db964\nBLR             X1                                                     ; +0x70, 0x7db968\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x74, 0x7db96c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x78, 0x7db970\nLDR             X0, [X19]                                              ; +0x7c, 0x7db974\nCMP             X1, X0                                                 ; +0x80, 0x7db978\nB.NE            loc_7DB98C                                             ; +0x84, 0x7db97c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0x7db980\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0x7db984\nRET                                                                    ; +0x90, 0x7db988\nBL              .__stack_chk_fail                                      ; +0x94, 0x7db98c\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x98, 0x7db990\nMOV             X19, X0                                                ; +0x9c, 0x7db994\nTBZ             W1, #0, loc_7DB9A4                                     ; +0xa0, 0x7db998\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xa4, 0x7db99c\nBL              _ZdlPv; operator delete(void *)                        ; +0xa8, 0x7db9a0\nMOV             X0, X19                                                ; +0xac, 0x7db9a4\nBL              _Unwind_Resume                                         ; +0xb0, 0x7db9a8", "xrefs": ["CreatorLayer::dialogClosed @ 0x7db9e8", "<???> @ 0x8c020", "CreatorLayer::init @ 0x7dd48c", "<???> @ 0x1543b08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}