{"type": "func", "start": 6442959024, "end": 6442959384, "name": "cocos2d::CCEGLView::updateFrameSize", "pseudocode": "// \n// cocos2d::CCEGLView::updateFrameSize from 0x18007c0b0 to 0x18007c218 (360 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCEGLView::setFrameSize @ 0x18007b696\n// > cocos2d::CCEGLView::setFrameZoomFactor @ 0x18007b6c8\n// > <???> @ 0x180144a78\n// > <???> @ 0x180144a88\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bee48\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::updateFrameSize(cocos2d::CCEGLView *this)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rcx\n  float *v4; // rcx\n  int v5; // ecx\n  int v6; // [rsp+40h] [rbp+8h] BYREF\n  int v7; // [rsp+48h] [rbp+10h] BYREF\n  int v8; // [rsp+50h] [rbp+18h] BYREF\n  int v9; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( *((float *)this + 4) > 0.0 && *((float *)this + 5) > 0.0 )\n  {\n    v2 = *((_QWORD *)this + 25);\n    v6 = 0;\n    v8 = 0;\n    sub_1800DC750(v2, &v6, &v8);\n    v3 = *((_QWORD *)this + 25);\n    v7 = 0;\n    v9 = 0;\n    sub_1800DC750(v3, &v7, &v9);\n    v4 = (float *)((char *)this + 16);\n    if ( v7 == 2 * v6 )\n    {\n      if ( v9 == 2 * v8 )\n      {\n        v5 = 2 - (*((_BYTE *)this + 179) != 0);\n        *((_DWORD *)this + 45) = v5;\n        sub_1800DC970(\n          *((_QWORD *)this + 25),\n          (unsigned int)(int)(float)((float)((float)(*((float *)this + 4) * 0.5) * (float)v5) * *((float *)this + 48)),\n          (unsigned int)(int)(float)((float)((float)(*((float *)this + 5) * 0.5) * (float)v5) * *((float *)this + 48)));\n        *((_BYTE *)this + 178) = 1;\n        return;\n      }\n      v4 = (float *)((char *)this + 16);\n    }\n    if ( *((_BYTE *)this + 178) )\n      *((_DWORD *)this + 45) = 1;\n    else\n      v4 = (float *)((char *)this + 16);\n    sub_1800DC970(\n      *((_QWORD *)this + 25),\n      (unsigned int)(int)(float)((float)((float)*((int *)this + 45) * *v4) * *((float *)this + 48)),\n      (unsigned int)(int)(float)((float)((float)*((int *)this + 45) * *((float *)this + 5)) * *((float *)this + 48)));\n    *((_BYTE *)this + 178) = 0;\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::updateFrameSize from 0x18007c0b0 to 0x18007c218 (360 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCEGLView::setFrameSize @ 0x18007b696\n; > cocos2d::CCEGLView::setFrameZoomFactor @ 0x18007b6c8\n; > <???> @ 0x180144a78\n; > <???> @ 0x180144a88\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bee48\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; \npush    rbx                                                            ; +0x0, 0x18007c0b0\npush    rdi                                                            ; +0x2, 0x18007c0b2\nsub     rsp, 28h                                                       ; +0x3, 0x18007c0b3\nmovss   xmm0, dword ptr [rcx+10h]                                      ; +0x7, 0x18007c0b7\nxorps   xmm1, xmm1                                                     ; +0xc, 0x18007c0bc\ncomiss  xmm0, xmm1                                                     ; +0xf, 0x18007c0bf\nmov     rbx, rcx                                                       ; +0x12, 0x18007c0c2\njbe     loc_18007C211                                                  ; +0x15, 0x18007c0c5\nmovss   xmm0, dword ptr [rcx+14h]                                      ; +0x1b, 0x18007c0cb\ncomiss  xmm0, xmm1                                                     ; +0x20, 0x18007c0d0\njbe     loc_18007C211                                                  ; +0x23, 0x18007c0d3\nmov     rcx, [rcx+0C8h]                                                ; +0x29, 0x18007c0d9\nlea     r8, [rsp+38h+arg_10]                                           ; +0x30, 0x18007c0e0\nmov     [rsp+38h+var_18], rsi                                          ; +0x35, 0x18007c0e5\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x3a, 0x18007c0ea\nxor     esi, esi                                                       ; +0x3f, 0x18007c0ef\nmov     [rsp+38h+arg_0], esi                                           ; +0x41, 0x18007c0f1\nmov     [rsp+38h+arg_10], esi                                          ; +0x45, 0x18007c0f5\ncall    sub_1800DC750                                                  ; +0x49, 0x18007c0f9\nmov     rcx, [rbx+0C8h]                                                ; +0x4e, 0x18007c0fe\nlea     r8, [rsp+38h+arg_18]                                           ; +0x55, 0x18007c105\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x5a, 0x18007c10a\nmov     [rsp+38h+arg_8], esi                                           ; +0x5f, 0x18007c10f\nmov     [rsp+38h+arg_18], esi                                          ; +0x63, 0x18007c113\ncall    sub_1800DC750                                                  ; +0x67, 0x18007c117\nmov     eax, [rsp+38h+arg_0]                                           ; +0x6c, 0x18007c11c\nlea     rcx, [rbx+10h]                                                 ; +0x70, 0x18007c120\nmov     rsi, [rsp+38h+var_18]                                          ; +0x74, 0x18007c124\nadd     eax, eax                                                       ; +0x79, 0x18007c129\ncmp     [rsp+38h+arg_8], eax                                           ; +0x7b, 0x18007c12b\njnz     loc_18007C1B5                                                  ; +0x7f, 0x18007c12f\nmov     eax, [rsp+38h+arg_10]                                          ; +0x85, 0x18007c135\nadd     eax, eax                                                       ; +0x89, 0x18007c139\ncmp     [rsp+38h+arg_18], eax                                          ; +0x8b, 0x18007c13b\njnz     short loc_18007C1B1                                            ; +0x8f, 0x18007c13f\nmovzx   eax, byte ptr [rbx+0B3h]                                       ; +0x91, 0x18007c141\nneg     al                                                             ; +0x98, 0x18007c148\nsbb     ecx, ecx                                                       ; +0x9a, 0x18007c14a\nadd     ecx, 2                                                         ; +0x9c, 0x18007c14c\nmov     [rbx+0B4h], ecx                                                ; +0x9f, 0x18007c14f\nmovss   xmm0, dword ptr [rbx+14h]                                      ; +0xa5, 0x18007c155\nmulss   xmm0, cs:dword_1800EC358                                       ; +0xaa, 0x18007c15a\nmovss   xmm3, dword ptr [rbx+0C0h]                                     ; +0xb2, 0x18007c162\nmovd    xmm2, ecx                                                      ; +0xba, 0x18007c16a\nmov     rcx, [rbx+0C8h]                                                ; +0xbe, 0x18007c16e\ncvtdq2ps xmm2, xmm2                                                    ; +0xc5, 0x18007c175\nmulss   xmm0, xmm2                                                     ; +0xc8, 0x18007c178\nmulss   xmm0, xmm3                                                     ; +0xcc, 0x18007c17c\ncvttss2si r8d, xmm0                                                    ; +0xd0, 0x18007c180\nmovss   xmm0, dword ptr [rbx+10h]                                      ; +0xd5, 0x18007c185\nmulss   xmm0, cs:dword_1800EC358                                       ; +0xda, 0x18007c18a\nmulss   xmm0, xmm2                                                     ; +0xe2, 0x18007c192\nmulss   xmm0, xmm3                                                     ; +0xe6, 0x18007c196\ncvttss2si edx, xmm0                                                    ; +0xea, 0x18007c19a\ncall    sub_1800DC970                                                  ; +0xee, 0x18007c19e\nmov     byte ptr [rbx+0B2h], 1                                         ; +0xf3, 0x18007c1a3\nadd     rsp, 28h                                                       ; +0xfa, 0x18007c1aa\npop     rdi                                                            ; +0xfe, 0x18007c1ae\npop     rbx                                                            ; +0xff, 0x18007c1af\nretn                                                                   ; +0x100, 0x18007c1b0\nlea     rcx, [rbx+10h]                                                 ; +0x101, 0x18007c1b1\ncmp     byte ptr [rbx+0B2h], 0                                         ; +0x105, 0x18007c1b5\njz      short loc_18007C1CA                                            ; +0x10c, 0x18007c1bc\nmov     dword ptr [rbx+0B4h], 1                                        ; +0x10e, 0x18007c1be\njmp     short loc_18007C1CE                                            ; +0x118, 0x18007c1c8\nlea     rcx, [rbx+10h]                                                 ; +0x11a, 0x18007c1ca\nmovss   xmm1, dword ptr [rbx+0C0h]                                     ; +0x11e, 0x18007c1ce\nmovd    xmm2, dword ptr [rbx+0B4h]                                     ; +0x126, 0x18007c1d6\ncvtdq2ps xmm2, xmm2                                                    ; +0x12e, 0x18007c1de\nmovaps  xmm0, xmm2                                                     ; +0x131, 0x18007c1e1\nmulss   xmm2, dword ptr [rcx]                                          ; +0x134, 0x18007c1e4\nmov     rcx, [rbx+0C8h]                                                ; +0x138, 0x18007c1e8\nmulss   xmm0, dword ptr [rbx+14h]                                      ; +0x13f, 0x18007c1ef\nmulss   xmm2, xmm1                                                     ; +0x144, 0x18007c1f4\nmulss   xmm0, xmm1                                                     ; +0x148, 0x18007c1f8\ncvttss2si edx, xmm2                                                    ; +0x14c, 0x18007c1fc\ncvttss2si r8d, xmm0                                                    ; +0x150, 0x18007c200\ncall    sub_1800DC970                                                  ; +0x155, 0x18007c205\nmov     byte ptr [rbx+0B2h], 0                                         ; +0x15a, 0x18007c20a\nadd     rsp, 28h                                                       ; +0x161, 0x18007c211\npop     rdi                                                            ; +0x165, 0x18007c215\npop     rbx                                                            ; +0x166, 0x18007c216\nretn                                                                   ; +0x167, 0x18007c217", "xrefs": ["cocos2d::CCEGLView::setFrameSize @ 0x18007b696", "cocos2d::CCEGLView::setFrameZoomFactor @ 0x18007b6c8", "<???> @ 0x180144a78", "<???> @ 0x180144a88", "<???> @ 0x18014cf68", "<???> @ 0x1801bee48"], "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"}