{"type": "func", "start": 5369512224, "end": 5369512458, "name": "CustomSongLayer::onCreateLines", "pseudocode": "// \n// CustomSongLayer::onCreateLines from 0x1400c4120 to 0x1400c420a (234 bytes)\n// \n// 3 xrefs:\n// > CustomSongLayer::init @ 0x1400c31d7\n// > <???> @ 0x1406c807c\n// > <???> @ 0x1406c8088\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=3\nvoid CustomSongLayer::onCreateLines(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rbx\n  CustomSongDelegate *m_songDelegate; // rdi\n  CreateGuidelinesLayer *GuidelinesLayer; // rax\n  cocos2d::CCObject *v6; // rbx\n  FMODAudioEngine *v7; // [rsp+30h] [rbp+8h]\n  CreateGuidelinesLayer *v8; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v7 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  if ( *(_QWORD *)(v3 + 552) )\n    FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552));\n  sub_14005E0D0((_QWORD *)(v3 + 1064));\n  sub_14005E0D0((_QWORD *)(v3 + 1128));\n  sub_14005E0D0((_QWORD *)(v3 + 1192));\n  m_songDelegate = a1->m_songDelegate;\n  v8 = (CreateGuidelinesLayer *)operator new(0x2E0u);\n  GuidelinesLayer = CreateGuidelinesLayer::CreateGuidelinesLayer(v8);\n  v6 = GuidelinesLayer;\n  if ( GuidelinesLayer )\n  {\n    if ( CreateGuidelinesLayer::init(GuidelinesLayer, m_songDelegate, GuidelineCreator) )\n    {\n      cocos2d::CCObject::autorelease(v6);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCObject *, __int64))v6->~CCObject)(v6, 1);\n      v6 = nullptr;\n    }\n  }\n  ((void (__fastcall *)(cocos2d::CCObject *))v6->__vftable[14].update)(v6);\n}", "assembly": "; \n; CustomSongLayer::onCreateLines from 0x1400c4120 to 0x1400c420a (234 bytes)\n; \n; 3 xrefs:\n; > CustomSongLayer::init @ 0x1400c31d7\n; > <???> @ 0x1406c807c\n; > <???> @ 0x1406c8088\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, 0x1400c4120\npush    rdi                                                            ; +0x5, 0x1400c4125\nsub     rsp, 20h                                                       ; +0x6, 0x1400c4126\nmov     rdi, rcx                                                       ; +0xa, 0x1400c412a\nmov     rbx, cs:qword_1406C2E88                                        ; +0xd, 0x1400c412d\ntest    rbx, rbx                                                       ; +0x14, 0x1400c4134\njnz     short loc_1400C4168                                            ; +0x17, 0x1400c4137\nmov     ecx, 888h; Size                                                ; +0x19, 0x1400c4139\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1400c413e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x1400c4143\nmov     rcx, rax                                                       ; +0x28, 0x1400c4148\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x1400c414b\nnop                                                                    ; +0x30, 0x1400c4150\nmov     cs:qword_1406C2E88, rax                                        ; +0x31, 0x1400c4151\nmov     rdx, [rax]                                                     ; +0x38, 0x1400c4158\nmov     rcx, rax                                                       ; +0x3b, 0x1400c415b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x1400c415e\nmov     rbx, cs:qword_1406C2E88                                        ; +0x41, 0x1400c4161\ncmp     qword ptr [rbx+228h], 0                                        ; +0x48, 0x1400c4168\njz      short loc_1400C417F                                            ; +0x50, 0x1400c4170\nmov     rcx, [rbx+228h]                                                ; +0x52, 0x1400c4172\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x59, 0x1400c4179\nlea     rcx, [rbx+428h]                                                ; +0x5f, 0x1400c417f\ncall    sub_14005E0D0                                                  ; +0x66, 0x1400c4186\nlea     rcx, [rbx+468h]                                                ; +0x6b, 0x1400c418b\ncall    sub_14005E0D0                                                  ; +0x72, 0x1400c4192\nlea     rcx, [rbx+4A8h]                                                ; +0x77, 0x1400c4197\ncall    sub_14005E0D0                                                  ; +0x7e, 0x1400c419e\nmov     rdi, [rdi+290h]                                                ; +0x83, 0x1400c41a3\nmov     ecx, 2E0h; Size                                                ; +0x8a, 0x1400c41aa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x8f, 0x1400c41af\nmov     [rsp+28h+arg_0], rax                                           ; +0x94, 0x1400c41b4\nmov     rcx, rax                                                       ; +0x99, 0x1400c41b9\ncall    CreateGuidelinesLayer__CreateGuidelinesLayer                   ; +0x9c, 0x1400c41bc\nmov     rbx, rax                                                       ; +0xa1, 0x1400c41c1\ntest    rax, rax                                                       ; +0xa4, 0x1400c41c4\njz      short loc_1400C41F3                                            ; +0xa7, 0x1400c41c7\nxor     r8d, r8d                                                       ; +0xa9, 0x1400c41c9\nmov     rdx, rdi                                                       ; +0xac, 0x1400c41cc\nmov     rcx, rax                                                       ; +0xaf, 0x1400c41cf\ncall    CreateGuidelinesLayer__init                                    ; +0xb2, 0x1400c41d2\nmov     rcx, rbx                                                       ; +0xb7, 0x1400c41d7\ntest    al, al                                                         ; +0xba, 0x1400c41da\njz      short loc_1400C41E6                                            ; +0xbc, 0x1400c41dc\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xbe, 0x1400c41de\njmp     short loc_1400C41F3                                            ; +0xc4, 0x1400c41e4\nmov     rax, [rbx]                                                     ; +0xc6, 0x1400c41e6\nmov     edx, 1                                                         ; +0xc9, 0x1400c41e9\ncall    qword ptr [rax+8]                                              ; +0xce, 0x1400c41ee\nxor     ebx, ebx                                                       ; +0xd1, 0x1400c41f1\nmov     rax, [rbx]                                                     ; +0xd3, 0x1400c41f3\nmov     rcx, rbx                                                       ; +0xd6, 0x1400c41f6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd9, 0x1400c41f9\nadd     rsp, 20h                                                       ; +0xde, 0x1400c41fe\npop     rdi                                                            ; +0xe2, 0x1400c4202\njmp     qword ptr [rax+410h]                                           ; +0xe3, 0x1400c4203", "xrefs": ["CustomSongLayer::init @ 0x1400c31d7", "<???> @ 0x1406c807c", "<???> @ 0x1406c8088"], "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"}