{"type": "func", "start": 5372074016, "end": 5372074353, "name": "MenuLayer::onAchievements", "pseudocode": "// \n// MenuLayer::onAchievements from 0x140335820 to 0x140335971 (337 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x14033408b\n// > <???> @ 0x1406d5198\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=2\nvoid MenuLayer::onAchievements(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  void *v3; // rbx\n  void (*v4)(GJDropDownLayer *, bool); // r8\n\n  v3 = operator new(0x288u);\n  GJDropDownLayer::GJDropDownLayer((GJDropDownLayer *)v3);\n  *(_QWORD *)v3 = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 40) = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 41) = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 42) = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 43) = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 44) = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 51) = &AchievementsLayer::`vftable';\n  *((_QWORD *)v3 + 54) = &AchievementsLayer::`vftable';\n  *((_DWORD *)v3 + 152) = 0;\n  *((_QWORD *)v3 + 77) = 0;\n  *((_QWORD *)v3 + 78) = 0;\n  *((_QWORD *)v3 + 79) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v3 + 80);\n  if ( GJDropDownLayer::init((GJDropDownLayer *)v3, \"Achievements\", 220.0, 0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n  }\n  else\n  {\n    (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n    v3 = nullptr;\n  }\n  a1->addChild_0(a1, (cocos2d::CCNode *)v3, 100);\n  v4 = *(void (**)(GJDropDownLayer *, bool))(*(_QWORD *)v3 + 1064LL);\n  if ( v4 == GJDropDownLayer::showLayer )\n    GJDropDownLayer::showLayer((GJDropDownLayer *)v3, 0);\n  else\n    v4((GJDropDownLayer *)v3, 0);\n}", "assembly": "; \n; MenuLayer::onAchievements from 0x140335820 to 0x140335971 (337 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x14033408b\n; > <???> @ 0x1406d5198\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, 0x140335820\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140335825\npush    rdi                                                            ; +0xa, 0x14033582a\nsub     rsp, 20h                                                       ; +0xb, 0x14033582b\nmov     rdi, rcx                                                       ; +0xf, 0x14033582f\nmov     ecx, 288h; Size                                                ; +0x12, 0x140335832\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x140335837\nmov     rbx, rax                                                       ; +0x1c, 0x14033583c\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x14033583f\nmov     rcx, rax                                                       ; +0x24, 0x140335844\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x27, 0x140335847\nnop                                                                    ; +0x2c, 0x14033584c\nlea     rax, ??_7AchievementsLayer@@6B@; const AchievementsLayer::`vftable' ; +0x2d, 0x14033584d\nmov     [rbx], rax                                                     ; +0x34, 0x140335854\nlea     rax, ??_7AchievementsLayer@@6B@_0; const AchievementsLayer::`vftable' ; +0x37, 0x140335857\nmov     [rbx+140h], rax                                                ; +0x3e, 0x14033585e\nlea     rax, ??_7AchievementsLayer@@6B@_1; const AchievementsLayer::`vftable' ; +0x45, 0x140335865\nmov     [rbx+148h], rax                                                ; +0x4c, 0x14033586c\nlea     rax, ??_7AchievementsLayer@@6B@_2; const AchievementsLayer::`vftable' ; +0x53, 0x140335873\nmov     [rbx+150h], rax                                                ; +0x5a, 0x14033587a\nlea     rax, ??_7AchievementsLayer@@6B@_3; const AchievementsLayer::`vftable' ; +0x61, 0x140335881\nmov     [rbx+158h], rax                                                ; +0x68, 0x140335888\nlea     rax, ??_7AchievementsLayer@@6B@_4; const AchievementsLayer::`vftable' ; +0x6f, 0x14033588f\nmov     [rbx+160h], rax                                                ; +0x76, 0x140335896\nlea     rax, ??_7AchievementsLayer@@6B@_5; const AchievementsLayer::`vftable' ; +0x7d, 0x14033589d\nmov     [rbx+198h], rax                                                ; +0x84, 0x1403358a4\nlea     rax, ??_7AchievementsLayer@@6B@_6; const AchievementsLayer::`vftable' ; +0x8b, 0x1403358ab\nmov     [rbx+1B0h], rax                                                ; +0x92, 0x1403358b2\nxor     esi, esi                                                       ; +0x99, 0x1403358b9\nmov     [rbx+260h], esi                                                ; +0x9b, 0x1403358bb\nmov     [rbx+268h], rsi                                                ; +0xa1, 0x1403358c1\nmov     [rbx+270h], rsi                                                ; +0xa8, 0x1403358c8\nmov     [rbx+278h], rsi                                                ; +0xaf, 0x1403358cf\nlea     rcx, [rbx+280h]                                                ; +0xb6, 0x1403358d6\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xbd, 0x1403358dd\nnop                                                                    ; +0xc3, 0x1403358e3\nxor     r9d, r9d                                                       ; +0xc4, 0x1403358e4\nmovss   xmm2, cs:dword_1406233F4                                       ; +0xc7, 0x1403358e7\nlea     rdx, aAchievements; \"Achievements\"                             ; +0xcf, 0x1403358ef\nmov     rcx, rbx                                                       ; +0xd6, 0x1403358f6\ncall    GJDropDownLayer__init                                          ; +0xd9, 0x1403358f9\nmov     rcx, rbx                                                       ; +0xde, 0x1403358fe\ntest    al, al                                                         ; +0xe1, 0x140335901\njz      short loc_14033590D                                            ; +0xe3, 0x140335903\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe5, 0x140335905\njmp     short loc_14033591B                                            ; +0xeb, 0x14033590b\nmov     rax, [rbx]                                                     ; +0xed, 0x14033590d\nmov     edx, 1                                                         ; +0xf0, 0x140335910\ncall    qword ptr [rax+8]                                              ; +0xf5, 0x140335915\nmov     rbx, rsi                                                       ; +0xf8, 0x140335918\nmov     rax, [rdi]                                                     ; +0xfb, 0x14033591b\nmov     r8d, 64h ; 'd'                                                 ; +0xfe, 0x14033591e\nmov     rdx, rbx                                                       ; +0x104, 0x140335924\nmov     rcx, rdi                                                       ; +0x107, 0x140335927\ncall    qword ptr [rax+1B8h]                                           ; +0x10a, 0x14033592a\nmov     rax, [rbx]                                                     ; +0x110, 0x140335930\nmov     r8, [rax+428h]                                                 ; +0x113, 0x140335933\nlea     rax, GJDropDownLayer__showLayer                                ; +0x11a, 0x14033593a\nxor     edx, edx                                                       ; +0x121, 0x140335941\nmov     rcx, rbx                                                       ; +0x123, 0x140335943\ncmp     r8, rax                                                        ; +0x126, 0x140335946\njnz     short loc_14033595F                                            ; +0x129, 0x140335949\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12b, 0x14033594b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x130, 0x140335950\nadd     rsp, 20h                                                       ; +0x135, 0x140335955\npop     rdi                                                            ; +0x139, 0x140335959\njmp     GJDropDownLayer__showLayer                                     ; +0x13a, 0x14033595a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x13f, 0x14033595f\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x144, 0x140335964\nadd     rsp, 20h                                                       ; +0x149, 0x140335969\npop     rdi                                                            ; +0x14d, 0x14033596d\njmp     r8                                                             ; +0x14e, 0x14033596e", "xrefs": ["MenuLayer::init @ 0x14033408b", "<???> @ 0x1406d5198"], "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"}