; ; cocos2d::CCRenderTexture::clearDepth from 0x18005f8e0 to 0x18005f984 (164 bytes) ; ; 2 xrefs: ; > @ 0x1801438a8 ; > @ 0x1801b33cc ; ; 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_0], rbx ; +0x0, 0x18005f8e0 push rdi ; +0x5, 0x18005f8e5 sub rsp, 30h ; +0x6, 0x18005f8e6 movaps [rsp+38h+var_18], xmm6 ; +0xa, 0x18005f8ea mov rdi, rcx ; +0xf, 0x18005f8ef movaps xmm6, xmm1 ; +0x12, 0x18005f8f2 call ?begin@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::begin(void) ; +0x15, 0x18005f8f5 lea rdx, [rsp+38h+params]; params ; +0x1a, 0x18005f8fa mov ecx, 0B73h; pname ; +0x1f, 0x18005f8ff call cs:glGetFloatv ; +0x24, 0x18005f904 xorps xmm0, xmm0 ; +0x2a, 0x18005f90a cvtss2sd xmm0, xmm6; depth ; +0x2d, 0x18005f90d call cs:glClearDepth ; +0x31, 0x18005f911 mov ecx, 100h; mask ; +0x37, 0x18005f917 call cs:glClear ; +0x3c, 0x18005f91c movss xmm0, [rsp+38h+params] ; +0x42, 0x18005f922 cvtps2pd xmm0, xmm0; depth ; +0x48, 0x18005f928 call cs:glClearDepth ; +0x4b, 0x18005f92b call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x51, 0x18005f931 mov r8, cs:__glewBindFramebuffer ; +0x56, 0x18005f936 mov ecx, 8D40h ; +0x5d, 0x18005f93d mov edx, [rdi+150h] ; +0x62, 0x18005f942 mov rbx, rax ; +0x68, 0x18005f948 call qword ptr [r8] ; +0x6b, 0x18005f94b mov rcx, rbx; this ; +0x6e, 0x18005f94e call ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x71, 0x18005f951 mov ecx, 1701h ; +0x76, 0x18005f956 call kmGLMatrixMode ; +0x7b, 0x18005f95b call kmGLPopMatrix ; +0x80, 0x18005f960 mov ecx, 1700h ; +0x85, 0x18005f965 call kmGLMatrixMode ; +0x8a, 0x18005f96a call kmGLPopMatrix ; +0x8f, 0x18005f96f mov rbx, [rsp+38h+arg_0] ; +0x94, 0x18005f974 movaps xmm6, [rsp+38h+var_18] ; +0x99, 0x18005f979 add rsp, 30h ; +0x9e, 0x18005f97e pop rdi ; +0xa2, 0x18005f982 retn ; +0xa3, 0x18005f983