{"type": "func", "start": 6442952896, "end": 6442953204, "name": "cocos2d::CCEGLView::onGLFWframebuffersize", "pseudocode": "// \n// cocos2d::CCEGLView::onGLFWframebuffersize from 0x18007a8c0 to 0x18007a9f4 (308 bytes)\n// \n// 3 xrefs:\n// > sub_18007AA00 @ 0x18007aa18\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bed58\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:22:00 +0000\n// \n\nvoid __fastcall cocos2d::CCEGLView::onGLFWframebuffersize(\n        cocos2d::CCEGLView *this,\n        struct GLFWwindow *a2,\n        int a3,\n        int a4)\n{\n  float v4; // xmm3_4\n  float v5; // xmm2_4\n  float v6; // xmm1_4\n  float v7; // xmm6_4\n  float v8; // xmm5_4\n  float v9; // xmm4_4\n  __int32 v10; // xmm1_4\n  float v11; // xmm4_4\n  char v12; // al\n  float v13; // xmm0_4\n\n  v4 = *((float *)this + 4);\n  v5 = *((float *)this + 5);\n  v6 = (float)*((int *)this + 45);\n  v7 = *((float *)this + 48);\n  v8 = (float)((float)(v4 / (float)a3) * v6) * v7;\n  v9 = (float)(v5 / (float)a4) * v6;\n  v10 = _mm_load_si128((const __m128i *)&xmmword_1800EC5C0).m128i_i32[0];\n  v11 = v9 * v7;\n  if ( COERCE_FLOAT(COERCE_UNSIGNED_INT(v8 - 0.5) & v10) < 0.00000011920929\n    && COERCE_FLOAT(COERCE_UNSIGNED_INT(v11 - 0.5) & v10) < 0.00000011920929 )\n  {\n    v12 = -*((_BYTE *)this + 179);\n    *((_BYTE *)this + 178) = 1;\n    *((_DWORD *)this + 45) = 2 - (v12 != 0);\n    v13 = (float)(2 - (v12 != 0));\n    v5 = (float)(v5 * 0.5) * v13;\n    v4 = (float)(v4 * 0.5) * v13;\nLABEL_7:\n    sub_1800DC970(a2, (unsigned int)(int)(float)(v4 * v7), (unsigned int)(int)(float)(v5 * v7));\n    return;\n  }\n  if ( COERCE_FLOAT(COERCE_UNSIGNED_INT(v8 - 2.0) & v10) < 0.00000011920929\n    && COERCE_FLOAT(COERCE_UNSIGNED_INT(v11 - 2.0) & v10) < 0.00000011920929 )\n  {\n    *((_BYTE *)this + 178) = 0;\n    *((_DWORD *)this + 45) = 1;\n    goto LABEL_7;\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::onGLFWframebuffersize from 0x18007a8c0 to 0x18007a9f4 (308 bytes)\n; \n; 3 xrefs:\n; > sub_18007AA00 @ 0x18007aa18\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bed58\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:22:00 +0000\n; \nsub     rsp, 58h                                                       ; +0x0, 0x18007a8c0\nmovss   xmm3, dword ptr [rcx+10h]                                      ; +0x4, 0x18007a8c4\nxorps   xmm0, xmm0                                                     ; +0x9, 0x18007a8c9\nmovss   xmm2, dword ptr [rcx+14h]                                      ; +0xc, 0x18007a8cc\nmovaps  xmm5, xmm3                                                     ; +0x11, 0x18007a8d1\ncvtsi2ss xmm0, r8d                                                     ; +0x14, 0x18007a8d4\nmov     r11, rdx                                                       ; +0x19, 0x18007a8d9\nmov     r10, rcx                                                       ; +0x1c, 0x18007a8dc\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x1f, 0x18007a8df\nxorps   xmm1, xmm1                                                     ; +0x24, 0x18007a8e4\ncvtsi2ss xmm1, dword ptr [rcx+0B4h]                                    ; +0x27, 0x18007a8e7\nmovss   xmm6, dword ptr [rcx+0C0h]                                     ; +0x2f, 0x18007a8ef\nmovaps  xmm4, xmm2                                                     ; +0x37, 0x18007a8f7\ndivss   xmm5, xmm0                                                     ; +0x3a, 0x18007a8fa\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x18007a8fe\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x41, 0x18007a901\nmovss   xmm7, cs:dword_1800EC5B4                                       ; +0x46, 0x18007a906\ncvtsi2ss xmm0, r9d                                                     ; +0x4e, 0x18007a90e\nmulss   xmm5, xmm1                                                     ; +0x53, 0x18007a913\ndivss   xmm4, xmm0                                                     ; +0x57, 0x18007a917\nmulss   xmm5, xmm6                                                     ; +0x5b, 0x18007a91b\nmulss   xmm4, xmm1                                                     ; +0x5f, 0x18007a91f\nmovdqa  xmm1, cs:xmmword_1800EC5C0                                     ; +0x63, 0x18007a923\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x6b, 0x18007a92b\nmovaps  xmm0, xmm5                                                     ; +0x71, 0x18007a931\nmovss   xmm8, cs:dword_1800EC358                                       ; +0x74, 0x18007a934\nsubss   xmm0, xmm8                                                     ; +0x7d, 0x18007a93d\nmulss   xmm4, xmm6                                                     ; +0x82, 0x18007a942\nandps   xmm0, xmm1                                                     ; +0x86, 0x18007a946\ncomiss  xmm7, xmm0                                                     ; +0x89, 0x18007a949\njbe     short loc_18007A995                                            ; +0x8c, 0x18007a94c\nmovaps  xmm0, xmm4                                                     ; +0x8e, 0x18007a94e\nsubss   xmm0, xmm8                                                     ; +0x91, 0x18007a951\nandps   xmm0, xmm1                                                     ; +0x96, 0x18007a956\ncomiss  xmm7, xmm0                                                     ; +0x99, 0x18007a959\njbe     short loc_18007A995                                            ; +0x9c, 0x18007a95c\nmovzx   eax, byte ptr [rcx+0B3h]                                       ; +0x9e, 0x18007a95e\nneg     al                                                             ; +0xa5, 0x18007a965\nmov     byte ptr [rcx+0B2h], 1                                         ; +0xa7, 0x18007a967\nmulss   xmm2, xmm8                                                     ; +0xae, 0x18007a96e\nsbb     ecx, ecx                                                       ; +0xb3, 0x18007a973\nadd     ecx, 2                                                         ; +0xb5, 0x18007a975\nmulss   xmm3, xmm8                                                     ; +0xb8, 0x18007a978\nmov     [r10+0B4h], ecx                                                ; +0xbd, 0x18007a97d\nmovd    xmm0, ecx                                                      ; +0xc4, 0x18007a984\ncvtdq2ps xmm0, xmm0                                                    ; +0xc8, 0x18007a988\nmulss   xmm2, xmm0                                                     ; +0xcb, 0x18007a98b\nmulss   xmm3, xmm0                                                     ; +0xcf, 0x18007a98f\njmp     short loc_18007A9C6                                            ; +0xd3, 0x18007a993\nmovss   xmm0, cs:X                                                     ; +0xd5, 0x18007a995\nsubss   xmm5, xmm0                                                     ; +0xdd, 0x18007a99d\nandps   xmm5, xmm1                                                     ; +0xe1, 0x18007a9a1\ncomiss  xmm7, xmm5                                                     ; +0xe4, 0x18007a9a4\njbe     short loc_18007A9DF                                            ; +0xe7, 0x18007a9a7\nsubss   xmm4, xmm0                                                     ; +0xe9, 0x18007a9a9\nandps   xmm4, xmm1                                                     ; +0xed, 0x18007a9ad\ncomiss  xmm7, xmm4                                                     ; +0xf0, 0x18007a9b0\njbe     short loc_18007A9DF                                            ; +0xf3, 0x18007a9b3\nmov     byte ptr [rcx+0B2h], 0                                         ; +0xf5, 0x18007a9b5\nmov     dword ptr [rcx+0B4h], 1                                        ; +0xfc, 0x18007a9bc\nmulss   xmm2, xmm6                                                     ; +0x106, 0x18007a9c6\nmov     rcx, r11                                                       ; +0x10a, 0x18007a9ca\nmulss   xmm3, xmm6                                                     ; +0x10d, 0x18007a9cd\ncvttss2si r8d, xmm2                                                    ; +0x111, 0x18007a9d1\ncvttss2si edx, xmm3                                                    ; +0x116, 0x18007a9d6\ncall    sub_1800DC970                                                  ; +0x11a, 0x18007a9da\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x11f, 0x18007a9df\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x124, 0x18007a9e4\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x129, 0x18007a9e9\nadd     rsp, 58h                                                       ; +0x12f, 0x18007a9ef\nretn                                                                   ; +0x133, 0x18007a9f3", "xrefs": ["sub_18007AA00 @ 0x18007aa18", "<???> @ 0x18014cf68", "<???> @ 0x1801bed58"], "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"}