; ; CustomSongLayer::onCreateLines from 0x1400c4120 to 0x1400c420a (234 bytes) ; ; 3 xrefs: ; > CustomSongLayer::init @ 0x1400c31d7 ; > @ 0x1406c807c ; > @ 0x1406c8088 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x1400c4120 push rdi ; +0x5, 0x1400c4125 sub rsp, 20h ; +0x6, 0x1400c4126 mov rdi, rcx ; +0xa, 0x1400c412a mov rbx, cs:qword_1406C2E88 ; +0xd, 0x1400c412d test rbx, rbx ; +0x14, 0x1400c4134 jnz short loc_1400C4168 ; +0x17, 0x1400c4137 mov ecx, 888h; Size ; +0x19, 0x1400c4139 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1e, 0x1400c413e mov [rsp+28h+arg_0], rax ; +0x23, 0x1400c4143 mov rcx, rax ; +0x28, 0x1400c4148 call FMODAudioEngine__FMODAudioEngine ; +0x2b, 0x1400c414b nop ; +0x30, 0x1400c4150 mov cs:qword_1406C2E88, rax ; +0x31, 0x1400c4151 mov rdx, [rax] ; +0x38, 0x1400c4158 mov rcx, rax ; +0x3b, 0x1400c415b call qword ptr [rdx+48h] ; +0x3e, 0x1400c415e mov rbx, cs:qword_1406C2E88 ; +0x41, 0x1400c4161 cmp qword ptr [rbx+228h], 0 ; +0x48, 0x1400c4168 jz short loc_1400C417F ; +0x50, 0x1400c4170 mov rcx, [rbx+228h] ; +0x52, 0x1400c4172 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x59, 0x1400c4179 lea rcx, [rbx+428h] ; +0x5f, 0x1400c417f call sub_14005E0D0 ; +0x66, 0x1400c4186 lea rcx, [rbx+468h] ; +0x6b, 0x1400c418b call sub_14005E0D0 ; +0x72, 0x1400c4192 lea rcx, [rbx+4A8h] ; +0x77, 0x1400c4197 call sub_14005E0D0 ; +0x7e, 0x1400c419e mov rdi, [rdi+290h] ; +0x83, 0x1400c41a3 mov ecx, 2E0h; Size ; +0x8a, 0x1400c41aa call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x8f, 0x1400c41af mov [rsp+28h+arg_0], rax ; +0x94, 0x1400c41b4 mov rcx, rax ; +0x99, 0x1400c41b9 call CreateGuidelinesLayer__CreateGuidelinesLayer ; +0x9c, 0x1400c41bc mov rbx, rax ; +0xa1, 0x1400c41c1 test rax, rax ; +0xa4, 0x1400c41c4 jz short loc_1400C41F3 ; +0xa7, 0x1400c41c7 xor r8d, r8d ; +0xa9, 0x1400c41c9 mov rdx, rdi ; +0xac, 0x1400c41cc mov rcx, rax ; +0xaf, 0x1400c41cf call CreateGuidelinesLayer__init ; +0xb2, 0x1400c41d2 mov rcx, rbx ; +0xb7, 0x1400c41d7 test al, al ; +0xba, 0x1400c41da jz short loc_1400C41E6 ; +0xbc, 0x1400c41dc call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xbe, 0x1400c41de jmp short loc_1400C41F3 ; +0xc4, 0x1400c41e4 mov rax, [rbx] ; +0xc6, 0x1400c41e6 mov edx, 1 ; +0xc9, 0x1400c41e9 call qword ptr [rax+8] ; +0xce, 0x1400c41ee xor ebx, ebx ; +0xd1, 0x1400c41f1 mov rax, [rbx] ; +0xd3, 0x1400c41f3 mov rcx, rbx ; +0xd6, 0x1400c41f6 mov rbx, [rsp+28h+arg_8] ; +0xd9, 0x1400c41f9 add rsp, 20h ; +0xde, 0x1400c41fe pop rdi ; +0xe2, 0x1400c4202 jmp qword ptr [rax+410h] ; +0xe3, 0x1400c4203