{"type": "func", "start": 5369356880, "end": 5369357233, "name": "CreatorLayer::onAdventureMap", "pseudocode": "// \n// CreatorLayer::onAdventureMap from 0x14009e250 to 0x14009e3b1 (353 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::dialogClosed @ 0x14009f776\n// > CreatorLayer::init @ 0x14009c535\n// > <???> @ 0x1406c75f0\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\n// Hidden C++ exception states: #wind=2\nvoid CreatorLayer::onAdventureMap(CreatorLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  char *v3; // rbx\n  __int64 v4; // rax\n  __int64 v5; // r8\n  void (__fastcall *v6)(__int64, __int64, __int64, float); // rdx\n  char v7[14]; // [rsp+20h] [rbp-48h] BYREF\n  __int16 v8; // [rsp+2Eh] [rbp-3Ah]\n  __int64 v9; // [rsp+30h] [rbp-38h]\n  __int64 v10; // [rsp+38h] [rbp-30h]\n  char v11[40]; // [rsp+40h] [rbp-28h] BYREF\n\n  v9 = 12;\n  v10 = 15;\n  strcpy(v7, \"mapPromo.png\");\n  v7[13] = 0;\n  v8 = 0;\n  v3 = (char *)operator new(0x298u);\n  FLAlertLayer::FLAlertLayer((FLAlertLayer *)v3);\n  *(_QWORD *)v3 = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 40) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 41) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 42) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 43) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 44) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 51) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v3 + 54) = &GJPromoPopup::`vftable';\n  *(_OWORD *)(v3 + 632) = 0;\n  *((_QWORD *)v3 + 81) = 0;\n  *((_QWORD *)v3 + 82) = 15;\n  v3[632] = 0;\n  v4 = sub_14003BDB0((__int64)v11, (__int64)v7);\n  if ( (unsigned __int8)GJPromoPopup::init(v3, v4) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    v3 = nullptr;\n  }\n  sub_14003A830((__int64)v7);\n  v6 = *(void (__fastcall **)(__int64, __int64, __int64, float))(*(_QWORD *)v3 + 1040LL);\n  if ( v6 == ChallengesPage::show )\n    ChallengesPage::show((__int64)v3, (__int64)v6, v5, v2);\n  else\n    ((void (__fastcall *)(char *))v6)(v3);\n}", "assembly": "; \n; CreatorLayer::onAdventureMap from 0x14009e250 to 0x14009e3b1 (353 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::dialogClosed @ 0x14009f776\n; > CreatorLayer::init @ 0x14009c535\n; > <???> @ 0x1406c75f0\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\nmov     r11, rsp                                                       ; +0x0, 0x14009e250\npush    rbx                                                            ; +0x3, 0x14009e253\nsub     rsp, 60h                                                       ; +0x4, 0x14009e254\nxorps   xmm0, xmm0                                                     ; +0x8, 0x14009e258\nmovups  [rsp+68h+var_48], xmm0                                         ; +0xb, 0x14009e25b\nmov     qword ptr [r11-38h], 0Ch                                       ; +0x10, 0x14009e260\nmov     qword ptr [r11-30h], 0Fh                                       ; +0x18, 0x14009e268\nmovsd   xmm0, cs:qword_140542F38                                       ; +0x20, 0x14009e270\nmovsd   qword ptr [rsp+68h+var_48], xmm0                               ; +0x28, 0x14009e278\nmov     eax, cs:dword_140542F40                                        ; +0x2e, 0x14009e27e\nmov     dword ptr [rsp+68h+var_48+8], eax                              ; +0x34, 0x14009e284\nmov     byte ptr [rsp+68h+var_48+0Ch], 0                               ; +0x38, 0x14009e288\nlea     rax, [r11-48h]                                                 ; +0x3d, 0x14009e28d\nmov     [r11+18h], rax                                                 ; +0x41, 0x14009e291\nmov     ecx, 298h; Size                                                ; +0x45, 0x14009e295\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4a, 0x14009e29a\nmov     rbx, rax                                                       ; +0x4f, 0x14009e29f\nmov     [rsp+68h+arg_18], rax                                          ; +0x52, 0x14009e2a2\nmov     rcx, rax                                                       ; +0x5a, 0x14009e2aa\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x5d, 0x14009e2ad\nlea     rax, ??_7GJPromoPopup@@6B@; const GJPromoPopup::`vftable'      ; +0x62, 0x14009e2b2\nmov     [rbx], rax                                                     ; +0x69, 0x14009e2b9\nlea     rax, ??_7GJPromoPopup@@6B@_0; const GJPromoPopup::`vftable'    ; +0x6c, 0x14009e2bc\nmov     [rbx+140h], rax                                                ; +0x73, 0x14009e2c3\nlea     rax, ??_7GJPromoPopup@@6B@_1; const GJPromoPopup::`vftable'    ; +0x7a, 0x14009e2ca\nmov     [rbx+148h], rax                                                ; +0x81, 0x14009e2d1\nlea     rax, ??_7GJPromoPopup@@6B@_2; const GJPromoPopup::`vftable'    ; +0x88, 0x14009e2d8\nmov     [rbx+150h], rax                                                ; +0x8f, 0x14009e2df\nlea     rax, ??_7GJPromoPopup@@6B@_3; const GJPromoPopup::`vftable'    ; +0x96, 0x14009e2e6\nmov     [rbx+158h], rax                                                ; +0x9d, 0x14009e2ed\nlea     rax, ??_7GJPromoPopup@@6B@_4; const GJPromoPopup::`vftable'    ; +0xa4, 0x14009e2f4\nmov     [rbx+160h], rax                                                ; +0xab, 0x14009e2fb\nlea     rax, ??_7GJPromoPopup@@6B@_5; const GJPromoPopup::`vftable'    ; +0xb2, 0x14009e302\nmov     [rbx+198h], rax                                                ; +0xb9, 0x14009e309\nlea     rax, ??_7GJPromoPopup@@6B@_6; const GJPromoPopup::`vftable'    ; +0xc0, 0x14009e310\nmov     [rbx+1B0h], rax                                                ; +0xc7, 0x14009e317\nxorps   xmm0, xmm0                                                     ; +0xce, 0x14009e31e\nmovups  xmmword ptr [rbx+278h], xmm0                                   ; +0xd1, 0x14009e321\nmov     qword ptr [rbx+288h], 0                                        ; +0xd8, 0x14009e328\nmov     qword ptr [rbx+290h], 0Fh                                      ; +0xe3, 0x14009e333\nmov     byte ptr [rbx+278h], 0                                         ; +0xee, 0x14009e33e\nlea     rdx, [rsp+68h+var_48]                                          ; +0xf5, 0x14009e345\nlea     rcx, [rsp+68h+var_28]                                          ; +0xfa, 0x14009e34a\ncall    sub_14003BDB0                                                  ; +0xff, 0x14009e34f\nmov     rdx, rax                                                       ; +0x104, 0x14009e354\nmov     rcx, rbx                                                       ; +0x107, 0x14009e357\ncall    GJPromoPopup__init                                             ; +0x10a, 0x14009e35a\nmov     rcx, rbx                                                       ; +0x10f, 0x14009e35f\ntest    al, al                                                         ; +0x112, 0x14009e362\njz      short loc_14009E36E                                            ; +0x114, 0x14009e364\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x116, 0x14009e366\njmp     short loc_14009E37B                                            ; +0x11c, 0x14009e36c\nmov     rax, [rbx]                                                     ; +0x11e, 0x14009e36e\nmov     edx, 1                                                         ; +0x121, 0x14009e371\ncall    qword ptr [rax+8]                                              ; +0x126, 0x14009e376\nxor     ebx, ebx                                                       ; +0x129, 0x14009e379\nlea     rcx, [rsp+68h+var_48]                                          ; +0x12b, 0x14009e37b\ncall    sub_14003A830                                                  ; +0x130, 0x14009e380\nmov     rax, [rbx]                                                     ; +0x135, 0x14009e385\nmov     rdx, [rax+410h]                                                ; +0x138, 0x14009e388\nlea     rax, ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x13f, 0x14009e38f\nmov     rcx, rbx                                                       ; +0x146, 0x14009e396\ncmp     rdx, rax                                                       ; +0x149, 0x14009e399\njnz     short loc_14009E3A9                                            ; +0x14c, 0x14009e39c\ncall    ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x14e, 0x14009e39e\nadd     rsp, 60h                                                       ; +0x153, 0x14009e3a3\npop     rbx                                                            ; +0x157, 0x14009e3a7\nretn                                                                   ; +0x158, 0x14009e3a8\ncall    rdx                                                            ; +0x159, 0x14009e3a9\nadd     rsp, 60h                                                       ; +0x15b, 0x14009e3ab\npop     rbx                                                            ; +0x15f, 0x14009e3af\nretn                                                                   ; +0x160, 0x14009e3b0", "xrefs": ["CreatorLayer::dialogClosed @ 0x14009f776", "CreatorLayer::init @ 0x14009c535", "<???> @ 0x1406c75f0"], "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"}