{"type": "func", "start": 7913328, "end": 7913488, "name": "EditorWindowPopup::applyWindowSize", "pseudocode": "// \n// EditorWindowPopup::applyWindowSize from 0x78bf70 to 0x78c010 (160 bytes)\n// \n// 2 xrefs:\n// > EditorWindowPopup::ccTouchMoved @ 0x78c5b0\n// > EditorWindowPopup::initWindow @ 0x78cb24\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::applyWindowSize(EditorWindowPopup *this)\n{\n  int v1; // r6\n  void (__fastcall *v3)(int, _BYTE *); // r8\n  float v4; // s15\n  float v5; // r1\n  int v6; // r3\n  ScrollableContentLayer *v7; // r8\n  int v8; // r2\n  int v9; // r3\n  int result; // r0\n  _BYTE v11[8]; // [sp+4h] [bp-8h] BYREF\n  _BYTE v12[8]; // [sp+Ch] [bp+0h] BYREF\n\n  v1 = *((_DWORD *)this + 179);\n  if ( v1 )\n  {\n    v3 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v1 + 160);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, *((float *)this + 183), *((float *)this + 184));\n    v3(v1, v12);\n  }\n  v4 = *((float *)this + 184);\n  v5 = *((float *)this + 183);\n  v6 = *((_DWORD *)this + 181);\n  *((float *)this + 139) = v5;\n  *((float *)this + 140) = v4;\n  if ( v6 )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v11, v5, v4 - 4.0);\n    v7 = *((ScrollableContentLayer **)this + 181);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, (const cocos2d::CCSize *)v11);\n    ScrollableContentLayer::setViewSize(v7, (int)v12, v8, v9);\n  }\n  result = EditorWindowPopup::layoutWindow(this);\n  if ( *((_DWORD *)this + 198) == 1 )\n    return (*(int (__fastcall **)(EditorWindowPopup *))(*(_DWORD *)this + 760))(this);\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::applyWindowSize from 0x78bf70 to 0x78c010 (160 bytes)\n; \n; 2 xrefs:\n; > EditorWindowPopup::ccTouchMoved @ 0x78c5b0\n; > EditorWindowPopup::initWindow @ 0x78cb24\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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x78BF7A)                ; +0x0, 0x78bf70\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x78bf72\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x78bf76\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x78bf78\nLDR.W           R6, [R0,#0x2CC]                                        ; +0xa, 0x78bf7a\nSUB             SP, SP, #0x18                                          ; +0xe, 0x78bf7e\nLDR             R2, [R3]                                               ; +0x10, 0x78bf80\nMOV             R4, R0                                                 ; +0x12, 0x78bf82\nMOV             R5, R3                                                 ; +0x14, 0x78bf84\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x16, 0x78bf86\nCBZ             R6, loc_78BFA6                                         ; +0x18, 0x78bf88\nLDR             R3, [R6]                                               ; +0x1a, 0x78bf8a\nADD             R7, SP, #0xC                                           ; +0x1c, 0x78bf8c\nLDR.W           R1, [R4,#0x2DC]; float                                 ; +0x1e, 0x78bf8e\nMOV             R0, R7; this                                           ; +0x22, 0x78bf92\nLDR.W           R2, [R4,#0x2E0]; float                                 ; +0x24, 0x78bf94\nLDR.W           R8, [R3,#0xA0]                                         ; +0x28, 0x78bf98\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x2c, 0x78bf9c\nMOV             R0, R6                                                 ; +0x30, 0x78bfa0\nMOV             R1, R7                                                 ; +0x32, 0x78bfa2\nBLX             R8                                                     ; +0x34, 0x78bfa4\nVLDR            S15, [R4,#0x2E0]                                       ; +0x36, 0x78bfa6\nLDR.W           R1, [R4,#0x2DC]; float                                 ; +0x3a, 0x78bfaa\nLDR.W           R3, [R4,#0x2D4]                                        ; +0x3e, 0x78bfae\nSTR.W           R1, [R4,#0x22C]                                        ; +0x42, 0x78bfb2\nVSTR            S15, [R4,#0x230]                                       ; +0x46, 0x78bfb6\nCBZ             R3, loc_78BFE6                                         ; +0x4a, 0x78bfba\nADD             R7, SP, #4                                             ; +0x4c, 0x78bfbc\nADD             R6, SP, #0x18+var_C                                    ; +0x4e, 0x78bfbe\nVMOV.F32        S14, #4.0                                              ; +0x50, 0x78bfc0\nMOV             R0, R7; this                                           ; +0x54, 0x78bfc4\nVSUB.F32        S15, S15, S14                                          ; +0x56, 0x78bfc6\nVMOV            R2, S15; float                                         ; +0x5a, 0x78bfca\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x5e, 0x78bfce\nLDR.W           R8, [R4,#0x2D4]                                        ; +0x62, 0x78bfd2\nMOV             R1, R7; cocos2d::CCSize *                              ; +0x66, 0x78bfd6\nMOV             R0, R6; this                                           ; +0x68, 0x78bfd8\nBL              _ZN7cocos2d6CCSizeC1ERKS0_; cocos2d::CCSize::CCSize(cocos2d::CCSize const&) ; +0x6a, 0x78bfda\nMOV             R1, R6                                                 ; +0x6e, 0x78bfde\nMOV             R0, R8                                                 ; +0x70, 0x78bfe0\nBL              _ZN22ScrollableContentLayer11setViewSizeEN7cocos2d6CCSizeE; ScrollableContentLayer::setViewSize(cocos2d::CCSize) ; +0x72, 0x78bfe2\nMOV             R0, R4; this                                           ; +0x76, 0x78bfe6\nBL              _ZN17EditorWindowPopup12layoutWindowEv; EditorWindowPopup::layoutWindow(void) ; +0x78, 0x78bfe8\nLDR.W           R3, [R4,#0x318]                                        ; +0x7c, 0x78bfec\nCMP             R3, #1                                                 ; +0x80, 0x78bff0\nBNE             loc_78BFFE                                             ; +0x82, 0x78bff2\nLDR             R3, [R4]                                               ; +0x84, 0x78bff4\nMOV             R0, R4                                                 ; +0x86, 0x78bff6\nLDR.W           R3, [R3,#0x2F8]                                        ; +0x88, 0x78bff8\nBLX             R3                                                     ; +0x8c, 0x78bffc\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x8e, 0x78bffe\nLDR             R3, [R5]                                               ; +0x90, 0x78c000\nCMP             R2, R3                                                 ; +0x92, 0x78c002\nBEQ             loc_78C00A                                             ; +0x94, 0x78c004\nBLX             __stack_chk_fail                                       ; +0x96, 0x78c006\nADD             SP, SP, #0x18                                          ; +0x9a, 0x78c00a\nPOP.W           {R4-R8,PC}                                             ; +0x9c, 0x78c00c", "xrefs": ["EditorWindowPopup::ccTouchMoved @ 0x78c5b0", "EditorWindowPopup::initWindow @ 0x78cb24"], "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"}