{"type": "func", "start": 6442941616, "end": 6442941944, "name": "cocos2d::CCEGLView::onGLFWframebuffersize", "pseudocode": "// \n// cocos2d::CCEGLView::onGLFWframebuffersize from 0x180077cb0 to 0x180077df8 (328 bytes)\n// \n// 3 xrefs:\n// > sub_180077E00 @ 0x180077e18\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4a4c\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::CCEGLView::onGLFWframebuffersize(\n        cocos2d::CCEGLView *this,\n        struct GLFWwindow *a2,\n        int a3,\n        int a4)\n{\n  float width; // xmm3_4\n  float v5; // xmm5_4\n  float v6; // xmm1_4\n  float height; // xmm4_4\n  float v9; // xmm6_4\n  float v10; // xmm2_4\n  char v11; // al\n  float v12; // xmm0_4\n  __int64 v13; // r8\n  __int64 v14; // rdx\n\n  width = this->m_obScreenSize.width;\n  v5 = *((float *)this + 48);\n  v6 = (float)*((int *)this + 45);\n  height = this->m_obScreenSize.height;\n  v9 = (float)((float)(width / (float)a3) * v6) * v5;\n  v10 = (float)((float)(height / (float)a4) * v6) * v5;\n  if ( fabs(v9 - 0.5) < 0.00000011920929 && fabs(v10 - 0.5) < 0.00000011920929 )\n  {\n    v11 = -*((_BYTE *)this + 179);\n    *((_BYTE *)this + 178) = 1;\n    *((_DWORD *)this + 45) = 2 - (v11 != 0);\n    v12 = (float)(2 - (v11 != 0));\n    v13 = (unsigned int)(int)(float)((float)((float)(height * 0.5) * v12) * v5);\n    v14 = (unsigned int)(int)(float)((float)((float)(width * 0.5) * v12) * v5);\nLABEL_7:\n    sub_1800D4C40(a2, v14, v13);\n    return;\n  }\n  if ( fabs(v9 - 2.0) < 0.00000011920929 && fabs(v10 - 2.0) < 0.00000011920929 )\n  {\n    *((_BYTE *)this + 178) = 0;\n    *((_DWORD *)this + 45) = 1;\n    v13 = (unsigned int)(int)(float)(v5 * height);\n    v14 = (unsigned int)(int)(float)(v5 * width);\n    goto LABEL_7;\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::onGLFWframebuffersize from 0x180077cb0 to 0x180077df8 (328 bytes)\n; \n; 3 xrefs:\n; > sub_180077E00 @ 0x180077e18\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4a4c\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\nsub     rsp, 58h                                                       ; +0x0, 0x180077cb0\nmovss   xmm3, dword ptr [rcx+10h]                                      ; +0x4, 0x180077cb4\nxorps   xmm0, xmm0                                                     ; +0x9, 0x180077cb9\nmovss   xmm5, dword ptr [rcx+0C0h]                                     ; +0xc, 0x180077cbc\nxorps   xmm1, xmm1                                                     ; +0x14, 0x180077cc4\ncvtsi2ss xmm1, dword ptr [rcx+0B4h]                                    ; +0x17, 0x180077cc7\nmov     r11, rdx                                                       ; +0x1f, 0x180077ccf\nmov     r10, rcx                                                       ; +0x22, 0x180077cd2\nmovss   xmm4, dword ptr [rcx+14h]                                      ; +0x25, 0x180077cd5\ncvtsi2ss xmm0, r8d                                                     ; +0x2a, 0x180077cda\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x2f, 0x180077cdf\nmovaps  xmm2, xmm4                                                     ; +0x34, 0x180077ce4\nmovaps  xmm6, xmm3                                                     ; +0x37, 0x180077ce7\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x3a, 0x180077cea\nmovss   xmm7, cs:dword_1800E6554                                       ; +0x3f, 0x180077cef\ndivss   xmm6, xmm0                                                     ; +0x47, 0x180077cf7\nxorps   xmm0, xmm0                                                     ; +0x4b, 0x180077cfb\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x4e, 0x180077cfe\nmovss   xmm8, cs:dword_1800E6308                                       ; +0x54, 0x180077d04\ncvtsi2ss xmm0, r9d                                                     ; +0x5d, 0x180077d0d\nmulss   xmm6, xmm1                                                     ; +0x62, 0x180077d12\ndivss   xmm2, xmm0                                                     ; +0x66, 0x180077d16\nmulss   xmm6, xmm5                                                     ; +0x6a, 0x180077d1a\nmulss   xmm2, xmm1                                                     ; +0x6e, 0x180077d1e\nmovss   xmm1, dword ptr cs:xmmword_1800E6560                           ; +0x72, 0x180077d22\nmovaps  xmm0, xmm6                                                     ; +0x7a, 0x180077d2a\nsubss   xmm0, xmm8                                                     ; +0x7d, 0x180077d2d\nmulss   xmm2, xmm5                                                     ; +0x82, 0x180077d32\nandps   xmm0, xmm1                                                     ; +0x86, 0x180077d36\ncomiss  xmm7, xmm0                                                     ; +0x89, 0x180077d39\njbe     short loc_180077D96                                            ; +0x8c, 0x180077d3c\nmovaps  xmm0, xmm2                                                     ; +0x8e, 0x180077d3e\nsubss   xmm0, xmm8                                                     ; +0x91, 0x180077d41\nandps   xmm0, xmm1                                                     ; +0x96, 0x180077d46\ncomiss  xmm7, xmm0                                                     ; +0x99, 0x180077d49\njbe     short loc_180077D96                                            ; +0x9c, 0x180077d4c\nmovzx   eax, byte ptr [rcx+0B3h]                                       ; +0x9e, 0x180077d4e\nneg     al                                                             ; +0xa5, 0x180077d55\nmov     byte ptr [rcx+0B2h], 1                                         ; +0xa7, 0x180077d57\nmulss   xmm4, xmm8                                                     ; +0xae, 0x180077d5e\nsbb     ecx, ecx                                                       ; +0xb3, 0x180077d63\nadd     ecx, 2                                                         ; +0xb5, 0x180077d65\nmulss   xmm3, xmm8                                                     ; +0xb8, 0x180077d68\nmov     [r10+0B4h], ecx                                                ; +0xbd, 0x180077d6d\nmovd    xmm0, ecx                                                      ; +0xc4, 0x180077d74\ncvtdq2ps xmm0, xmm0                                                    ; +0xc8, 0x180077d78\nmulss   xmm4, xmm0                                                     ; +0xcb, 0x180077d7b\nmulss   xmm3, xmm0                                                     ; +0xcf, 0x180077d7f\nmulss   xmm4, xmm5                                                     ; +0xd3, 0x180077d83\nmulss   xmm3, xmm5                                                     ; +0xd7, 0x180077d87\ncvttss2si r8d, xmm4                                                    ; +0xdb, 0x180077d8b\ncvttss2si edx, xmm3                                                    ; +0xe0, 0x180077d90\njmp     short loc_180077DDB                                            ; +0xe4, 0x180077d94\nmovss   xmm0, cs:Y                                                     ; +0xe6, 0x180077d96\nsubss   xmm6, xmm0                                                     ; +0xee, 0x180077d9e\nandps   xmm6, xmm1                                                     ; +0xf2, 0x180077da2\ncomiss  xmm7, xmm6                                                     ; +0xf5, 0x180077da5\njbe     short loc_180077DE3                                            ; +0xf8, 0x180077da8\nsubss   xmm2, xmm0                                                     ; +0xfa, 0x180077daa\nandps   xmm2, xmm1                                                     ; +0xfe, 0x180077dae\ncomiss  xmm7, xmm2                                                     ; +0x101, 0x180077db1\njbe     short loc_180077DE3                                            ; +0x104, 0x180077db4\nmovaps  xmm0, xmm5                                                     ; +0x106, 0x180077db6\nmov     byte ptr [rcx+0B2h], 0                                         ; +0x109, 0x180077db9\nmulss   xmm0, xmm4                                                     ; +0x110, 0x180077dc0\nmov     dword ptr [rcx+0B4h], 1                                        ; +0x114, 0x180077dc4\nmulss   xmm5, xmm3                                                     ; +0x11e, 0x180077dce\ncvttss2si r8d, xmm0                                                    ; +0x122, 0x180077dd2\ncvttss2si edx, xmm5                                                    ; +0x127, 0x180077dd7\nmov     rcx, r11                                                       ; +0x12b, 0x180077ddb\ncall    sub_1800D4C40                                                  ; +0x12e, 0x180077dde\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x133, 0x180077de3\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x138, 0x180077de8\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x13d, 0x180077ded\nadd     rsp, 58h                                                       ; +0x143, 0x180077df3\nretn                                                                   ; +0x147, 0x180077df7", "xrefs": ["sub_180077E00 @ 0x180077e18", "<???> @ 0x1801438a8", "<???> @ 0x1801b4a4c"], "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"}