{"type": "func", "start": 6442851008, "end": 6442851175, "name": "cocos2d::CCRenderTexture::clearDepth", "pseudocode": "// \n// cocos2d::CCRenderTexture::clearDepth from 0x180061ac0 to 0x180061b67 (167 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd690\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:51 +0000\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 + 84));\n  cocos2d::CCDirector::setViewport(v3);\n  kmGLMatrixMode(5889);\n  kmGLPopMatrix();\n  kmGLMatrixMode(5888);\n  kmGLPopMatrix();\n}", "assembly": "; \n; cocos2d::CCRenderTexture::clearDepth from 0x180061ac0 to 0x180061b67 (167 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd690\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180061ac0\npush    rdi                                                            ; +0x5, 0x180061ac5\nsub     rsp, 30h                                                       ; +0x6, 0x180061ac6\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xa, 0x180061aca\nmov     rdi, rcx                                                       ; +0xf, 0x180061acf\nmovaps  xmm6, xmm1                                                     ; +0x12, 0x180061ad2\ncall    ?begin@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::begin(void) ; +0x15, 0x180061ad5\nlea     rdx, [rsp+38h+params]; params                                  ; +0x1a, 0x180061ada\nmov     ecx, 0B73h; pname                                              ; +0x1f, 0x180061adf\ncall    cs:glGetFloatv                                                 ; +0x24, 0x180061ae4\nxorps   xmm0, xmm0                                                     ; +0x2a, 0x180061aea\ncvtss2sd xmm0, xmm6; depth                                             ; +0x2d, 0x180061aed\ncall    cs:glClearDepth                                                ; +0x31, 0x180061af1\nmov     ecx, 100h; mask                                                ; +0x37, 0x180061af7\ncall    cs:glClear                                                     ; +0x3c, 0x180061afc\nmovss   xmm0, [rsp+38h+params]                                         ; +0x42, 0x180061b02\ncvtps2pd xmm0, xmm0; depth                                             ; +0x48, 0x180061b08\ncall    cs:glClearDepth                                                ; +0x4b, 0x180061b0b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x51, 0x180061b11\nmov     rcx, cs:__glewBindFramebuffer                                  ; +0x56, 0x180061b16\nmov     rbx, rax                                                       ; +0x5d, 0x180061b1d\nmov     edx, [rdi+150h]                                                ; +0x60, 0x180061b20\nmov     r8, [rcx]                                                      ; +0x66, 0x180061b26\nmov     ecx, 8D40h                                                     ; +0x69, 0x180061b29\ncall    r8                                                             ; +0x6e, 0x180061b2e\nmov     rcx, rbx; this                                                 ; +0x71, 0x180061b31\ncall    ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x74, 0x180061b34\nmov     ecx, 1701h                                                     ; +0x79, 0x180061b39\ncall    kmGLMatrixMode                                                 ; +0x7e, 0x180061b3e\ncall    kmGLPopMatrix                                                  ; +0x83, 0x180061b43\nmov     ecx, 1700h                                                     ; +0x88, 0x180061b48\ncall    kmGLMatrixMode                                                 ; +0x8d, 0x180061b4d\ncall    kmGLPopMatrix                                                  ; +0x92, 0x180061b52\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x97, 0x180061b57\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x9c, 0x180061b5c\nadd     rsp, 30h                                                       ; +0xa1, 0x180061b61\npop     rdi                                                            ; +0xa5, 0x180061b65\nretn                                                                   ; +0xa6, 0x180061b66", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd690"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}