{"type": "func", "start": 7913492, "end": 7913708, "name": "EditorWindowPopup::getResizeCorner", "pseudocode": "// \n// EditorWindowPopup::getResizeCorner from 0x78c014 to 0x78c0ec (216 bytes)\n// \n// 1 xrefs:\n// > EditorWindowPopup::beginTouch @ 0x78cfc8\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::getResizeCorner(int a1, const cocos2d::CCPoint *a2)\n{\n  int result; // r0\n  float v5; // s15\n  float v6; // s16\n  float v7; // s17\n  _BYTE v8[16]; // [sp+Ch] [bp-24h] BYREF\n  _BYTE v9[16]; // [sp+1Ch] [bp-14h] BYREF\n\n  result = *(_DWORD *)(a1 + 792);\n  if ( result )\n  {\n    v5 = *(float *)(a1 + 740);\n    v6 = (float)(v5 * *(float *)(a1 + 732)) * 0.5;\n    v7 = (float)(v5 * *(float *)(a1 + 736)) * 0.5;\n    cocos2d::CCRect::CCRect(\n      (cocos2d::CCRect *)v8,\n      (float)(*(float *)(a1 + 744) - v6) - 10.0,\n      (float)(*(float *)(a1 + 748) - v7) - 10.0,\n      24.0,\n      24.0);\n    if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v8, a2) )\n    {\n      return 1;\n    }\n    else\n    {\n      cocos2d::CCRect::CCRect(\n        (cocos2d::CCRect *)v9,\n        (float)(v6 + *(float *)(a1 + 744)) - 14.0,\n        (float)(*(float *)(a1 + 748) - v7) - 10.0,\n        24.0,\n        24.0);\n      if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v9, a2) )\n        return 2;\n      else\n        return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorWindowPopup::getResizeCorner from 0x78c014 to 0x78c0ec (216 bytes)\n; \n; 1 xrefs:\n; > EditorWindowPopup::beginTouch @ 0x78cfc8\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-R8,LR}                                             ; +0x0, 0x78c014\nMOV             R4, R0                                                 ; +0x4, 0x78c018\nVPUSH           {D8-D9}                                                ; +0x6, 0x78c01a\nMOV             R8, R1                                                 ; +0xa, 0x78c01e\nLDR             R3, =(__stack_chk_guard_ptr - 0x78C026)                ; +0xc, 0x78c020\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xe, 0x78c022\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x10, 0x78c024\nLDR.W           R0, [R0,#0x318]                                        ; +0x12, 0x78c026\nSUB             SP, SP, #0x30                                          ; +0x16, 0x78c02a\nLDR             R2, [R3]                                               ; +0x18, 0x78c02c\nMOV             R7, R3                                                 ; +0x1a, 0x78c02e\nSTR             R2, [SP,#0x30+var_4]                                   ; +0x1c, 0x78c030\nCMP             R0, #0                                                 ; +0x1e, 0x78c032\nBEQ             loc_78C0D6                                             ; +0x20, 0x78c034\nVLDR            S15, [R4,#0x2E4]                                       ; +0x22, 0x78c036\nADD             R6, SP, #0x30+var_24                                   ; +0x26, 0x78c03a\nLDR             R5, flt_78C0EC                                         ; +0x28, 0x78c03c\nMOV             R0, R6; this                                           ; +0x2a, 0x78c03e\nVLDR            S14, [R4,#0x2E0]                                       ; +0x2c, 0x78c040\nMOV             R3, R5; float                                          ; +0x30, 0x78c044\nVLDR            S16, [R4,#0x2DC]                                       ; +0x32, 0x78c046\nVMOV.F32        S17, #0.5                                              ; +0x36, 0x78c04a\nVMUL.F32        S16, S15, S16                                          ; +0x3a, 0x78c04e\nVMUL.F32        S15, S15, S14                                          ; +0x3e, 0x78c052\nVLDR            S14, [R4,#0x2E8]                                       ; +0x42, 0x78c056\nVMUL.F32        S16, S16, S17                                          ; +0x46, 0x78c05a\nVMUL.F32        S17, S15, S17                                          ; +0x4a, 0x78c05e\nVLDR            S15, [R4,#0x2EC]                                       ; +0x4e, 0x78c062\nSTR             R5, [SP,#0x30+var_30]; float                           ; +0x52, 0x78c066\nVMOV.F32        S18, #10.0                                             ; +0x54, 0x78c068\nVSUB.F32        S14, S14, S16                                          ; +0x58, 0x78c06c\nVSUB.F32        S15, S15, S17                                          ; +0x5c, 0x78c070\nVSUB.F32        S14, S14, S18                                          ; +0x60, 0x78c074\nVSUB.F32        S15, S15, S18                                          ; +0x64, 0x78c078\nVMOV            R1, S14; float                                         ; +0x68, 0x78c07c\nVMOV            R2, S15; float                                         ; +0x6c, 0x78c080\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x70, 0x78c084\nMOV             R0, R6; this                                           ; +0x74, 0x78c088\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x76, 0x78c08a\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x78, 0x78c08c\nCBNZ            R0, loc_78C0D4                                         ; +0x7c, 0x78c090\nVLDR            S15, [R4,#0x2E8]                                       ; +0x7e, 0x78c092\nMOV             R3, R5; float                                          ; +0x82, 0x78c096\nVADD.F32        S16, S16, S15                                          ; +0x84, 0x78c098\nVLDR            S15, [R4,#0x2EC]                                       ; +0x88, 0x78c09c\nADD             R4, SP, #0x30+var_14                                   ; +0x8c, 0x78c0a0\nSTR             R5, [SP,#0x30+var_30]; float                           ; +0x8e, 0x78c0a2\nMOV             R0, R4; this                                           ; +0x90, 0x78c0a4\nVSUB.F32        S17, S15, S17                                          ; +0x92, 0x78c0a6\nVMOV.F32        S15, #14.0                                             ; +0x96, 0x78c0aa\nVSUB.F32        S15, S16, S15                                          ; +0x9a, 0x78c0ae\nVMOV            R1, S15; float                                         ; +0x9e, 0x78c0b2\nVSUB.F32        S15, S17, S18                                          ; +0xa2, 0x78c0b6\nVMOV            R2, S15; float                                         ; +0xa6, 0x78c0ba\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xaa, 0x78c0be\nMOV             R0, R4; this                                           ; +0xae, 0x78c0c2\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0xb0, 0x78c0c4\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0xb2, 0x78c0c6\nCMP             R0, #0                                                 ; +0xb6, 0x78c0ca\nITE NE                                                                 ; +0xb8, 0x78c0cc\nMOVNE           R0, #2                                                 ; +0xba, 0x78c0ce\nMOVEQ           R0, #0                                                 ; +0xbc, 0x78c0d0\nB               loc_78C0D6                                             ; +0xbe, 0x78c0d2\nMOVS            R0, #1                                                 ; +0xc0, 0x78c0d4\nLDR             R2, [SP,#0x30+var_4]                                   ; +0xc2, 0x78c0d6\nLDR             R3, [R7]                                               ; +0xc4, 0x78c0d8\nCMP             R2, R3                                                 ; +0xc6, 0x78c0da\nBEQ             loc_78C0E2                                             ; +0xc8, 0x78c0dc\nBLX             __stack_chk_fail                                       ; +0xca, 0x78c0de\nADD             SP, SP, #0x30 ; '0'                                    ; +0xce, 0x78c0e2\nVPOP            {D8-D9}                                                ; +0xd0, 0x78c0e4\nPOP.W           {R4-R8,PC}                                             ; +0xd4, 0x78c0e8", "xrefs": ["EditorWindowPopup::beginTouch @ 0x78cfc8"], "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"}