; ; CustomSongLayer::onClose from 0x1401654b0 to 0x14016557b (203 bytes) ; ; 3 xrefs: ; > CustomSongLayer::keyBackClicked @ 0x140165589 ; > CustomSongLayer::init @ 0x140163ecf ; > @ 0x140917ee8 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:27:26 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401654b0 push rdi ; +0x5, 0x1401654b5 sub rsp, 20h ; +0x6, 0x1401654b6 mov rdi, rcx ; +0xa, 0x1401654ba mov rcx, [rcx+2C0h] ; +0xd, 0x1401654bd test rcx, rcx ; +0x14, 0x1401654c4 jz short loc_1401654CE ; +0x17, 0x1401654c7 mov rax, [rcx] ; +0x19, 0x1401654c9 call qword ptr [rax] ; +0x1c, 0x1401654cc mov rcx, [rdi+2B0h] ; +0x1e, 0x1401654ce mov rax, [rcx] ; +0x25, 0x1401654d5 xor edx, edx ; +0x28, 0x1401654d8 call qword ptr [rax+408h] ; +0x2a, 0x1401654da mov rbx, cs:qword_14090BF60 ; +0x30, 0x1401654e0 test rbx, rbx ; +0x37, 0x1401654e7 jnz short loc_14016551E ; +0x3a, 0x1401654ea mov ecx, 8A8h; Size ; +0x3c, 0x1401654ec call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x41, 0x1401654f1 mov [rsp+28h+arg_0], rax ; +0x46, 0x1401654f6 mov rcx, rax ; +0x4b, 0x1401654fb call FMODAudioEngine__FMODAudioEngine ; +0x4e, 0x1401654fe nop ; +0x53, 0x140165503 mov cs:qword_14090BF60, rax ; +0x54, 0x140165504 mov rcx, [rax] ; +0x5b, 0x14016550b mov rdx, [rcx+48h] ; +0x5e, 0x14016550e mov rcx, rax ; +0x62, 0x140165512 call rdx ; +0x65, 0x140165515 mov rbx, cs:qword_14090BF60 ; +0x67, 0x140165517 mov rcx, [rbx+228h] ; +0x6e, 0x14016551e test rcx, rcx ; +0x75, 0x140165525 jz short loc_140165530 ; +0x78, 0x140165528 call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x7a, 0x14016552a lea rcx, [rbx+448h] ; +0x80, 0x140165530 call sub_14003EB60 ; +0x87, 0x140165537 lea rcx, [rbx+488h] ; +0x8c, 0x14016553c call sub_14003EB60 ; +0x93, 0x140165543 lea rcx, [rbx+4C8h] ; +0x98, 0x140165548 call sub_14003EB60 ; +0x9f, 0x14016554f mov rax, [rdi] ; +0xa4, 0x140165554 xor edx, edx ; +0xa7, 0x140165557 mov rcx, rdi ; +0xa9, 0x140165559 call qword ptr [rax+3E0h] ; +0xac, 0x14016555c mov rax, [rdi] ; +0xb2, 0x140165562 mov dl, 1 ; +0xb5, 0x140165565 mov rcx, rdi ; +0xb7, 0x140165567 mov rbx, [rsp+28h+arg_8] ; +0xba, 0x14016556a add rsp, 20h ; +0xbf, 0x14016556f pop rdi ; +0xc3, 0x140165573 jmp qword ptr [rax+208h] ; +0xc4, 0x140165574