{"type": "func", "start": 5370169664, "end": 5370169932, "name": "CustomSongLayer::onOptions", "pseudocode": "// \n// CustomSongLayer::onOptions from 0x140164940 to 0x140164a4c (268 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x14016433a\n// > <???> @ 0x140917e40\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:27:26 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CustomSongLayer::onOptions(__int64 a1)\n{\n  __int64 v1; // rbx\n  cocos2d::CCObject *v2; // rdi\n  __int64 (__fastcall *v3)(__int64); // rdx\n\n  v1 = *(_QWORD *)(a1 + 680);\n  v2 = (cocos2d::CCObject *)operator new(0x2B0u);\n  FLAlertLayer::FLAlertLayer((__int64)v2);\n  *(_QWORD *)v2 = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 40) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 41) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 42) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 43) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 44) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 51) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 54) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 68) = &SongOptionsLayer::`vftable';\n  *((_QWORD *)v2 + 83) = 0;\n  if ( (unsigned __int8)SongOptionsLayer::init(v2, v1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  v3 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL);\n  if ( v3 == FLAlertLayer::show )\n    return FLAlertLayer::show((__int64)v2);\n  else\n    return v3((__int64)v2);\n}", "assembly": "; \n; CustomSongLayer::onOptions from 0x140164940 to 0x140164a4c (268 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x14016433a\n; > <???> @ 0x140917e40\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:27:26 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140164940\npush    rdi                                                            ; +0x5, 0x140164945\nsub     rsp, 20h                                                       ; +0x6, 0x140164946\nmov     rbx, [rcx+2A8h]                                                ; +0xa, 0x14016494a\nmov     ecx, 2B0h; Size                                                ; +0x11, 0x140164951\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x140164956\nmov     rdi, rax                                                       ; +0x1b, 0x14016495b\nmov     [rsp+28h+arg_0], rax                                           ; +0x1e, 0x14016495e\nmov     rcx, rax                                                       ; +0x23, 0x140164963\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x26, 0x140164966\nlea     rax, ??_7SongOptionsLayer@@6B@; const SongOptionsLayer::`vftable' ; +0x2b, 0x14016496b\nmov     [rdi], rax                                                     ; +0x32, 0x140164972\nlea     rax, ??_7SongOptionsLayer@@6B@_0; const SongOptionsLayer::`vftable' ; +0x35, 0x140164975\nmov     [rdi+140h], rax                                                ; +0x3c, 0x14016497c\nlea     rax, ??_7SongOptionsLayer@@6B@_1; const SongOptionsLayer::`vftable' ; +0x43, 0x140164983\nmov     [rdi+148h], rax                                                ; +0x4a, 0x14016498a\nlea     rax, ??_7SongOptionsLayer@@6B@_2; const SongOptionsLayer::`vftable' ; +0x51, 0x140164991\nmov     [rdi+150h], rax                                                ; +0x58, 0x140164998\nlea     rax, ??_7SongOptionsLayer@@6B@_3; const SongOptionsLayer::`vftable' ; +0x5f, 0x14016499f\nmov     [rdi+158h], rax                                                ; +0x66, 0x1401649a6\nlea     rax, ??_7SongOptionsLayer@@6B@_4; const SongOptionsLayer::`vftable' ; +0x6d, 0x1401649ad\nmov     [rdi+160h], rax                                                ; +0x74, 0x1401649b4\nlea     rax, ??_7SongOptionsLayer@@6B@_5; const SongOptionsLayer::`vftable' ; +0x7b, 0x1401649bb\nmov     [rdi+198h], rax                                                ; +0x82, 0x1401649c2\nlea     rax, ??_7SongOptionsLayer@@6B@_6; const SongOptionsLayer::`vftable' ; +0x89, 0x1401649c9\nmov     [rdi+1B0h], rax                                                ; +0x90, 0x1401649d0\nlea     rax, ??_7SongOptionsLayer@@6B@_7; const SongOptionsLayer::`vftable' ; +0x97, 0x1401649d7\nmov     [rdi+220h], rax                                                ; +0x9e, 0x1401649de\nmov     qword ptr [rdi+298h], 0                                        ; +0xa5, 0x1401649e5\nmov     rdx, rbx                                                       ; +0xb0, 0x1401649f0\nmov     rcx, rdi                                                       ; +0xb3, 0x1401649f3\ncall    SongOptionsLayer__init                                         ; +0xb6, 0x1401649f6\nmov     rcx, rdi                                                       ; +0xbb, 0x1401649fb\ntest    al, al                                                         ; +0xbe, 0x1401649fe\njz      short loc_140164A0A                                            ; +0xc0, 0x140164a00\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc2, 0x140164a02\njmp     short loc_140164A17                                            ; +0xc8, 0x140164a08\nmov     rax, [rdi]                                                     ; +0xca, 0x140164a0a\nmov     edx, 1                                                         ; +0xcd, 0x140164a0d\ncall    qword ptr [rax+8]                                              ; +0xd2, 0x140164a12\nxor     edi, edi                                                       ; +0xd5, 0x140164a15\nmov     rax, [rdi]                                                     ; +0xd7, 0x140164a17\nmov     rdx, [rax+428h]                                                ; +0xda, 0x140164a1a\nlea     rax, FLAlertLayer__show                                        ; +0xe1, 0x140164a21\nmov     rcx, rdi                                                       ; +0xe8, 0x140164a28\ncmp     rdx, rax                                                       ; +0xeb, 0x140164a2b\njnz     short loc_140164A3F                                            ; +0xee, 0x140164a2e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf0, 0x140164a30\nadd     rsp, 20h                                                       ; +0xf5, 0x140164a35\npop     rdi                                                            ; +0xf9, 0x140164a39\njmp     FLAlertLayer__show                                             ; +0xfa, 0x140164a3a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xff, 0x140164a3f\nadd     rsp, 20h                                                       ; +0x104, 0x140164a44\npop     rdi                                                            ; +0x108, 0x140164a48\njmp     rdx                                                            ; +0x109, 0x140164a49", "xrefs": ["CustomSongLayer::init @ 0x14016433a", "<???> @ 0x140917e40"], "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"}