; ; CustomSongWidget::updatePlaybackBtn from 0x1400cb2a0 to 0x1400cb381 (225 bytes) ; ; 4 xrefs: ; > CustomSongWidget::init @ 0x1400c95c9 ; > CustomSongWidget::songStateChanged @ 0x1400cb4dd ; > @ 0x1406c831c ; > @ 0x1406c8328 ; ; 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_10], rbx ; +0x0, 0x1400cb2a0 push rdi ; +0x5, 0x1400cb2a5 sub rsp, 40h ; +0x6, 0x1400cb2a6 mov rbx, rcx ; +0xa, 0x1400cb2aa cmp qword ptr [rcx+150h], 0 ; +0xd, 0x1400cb2ad jz loc_1400CB376 ; +0x15, 0x1400cb2b5 mov rcx, [rcx+1A0h] ; +0x1b, 0x1400cb2bb mov rax, [rcx] ; +0x22, 0x1400cb2c2 call qword ptr [rax+3A8h] ; +0x25, 0x1400cb2c5 mov rdi, rax ; +0x2b, 0x1400cb2cb lea rax, [rsp+48h+var_28] ; +0x2e, 0x1400cb2ce mov [rsp+48h+arg_0], rax ; +0x33, 0x1400cb2d3 mov rbx, [rbx+150h] ; +0x38, 0x1400cb2d8 call MusicDownloadManager__sharedState ; +0x3f, 0x1400cb2df mov rcx, rax ; +0x44, 0x1400cb2e4 mov r8d, [rbx+140h] ; +0x47, 0x1400cb2e7 lea rdx, [rsp+48h+var_28] ; +0x4e, 0x1400cb2ee call MusicDownloadManager__pathForSong ; +0x53, 0x1400cb2f3 mov rbx, rax ; +0x58, 0x1400cb2f8 mov rcx, cs:qword_1406C2E88 ; +0x5b, 0x1400cb2fb test rcx, rcx ; +0x62, 0x1400cb302 jnz short loc_1400CB336 ; +0x65, 0x1400cb305 mov ecx, 888h; Size ; +0x67, 0x1400cb307 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x6c, 0x1400cb30c mov [rsp+48h+arg_8], rax ; +0x71, 0x1400cb311 mov rcx, rax ; +0x76, 0x1400cb316 call FMODAudioEngine__FMODAudioEngine ; +0x79, 0x1400cb319 nop ; +0x7e, 0x1400cb31e mov cs:qword_1406C2E88, rax ; +0x7f, 0x1400cb31f mov rdx, [rax] ; +0x86, 0x1400cb326 mov rcx, rax ; +0x89, 0x1400cb329 call qword ptr [rdx+48h] ; +0x8c, 0x1400cb32c mov rcx, cs:qword_1406C2E88 ; +0x8f, 0x1400cb32f mov rdx, rbx ; +0x96, 0x1400cb336 call FMODAudioEngine__isMusicPlaying ; +0x99, 0x1400cb339 mov rbx, [rdi] ; +0x9e, 0x1400cb33e test al, al ; +0xa1, 0x1400cb341 jz short loc_1400CB354 ; +0xa3, 0x1400cb343 call cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0xa5, 0x1400cb345 lea rdx, aGjStopmusicbtn; "GJ_stopMusicBtn_001.png" ; +0xab, 0x1400cb34b jmp short loc_1400CB361 ; +0xb2, 0x1400cb352 call cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0xb4, 0x1400cb354 lea rdx, aGjPlaymusicbtn; "GJ_playMusicBtn_001.png" ; +0xba, 0x1400cb35a mov rcx, rax ; +0xc1, 0x1400cb361 call cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0xc4, 0x1400cb364 mov rdx, rax ; +0xca, 0x1400cb36a mov rcx, rdi ; +0xcd, 0x1400cb36d call qword ptr [rbx+3E0h] ; +0xd0, 0x1400cb370 mov rbx, [rsp+48h+arg_10] ; +0xd6, 0x1400cb376 add rsp, 40h ; +0xdb, 0x1400cb37b pop rdi ; +0xdf, 0x1400cb37f retn ; +0xe0, 0x1400cb380