{"type": "func", "start": 5372385216, "end": 5372385600, "name": "GJGarageLayer::onPaint", "pseudocode": "// \n// GJGarageLayer::onPaint from 0x1403817c0 to 0x140381940 (384 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::init @ 0x14037c608\n// > <???> @ 0x140922940\n// > <???> @ 0x14092294c\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::onPaint(__int64 a1)\n{\n  _QWORD *v2; // rbx\n  __int64 v3; // rax\n  __int64 (__fastcall *v4)(__int64); // rdx\n  __int64 result; // rax\n  __int64 v6; // rcx\n\n  v2 = operator new(0x2E0u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *v2 = &CharacterColorPage::`vftable';\n  v2[40] = &CharacterColorPage::`vftable';\n  v2[41] = &CharacterColorPage::`vftable';\n  v2[42] = &CharacterColorPage::`vftable';\n  v2[43] = &CharacterColorPage::`vftable';\n  v2[44] = &CharacterColorPage::`vftable';\n  v2[51] = &CharacterColorPage::`vftable';\n  v2[54] = &CharacterColorPage::`vftable';\n  v2[68] = &CharacterColorPage::`vftable';\n  *((_DWORD *)v2 + 166) = 0;\n  v2[85] = 0;\n  v2[86] = 0;\n  v2[87] = 0;\n  v2[88] = 0;\n  v2[89] = 0;\n  v2[90] = 0;\n  v2[91] = 0;\n  if ( CharacterColorPage::init((__int64)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  v3 = a1 + 448;\n  if ( !a1 )\n    v3 = 0;\n  v2[89] = v3;\n  v2[71] = a1;\n  v4 = *(__int64 (__fastcall **)(__int64))(*v2 + 1064LL);\n  if ( v4 == ChallengesPage::show )\n    result = ChallengesPage::show((__int64)v2);\n  else\n    result = v4((__int64)v2);\n  v6 = *(_QWORD *)(a1 + 560);\n  if ( v6 )\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, 0);\n  return result;\n}", "assembly": "; \n; GJGarageLayer::onPaint from 0x1403817c0 to 0x140381940 (384 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::init @ 0x14037c608\n; > <???> @ 0x140922940\n; > <???> @ 0x14092294c\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, 0x1403817c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1403817c5\npush    rdi                                                            ; +0xa, 0x1403817ca\nsub     rsp, 20h                                                       ; +0xb, 0x1403817cb\nmov     rdi, rcx                                                       ; +0xf, 0x1403817cf\nmov     ecx, 2E0h; Size                                                ; +0x12, 0x1403817d2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x1403817d7\nmov     rbx, rax                                                       ; +0x1c, 0x1403817dc\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1403817df\nmov     rcx, rax                                                       ; +0x24, 0x1403817e4\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x1403817e7\nlea     rax, ??_7CharacterColorPage@@6B@; const CharacterColorPage::`vftable' ; +0x2c, 0x1403817ec\nmov     [rbx], rax                                                     ; +0x33, 0x1403817f3\nlea     rax, ??_7CharacterColorPage@@6B@_0; const CharacterColorPage::`vftable' ; +0x36, 0x1403817f6\nmov     [rbx+140h], rax                                                ; +0x3d, 0x1403817fd\nlea     rax, ??_7CharacterColorPage@@6B@_1; const CharacterColorPage::`vftable' ; +0x44, 0x140381804\nmov     [rbx+148h], rax                                                ; +0x4b, 0x14038180b\nlea     rax, ??_7CharacterColorPage@@6B@_2; const CharacterColorPage::`vftable' ; +0x52, 0x140381812\nmov     [rbx+150h], rax                                                ; +0x59, 0x140381819\nlea     rax, ??_7CharacterColorPage@@6B@_3; const CharacterColorPage::`vftable' ; +0x60, 0x140381820\nmov     [rbx+158h], rax                                                ; +0x67, 0x140381827\nlea     rax, ??_7CharacterColorPage@@6B@_4; const CharacterColorPage::`vftable' ; +0x6e, 0x14038182e\nmov     [rbx+160h], rax                                                ; +0x75, 0x140381835\nlea     rax, ??_7CharacterColorPage@@6B@_5; const CharacterColorPage::`vftable' ; +0x7c, 0x14038183c\nmov     [rbx+198h], rax                                                ; +0x83, 0x140381843\nlea     rax, ??_7CharacterColorPage@@6B@_6; const CharacterColorPage::`vftable' ; +0x8a, 0x14038184a\nmov     [rbx+1B0h], rax                                                ; +0x91, 0x140381851\nlea     rax, ??_7CharacterColorPage@@6B@_7; const CharacterColorPage::`vftable' ; +0x98, 0x140381858\nmov     [rbx+220h], rax                                                ; +0x9f, 0x14038185f\nxor     esi, esi                                                       ; +0xa6, 0x140381866\nmov     [rbx+298h], esi                                                ; +0xa8, 0x140381868\nmov     [rbx+2A8h], rsi                                                ; +0xae, 0x14038186e\nmov     [rbx+2B0h], rsi                                                ; +0xb5, 0x140381875\nmov     [rbx+2B8h], rsi                                                ; +0xbc, 0x14038187c\nmov     [rbx+2C0h], rsi                                                ; +0xc3, 0x140381883\nmov     [rbx+2C8h], rsi                                                ; +0xca, 0x14038188a\nmov     [rbx+2D0h], rsi                                                ; +0xd1, 0x140381891\nmov     [rbx+2D8h], rsi                                                ; +0xd8, 0x140381898\nmov     rax, cs:off_14071CA00                                          ; +0xdf, 0x14038189f\nlea     rcx, CharacterColorPage__init                                  ; +0xe6, 0x1403818a6\ncmp     rax, rcx                                                       ; +0xed, 0x1403818ad\nmov     rcx, rbx                                                       ; +0xf0, 0x1403818b0\njnz     short loc_1403818BC                                            ; +0xf3, 0x1403818b3\ncall    CharacterColorPage__init                                       ; +0xf5, 0x1403818b5\njmp     short loc_1403818BE                                            ; +0xfa, 0x1403818ba\ncall    rax ; CharacterColorPage__init                                 ; +0xfc, 0x1403818bc\nmov     rcx, rbx                                                       ; +0xfe, 0x1403818be\ntest    al, al                                                         ; +0x101, 0x1403818c1\njz      short loc_1403818CD                                            ; +0x103, 0x1403818c3\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x105, 0x1403818c5\njmp     short loc_1403818DB                                            ; +0x10b, 0x1403818cb\nmov     rax, [rbx]                                                     ; +0x10d, 0x1403818cd\nmov     edx, 1                                                         ; +0x110, 0x1403818d0\ncall    qword ptr [rax+8]                                              ; +0x115, 0x1403818d5\nmov     rbx, rsi                                                       ; +0x118, 0x1403818d8\nlea     rax, [rdi+1C0h]                                                ; +0x11b, 0x1403818db\ntest    rdi, rdi                                                       ; +0x122, 0x1403818e2\ncmovz   rax, rsi                                                       ; +0x125, 0x1403818e5\nmov     [rbx+2C8h], rax                                                ; +0x129, 0x1403818e9\nmov     [rbx+238h], rdi                                                ; +0x130, 0x1403818f0\nmov     rax, [rbx]                                                     ; +0x137, 0x1403818f7\nmov     rdx, [rax+428h]                                                ; +0x13a, 0x1403818fa\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 ; +0x141, 0x140381901\nmov     rcx, rbx                                                       ; +0x148, 0x140381908\ncmp     rdx, rax                                                       ; +0x14b, 0x14038190b\njnz     short loc_140381917                                            ; +0x14e, 0x14038190e\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 ; +0x150, 0x140381910\njmp     short loc_140381919                                            ; +0x155, 0x140381915\ncall    rdx                                                            ; +0x157, 0x140381917\nmov     rcx, [rdi+230h]                                                ; +0x159, 0x140381919\ntest    rcx, rcx                                                       ; +0x160, 0x140381920\njz      short loc_140381930                                            ; +0x163, 0x140381923\nmov     rax, [rcx]                                                     ; +0x165, 0x140381925\nxor     edx, edx                                                       ; +0x168, 0x140381928\ncall    qword ptr [rax+150h]                                           ; +0x16a, 0x14038192a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x170, 0x140381930\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x175, 0x140381935\nadd     rsp, 20h                                                       ; +0x17a, 0x14038193a\npop     rdi                                                            ; +0x17e, 0x14038193e\nretn                                                                   ; +0x17f, 0x14038193f", "xrefs": ["GJGarageLayer::init @ 0x14037c608", "<???> @ 0x140922940", "<???> @ 0x14092294c"], "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"}