{"type": "func", "start": 6442899488, "end": 6442899630, "name": "cocos2d::CCEGLViewProtocol::getScissorRect", "pseudocode": "// \n// cocos2d::CCEGLViewProtocol::getScissorRect from 0x18006d820 to 0x18006d8ae (142 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180106940\n// > <???> @ 0x180107038\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be140\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:55 +0000\n// \n\ncocos2d::CCRect *__fastcall cocos2d::CCEGLViewProtocol::getScissorRect(float *a1, 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] - a1[8]) / a1[25],\n    (float)(params[1] - a1[9]) / a1[26],\n    params[2] / a1[25],\n    params[3] / a1[26]);\n  return a2;\n}", "assembly": "; \n; cocos2d::CCEGLViewProtocol::getScissorRect from 0x18006d820 to 0x18006d8ae (142 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180106940\n; > <???> @ 0x180107038\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be140\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:55 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18006d820\npush    rdi                                                            ; +0x5, 0x18006d825\nsub     rsp, 50h                                                       ; +0x6, 0x18006d826\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18006d82a\nxor     rax, rsp                                                       ; +0x11, 0x18006d831\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x18006d834\nmov     rdi, rdx                                                       ; +0x19, 0x18006d839\nmov     rbx, rcx                                                       ; +0x1c, 0x18006d83c\nlea     rdx, [rsp+58h+params]; params                                  ; +0x1f, 0x18006d83f\nmov     ecx, 0C10h; pname                                              ; +0x24, 0x18006d844\ncall    cs:glGetFloatv                                                 ; +0x29, 0x18006d849\nmovss   xmm2, [rsp+58h+var_24]                                         ; +0x2f, 0x18006d84f\nmov     rcx, rdi; this                                                 ; +0x35, 0x18006d855\nmovss   xmm1, [rsp+58h+params]                                         ; +0x38, 0x18006d858\nsubss   xmm2, dword ptr [rbx+24h]                                      ; +0x3e, 0x18006d85e\nsubss   xmm1, dword ptr [rbx+20h]                                      ; +0x43, 0x18006d863\nmovss   xmm5, [rsp+58h+var_1C]                                         ; +0x48, 0x18006d868\nmovss   xmm3, [rsp+58h+var_20]                                         ; +0x4e, 0x18006d86e\ndivss   xmm5, dword ptr [rbx+68h]                                      ; +0x54, 0x18006d874\ndivss   xmm2, dword ptr [rbx+68h]; float                               ; +0x59, 0x18006d879\ndivss   xmm1, dword ptr [rbx+64h]; float                               ; +0x5e, 0x18006d87e\ndivss   xmm3, dword ptr [rbx+64h]; float                               ; +0x63, 0x18006d883\nmovss   [rsp+58h+var_38], xmm5; float                                  ; +0x68, 0x18006d888\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x6e, 0x18006d88e\nmov     rax, rdi                                                       ; +0x73, 0x18006d893\nmov     rcx, [rsp+58h+var_18]                                          ; +0x76, 0x18006d896\nxor     rcx, rsp; StackCookie                                          ; +0x7b, 0x18006d89b\ncall    __security_check_cookie                                        ; +0x7e, 0x18006d89e\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x83, 0x18006d8a3\nadd     rsp, 50h                                                       ; +0x88, 0x18006d8a8\npop     rdi                                                            ; +0x8c, 0x18006d8ac\nretn                                                                   ; +0x8d, 0x18006d8ad", "xrefs": ["<???> @ 0x180106940", "<???> @ 0x180107038", "<???> @ 0x18014cf68", "<???> @ 0x1801be140"], "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"}