{"type": "func", "start": 6442842336, "end": 6442842500, "name": "cocos2d::CCRenderTexture::clearDepth", "pseudocode": "// \n// cocos2d::CCRenderTexture::clearDepth from 0x18005f8e0 to 0x18005f984 (164 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b33cc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCRenderTexture::clearDepth(cocos2d::CCRenderTexture *this, float a2)\n{\n  cocos2d::CCDirector *v3; // rbx\n  GLfloat params; // [rsp+48h] [rbp+10h] BYREF\n\n  cocos2d::CCRenderTexture::begin(this);\n  glGetFloatv(0xB73u, &params);\n  glClearDepth(a2);\n  glClear(0x100u);\n  glClearDepth(params);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  _glewBindFramebuffer(36160, (unsigned int)this->m_nOldFBO);\n  cocos2d::CCDirector::setViewport(v3);\n  kmGLMatrixMode(5889);\n  kmGLPopMatrix();\n  kmGLMatrixMode(5888);\n  kmGLPopMatrix();\n}", "assembly": "; \n; cocos2d::CCRenderTexture::clearDepth from 0x18005f8e0 to 0x18005f984 (164 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b33cc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005f8e0\npush    rdi                                                            ; +0x5, 0x18005f8e5\nsub     rsp, 30h                                                       ; +0x6, 0x18005f8e6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x18005f8ea\nmov     rdi, rcx                                                       ; +0xf, 0x18005f8ef\nmovaps  xmm6, xmm1                                                     ; +0x12, 0x18005f8f2\ncall    ?begin@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::begin(void) ; +0x15, 0x18005f8f5\nlea     rdx, [rsp+38h+params]; params                                  ; +0x1a, 0x18005f8fa\nmov     ecx, 0B73h; pname                                              ; +0x1f, 0x18005f8ff\ncall    cs:glGetFloatv                                                 ; +0x24, 0x18005f904\nxorps   xmm0, xmm0                                                     ; +0x2a, 0x18005f90a\ncvtss2sd xmm0, xmm6; depth                                             ; +0x2d, 0x18005f90d\ncall    cs:glClearDepth                                                ; +0x31, 0x18005f911\nmov     ecx, 100h; mask                                                ; +0x37, 0x18005f917\ncall    cs:glClear                                                     ; +0x3c, 0x18005f91c\nmovss   xmm0, [rsp+38h+params]                                         ; +0x42, 0x18005f922\ncvtps2pd xmm0, xmm0; depth                                             ; +0x48, 0x18005f928\ncall    cs:glClearDepth                                                ; +0x4b, 0x18005f92b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x51, 0x18005f931\nmov     r8, cs:__glewBindFramebuffer                                   ; +0x56, 0x18005f936\nmov     ecx, 8D40h                                                     ; +0x5d, 0x18005f93d\nmov     edx, [rdi+150h]                                                ; +0x62, 0x18005f942\nmov     rbx, rax                                                       ; +0x68, 0x18005f948\ncall    qword ptr [r8]                                                 ; +0x6b, 0x18005f94b\nmov     rcx, rbx; this                                                 ; +0x6e, 0x18005f94e\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x71, 0x18005f951\nmov     ecx, 1701h                                                     ; +0x76, 0x18005f956\ncall    kmGLMatrixMode                                                 ; +0x7b, 0x18005f95b\ncall    kmGLPopMatrix                                                  ; +0x80, 0x18005f960\nmov     ecx, 1700h                                                     ; +0x85, 0x18005f965\ncall    kmGLMatrixMode                                                 ; +0x8a, 0x18005f96a\ncall    kmGLPopMatrix                                                  ; +0x8f, 0x18005f96f\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x94, 0x18005f974\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x99, 0x18005f979\nadd     rsp, 30h                                                       ; +0x9e, 0x18005f97e\npop     rdi                                                            ; +0xa2, 0x18005f982\nretn                                                                   ; +0xa3, 0x18005f983", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b33cc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}