{"type": "func", "start": 6442890800, "end": 6442890942, "name": "cocos2d::CCEGLViewProtocol::getScissorRect", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::getScissorRect from 0x18006b630 to 0x18006b6be (142 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801002f0\n// > <???> @ 0x180100920\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3dec\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\nstruct cocos2d::CCRect *__fastcall cocos2d::CCEGLViewProtocol::getScissorRect(\n        struct cocos2d::CCRect *__return_ptr retstr,\n        cocos2d::CCRect *a2)\n{\n  GLfloat params[4]; // [rsp+30h] [rbp-28h] BYREF\n\n  glGetFloatv(0xC10u, params);\n  cocos2d::CCRect::CCRect(\n    a2,\n    (float)(params[0] - retstr[2].origin.x) / retstr[6].origin.y,\n    (float)(params[1] - retstr[2].origin.y) / retstr[6].size.width,\n    params[2] / retstr[6].origin.y,\n    params[3] / retstr[6].size.width);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::getScissorRect from 0x18006b630 to 0x18006b6be (142 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801002f0\n; > <???> @ 0x180100920\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3dec\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_10], rbx                                              ; +0x0, 0x18006b630\npush    rdi                                                            ; +0x5, 0x18006b635\nsub     rsp, 50h                                                       ; +0x6, 0x18006b636\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18006b63a\nxor     rax, rsp                                                       ; +0x11, 0x18006b641\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x18006b644\nmov     rdi, rdx                                                       ; +0x19, 0x18006b649\nmov     rbx, rcx                                                       ; +0x1c, 0x18006b64c\nlea     rdx, [rsp+58h+params]; params                                  ; +0x1f, 0x18006b64f\nmov     ecx, 0C10h; pname                                              ; +0x24, 0x18006b654\ncall    cs:glGetFloatv                                                 ; +0x29, 0x18006b659\nmovss   xmm2, [rsp+58h+var_24]                                         ; +0x2f, 0x18006b65f\nmov     rcx, rdi; this                                                 ; +0x35, 0x18006b665\nmovss   xmm1, [rsp+58h+params]                                         ; +0x38, 0x18006b668\nsubss   xmm2, dword ptr [rbx+24h]                                      ; +0x3e, 0x18006b66e\nsubss   xmm1, dword ptr [rbx+20h]                                      ; +0x43, 0x18006b673\nmovss   xmm5, [rsp+58h+var_1C]                                         ; +0x48, 0x18006b678\nmovss   xmm3, [rsp+58h+var_20]                                         ; +0x4e, 0x18006b67e\ndivss   xmm5, dword ptr [rbx+68h]                                      ; +0x54, 0x18006b684\ndivss   xmm2, dword ptr [rbx+68h]; float                               ; +0x59, 0x18006b689\ndivss   xmm1, dword ptr [rbx+64h]; float                               ; +0x5e, 0x18006b68e\ndivss   xmm3, dword ptr [rbx+64h]; float                               ; +0x63, 0x18006b693\nmovss   [rsp+58h+var_38], xmm5; float                                  ; +0x68, 0x18006b698\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x6e, 0x18006b69e\nmov     rax, rdi                                                       ; +0x73, 0x18006b6a3\nmov     rcx, [rsp+58h+var_18]                                          ; +0x76, 0x18006b6a6\nxor     rcx, rsp; StackCookie                                          ; +0x7b, 0x18006b6ab\ncall    __security_check_cookie                                        ; +0x7e, 0x18006b6ae\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x83, 0x18006b6b3\nadd     rsp, 50h                                                       ; +0x88, 0x18006b6b8\npop     rdi                                                            ; +0x8c, 0x18006b6bc\nretn                                                                   ; +0x8d, 0x18006b6bd", "xrefs": ["<???> @ 0x1801002f0", "<???> @ 0x180100920", "<???> @ 0x1801438a8", "<???> @ 0x1801b3dec"], "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"}