{"type": "func", "start": 5370171904, "end": 5370172136, "name": "CustomSongLayer::onCreateLines", "pseudocode": "// \n// CustomSongLayer::onCreateLines from 0x140165200 to 0x1401652e8 (232 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::init @ 0x14016425a\n// > <???> @ 0x140917e88\n// > <???> @ 0x140917e94\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=3\n__int64 __fastcall CustomSongLayer::onCreateLines(__int64 a1)\n{\n  _QWORD *v2; // rbx\n  __int64 v3; // rcx\n  __int64 v4; // rdi\n  __int64 GuidelinesLayer; // rax\n  cocos2d::CCObject *v6; // rbx\n  void *v8; // [rsp+30h] [rbp+8h]\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  v2 = (_QWORD *)qword_14090BF60;\n  if ( !qword_14090BF60 )\n  {\n    v8 = operator new(0x8A8u);\n    qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n    v2 = (_QWORD *)qword_14090BF60;\n  }\n  v3 = v2[69];\n  if ( v3 )\n    FMOD::ChannelControl::stop(v3);\n  sub_14003EB60(v2 + 137);\n  sub_14003EB60(v2 + 145);\n  sub_14003EB60(v2 + 153);\n  v4 = *(_QWORD *)(a1 + 680);\n  v9 = operator new(0x300u);\n  GuidelinesLayer = CreateGuidelinesLayer::CreateGuidelinesLayer((__int64)v9);\n  v6 = (cocos2d::CCObject *)GuidelinesLayer;\n  if ( GuidelinesLayer )\n  {\n    if ( CreateGuidelinesLayer::init(GuidelinesLayer, v4, 0) )\n    {\n      cocos2d::CCObject::autorelease(v6);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n      v6 = nullptr;\n    }\n  }\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6);\n}", "assembly": "; \n; CustomSongLayer::onCreateLines from 0x140165200 to 0x1401652e8 (232 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::init @ 0x14016425a\n; > <???> @ 0x140917e88\n; > <???> @ 0x140917e94\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, 0x140165200\npush    rdi                                                            ; +0x5, 0x140165205\nsub     rsp, 20h                                                       ; +0x6, 0x140165206\nmov     rdi, rcx                                                       ; +0xa, 0x14016520a\nmov     rbx, cs:qword_14090BF60                                        ; +0xd, 0x14016520d\ntest    rbx, rbx                                                       ; +0x14, 0x140165214\njnz     short loc_14016524B                                            ; +0x17, 0x140165217\nmov     ecx, 8A8h; Size                                                ; +0x19, 0x140165219\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14016521e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x140165223\nmov     rcx, rax                                                       ; +0x28, 0x140165228\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x14016522b\nnop                                                                    ; +0x30, 0x140165230\nmov     cs:qword_14090BF60, rax                                        ; +0x31, 0x140165231\nmov     rcx, [rax]                                                     ; +0x38, 0x140165238\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x14016523b\nmov     rcx, rax                                                       ; +0x3f, 0x14016523f\ncall    rdx                                                            ; +0x42, 0x140165242\nmov     rbx, cs:qword_14090BF60                                        ; +0x44, 0x140165244\nmov     rcx, [rbx+228h]                                                ; +0x4b, 0x14016524b\ntest    rcx, rcx                                                       ; +0x52, 0x140165252\njz      short loc_14016525D                                            ; +0x55, 0x140165255\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x57, 0x140165257\nlea     rcx, [rbx+448h]                                                ; +0x5d, 0x14016525d\ncall    sub_14003EB60                                                  ; +0x64, 0x140165264\nlea     rcx, [rbx+488h]                                                ; +0x69, 0x140165269\ncall    sub_14003EB60                                                  ; +0x70, 0x140165270\nlea     rcx, [rbx+4C8h]                                                ; +0x75, 0x140165275\ncall    sub_14003EB60                                                  ; +0x7c, 0x14016527c\nmov     rdi, [rdi+2A8h]                                                ; +0x81, 0x140165281\nmov     ecx, 300h; Size                                                ; +0x88, 0x140165288\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8d, 0x14016528d\nmov     [rsp+28h+arg_0], rax                                           ; +0x92, 0x140165292\nmov     rcx, rax                                                       ; +0x97, 0x140165297\ncall    CreateGuidelinesLayer__CreateGuidelinesLayer                   ; +0x9a, 0x14016529a\nmov     rbx, rax                                                       ; +0x9f, 0x14016529f\ntest    rax, rax                                                       ; +0xa2, 0x1401652a2\njz      short loc_1401652D1                                            ; +0xa5, 0x1401652a5\nxor     r8d, r8d                                                       ; +0xa7, 0x1401652a7\nmov     rdx, rdi                                                       ; +0xaa, 0x1401652aa\nmov     rcx, rax                                                       ; +0xad, 0x1401652ad\ncall    CreateGuidelinesLayer__init                                    ; +0xb0, 0x1401652b0\nmov     rcx, rbx                                                       ; +0xb5, 0x1401652b5\ntest    al, al                                                         ; +0xb8, 0x1401652b8\njz      short loc_1401652C4                                            ; +0xba, 0x1401652ba\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xbc, 0x1401652bc\njmp     short loc_1401652D1                                            ; +0xc2, 0x1401652c2\nmov     rax, [rbx]                                                     ; +0xc4, 0x1401652c4\nmov     edx, 1                                                         ; +0xc7, 0x1401652c7\ncall    qword ptr [rax+8]                                              ; +0xcc, 0x1401652cc\nxor     ebx, ebx                                                       ; +0xcf, 0x1401652cf\nmov     rax, [rbx]                                                     ; +0xd1, 0x1401652d1\nmov     rcx, rbx                                                       ; +0xd4, 0x1401652d4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd7, 0x1401652d7\nadd     rsp, 20h                                                       ; +0xdc, 0x1401652dc\npop     rdi                                                            ; +0xe0, 0x1401652e0\njmp     qword ptr [rax+428h]                                           ; +0xe1, 0x1401652e1", "xrefs": ["CustomSongLayer::init @ 0x14016425a", "<???> @ 0x140917e88", "<???> @ 0x140917e94"], "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"}