{"type": "func", "start": 4300052728, "end": 4300052912, "name": "EditorWindowPopup::applyWindowSize", "pseudocode": "// \n// EditorWindowPopup::applyWindowSize from 0x1004d98f8 to 0x1004d99b0 (184 bytes)\n// \n// 2 xrefs:\n// > EditorWindowPopup::initWindow @ 0x1004d96ac\n// > EditorWindowPopup::ccTouchMoved @ 0x1004da6ec\n// \n// This function is hookable on this platform (idp: arm, 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:06:33 +0000\n// \n\n__int64 __fastcall EditorWindowPopup::applyWindowSize(__int64 a1)\n{\n  __int64 v2; // x20\n  float v3; // s0\n  float v4; // s1\n  __int64 v5; // x20\n  __n128 v6; // q0\n  __int64 result; // x0\n  __int64 v8; // [xsp+0h] [xbp-20h] BYREF\n  double v9; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 1024);\n  if ( v2 )\n  {\n    sub_1000262C4((float *)&v9, *(float *)(a1 + 1056), *(float *)(a1 + 1060));\n    (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v2 + 320LL))(v2, &v9);\n  }\n  v3 = *(float *)(a1 + 1056);\n  *(float *)(a1 + 732) = v3;\n  v4 = *(float *)(a1 + 1060);\n  *(float *)(a1 + 736) = v4;\n  if ( *(_QWORD *)(a1 + 1040) )\n  {\n    sub_1000262C4((float *)&v9, v3, v4 + -4.0);\n    v5 = *(_QWORD *)(a1 + 1040);\n    v6.n128_f64[0] = sub_100026438(&v8, &v9);\n    ScrollableContentLayer::setViewSize(v5, &v8, v6);\n  }\n  result = EditorWindowPopup::layoutWindow(a1);\n  if ( *(_DWORD *)(a1 + 1116) == 1 )\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1520LL))(a1);\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::applyWindowSize from 0x1004d98f8 to 0x1004d99b0 (184 bytes)\n; \n; 2 xrefs:\n; > EditorWindowPopup::initWindow @ 0x1004d96ac\n; > EditorWindowPopup::ccTouchMoved @ 0x1004da6ec\n; \n; This function is hookable on this platform (idp: arm, 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:06:33 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1004d98f8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004d98fc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004d9900\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004d9904\nMOV             X19, X0                                                ; +0x10, 0x1004d9908\nLDR             X20, [X0,#0x400]                                       ; +0x14, 0x1004d990c\nCBZ             X20, loc_1004D9938                                     ; +0x18, 0x1004d9910\nLDR             S0, [X19,#0x420]                                       ; +0x1c, 0x1004d9914\nLDR             S1, [X19,#0x424]                                       ; +0x20, 0x1004d9918\nADD             X0, SP, #0x20+var_18                                   ; +0x24, 0x1004d991c\nBL              sub_1000262C4                                          ; +0x28, 0x1004d9920\nLDR             X8, [X20]                                              ; +0x2c, 0x1004d9924\nLDR             X8, [X8,#0x140]                                        ; +0x30, 0x1004d9928\nADD             X1, SP, #0x20+var_18                                   ; +0x34, 0x1004d992c\nMOV             X0, X20                                                ; +0x38, 0x1004d9930\nBLR             X8                                                     ; +0x3c, 0x1004d9934\nLDR             S0, [X19,#0x420]                                       ; +0x40, 0x1004d9938\nSTR             S0, [X19,#0x2DC]                                       ; +0x44, 0x1004d993c\nLDR             S1, [X19,#0x424]                                       ; +0x48, 0x1004d9940\nSTR             S1, [X19,#0x2E0]                                       ; +0x4c, 0x1004d9944\nLDR             X8, [X19,#0x410]                                       ; +0x50, 0x1004d9948\nCBZ             X8, loc_1004D997C                                      ; +0x54, 0x1004d994c\nFMOV            S2, #-4.0                                              ; +0x58, 0x1004d9950\nFADD            S1, S1, S2                                             ; +0x5c, 0x1004d9954\nADD             X0, SP, #0x20+var_18                                   ; +0x60, 0x1004d9958\nBL              sub_1000262C4                                          ; +0x64, 0x1004d995c\nLDR             X20, [X19,#0x410]                                      ; +0x68, 0x1004d9960\nMOV             X0, SP                                                 ; +0x6c, 0x1004d9964\nADD             X1, SP, #0x20+var_18                                   ; +0x70, 0x1004d9968\nBL              sub_100026438                                          ; +0x74, 0x1004d996c\nMOV             X1, SP                                                 ; +0x78, 0x1004d9970\nMOV             X0, X20                                                ; +0x7c, 0x1004d9974\nBL              ScrollableContentLayer__setViewSize                    ; +0x80, 0x1004d9978\nMOV             X0, X19                                                ; +0x84, 0x1004d997c\nBL              EditorWindowPopup__layoutWindow                        ; +0x88, 0x1004d9980\nLDR             W8, [X19,#0x45C]                                       ; +0x8c, 0x1004d9984\nCMP             W8, #1                                                 ; +0x90, 0x1004d9988\nB.NE            loc_1004D99A0                                          ; +0x94, 0x1004d998c\nLDR             X8, [X19]                                              ; +0x98, 0x1004d9990\nLDR             X8, [X8,#0x5F0]                                        ; +0x9c, 0x1004d9994\nMOV             X0, X19                                                ; +0xa0, 0x1004d9998\nBLR             X8                                                     ; +0xa4, 0x1004d999c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa8, 0x1004d99a0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xac, 0x1004d99a4\nADD             SP, SP, #0x30 ; '0'                                    ; +0xb0, 0x1004d99a8\nRET                                                                    ; +0xb4, 0x1004d99ac", "xrefs": ["EditorWindowPopup::initWindow @ 0x1004d96ac", "EditorWindowPopup::ccTouchMoved @ 0x1004da6ec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}