{"type": "func", "start": 4295041008, "end": 4295041216, "name": "EditorUI::zoomGameLayer", "pseudocode": "// \n// EditorUI::zoomGameLayer from 0x100011ff0 to 0x1000120c0 (208 bytes)\n// \n// 1 xrefs:\n// > EditorUI::scrollWheel @ 0x10060e250\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 12:18:52 +0000\n// \n\n__int64 __fastcall EditorUI::zoomGameLayer(__int64 a1, __int64 a2, float a3)\n{\n  __int64 v4; // rdi\n  __m128 v5; // xmm1\n  __m128 v6; // xmm0\n  __int64 v7; // rax\n  _BYTE v9[8]; // [rsp+Ch] [rbp-24h] BYREF\n  float v10[2]; // [rsp+14h] [rbp-1Ch] BYREF\n  float v11; // [rsp+1Ch] [rbp-14h]\n\n  v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 168LL))(v4);\n  v5 = (__m128)0x3DCCCCCDu;\n  if ( !(_DWORD)a2 )\n    v5 = (__m128)0xBDCCCCCD;\n  v5.f32[0] = (float)((float)(v5.f32[0] + a3) / 0.1) + 0.001;\n  v6 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v5), (__m128)xmmword_100A03600);\n  v6.f32[0] = v6.f32[0] + v5.f32[0];\n  v11 = fmaxf(0.1, fminf(10.0, _mm_round_ss(v6, v6, 11).f32[0] * 0.1));\n  v7 = cocos2d::CCDirector::sharedDirector(v4, a2);\n  cocos2d::CCDirector::getWinSize(v10, v7);\n  sub_100278250(v9, v10[0] * 0.5, 0.5 * v10[1]);\n  return EditorUI::updateZoom(a1, v9, v11);\n}", "assembly": "; \n; EditorUI::zoomGameLayer from 0x100011ff0 to 0x1000120c0 (208 bytes)\n; \n; 1 xrefs:\n; > EditorUI::scrollWheel @ 0x10060e250\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 12:18:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x100011ff0\nmov     rbp, rsp                                                       ; +0x1, 0x100011ff1\npush    r14                                                            ; +0x4, 0x100011ff4\npush    rbx                                                            ; +0x6, 0x100011ff6\nsub     rsp, 20h                                                       ; +0x7, 0x100011ff7\nmov     r14d, esi                                                      ; +0xb, 0x100011ffb\nmov     rbx, rdi                                                       ; +0xe, 0x100011ffe\nmov     rax, [rdi+5A0h]                                                ; +0x11, 0x100012001\nmov     rdi, [rax+0F50h]                                               ; +0x18, 0x100012008\nmov     rax, [rdi]                                                     ; +0x1f, 0x10001200f\ncall    qword ptr [rax+0A8h]                                           ; +0x22, 0x100012012\nmovss   xmm2, cs:dword_100A03744                                       ; +0x28, 0x100012018\nmovaps  xmm1, xmm2                                                     ; +0x30, 0x100012020\ntest    r14d, r14d                                                     ; +0x33, 0x100012023\njnz     short loc_100012030                                            ; +0x36, 0x100012026\nmovss   xmm1, cs:dword_100A037FC                                       ; +0x38, 0x100012028\naddss   xmm1, xmm0                                                     ; +0x40, 0x100012030\ndivss   xmm1, xmm2                                                     ; +0x44, 0x100012034\naddss   xmm1, cs:dword_100A037F8                                       ; +0x48, 0x100012038\nmovaps  xmm0, cs:xmmword_100A035F0                                     ; +0x50, 0x100012040\nandps   xmm0, xmm1                                                     ; +0x57, 0x100012047\norps    xmm0, cs:xmmword_100A03600                                     ; +0x5a, 0x10001204a\naddss   xmm0, xmm1                                                     ; +0x61, 0x100012051\nroundss xmm0, xmm0, 0Bh                                                ; +0x65, 0x100012055\nmulss   xmm0, xmm2                                                     ; +0x6b, 0x10001205b\nmovss   xmm1, cs:dword_100A035BC                                       ; +0x6f, 0x10001205f\nminss   xmm1, xmm0                                                     ; +0x77, 0x100012067\nmaxss   xmm2, xmm1                                                     ; +0x7b, 0x10001206b\nmovss   [rbp+var_14], xmm2                                             ; +0x7f, 0x10001206f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x84, 0x100012074\nlea     rdi, [rbp+var_1C]                                              ; +0x89, 0x100012079\nmov     rsi, rax                                                       ; +0x8d, 0x10001207d\ncall    cocos2d__CCDirector__getWinSize                                ; +0x90, 0x100012080\nmovss   xmm1, cs:dword_100A03578                                       ; +0x95, 0x100012085\nmovss   xmm0, [rbp+var_1C]                                             ; +0x9d, 0x10001208d\nmulss   xmm0, xmm1                                                     ; +0xa2, 0x100012092\nmulss   xmm1, [rbp+var_18]                                             ; +0xa6, 0x100012096\nlea     r14, [rbp+var_24]                                              ; +0xab, 0x10001209b\nmov     rdi, r14                                                       ; +0xaf, 0x10001209f\ncall    sub_100278250                                                  ; +0xb2, 0x1000120a2\nmov     rdi, rbx                                                       ; +0xb7, 0x1000120a7\nmovss   xmm0, [rbp+var_14]                                             ; +0xba, 0x1000120aa\nmov     rsi, r14                                                       ; +0xbf, 0x1000120af\ncall    EditorUI__updateZoom                                           ; +0xc2, 0x1000120b2\nadd     rsp, 20h                                                       ; +0xc7, 0x1000120b7\npop     rbx                                                            ; +0xcb, 0x1000120bb\npop     r14                                                            ; +0xcc, 0x1000120bc\npop     rbp                                                            ; +0xce, 0x1000120be\nretn                                                                   ; +0xcf, 0x1000120bf", "xrefs": ["EditorUI::scrollWheel @ 0x10060e250"], "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"}