{"type": "func", "start": 5371301456, "end": 5371301826, "name": "GJGarageLayer::onPaint", "pseudocode": "// \n// GJGarageLayer::onPaint from 0x140278e50 to 0x140278fc2 (370 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::init @ 0x140273e62\n// > <???> @ 0x1406d1034\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::onPaint(GJGarageLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  CharacterColorPage *v4; // rbx\n  __int64 v5; // r8\n  CharacterColorDelegate *v6; // rax\n  void (__fastcall *show)(CharacterColorPage *__hidden); // rdx\n  ListButtonBar *m_iconSelection; // rcx\n\n  v4 = (CharacterColorPage *)operator new(0x2C0u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CharacterColorPage_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&CharacterColorPage::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&CharacterColorPage::`vftable';\n  v4->m_colorMode = 0;\n  v4->m_playerObjects = nullptr;\n  v4->m_modeButtons = nullptr;\n  v4->m_colorButtons = nullptr;\n  v4->m_cursors = nullptr;\n  v4->m_delegate = nullptr;\n  v4->m_glowToggler = nullptr;\n  v4->m_glowLabel = nullptr;\n  if ( CharacterColorPage::init(v4) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(CharacterColorPage *, __int64))v4->~CharacterColorPage)(v4, 1);\n    v4 = nullptr;\n  }\n  v6 = &a1->CharacterColorDelegate;\n  if ( !a1 )\n    v6 = nullptr;\n  v4->m_delegate = v6;\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  m_iconSelection = a1->m_iconSelection;\n  if ( m_iconSelection )\n    m_iconSelection->setVisible(m_iconSelection, 0);\n}", "assembly": "; \n; GJGarageLayer::onPaint from 0x140278e50 to 0x140278fc2 (370 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::init @ 0x140273e62\n; > <???> @ 0x1406d1034\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, 0x140278e50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140278e55\npush    rdi                                                            ; +0xa, 0x140278e5a\nsub     rsp, 20h                                                       ; +0xb, 0x140278e5b\nmov     rdi, rcx                                                       ; +0xf, 0x140278e5f\nmov     ecx, 2C0h; Size                                                ; +0x12, 0x140278e62\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140278e67\nmov     rbx, rax                                                       ; +0x1c, 0x140278e6c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x140278e6f\nmov     rcx, rax                                                       ; +0x24, 0x140278e74\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x27, 0x140278e77\nlea     rax, ??_7CharacterColorPage@@6B@; const CharacterColorPage::`vftable' ; +0x2c, 0x140278e7c\nmov     [rbx], rax                                                     ; +0x33, 0x140278e83\nlea     rax, ??_7CharacterColorPage@@6B@_0; const CharacterColorPage::`vftable' ; +0x36, 0x140278e86\nmov     [rbx+140h], rax                                                ; +0x3d, 0x140278e8d\nlea     rax, ??_7CharacterColorPage@@6B@_1; const CharacterColorPage::`vftable' ; +0x44, 0x140278e94\nmov     [rbx+148h], rax                                                ; +0x4b, 0x140278e9b\nlea     rax, ??_7CharacterColorPage@@6B@_2; const CharacterColorPage::`vftable' ; +0x52, 0x140278ea2\nmov     [rbx+150h], rax                                                ; +0x59, 0x140278ea9\nlea     rax, ??_7CharacterColorPage@@6B@_3; const CharacterColorPage::`vftable' ; +0x60, 0x140278eb0\nmov     [rbx+158h], rax                                                ; +0x67, 0x140278eb7\nlea     rax, ??_7CharacterColorPage@@6B@_4; const CharacterColorPage::`vftable' ; +0x6e, 0x140278ebe\nmov     [rbx+160h], rax                                                ; +0x75, 0x140278ec5\nlea     rax, ??_7CharacterColorPage@@6B@_5; const CharacterColorPage::`vftable' ; +0x7c, 0x140278ecc\nmov     [rbx+198h], rax                                                ; +0x83, 0x140278ed3\nlea     rax, ??_7CharacterColorPage@@6B@_6; const CharacterColorPage::`vftable' ; +0x8a, 0x140278eda\nmov     [rbx+1B0h], rax                                                ; +0x91, 0x140278ee1\nxor     esi, esi                                                       ; +0x98, 0x140278ee8\nmov     [rbx+278h], esi                                                ; +0x9a, 0x140278eea\nmov     [rbx+288h], rsi                                                ; +0xa0, 0x140278ef0\nmov     [rbx+290h], rsi                                                ; +0xa7, 0x140278ef7\nmov     [rbx+298h], rsi                                                ; +0xae, 0x140278efe\nmov     [rbx+2A0h], rsi                                                ; +0xb5, 0x140278f05\nmov     [rbx+2A8h], rsi                                                ; +0xbc, 0x140278f0c\nmov     [rbx+2B0h], rsi                                                ; +0xc3, 0x140278f13\nmov     [rbx+2B8h], rsi                                                ; +0xca, 0x140278f1a\nmov     rax, cs:off_14053DF68                                          ; +0xd1, 0x140278f21\nlea     rcx, CharacterColorPage__init                                  ; +0xd8, 0x140278f28\ncmp     rax, rcx                                                       ; +0xdf, 0x140278f2f\nmov     rcx, rbx                                                       ; +0xe2, 0x140278f32\njnz     short loc_140278F3E                                            ; +0xe5, 0x140278f35\ncall    CharacterColorPage__init                                       ; +0xe7, 0x140278f37\njmp     short loc_140278F40                                            ; +0xec, 0x140278f3c\ncall    rax ; CharacterColorPage__init                                 ; +0xee, 0x140278f3e\nmov     rcx, rbx                                                       ; +0xf0, 0x140278f40\ntest    al, al                                                         ; +0xf3, 0x140278f43\njz      short loc_140278F4F                                            ; +0xf5, 0x140278f45\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf7, 0x140278f47\njmp     short loc_140278F5D                                            ; +0xfd, 0x140278f4d\nmov     rax, [rbx]                                                     ; +0xff, 0x140278f4f\nmov     edx, 1                                                         ; +0x102, 0x140278f52\ncall    qword ptr [rax+8]                                              ; +0x107, 0x140278f57\nmov     rbx, rsi                                                       ; +0x10a, 0x140278f5a\nlea     rax, [rdi+1C0h]                                                ; +0x10d, 0x140278f5d\ntest    rdi, rdi                                                       ; +0x114, 0x140278f64\ncmovz   rax, rsi                                                       ; +0x117, 0x140278f67\nmov     [rbx+2A8h], rax                                                ; +0x11b, 0x140278f6b\nmov     [rbx+230h], rdi                                                ; +0x122, 0x140278f72\nmov     rax, [rbx]                                                     ; +0x129, 0x140278f79\nmov     rdx, [rax+410h]                                                ; +0x12c, 0x140278f7c\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 ; +0x133, 0x140278f83\nmov     rcx, rbx                                                       ; +0x13a, 0x140278f8a\ncmp     rdx, rax                                                       ; +0x13d, 0x140278f8d\njnz     short loc_140278F99                                            ; +0x140, 0x140278f90\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 ; +0x142, 0x140278f92\njmp     short loc_140278F9B                                            ; +0x147, 0x140278f97\ncall    rdx                                                            ; +0x149, 0x140278f99\nmov     rcx, [rdi+230h]                                                ; +0x14b, 0x140278f9b\ntest    rcx, rcx                                                       ; +0x152, 0x140278fa2\njz      short loc_140278FB2                                            ; +0x155, 0x140278fa5\nmov     rax, [rcx]                                                     ; +0x157, 0x140278fa7\nxor     edx, edx                                                       ; +0x15a, 0x140278faa\ncall    qword ptr [rax+140h]                                           ; +0x15c, 0x140278fac\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x162, 0x140278fb2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x167, 0x140278fb7\nadd     rsp, 20h                                                       ; +0x16c, 0x140278fbc\npop     rdi                                                            ; +0x170, 0x140278fc0\nretn                                                                   ; +0x171, 0x140278fc1", "xrefs": ["GJGarageLayer::init @ 0x140273e62", "<???> @ 0x1406d1034"], "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"}