{"type": "func", "start": 4300052912, "end": 4300053216, "name": "EditorWindowPopup::layoutWindow", "pseudocode": "// \n// EditorWindowPopup::layoutWindow from 0x1004d99b0 to 0x1004d9ae0 (304 bytes)\n// \n// 6 xrefs:\n// > EditorWindowPopup::initWindow @ 0x1004d9700\n// > EditorWindowPopup::applyWindowSize @ 0x1004d9980\n// > EditorWindowPopup::moveWindowTo @ 0x1004d9bbc\n// > EditorWindowPopup::ccTouchMoved @ 0x1004da5a4\n// > EditorWindowPopup::ccTouchEnded @ 0x1004da810\n// > EditorWindowPopup::ccTouchCancelled @ 0x1004da94c\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::layoutWindow(__int64 a1)\n{\n  __int64 v2; // x20\n  double v3; // d0\n  __int64 v4; // x0\n  __int64 v5; // x20\n  __int64 v6; // x20\n  float32x2_t v8; // [xsp+0h] [xbp-20h] BYREF\n  float32x2_t v9; // [xsp+8h] [xbp-18h] BYREF\n\n  EditorWindowPopup::contentCenter((float *)&v9);\n  sub_10034C03C(a1);\n  v2 = *(_QWORD *)(a1 + 584);\n  *(float32x2_t *)&v3 = sub_10002632C((float32x2_t *)(a1 + 1068), &v9, &v8);\n  (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v2 + 184LL))(v2, &v8, v3);\n  (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 584) + 160LL))(\n    *(_QWORD *)(a1 + 584),\n    *(float *)(a1 + 1064));\n  v4 = *(_QWORD *)(a1 + 1024);\n  if ( v4 )\n    (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v4 + 184LL))(v4, &v9);\n  v5 = *(_QWORD *)(a1 + 1040);\n  if ( v5 )\n  {\n    sub_1000262BC(\n      (float *)&v8,\n      v9.f32[0] - (float)(*(float *)(a1 + 1056) * 0.5),\n      (float)(v9.f32[1] - (float)(*(float *)(a1 + 1060) * 0.5)) + 2.0);\n    (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 184LL))(v5, &v8);\n  }\n  v6 = *(_QWORD *)(a1 + 1032);\n  if ( v6 )\n  {\n    sub_1000262BC(\n      (float *)&v8,\n      (float)(v9.f32[0] - (float)(*(float *)(a1 + 1056) * 0.5)) + 4.0,\n      (float)(v9.f32[1] + (float)(*(float *)(a1 + 1060) * 0.5)) + -4.0);\n    (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v6 + 184LL))(v6, &v8);\n  }\n  return EditorWindowPopup::dismissDropdowns(a1);\n}", "assembly": "; \n; EditorWindowPopup::layoutWindow from 0x1004d99b0 to 0x1004d9ae0 (304 bytes)\n; \n; 6 xrefs:\n; > EditorWindowPopup::initWindow @ 0x1004d9700\n; > EditorWindowPopup::applyWindowSize @ 0x1004d9980\n; > EditorWindowPopup::moveWindowTo @ 0x1004d9bbc\n; > EditorWindowPopup::ccTouchMoved @ 0x1004da5a4\n; > EditorWindowPopup::ccTouchEnded @ 0x1004da810\n; > EditorWindowPopup::ccTouchCancelled @ 0x1004da94c\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, 0x1004d99b0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004d99b4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004d99b8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004d99bc\nMOV             X19, X0                                                ; +0x10, 0x1004d99c0\nADD             X8, SP, #0x20+var_18                                   ; +0x14, 0x1004d99c4\nBL              EditorWindowPopup__contentCenter                       ; +0x18, 0x1004d99c8\nMOV             X0, X19                                                ; +0x1c, 0x1004d99cc\nBL              sub_10034C03C                                          ; +0x20, 0x1004d99d0\nLDR             X20, [X19,#0x248]                                      ; +0x24, 0x1004d99d4\nMOV             X8, SP                                                 ; +0x28, 0x1004d99d8\nADD             X0, X19, #0x42C                                        ; +0x2c, 0x1004d99dc\nADD             X1, SP, #0x20+var_18                                   ; +0x30, 0x1004d99e0\nBL              sub_10002632C                                          ; +0x34, 0x1004d99e4\nLDR             X8, [X20]                                              ; +0x38, 0x1004d99e8\nLDR             X8, [X8,#0xB8]                                         ; +0x3c, 0x1004d99ec\nMOV             X1, SP                                                 ; +0x40, 0x1004d99f0\nMOV             X0, X20                                                ; +0x44, 0x1004d99f4\nBLR             X8                                                     ; +0x48, 0x1004d99f8\nLDR             X0, [X19,#0x248]                                       ; +0x4c, 0x1004d99fc\nLDR             S0, [X19,#0x428]                                       ; +0x50, 0x1004d9a00\nLDR             X8, [X0]                                               ; +0x54, 0x1004d9a04\nLDR             X8, [X8,#0xA0]                                         ; +0x58, 0x1004d9a08\nBLR             X8                                                     ; +0x5c, 0x1004d9a0c\nLDR             X0, [X19,#0x400]                                       ; +0x60, 0x1004d9a10\nCBZ             X0, loc_1004D9A28                                      ; +0x64, 0x1004d9a14\nLDR             X8, [X0]                                               ; +0x68, 0x1004d9a18\nLDR             X8, [X8,#0xB8]                                         ; +0x6c, 0x1004d9a1c\nADD             X1, SP, #0x20+var_18                                   ; +0x70, 0x1004d9a20\nBLR             X8                                                     ; +0x74, 0x1004d9a24\nLDR             X20, [X19,#0x410]                                      ; +0x78, 0x1004d9a28\nCBZ             X20, loc_1004D9A74                                     ; +0x7c, 0x1004d9a2c\nLDR             S0, [X19,#0x420]                                       ; +0x80, 0x1004d9a30\nFMOV            S1, #0.5                                               ; +0x84, 0x1004d9a34\nFMUL            S0, S0, S1                                             ; +0x88, 0x1004d9a38\nLDP             S2, S3, [SP,#0x20+var_18]                              ; +0x8c, 0x1004d9a3c\nFSUB            S0, S2, S0                                             ; +0x90, 0x1004d9a40\nLDR             S2, [X19,#0x424]                                       ; +0x94, 0x1004d9a44\nFMUL            S1, S2, S1                                             ; +0x98, 0x1004d9a48\nFSUB            S1, S3, S1                                             ; +0x9c, 0x1004d9a4c\nFMOV            S2, #2.0                                               ; +0xa0, 0x1004d9a50\nFADD            S1, S1, S2                                             ; +0xa4, 0x1004d9a54\nMOV             X0, SP                                                 ; +0xa8, 0x1004d9a58\nBL              sub_1000262BC                                          ; +0xac, 0x1004d9a5c\nLDR             X8, [X20]                                              ; +0xb0, 0x1004d9a60\nLDR             X8, [X8,#0xB8]                                         ; +0xb4, 0x1004d9a64\nMOV             X1, SP                                                 ; +0xb8, 0x1004d9a68\nMOV             X0, X20                                                ; +0xbc, 0x1004d9a6c\nBLR             X8                                                     ; +0xc0, 0x1004d9a70\nLDR             X20, [X19,#0x408]                                      ; +0xc4, 0x1004d9a74\nCBZ             X20, loc_1004D9AC8                                     ; +0xc8, 0x1004d9a78\nLDR             S0, [X19,#0x420]                                       ; +0xcc, 0x1004d9a7c\nFMOV            S1, #0.5                                               ; +0xd0, 0x1004d9a80\nFMUL            S0, S0, S1                                             ; +0xd4, 0x1004d9a84\nLDP             S2, S3, [SP,#0x20+var_18]                              ; +0xd8, 0x1004d9a88\nFSUB            S0, S2, S0                                             ; +0xdc, 0x1004d9a8c\nFMOV            S2, #4.0                                               ; +0xe0, 0x1004d9a90\nFADD            S0, S0, S2                                             ; +0xe4, 0x1004d9a94\nLDR             S2, [X19,#0x424]                                       ; +0xe8, 0x1004d9a98\nFMUL            S1, S2, S1                                             ; +0xec, 0x1004d9a9c\nFADD            S1, S3, S1                                             ; +0xf0, 0x1004d9aa0\nFMOV            S2, #-4.0                                              ; +0xf4, 0x1004d9aa4\nFADD            S1, S1, S2                                             ; +0xf8, 0x1004d9aa8\nMOV             X0, SP                                                 ; +0xfc, 0x1004d9aac\nBL              sub_1000262BC                                          ; +0x100, 0x1004d9ab0\nLDR             X8, [X20]                                              ; +0x104, 0x1004d9ab4\nLDR             X8, [X8,#0xB8]                                         ; +0x108, 0x1004d9ab8\nMOV             X1, SP                                                 ; +0x10c, 0x1004d9abc\nMOV             X0, X20                                                ; +0x110, 0x1004d9ac0\nBLR             X8                                                     ; +0x114, 0x1004d9ac4\nMOV             X0, X19                                                ; +0x118, 0x1004d9ac8\nBL              EditorWindowPopup__dismissDropdowns                    ; +0x11c, 0x1004d9acc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x120, 0x1004d9ad0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x124, 0x1004d9ad4\nADD             SP, SP, #0x30 ; '0'                                    ; +0x128, 0x1004d9ad8\nRET                                                                    ; +0x12c, 0x1004d9adc", "xrefs": ["EditorWindowPopup::initWindow @ 0x1004d9700", "EditorWindowPopup::applyWindowSize @ 0x1004d9980", "EditorWindowPopup::moveWindowTo @ 0x1004d9bbc", "EditorWindowPopup::ccTouchMoved @ 0x1004da5a4", "EditorWindowPopup::ccTouchEnded @ 0x1004da810", "EditorWindowPopup::ccTouchCancelled @ 0x1004da94c"], "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"}