; ; AudioEffectsLayer::init from 0x140084be0 to 0x140084d6b (395 bytes) ; ; 2 xrefs: ; > PlayLayer::setupHasCompleted @ 0x1403a6e09 ; > @ 0x1406c6bb8 ; ; 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, 0x140084be0 push rdi ; +0x5, 0x140084be5 sub rsp, 60h ; +0x6, 0x140084be6 mov rax, cs:__security_cookie ; +0xa, 0x140084bea xor rax, rsp ; +0x11, 0x140084bf1 mov [rsp+68h+var_18], rax ; +0x14, 0x140084bf4 mov rbx, rdx ; +0x19, 0x140084bf9 mov rdi, rcx ; +0x1c, 0x140084bfc mov [rsp+68h+var_40], rdx ; +0x1f, 0x140084bff mov dword ptr [rsp+68h+var_48], 0 ; +0x24, 0x140084c04 mov eax, dword ptr [rsp+68h+var_48] ; +0x2c, 0x140084c0c mov dword ptr [rsp+68h+var_48], eax ; +0x30, 0x140084c10 lea rdx, [rsp+68h+var_48] ; +0x34, 0x140084c14 call cs:__imp_?initWithColor@CCLayerColor@cocos2d@@UEAA_NAEBU_ccColor4B@2@@Z; cocos2d::CCLayerColor::initWithColor(cocos2d::_ccColor4B const &) ; +0x39, 0x140084c19 test al, al ; +0x3f, 0x140084c1f jnz short loc_140084C32 ; +0x41, 0x140084c21 mov rcx, rbx ; +0x43, 0x140084c23 call sub_14003A830 ; +0x46, 0x140084c26 xor al, al ; +0x4b, 0x140084c2b jmp loc_140084D50 ; +0x4d, 0x140084c2d mov rdx, rbx ; +0x52, 0x140084c32 cmp qword ptr [rbx+18h], 0Fh ; +0x55, 0x140084c35 jbe short loc_140084C3F ; +0x5a, 0x140084c3a mov rdx, [rbx] ; +0x5c, 0x140084c3c xorps xmm0, xmm0 ; +0x5f, 0x140084c3f movups xmmword ptr [rsp+68h+Block], xmm0 ; +0x62, 0x140084c42 xorps xmm1, xmm1 ; +0x67, 0x140084c47 movdqu [rsp+68h+var_28], xmm1 ; +0x6a, 0x140084c4a mov r8, 0FFFFFFFFFFFFFFFFh ; +0x70, 0x140084c50 nop word ptr [rax+rax+00000000h] ; +0x77, 0x140084c57 inc r8 ; +0x80, 0x140084c60 cmp byte ptr [rdx+r8], 0 ; +0x83, 0x140084c63 jnz short loc_140084C60 ; +0x88, 0x140084c68 lea rcx, [rsp+68h+Block] ; +0x8a, 0x140084c6a call sub_14003A930 ; +0x8f, 0x140084c6f nop ; +0x94, 0x140084c74 lea rcx, [rsp+68h+Block] ; +0x95, 0x140084c75 call sub_1400848C0 ; +0x9a, 0x140084c7a mov [rdi+228h], rax ; +0x9f, 0x140084c7f mov rdx, qword ptr [rsp+68h+var_28+8] ; +0xa6, 0x140084c86 cmp rdx, 0Fh ; +0xab, 0x140084c8b jbe short loc_140084CC6 ; +0xaf, 0x140084c8f inc rdx ; +0xb1, 0x140084c91 mov rcx, [rsp+68h+Block]; Block ; +0xb4, 0x140084c94 mov rax, rcx ; +0xb9, 0x140084c99 cmp rdx, 1000h ; +0xbc, 0x140084c9c jb short loc_140084CC1 ; +0xc3, 0x140084ca3 add rdx, 27h ; ''' ; +0xc5, 0x140084ca5 mov rcx, [rcx-8] ; +0xc9, 0x140084ca9 sub rax, rcx ; +0xcd, 0x140084cad add rax, 0FFFFFFFFFFFFFFF8h ; +0xd0, 0x140084cb0 cmp rax, 1Fh ; +0xd4, 0x140084cb4 jbe short loc_140084CC1 ; +0xd8, 0x140084cb8 call cs:_invalid_parameter_noinfo_noreturn ; +0xda, 0x140084cba db 0CCh ; +0xe0, 0x140084cc0 call j_j_free ; +0xe1, 0x140084cc1 mov rcx, [rdi+228h] ; +0xe6, 0x140084cc6 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xed, 0x140084ccd mov rcx, rdi ; +0xf3, 0x140084cd3 call AudioEffectsLayer__resetAudioVars ; +0xf6, 0x140084cd6 call cs:?sharedTextureCache@CCTextureCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCTextureCache::sharedTextureCache(void) ; +0xfb, 0x140084cdb mov rcx, rax ; +0x101, 0x140084ce1 xor r8d, r8d ; +0x104, 0x140084ce4 lea rdx, aGjGamesheetPng; "GJ_GameSheet.png" ; +0x107, 0x140084ce7 call cs:?addImage@CCTextureCache@cocos2d@@QEAAPEAVCCTexture2D@2@PEBD_N@Z; cocos2d::CCTextureCache::addImage(char const *,bool) ; +0x10e, 0x140084cee mov rcx, rax ; +0x114, 0x140084cf4 call cs:?createWithTexture@CCSpriteBatchNode@cocos2d@@SAPEAV12@PEAVCCTexture2D@2@@Z; cocos2d::CCSpriteBatchNode::createWithTexture(cocos2d::CCTexture2D *) ; +0x117, 0x140084cf7 mov [rdi+220h], rax ; +0x11d, 0x140084cfd mov r8, [rdi] ; +0x124, 0x140084d04 mov rdx, rax ; +0x127, 0x140084d07 mov rcx, rdi ; +0x12a, 0x140084d0a call qword ptr [r8+1C0h] ; +0x12d, 0x140084d0d mov dword ptr [rsp+68h+var_48], 302h ; +0x134, 0x140084d14 mov dword ptr [rsp+68h+var_48+4], 1 ; +0x13c, 0x140084d1c mov rcx, [rdi+220h] ; +0x144, 0x140084d24 add rcx, 140h ; +0x14b, 0x140084d2b mov rax, [rcx] ; +0x152, 0x140084d32 mov rdx, [rsp+68h+var_48] ; +0x155, 0x140084d35 call qword ptr [rax] ; +0x15a, 0x140084d3a mov dword ptr [rdi+244h], 3DCCCCCDh ; +0x15c, 0x140084d3c mov rcx, rbx ; +0x166, 0x140084d46 call sub_14003A830 ; +0x169, 0x140084d49 mov al, 1 ; +0x16e, 0x140084d4e mov rcx, [rsp+68h+var_18] ; +0x170, 0x140084d50 xor rcx, rsp; StackCookie ; +0x175, 0x140084d55 call __security_check_cookie ; +0x178, 0x140084d58 mov rbx, [rsp+68h+arg_10] ; +0x17d, 0x140084d5d add rsp, 60h ; +0x185, 0x140084d65 pop rdi ; +0x189, 0x140084d69 retn ; +0x18a, 0x140084d6a