{"type": "func", "start": 4294985216, "end": 4294985513, "name": "-[AppController windowShouldZoom:toFrame:]", "pseudocode": "// \n// -[AppController windowShouldZoom:toFrame:] from 0x100004600 to 0x100004729 (297 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bdb1c8\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:45 +0000\n// \n\nchar __cdecl -[AppController windowShouldZoom:toFrame:](AppController *self, SEL a2, id a3, CGRect originalWinFrame)\n{\n  unsigned __int8 v5; // al\n  __int64 v6; // r8\n  __int64 v7; // r9\n  unsigned __int8 v8; // r15\n  CGPoint v9; // xmm0\n  _BOOL4 v10; // r15d\n  CGPoint origin; // xmm0\n  __int64 v12; // rcx\n  __int64 v13; // r8\n  __int64 v14; // r9\n  CGPoint v15; // xmm0\n  CGPoint v17; // [rsp+20h] [rbp-50h] BYREF\n  CGSize size; // [rsp+30h] [rbp-40h]\n\n  self->_liveResizing = 1;\n  v5 = (unsigned __int8)objc_msgSend(a3, \"isZoomed\");\n  if ( v5 )\n  {\n    originalWinFrame = self->originalWinFrame_;\n  }\n  else\n  {\n    if ( a3 )\n    {\n      v8 = v5;\n      objc_msgSend_stret(&v17, (SEL)a3, \"frame\");\n      v5 = v8;\n    }\n    else\n    {\n      size = 0;\n      v17 = 0;\n    }\n    v9 = v17;\n    self->originalWinFrame_.size = size;\n    self->originalWinFrame_.origin = v9;\n  }\n  v10 = v5 == 0;\n  origin = self->originalWinFrame_.origin;\n  size = self->originalWinFrame_.size;\n  v17 = origin;\n  objc_msgSend(\n    a3,\n    \"setFrame:display:animate:\",\n    0,\n    0,\n    v6,\n    v7,\n    *(_QWORD *)&originalWinFrame.origin.x,\n    *(_QWORD *)&originalWinFrame.origin.y,\n    *(_QWORD *)&originalWinFrame.size.width,\n    *(_QWORD *)&originalWinFrame.size.height);\n  -[AppController handleWindowResizeWMenu:Center:](\n    self,\n    \"handleWindowResizeWMenu:Center:\",\n    v10,\n    v12,\n    v13,\n    v14,\n    *(_QWORD *)&originalWinFrame.origin.x,\n    *(_QWORD *)&originalWinFrame.origin.y,\n    *(_QWORD *)&originalWinFrame.size.width,\n    *(_QWORD *)&originalWinFrame.size.height);\n  v15 = v17;\n  self->originalWinFrame_.size = size;\n  self->originalWinFrame_.origin = v15;\n  self->_liveResizing = 0;\n  return 0;\n}", "assembly": "; \n; -[AppController windowShouldZoom:toFrame:] from 0x100004600 to 0x100004729 (297 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bdb1c8\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:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x100004600\nmov     rbp, rsp                                                       ; +0x1, 0x100004601\npush    r15                                                            ; +0x4, 0x100004604\npush    r14                                                            ; +0x6, 0x100004606\npush    r13                                                            ; +0x8, 0x100004608\npush    r12                                                            ; +0xa, 0x10000460a\npush    rbx                                                            ; +0xc, 0x10000460c\nsub     rsp, 48h                                                       ; +0xd, 0x10000460d\nmov     r14, rdx                                                       ; +0x11, 0x100004611\nmov     rbx, rdi                                                       ; +0x14, 0x100004614\nlea     r12, [rbp+arg_0]                                               ; +0x17, 0x100004617\nmov     byte ptr [rdi+1Bh], 1                                          ; +0x1b, 0x10000461b\nmov     rsi, cs:selRef_isZoomed; SEL                                   ; +0x1f, 0x10000461f\nmov     rdi, rdx; id                                                   ; +0x26, 0x100004626\ncall    cs:_objc_msgSend_ptr                                           ; +0x29, 0x100004629\ntest    al, al                                                         ; +0x2f, 0x10000462f\njz      short loc_10000464E                                            ; +0x31, 0x100004631\nmovups  xmm0, xmmword ptr [rbx+98h]                                    ; +0x33, 0x100004633\nmovups  xmm1, xmmword ptr [rbx+0A8h]                                   ; +0x3a, 0x10000463a\nmovups  xmmword ptr [r12+10h], xmm1                                    ; +0x41, 0x100004641\nmovups  xmmword ptr [r12], xmm0                                        ; +0x47, 0x100004647\njmp     short loc_10000468F                                            ; +0x4c, 0x10000464c\ntest    r14, r14                                                       ; +0x4e, 0x10000464e\njz      short loc_10000466E                                            ; +0x51, 0x100004651\nmov     rdx, cs:selRef_frame                                           ; +0x53, 0x100004653\nlea     rdi, [rbp+var_50]; id                                          ; +0x5a, 0x10000465a\nmov     rsi, r14; SEL                                                  ; +0x5e, 0x10000465e\nmov     r15d, eax                                                      ; +0x61, 0x100004661\ncall    _objc_msgSend_stret                                            ; +0x64, 0x100004664\nmov     eax, r15d                                                      ; +0x69, 0x100004669\njmp     short loc_100004679                                            ; +0x6c, 0x10000466c\nxorps   xmm0, xmm0                                                     ; +0x6e, 0x10000466e\nmovaps  [rbp+var_40], xmm0                                             ; +0x71, 0x100004671\nmovaps  [rbp+var_50], xmm0                                             ; +0x75, 0x100004675\nmovaps  xmm0, [rbp+var_50]                                             ; +0x79, 0x100004679\nmovaps  xmm1, [rbp+var_40]                                             ; +0x7d, 0x10000467d\nmovups  xmmword ptr [rbx+0A8h], xmm1                                   ; +0x81, 0x100004681\nmovups  xmmword ptr [rbx+98h], xmm0                                    ; +0x88, 0x100004688\nxor     r15d, r15d                                                     ; +0x8f, 0x10000468f\ntest    al, al                                                         ; +0x92, 0x100004692\nsetz    r15b                                                           ; +0x94, 0x100004694\nmovups  xmm0, xmmword ptr [rbx+98h]                                    ; +0x98, 0x100004698\nmovups  xmm1, xmmword ptr [rbx+0A8h]                                   ; +0x9f, 0x10000469f\nmovaps  [rbp+var_40], xmm1                                             ; +0xa6, 0x1000046a6\nmovaps  [rbp+var_50], xmm0                                             ; +0xaa, 0x1000046aa\nmov     rsi, cs:selRef_setFrame_display_animate_; SEL                  ; +0xae, 0x1000046ae\nmovups  xmm0, xmmword ptr [r12]                                        ; +0xb5, 0x1000046b5\nmovups  xmm1, xmmword ptr [r12+10h]                                    ; +0xba, 0x1000046ba\nmovups  [rsp+70h+var_60], xmm1                                         ; +0xc0, 0x1000046c0\nmovups  [rsp+70h+var_70], xmm0                                         ; +0xc5, 0x1000046c5\nmov     r13, cs:_objc_msgSend_ptr                                      ; +0xc9, 0x1000046c9\nmov     rdi, r14; id                                                   ; +0xd0, 0x1000046d0\nxor     edx, edx                                                       ; +0xd3, 0x1000046d3\nxor     ecx, ecx                                                       ; +0xd5, 0x1000046d5\ncall    r13 ; _objc_msgSend                                            ; +0xd7, 0x1000046d7\nmov     rsi, cs:selRef_handleWindowResizeWMenu_Center_; SEL            ; +0xda, 0x1000046da\nmovups  xmm0, xmmword ptr [r12]                                        ; +0xe1, 0x1000046e1\nmovups  xmm1, xmmword ptr [r12+10h]                                    ; +0xe6, 0x1000046e6\nmovups  [rsp+70h+var_60], xmm1                                         ; +0xec, 0x1000046ec\nmovups  [rsp+70h+var_70], xmm0                                         ; +0xf1, 0x1000046f1\nmov     rdi, rbx; id                                                   ; +0xf5, 0x1000046f5\nmov     edx, r15d                                                      ; +0xf8, 0x1000046f8\ncall    r13 ; _objc_msgSend; -[AppController handleWindowResizeWMenu:Center:] ... ; +0xfb, 0x1000046fb\nmovaps  xmm0, [rbp+var_50]                                             ; +0xfe, 0x1000046fe\nmovaps  xmm1, [rbp+var_40]                                             ; +0x102, 0x100004702\nmovups  xmmword ptr [rbx+0A8h], xmm1                                   ; +0x106, 0x100004706\nmovups  xmmword ptr [rbx+98h], xmm0                                    ; +0x10d, 0x10000470d\nmov     byte ptr [rbx+1Bh], 0                                          ; +0x114, 0x100004714\nxor     eax, eax                                                       ; +0x118, 0x100004718\nadd     rsp, 48h                                                       ; +0x11a, 0x10000471a\npop     rbx                                                            ; +0x11e, 0x10000471e\npop     r12                                                            ; +0x11f, 0x10000471f\npop     r13                                                            ; +0x121, 0x100004721\npop     r14                                                            ; +0x123, 0x100004723\npop     r15                                                            ; +0x125, 0x100004725\npop     rbp                                                            ; +0x127, 0x100004727\nretn                                                                   ; +0x128, 0x100004728", "xrefs": ["<???> @ 0x100bdb1c8"], "is_objc": true, "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"}