{"type": "func", "start": 5371301120, "end": 5371301442, "name": "GJGarageLayer::onShards", "pseudocode": "// \n// GJGarageLayer::onShards from 0x140278d00 to 0x140278e42 (322 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::init @ 0x140273df1\n// > <???> @ 0x1406d1028\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=1\nvoid GJGarageLayer::onShards(GJGarageLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  ShardsPage *v4; // rbx\n  __int64 v5; // r8\n  void (__fastcall *show)(ShardsPage *__hidden); // rdx\n\n  v4 = (ShardsPage *)operator new(0x2A0u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ShardsPage_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&ShardsPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&ShardsPage::`vftable';\n  v4->m_pages = nullptr;\n  v4->m_prevButton = nullptr;\n  v4->m_nextButton = nullptr;\n  v4->m_tierSprite = nullptr;\n  v4->m_page = -1;\n  if ( ShardsPage::init(v4) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(ShardsPage *, __int64))v4->~ShardsPage)(v4, 1);\n    v4 = nullptr;\n  }\n  v4->m_scene = a1;\n  show = v4->show;\n  if ( (char *)show == (char *)ChallengesPage::show )\n    ChallengesPage::show((__int64)v4, (__int64)show, v5, v2);\n  else\n    show(v4);\n}", "assembly": "; \n; GJGarageLayer::onShards from 0x140278d00 to 0x140278e42 (322 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::init @ 0x140273df1\n; > <???> @ 0x1406d1028\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     [rsp+arg_8], rbx                                               ; +0x0, 0x140278d00\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140278d05\npush    rdi                                                            ; +0xa, 0x140278d0a\nsub     rsp, 20h                                                       ; +0xb, 0x140278d0b\nmov     rdi, rcx                                                       ; +0xf, 0x140278d0f\nmov     ecx, 2A0h; Size                                                ; +0x12, 0x140278d12\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140278d17\nmov     rbx, rax                                                       ; +0x1c, 0x140278d1c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x140278d1f\nmov     rcx, rax                                                       ; +0x24, 0x140278d24\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x140278d27\nlea     rax, ??_7ShardsPage@@6B@; const ShardsPage::`vftable'          ; +0x2c, 0x140278d2c\nmov     [rbx], rax                                                     ; +0x33, 0x140278d33\nlea     rax, ??_7ShardsPage@@6B@_0; const ShardsPage::`vftable'        ; +0x36, 0x140278d36\nmov     [rbx+140h], rax                                                ; +0x3d, 0x140278d3d\nlea     rax, ??_7ShardsPage@@6B@_1; const ShardsPage::`vftable'        ; +0x44, 0x140278d44\nmov     [rbx+148h], rax                                                ; +0x4b, 0x140278d4b\nlea     rax, ??_7ShardsPage@@6B@_2; const ShardsPage::`vftable'        ; +0x52, 0x140278d52\nmov     [rbx+150h], rax                                                ; +0x59, 0x140278d59\nlea     rax, ??_7ShardsPage@@6B@_3; const ShardsPage::`vftable'        ; +0x60, 0x140278d60\nmov     [rbx+158h], rax                                                ; +0x67, 0x140278d67\nlea     rax, ??_7ShardsPage@@6B@_4; const ShardsPage::`vftable'        ; +0x6e, 0x140278d6e\nmov     [rbx+160h], rax                                                ; +0x75, 0x140278d75\nlea     rax, ??_7ShardsPage@@6B@_5; const ShardsPage::`vftable'        ; +0x7c, 0x140278d7c\nmov     [rbx+198h], rax                                                ; +0x83, 0x140278d83\nlea     rax, ??_7ShardsPage@@6B@_6; const ShardsPage::`vftable'        ; +0x8a, 0x140278d8a\nmov     [rbx+1B0h], rax                                                ; +0x91, 0x140278d91\nxor     esi, esi                                                       ; +0x98, 0x140278d98\nmov     [rbx+278h], rsi                                                ; +0x9a, 0x140278d9a\nmov     [rbx+280h], rsi                                                ; +0xa1, 0x140278da1\nmov     [rbx+288h], rsi                                                ; +0xa8, 0x140278da8\nmov     [rbx+290h], rsi                                                ; +0xaf, 0x140278daf\nmov     dword ptr [rbx+298h], 0FFFFFFFFh                               ; +0xb6, 0x140278db6\nmov     rax, cs:off_14060A660                                          ; +0xc0, 0x140278dc0\nlea     rcx, ShardsPage__init                                          ; +0xc7, 0x140278dc7\ncmp     rax, rcx                                                       ; +0xce, 0x140278dce\nmov     rcx, rbx                                                       ; +0xd1, 0x140278dd1\njnz     short loc_140278DDD                                            ; +0xd4, 0x140278dd4\ncall    ShardsPage__init                                               ; +0xd6, 0x140278dd6\njmp     short loc_140278DDF                                            ; +0xdb, 0x140278ddb\ncall    rax ; ShardsPage__init                                         ; +0xdd, 0x140278ddd\nmov     rcx, rbx                                                       ; +0xdf, 0x140278ddf\ntest    al, al                                                         ; +0xe2, 0x140278de2\njz      short loc_140278DEE                                            ; +0xe4, 0x140278de4\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe6, 0x140278de6\njmp     short loc_140278DFC                                            ; +0xec, 0x140278dec\nmov     rax, [rbx]                                                     ; +0xee, 0x140278dee\nmov     edx, 1                                                         ; +0xf1, 0x140278df1\ncall    qword ptr [rax+8]                                              ; +0xf6, 0x140278df6\nmov     rbx, rsi                                                       ; +0xf9, 0x140278df9\nmov     [rbx+230h], rdi                                                ; +0xfc, 0x140278dfc\nmov     rax, [rbx]                                                     ; +0x103, 0x140278e03\nmov     rdx, [rax+410h]                                                ; +0x106, 0x140278e06\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 ; +0x10d, 0x140278e0d\nmov     rcx, rbx                                                       ; +0x114, 0x140278e14\ncmp     rdx, rax                                                       ; +0x117, 0x140278e17\njnz     short loc_140278E30                                            ; +0x11a, 0x140278e1a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x11c, 0x140278e1c\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x121, 0x140278e21\nadd     rsp, 20h                                                       ; +0x126, 0x140278e26\npop     rdi                                                            ; +0x12a, 0x140278e2a\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 ; +0x12b, 0x140278e2b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x130, 0x140278e30\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x135, 0x140278e35\nadd     rsp, 20h                                                       ; +0x13a, 0x140278e3a\npop     rdi                                                            ; +0x13e, 0x140278e3e\njmp     rdx                                                            ; +0x13f, 0x140278e3f", "xrefs": ["GJGarageLayer::init @ 0x140273df1", "<???> @ 0x1406d1028"], "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"}