{"type": "func", "start": 5372384880, "end": 5372385216, "name": "GJGarageLayer::onShards", "pseudocode": "// \n// GJGarageLayer::onShards from 0x140381670 to 0x1403817c0 (336 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::init @ 0x14037c594\n// > <???> @ 0x140922940\n// \n// This function is hookable on this platform (idp: pc, 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 11:31:05 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJGarageLayer::onShards(__int64 a1)\n{\n  _QWORD *v2; // rbx\n  __int64 (__fastcall *v3)(__int64); // rdx\n\n  v2 = operator new(0x2C0u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *v2 = &ShardsPage::`vftable';\n  v2[40] = &ShardsPage::`vftable';\n  v2[41] = &ShardsPage::`vftable';\n  v2[42] = &ShardsPage::`vftable';\n  v2[43] = &ShardsPage::`vftable';\n  v2[44] = &ShardsPage::`vftable';\n  v2[51] = &ShardsPage::`vftable';\n  v2[54] = &ShardsPage::`vftable';\n  v2[68] = &ShardsPage::`vftable';\n  v2[83] = 0;\n  v2[84] = 0;\n  v2[85] = 0;\n  v2[86] = 0;\n  *((_DWORD *)v2 + 174) = -1;\n  if ( (unsigned __int8)ShardsPage::init(v2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  v2[71] = a1;\n  v3 = *(__int64 (__fastcall **)(__int64))(*v2 + 1064LL);\n  if ( v3 == ChallengesPage::show )\n    return ChallengesPage::show((__int64)v2);\n  else\n    return v3((__int64)v2);\n}", "assembly": "; \n; GJGarageLayer::onShards from 0x140381670 to 0x1403817c0 (336 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::init @ 0x14037c594\n; > <???> @ 0x140922940\n; \n; This function is hookable on this platform (idp: pc, 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 11:31:05 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140381670\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140381675\npush    rdi                                                            ; +0xa, 0x14038167a\nsub     rsp, 20h                                                       ; +0xb, 0x14038167b\nmov     rdi, rcx                                                       ; +0xf, 0x14038167f\nmov     ecx, 2C0h; Size                                                ; +0x12, 0x140381682\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140381687\nmov     rbx, rax                                                       ; +0x1c, 0x14038168c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14038168f\nmov     rcx, rax                                                       ; +0x24, 0x140381694\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x140381697\nlea     rax, ??_7ShardsPage@@6B@; const ShardsPage::`vftable'          ; +0x2c, 0x14038169c\nmov     [rbx], rax                                                     ; +0x33, 0x1403816a3\nlea     rax, ??_7ShardsPage@@6B@_0; const ShardsPage::`vftable'        ; +0x36, 0x1403816a6\nmov     [rbx+140h], rax                                                ; +0x3d, 0x1403816ad\nlea     rax, ??_7ShardsPage@@6B@_1; const ShardsPage::`vftable'        ; +0x44, 0x1403816b4\nmov     [rbx+148h], rax                                                ; +0x4b, 0x1403816bb\nlea     rax, ??_7ShardsPage@@6B@_2; const ShardsPage::`vftable'        ; +0x52, 0x1403816c2\nmov     [rbx+150h], rax                                                ; +0x59, 0x1403816c9\nlea     rax, ??_7ShardsPage@@6B@_3; const ShardsPage::`vftable'        ; +0x60, 0x1403816d0\nmov     [rbx+158h], rax                                                ; +0x67, 0x1403816d7\nlea     rax, ??_7ShardsPage@@6B@_4; const ShardsPage::`vftable'        ; +0x6e, 0x1403816de\nmov     [rbx+160h], rax                                                ; +0x75, 0x1403816e5\nlea     rax, ??_7ShardsPage@@6B@_5; const ShardsPage::`vftable'        ; +0x7c, 0x1403816ec\nmov     [rbx+198h], rax                                                ; +0x83, 0x1403816f3\nlea     rax, ??_7ShardsPage@@6B@_6; const ShardsPage::`vftable'        ; +0x8a, 0x1403816fa\nmov     [rbx+1B0h], rax                                                ; +0x91, 0x140381701\nlea     rax, ??_7ShardsPage@@6B@_7; const ShardsPage::`vftable'        ; +0x98, 0x140381708\nmov     [rbx+220h], rax                                                ; +0x9f, 0x14038170f\nxor     esi, esi                                                       ; +0xa6, 0x140381716\nmov     [rbx+298h], rsi                                                ; +0xa8, 0x140381718\nmov     [rbx+2A0h], rsi                                                ; +0xaf, 0x14038171f\nmov     [rbx+2A8h], rsi                                                ; +0xb6, 0x140381726\nmov     [rbx+2B0h], rsi                                                ; +0xbd, 0x14038172d\nmov     dword ptr [rbx+2B8h], 0FFFFFFFFh                               ; +0xc4, 0x140381734\nmov     rax, cs:off_14081B6E8                                          ; +0xce, 0x14038173e\nlea     rcx, ShardsPage__init                                          ; +0xd5, 0x140381745\ncmp     rax, rcx                                                       ; +0xdc, 0x14038174c\nmov     rcx, rbx                                                       ; +0xdf, 0x14038174f\njnz     short loc_14038175B                                            ; +0xe2, 0x140381752\ncall    ShardsPage__init                                               ; +0xe4, 0x140381754\njmp     short loc_14038175D                                            ; +0xe9, 0x140381759\ncall    rax ; ShardsPage__init                                         ; +0xeb, 0x14038175b\nmov     rcx, rbx                                                       ; +0xed, 0x14038175d\ntest    al, al                                                         ; +0xf0, 0x140381760\njz      short loc_14038176C                                            ; +0xf2, 0x140381762\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf4, 0x140381764\njmp     short loc_14038177A                                            ; +0xfa, 0x14038176a\nmov     rax, [rbx]                                                     ; +0xfc, 0x14038176c\nmov     edx, 1                                                         ; +0xff, 0x14038176f\ncall    qword ptr [rax+8]                                              ; +0x104, 0x140381774\nmov     rbx, rsi                                                       ; +0x107, 0x140381777\nmov     [rbx+238h], rdi                                                ; +0x10a, 0x14038177a\nmov     rax, [rbx]                                                     ; +0x111, 0x140381781\nmov     rdx, [rax+428h]                                                ; +0x114, 0x140381784\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 ; +0x11b, 0x14038178b\nmov     rcx, rbx                                                       ; +0x122, 0x140381792\ncmp     rdx, rax                                                       ; +0x125, 0x140381795\njnz     short loc_1403817AE                                            ; +0x128, 0x140381798\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12a, 0x14038179a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x12f, 0x14038179f\nadd     rsp, 20h                                                       ; +0x134, 0x1403817a4\npop     rdi                                                            ; +0x138, 0x1403817a8\njmp     ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x139, 0x1403817a9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x13e, 0x1403817ae\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x143, 0x1403817b3\nadd     rsp, 20h                                                       ; +0x148, 0x1403817b8\npop     rdi                                                            ; +0x14c, 0x1403817bc\njmp     rdx                                                            ; +0x14d, 0x1403817bd", "xrefs": ["GJGarageLayer::init @ 0x14037c594", "<???> @ 0x140922940"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}