{"type": "func", "start": 7913040, "end": 7913298, "name": "EditorWindowPopup::layoutWindow", "pseudocode": "// \n// EditorWindowPopup::layoutWindow from 0x78be50 to 0x78bf52 (258 bytes)\n// \n// 3 xrefs:\n// > EditorWindowPopup::moveWindowTo @ 0x78bf6a\n// > EditorWindowPopup::applyWindowSize @ 0x78bfe8\n// > EditorWindowPopup::initWindow @ 0x78cb5c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:37 +0000\n// \n\nint __fastcall EditorWindowPopup::layoutWindow(EditorWindowPopup *this)\n{\n  int v2; // r8\n  void (__fastcall *v3)(int, _BYTE *); // r9\n  int v4; // r0\n  int v5; // r7\n  void (__fastcall *v6)(int, _BYTE *); // r8\n  int v7; // r7\n  void (__fastcall *v8)(int, _BYTE *); // r8\n  float v10; // [sp+4h] [bp+0h] BYREF\n  float v11; // [sp+8h] [bp+4h]\n  _BYTE v12[8]; // [sp+Ch] [bp+8h] BYREF\n\n  EditorWindowPopup::contentCenter((EditorWindowPopup *)&v10);\n  FLAlertLayer::cancelKeyboardSlide(this);\n  v2 = *((_DWORD *)this + 115);\n  v3 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v2 + 92);\n  cocos2d::CCPoint::operator-(v12, (char *)this + 744, &v10);\n  v3(v2, v12);\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 80))(\n    *((_DWORD *)this + 115),\n    *((_DWORD *)this + 185));\n  v4 = *((_DWORD *)this + 179);\n  if ( v4 )\n    (*(void (__fastcall **)(int, float *))(*(_DWORD *)v4 + 92))(v4, &v10);\n  v5 = *((_DWORD *)this + 181);\n  if ( v5 )\n  {\n    v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)v12,\n      v10 - (float)(*((float *)this + 183) * 0.5),\n      (float)(v11 - (float)(*((float *)this + 184) * 0.5)) + 2.0);\n    v6(v5, v12);\n  }\n  v7 = *((_DWORD *)this + 180);\n  if ( v7 )\n  {\n    v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92);\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)v12,\n      (float)(v10 - (float)(*((float *)this + 183) * 0.5)) + 4.0,\n      (float)(v11 + (float)(*((float *)this + 184) * 0.5)) - 4.0);\n    v8(v7, v12);\n  }\n  return EditorWindowPopup::dismissDropdowns((int)this);\n}", "assembly": "; \n; EditorWindowPopup::layoutWindow from 0x78be50 to 0x78bf52 (258 bytes)\n; \n; 3 xrefs:\n; > EditorWindowPopup::moveWindowTo @ 0x78bf6a\n; > EditorWindowPopup::applyWindowSize @ 0x78bfe8\n; > EditorWindowPopup::initWindow @ 0x78cb5c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:37 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x78be50\nSUB             SP, SP, #0x1C                                          ; +0x4, 0x78be54\nLDR             R5, =(__stack_chk_guard_ptr - 0x78BE62)                ; +0x6, 0x78be56\nADD             R7, SP, #4                                             ; +0x8, 0x78be58\nMOV             R4, R0                                                 ; +0xa, 0x78be5a\nADD             R6, SP, #0x1C+var_10                                   ; +0xc, 0x78be5c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x78be5e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x78be60\nMOV             R1, R4                                                 ; +0x12, 0x78be62\nMOV             R0, R7; this                                           ; +0x14, 0x78be64\nLDR             R3, [R5]                                               ; +0x16, 0x78be66\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x18, 0x78be68\nBL              _ZNK17EditorWindowPopup13contentCenterEv; EditorWindowPopup::contentCenter(void) ; +0x1a, 0x78be6a\nMOV             R0, R4; this                                           ; +0x1e, 0x78be6e\nBL              _ZN12FLAlertLayer19cancelKeyboardSlideEv; FLAlertLayer::cancelKeyboardSlide(void) ; +0x20, 0x78be70\nLDR.W           R8, [R4,#0x1CC]                                        ; +0x24, 0x78be74\nMOV             R2, R7                                                 ; +0x28, 0x78be78\nMOV             R0, R6                                                 ; +0x2a, 0x78be7a\nADD.W           R1, R4, #0x2E8                                         ; +0x2c, 0x78be7c\nLDR.W           R3, [R8]                                               ; +0x30, 0x78be80\nLDR.W           R9, [R3,#0x5C]                                         ; +0x34, 0x78be84\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x38, 0x78be88\nMOV             R0, R8                                                 ; +0x3c, 0x78be8c\nMOV             R1, R6                                                 ; +0x3e, 0x78be8e\nBLX             R9                                                     ; +0x40, 0x78be90\nLDR.W           R0, [R4,#0x1CC]                                        ; +0x42, 0x78be92\nLDR.W           R1, [R4,#0x2E4]                                        ; +0x46, 0x78be96\nLDR             R3, [R0]                                               ; +0x4a, 0x78be9a\nLDR             R3, [R3,#0x50]                                         ; +0x4c, 0x78be9c\nBLX             R3                                                     ; +0x4e, 0x78be9e\nLDR.W           R0, [R4,#0x2CC]                                        ; +0x50, 0x78bea0\nCBZ             R0, loc_78BEAE                                         ; +0x54, 0x78bea4\nLDR             R3, [R0]                                               ; +0x56, 0x78bea6\nMOV             R1, R7                                                 ; +0x58, 0x78bea8\nLDR             R3, [R3,#0x5C]                                         ; +0x5a, 0x78beaa\nBLX             R3                                                     ; +0x5c, 0x78beac\nLDR.W           R7, [R4,#0x2D4]                                        ; +0x5e, 0x78beae\nCBZ             R7, loc_78BEF2                                         ; +0x62, 0x78beb2\nVMOV.F32        S14, #0.5                                              ; +0x64, 0x78beb4\nLDR             R3, [R7,#0x18+var_18]                                  ; +0x68, 0x78beb8\nVLDR            S12, [R4,#0x2E0]                                       ; +0x6a, 0x78beba\nMOV             R0, R6; this                                           ; +0x6e, 0x78bebe\nLDR.W           R8, [R3,#0x5C]                                         ; +0x70, 0x78bec0\nVLDR            S15, [SP,#0x1C+var_14]                                 ; +0x74, 0x78bec4\nVLDR            S13, [R4,#0x2DC]                                       ; +0x78, 0x78bec8\nVMLS.F32        S15, S12, S14                                          ; +0x7c, 0x78becc\nVLDR            S12, [SP,#0x1C+var_18]                                 ; +0x80, 0x78bed0\nVMLS.F32        S12, S13, S14                                          ; +0x84, 0x78bed4\nVMOV.F32        S14, #2.0                                              ; +0x88, 0x78bed8\nVMOV            R1, S12; float                                         ; +0x8c, 0x78bedc\nVADD.F32        S15, S15, S14                                          ; +0x90, 0x78bee0\nVMOV            R2, S15; float                                         ; +0x94, 0x78bee4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x98, 0x78bee8\nMOV             R0, R7                                                 ; +0x9c, 0x78beec\nMOV             R1, R6                                                 ; +0x9e, 0x78beee\nBLX             R8                                                     ; +0xa0, 0x78bef0\nLDR.W           R7, [R4,#0x2D0]                                        ; +0xa2, 0x78bef2\nCBZ             R7, loc_78BF3A                                         ; +0xa6, 0x78bef6\nVMOV.F32        S12, #0.5                                              ; +0xa8, 0x78bef8\nLDR             R3, [R7,#0x18+var_18]                                  ; +0xac, 0x78befc\nVLDR            S15, [R4,#0x2DC]                                       ; +0xae, 0x78befe\nMOV             R0, R6; this                                           ; +0xb2, 0x78bf02\nLDR.W           R8, [R3,#0x5C]                                         ; +0xb4, 0x78bf04\nVLDR            S14, [SP,#0x1C+var_18]                                 ; +0xb8, 0x78bf08\nVLDR            S11, [R4,#0x2E0]                                       ; +0xbc, 0x78bf0c\nVMLS.F32        S14, S15, S12                                          ; +0xc0, 0x78bf10\nVLDR            S15, [SP,#0x1C+var_14]                                 ; +0xc4, 0x78bf14\nVMLA.F32        S15, S11, S12                                          ; +0xc8, 0x78bf18\nVMOV.F32        S13, #4.0                                              ; +0xcc, 0x78bf1c\nVADD.F32        S14, S14, S13                                          ; +0xd0, 0x78bf20\nVSUB.F32        S15, S15, S13                                          ; +0xd4, 0x78bf24\nVMOV            R1, S14; float                                         ; +0xd8, 0x78bf28\nVMOV            R2, S15; float                                         ; +0xdc, 0x78bf2c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe0, 0x78bf30\nMOV             R0, R7                                                 ; +0xe4, 0x78bf34\nMOV             R1, R6                                                 ; +0xe6, 0x78bf36\nBLX             R8                                                     ; +0xe8, 0x78bf38\nMOV             R0, R4; this                                           ; +0xea, 0x78bf3a\nBL              _ZN17EditorWindowPopup16dismissDropdownsEv; EditorWindowPopup::dismissDropdowns(void) ; +0xec, 0x78bf3c\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xf0, 0x78bf40\nLDR             R3, [R5]                                               ; +0xf2, 0x78bf42\nCMP             R2, R3                                                 ; +0xf4, 0x78bf44\nBEQ             loc_78BF4C                                             ; +0xf6, 0x78bf46\nBLX             __stack_chk_fail                                       ; +0xf8, 0x78bf48\nADD             SP, SP, #0x1C                                          ; +0xfc, 0x78bf4c\nPOP.W           {R4-R9,PC}                                             ; +0xfe, 0x78bf4e", "xrefs": ["EditorWindowPopup::moveWindowTo @ 0x78bf6a", "EditorWindowPopup::applyWindowSize @ 0x78bfe8", "EditorWindowPopup::initWindow @ 0x78cb5c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}