{"type": "func", "start": 7395040, "end": 7395132, "name": "EditorUI::applyOffset", "pseudocode": "// \n// EditorUI::applyOffset from 0x70d6e0 to 0x70d73c (92 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreateObject @ 0x48771a\n// > EditorUI::transformObject @ 0x70e128\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:57:42 +0000\n// \n\nint __fastcall EditorUI::applyOffset(GJBaseGameLayer **this, GameObject *a2)\n{\n  int v4; // r0\n  _BYTE v6[8]; // [sp+4h] [bp-8h] BYREF\n  _BYTE v7[8]; // [sp+Ch] [bp+0h] BYREF\n\n  EditorUI::getRelativeOffset((EditorUI *)v6, (GameObject *)this, (int)a2);\n  v4 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2);\n  cocos2d::CCPoint::operator+(v7, v4, v6);\n  (*(void (__fastcall **)(GameObject *, _BYTE *))(*(_DWORD *)a2 + 92))(a2, v7);\n  return GJBaseGameLayer::reorderObjectSection(*(this + 236), a2);\n}", "assembly": "; \n; EditorUI::applyOffset from 0x70d6e0 to 0x70d73c (92 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreateObject @ 0x48771a\n; > EditorUI::transformObject @ 0x70e128\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:57:42 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x70d6e0\nSUB             SP, SP, #0x18                                          ; +0x4, 0x70d6e4\nLDR             R5, =(__stack_chk_guard_ptr - 0x70D6F4)                ; +0x6, 0x70d6e6\nADD.W           R8, SP, #0x18+var_14                                   ; +0x8, 0x70d6e8\nMOV             R4, R1                                                 ; +0xc, 0x70d6ec\nMOV             R6, R0                                                 ; +0xe, 0x70d6ee\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x70d6f0\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x70d6f2\nMOV             R1, R6; GameObject *                                   ; +0x14, 0x70d6f4\nMOV             R2, R4                                                 ; +0x16, 0x70d6f6\nMOV             R0, R8; this                                           ; +0x18, 0x70d6f8\nLDR             R3, [R5]                                               ; +0x1a, 0x70d6fa\nADD             R7, SP, #0xC                                           ; +0x1c, 0x70d6fc\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1e, 0x70d6fe\nBL              _ZN8EditorUI17getRelativeOffsetEP10GameObject; EditorUI::getRelativeOffset(GameObject *) ; +0x20, 0x70d700\nLDR             R3, [R4]                                               ; +0x24, 0x70d704\nMOV             R0, R4                                                 ; +0x26, 0x70d706\nLDR             R3, [R3,#0x60]                                         ; +0x28, 0x70d708\nBLX             R3                                                     ; +0x2a, 0x70d70a\nMOV             R2, R8                                                 ; +0x2c, 0x70d70c\nMOV             R1, R0                                                 ; +0x2e, 0x70d70e\nMOV             R0, R7                                                 ; +0x30, 0x70d710\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x32, 0x70d712\nLDR             R3, [R4]                                               ; +0x36, 0x70d716\nMOV             R0, R4                                                 ; +0x38, 0x70d718\nMOV             R1, R7                                                 ; +0x3a, 0x70d71a\nLDR             R3, [R3,#0x5C]                                         ; +0x3c, 0x70d71c\nBLX             R3                                                     ; +0x3e, 0x70d71e\nLDR.W           R0, [R6,#0x3B0]; this                                  ; +0x40, 0x70d720\nMOV             R1, R4; GameObject *                                   ; +0x44, 0x70d724\nBL              _ZN15GJBaseGameLayer20reorderObjectSectionEP10GameObject; GJBaseGameLayer::reorderObjectSection(GameObject *) ; +0x46, 0x70d726\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x4a, 0x70d72a\nLDR             R3, [R5]                                               ; +0x4c, 0x70d72c\nCMP             R2, R3                                                 ; +0x4e, 0x70d72e\nBEQ             loc_70D736                                             ; +0x50, 0x70d730\nBLX             __stack_chk_fail                                       ; +0x52, 0x70d732\nADD             SP, SP, #0x18                                          ; +0x56, 0x70d736\nPOP.W           {R4-R8,PC}                                             ; +0x58, 0x70d738", "xrefs": ["EditorUI::onCreateObject @ 0x48771a", "EditorUI::transformObject @ 0x70e128"], "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"}