; ; cocos2d::CCRenderTexture::beginWithClear from 0x180061820 to 0x18006196d (333 bytes) ; ; 7 xrefs: ; > cocos2d::CCRenderTexture::beginWithClear @ 0x180061999 ; > cocos2d::CCRenderTexture::beginWithClear @ 0x1800619dc ; > cocos2d::CCRenderTexture::beginWithClear @ 0x180061a1f ; > cocos2d::CCRenderTexture::clear @ 0x180061a62 ; > @ 0x18014cf68 ; > @ 0x1801bd648 ; > @ 0x1801bd654 ; ; 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:21:51 +0000 ; push rbx ; +0x0, 0x180061820 push rbp ; +0x2, 0x180061822 push rsi ; +0x3, 0x180061823 push rdi ; +0x4, 0x180061824 sub rsp, 78h ; +0x5, 0x180061825 movaps [rsp+98h+var_38], xmm6 ; +0x9, 0x180061829 movaps [rsp+98h+var_48], xmm7 ; +0xe, 0x18006182e movaps [rsp+98h+var_58], xmm8 ; +0x13, 0x180061833 mov rax, cs:__security_cookie ; +0x19, 0x180061839 xor rax, rsp ; +0x20, 0x180061840 mov [rsp+98h+var_60], rax ; +0x23, 0x180061843 movaps xmm8, xmm3 ; +0x28, 0x180061848 movaps xmm7, xmm2 ; +0x2c, 0x18006184c movaps xmm6, xmm1 ; +0x2f, 0x18006184f call ?begin@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::begin(void) ; +0x32, 0x180061852 mov esi, [rsp+98h+mask] ; +0x37, 0x180061857 xorps xmm0, xmm0 ; +0x3e, 0x18006185e mov ebp, esi ; +0x41, 0x180061861 mov [rsp+98h+var_78], 0 ; +0x43, 0x180061863 mov [rsp+98h+var_74], 0 ; +0x4b, 0x18006186b movups xmmword ptr [rsp+98h+params], xmm0 ; +0x53, 0x180061873 and ebp, 4000h ; +0x58, 0x180061878 jz short loc_1800618A9 ; +0x5e, 0x18006187e lea rdx, [rsp+98h+params]; params ; +0x60, 0x180061880 mov ecx, 0C22h; pname ; +0x65, 0x180061885 call cs:glGetFloatv ; +0x6a, 0x18006188a movss xmm3, [rsp+98h+alpha]; alpha ; +0x70, 0x180061890 movaps xmm2, xmm8; blue ; +0x79, 0x180061899 movaps xmm1, xmm7; green ; +0x7d, 0x18006189d movaps xmm0, xmm6; red ; +0x80, 0x1800618a0 call cs:glClearColor ; +0x83, 0x1800618a3 mov ebx, esi ; +0x89, 0x1800618a9 and ebx, 100h ; +0x8b, 0x1800618ab jz short loc_1800618D5 ; +0x91, 0x1800618b1 lea rdx, [rsp+98h+var_78]; params ; +0x93, 0x1800618b3 mov ecx, 0B73h; pname ; +0x98, 0x1800618b8 call cs:glGetFloatv ; +0x9d, 0x1800618bd movss xmm0, [rsp+98h+arg_28] ; +0xa3, 0x1800618c3 cvtps2pd xmm0, xmm0; depth ; +0xac, 0x1800618cc call cs:glClearDepth ; +0xaf, 0x1800618cf mov edi, esi ; +0xb5, 0x1800618d5 and edi, 400h ; +0xb7, 0x1800618d7 jz short loc_1800618FC ; +0xbd, 0x1800618dd lea rdx, [rsp+98h+var_74]; params ; +0xbf, 0x1800618df mov ecx, 0B91h; pname ; +0xc4, 0x1800618e4 call cs:glGetIntegerv ; +0xc9, 0x1800618e9 mov ecx, [rsp+98h+s]; s ; +0xcf, 0x1800618ef call cs:glClearStencil ; +0xd6, 0x1800618f6 mov ecx, esi; mask ; +0xdc, 0x1800618fc call cs:glClear ; +0xde, 0x1800618fe test ebp, ebp ; +0xe4, 0x180061904 jz short loc_180061926 ; +0xe6, 0x180061906 movss xmm3, [rsp+98h+params+0Ch]; alpha ; +0xe8, 0x180061908 movss xmm2, [rsp+98h+params+8]; blue ; +0xee, 0x18006190e movss xmm1, [rsp+98h+params+4]; green ; +0xf4, 0x180061914 movss xmm0, [rsp+98h+params]; red ; +0xfa, 0x18006191a call cs:glClearColor ; +0x100, 0x180061920 test ebx, ebx ; +0x106, 0x180061926 jz short loc_180061939 ; +0x108, 0x180061928 movss xmm0, [rsp+98h+var_78] ; +0x10a, 0x18006192a cvtps2pd xmm0, xmm0; depth ; +0x110, 0x180061930 call cs:glClearDepth ; +0x113, 0x180061933 test edi, edi ; +0x119, 0x180061939 jz short loc_180061947 ; +0x11b, 0x18006193b mov ecx, [rsp+98h+var_74]; s ; +0x11d, 0x18006193d call cs:glClearStencil ; +0x121, 0x180061941 mov rcx, [rsp+98h+var_60] ; +0x127, 0x180061947 xor rcx, rsp; StackCookie ; +0x12c, 0x18006194c call __security_check_cookie ; +0x12f, 0x18006194f movaps xmm6, [rsp+98h+var_38] ; +0x134, 0x180061954 movaps xmm7, [rsp+98h+var_48] ; +0x139, 0x180061959 movaps xmm8, [rsp+98h+var_58] ; +0x13e, 0x18006195e add rsp, 78h ; +0x144, 0x180061964 pop rdi ; +0x148, 0x180061968 pop rsi ; +0x149, 0x180061969 pop rbp ; +0x14a, 0x18006196a pop rbx ; +0x14b, 0x18006196b retn ; +0x14c, 0x18006196c