{"type": "func", "start": 3691108, "end": 3691170, "name": "EditorUI::positionWithoutOffset", "pseudocode": "// \n// EditorUI::positionWithoutOffset from 0x385264 to 0x3852a2 (62 bytes)\n// \n// 2 xrefs:\n// > EditorUI::findSnapObject @ 0x385e8a\n// > EditorUI::findSnapObject @ 0x385f68\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\ncocos2d::CCPoint *EditorUI::positionWithoutOffset(cocos2d::CCPoint *__return_ptr retstr, EditorUI *a2, GameObject *a3)\n{\n  const cocos2d::CCPoint *v5; // r0\n  cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF\n\n  EditorUI::getRelativeOffset(&v7, a2, a3);\n  v5 = a3->getPosition(a3);\n  cocos2d::CCPoint::operator-(retstr, v5, &v7);\n  return retstr;\n}", "assembly": "; \n; EditorUI::positionWithoutOffset from 0x385264 to 0x3852a2 (62 bytes)\n; \n; 2 xrefs:\n; > EditorUI::findSnapObject @ 0x385e8a\n; > EditorUI::findSnapObject @ 0x385f68\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x385264\nSUB             SP, SP, #0x14                                          ; +0x2, 0x385266\nLDR             R4, =(__stack_chk_guard_ptr - 0x385274)                ; +0x4, 0x385268\nADD             R6, SP, #0x14+var_10                                   ; +0x6, 0x38526a\nMOV             R7, R2                                                 ; +0x8, 0x38526c\nMOV             R5, R0                                                 ; +0xa, 0x38526e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x385270\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x385272\nMOV             R0, R6; this                                           ; +0x10, 0x385274\nLDR             R3, [R4]                                               ; +0x12, 0x385276\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x385278\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x16, 0x38527a\nLDR             R3, [R7]                                               ; +0x1a, 0x38527e\nMOV             R0, R7                                                 ; +0x1c, 0x385280\nLDR             R3, [R3,#0x60]                                         ; +0x1e, 0x385282\nBLX             R3                                                     ; +0x20, 0x385284\nMOV             R2, R6                                                 ; +0x22, 0x385286\nMOV             R1, R0                                                 ; +0x24, 0x385288\nMOV             R0, R5                                                 ; +0x26, 0x38528a\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x28, 0x38528c\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x2c, 0x385290\nLDR             R3, [R4]                                               ; +0x2e, 0x385292\nMOV             R0, R5                                                 ; +0x30, 0x385294\nCMP             R2, R3                                                 ; +0x32, 0x385296\nBEQ             loc_38529E                                             ; +0x34, 0x385298\nBLX             __stack_chk_fail                                       ; +0x36, 0x38529a\nADD             SP, SP, #0x14                                          ; +0x3a, 0x38529e\nPOP             {R4-R7,PC}                                             ; +0x3c, 0x3852a0", "xrefs": ["EditorUI::findSnapObject @ 0x385e8a", "EditorUI::findSnapObject @ 0x385f68"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}