{"type": "func", "start": 5372075024, "end": 5372075301, "name": "MenuLayer::onStats", "pseudocode": "// \n// MenuLayer::onStats from 0x140335c10 to 0x140335d25 (277 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x140334118\n// > <???> @ 0x1406d51c8\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 MenuLayer::onStats(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  GJDropDownLayer *v3; // rbx\n  void (*showLayer)(GJDropDownLayer *, bool); // r8\n\n  v3 = (GJDropDownLayer *)operator new(0x260u);\n  GJDropDownLayer::GJDropDownLayer(v3);\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDropDownLayer_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&StatsLayer::`vftable';\n  v3->cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&StatsLayer::`vftable';\n  if ( GJDropDownLayer::init(v3, \"Stats\", 220.0, 0) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJDropDownLayer *, __int64))v3->~GJDropDownLayer)(v3, 1);\n    v3 = nullptr;\n  }\n  a1->addChild_0(a1, v3, 100);\n  showLayer = (void (*)(GJDropDownLayer *, bool))v3->showLayer;\n  if ( showLayer == GJDropDownLayer::showLayer )\n    GJDropDownLayer::showLayer(v3, 0);\n  else\n    showLayer(v3, 0);\n}", "assembly": "; \n; MenuLayer::onStats from 0x140335c10 to 0x140335d25 (277 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x140334118\n; > <???> @ 0x1406d51c8\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, 0x140335c10\npush    rdi                                                            ; +0x5, 0x140335c15\nsub     rsp, 20h                                                       ; +0x6, 0x140335c16\nmov     rdi, rcx                                                       ; +0xa, 0x140335c1a\nmov     ecx, 260h; Size                                                ; +0xd, 0x140335c1d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x140335c22\nmov     rbx, rax                                                       ; +0x17, 0x140335c27\nmov     [rsp+28h+arg_0], rax                                           ; +0x1a, 0x140335c2a\nmov     rcx, rax                                                       ; +0x1f, 0x140335c2f\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x22, 0x140335c32\nlea     rax, ??_7StatsLayer@@6B@; const StatsLayer::`vftable'          ; +0x27, 0x140335c37\nmov     [rbx], rax                                                     ; +0x2e, 0x140335c3e\nlea     rax, ??_7StatsLayer@@6B@_0; const StatsLayer::`vftable'        ; +0x31, 0x140335c41\nmov     [rbx+140h], rax                                                ; +0x38, 0x140335c48\nlea     rax, ??_7StatsLayer@@6B@_1; const StatsLayer::`vftable'        ; +0x3f, 0x140335c4f\nmov     [rbx+148h], rax                                                ; +0x46, 0x140335c56\nlea     rax, ??_7StatsLayer@@6B@_2; const StatsLayer::`vftable'        ; +0x4d, 0x140335c5d\nmov     [rbx+150h], rax                                                ; +0x54, 0x140335c64\nlea     rax, ??_7StatsLayer@@6B@_3; const StatsLayer::`vftable'        ; +0x5b, 0x140335c6b\nmov     [rbx+158h], rax                                                ; +0x62, 0x140335c72\nlea     rax, ??_7StatsLayer@@6B@_4; const StatsLayer::`vftable'        ; +0x69, 0x140335c79\nmov     [rbx+160h], rax                                                ; +0x70, 0x140335c80\nlea     rax, ??_7StatsLayer@@6B@_5; const StatsLayer::`vftable'        ; +0x77, 0x140335c87\nmov     [rbx+198h], rax                                                ; +0x7e, 0x140335c8e\nlea     rax, ??_7StatsLayer@@6B@_6; const StatsLayer::`vftable'        ; +0x85, 0x140335c95\nmov     [rbx+1B0h], rax                                                ; +0x8c, 0x140335c9c\nxor     r9d, r9d                                                       ; +0x93, 0x140335ca3\nmovss   xmm2, cs:dword_1406233F4                                       ; +0x96, 0x140335ca6\nlea     rdx, aStats; \"Stats\"                                           ; +0x9e, 0x140335cae\nmov     rcx, rbx                                                       ; +0xa5, 0x140335cb5\ncall    GJDropDownLayer__init                                          ; +0xa8, 0x140335cb8\nmov     rcx, rbx                                                       ; +0xad, 0x140335cbd\ntest    al, al                                                         ; +0xb0, 0x140335cc0\njz      short loc_140335CCC                                            ; +0xb2, 0x140335cc2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb4, 0x140335cc4\njmp     short loc_140335CD9                                            ; +0xba, 0x140335cca\nmov     rax, [rbx]                                                     ; +0xbc, 0x140335ccc\nmov     edx, 1                                                         ; +0xbf, 0x140335ccf\ncall    qword ptr [rax+8]                                              ; +0xc4, 0x140335cd4\nxor     ebx, ebx                                                       ; +0xc7, 0x140335cd7\nmov     rax, [rdi]                                                     ; +0xc9, 0x140335cd9\nmov     r8d, 64h ; 'd'                                                 ; +0xcc, 0x140335cdc\nmov     rdx, rbx                                                       ; +0xd2, 0x140335ce2\nmov     rcx, rdi                                                       ; +0xd5, 0x140335ce5\ncall    qword ptr [rax+1B8h]                                           ; +0xd8, 0x140335ce8\nmov     rax, [rbx]                                                     ; +0xde, 0x140335cee\nmov     r8, [rax+428h]                                                 ; +0xe1, 0x140335cf1\nlea     rax, GJDropDownLayer__showLayer                                ; +0xe8, 0x140335cf8\nxor     edx, edx                                                       ; +0xef, 0x140335cff\nmov     rcx, rbx                                                       ; +0xf1, 0x140335d01\ncmp     r8, rax                                                        ; +0xf4, 0x140335d04\njnz     short loc_140335D18                                            ; +0xf7, 0x140335d07\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf9, 0x140335d09\nadd     rsp, 20h                                                       ; +0xfe, 0x140335d0e\npop     rdi                                                            ; +0x102, 0x140335d12\njmp     GJDropDownLayer__showLayer                                     ; +0x103, 0x140335d13\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x108, 0x140335d18\nadd     rsp, 20h                                                       ; +0x10d, 0x140335d1d\npop     rdi                                                            ; +0x111, 0x140335d21\njmp     r8                                                             ; +0x112, 0x140335d22", "xrefs": ["MenuLayer::init @ 0x140334118", "<???> @ 0x1406d51c8"], "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"}