{"type": "func", "start": 11565248, "end": 11565796, "name": "EditorUI::createEdgeForObject", "pseudocode": "// \n// EditorUI::createEdgeForObject from 0xb078c0 to 0xb07ae4 (548 bytes)\n// \n// 7 xrefs:\n// > EditorUI::createRockEdges @ 0xb07c5c\n// > EditorUI::createRockEdges @ 0xb07ca0\n// > EditorUI::createRockEdges @ 0xb07cf0\n// > EditorUI::createRockEdges @ 0xb07e74\n// > EditorUI::createRockEdges @ 0xb07eb0\n// > EditorUI::createRockEdges @ 0xb07ef4\n// > <???> @ 0x9c940\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:01:24 +0000\n// \n\nfloat *__fastcall EditorUI::createEdgeForObject(EditorUI *this, GameObject *a2, int a3)\n{\n  int v6; // w0\n  unsigned int v7; // w24\n  float *result; // x0\n  float v9; // s0\n  float v10; // s0\n  float v11; // s0\n  __int64 v12; // [xsp+58h] [xbp+58h] BYREF\n  _BYTE v13[8]; // [xsp+60h] [xbp+60h] BYREF\n  __int64 v14; // [xsp+68h] [xbp+68h] BYREF\n  __int64 v15; // [xsp+70h] [xbp+70h] BYREF\n\n  v6 = EditorUI::edgeForObject(this, *((_DWORD *)a2 + 257), a3);\n  v7 = v6;\n  if ( v6 <= 0 )\n    return nullptr;\n  offsetForKey(&v12, v6);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)&unk_155E0B0);\n  switch ( a3 )\n  {\n    case 0:\n      v11 = 0.0;\n      goto LABEL_16;\n    case 1:\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 30.0, 0.0);\n      cocos2d::CCPoint::operator=(v13, &v15);\n      break;\n    case 2:\n      v10 = 0.0;\n      goto LABEL_10;\n    case 3:\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, -30.0, 0.0);\n      cocos2d::CCPoint::operator=(v13, &v15);\n      break;\n    case 4:\n      v9 = 30.0;\n      goto LABEL_8;\n    case 5:\n      v10 = 30.0;\nLABEL_10:\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v10, -30.0);\n      cocos2d::CCPoint::operator=(v13, &v15);\n      break;\n    case 6:\n      v9 = -30.0;\nLABEL_8:\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v9, v9);\n      cocos2d::CCPoint::operator=(v13, &v15);\n      break;\n    case 7:\n      v11 = -30.0;\nLABEL_16:\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v11, 30.0);\n      cocos2d::CCPoint::operator=(v13, &v15);\n      break;\n    default:\n      break;\n  }\n  (*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)a2 + 1360LL))(&v14, a2);\n  cocos2d::CCPoint::operator+(&v15, &v14);\n  cocos2d::CCPoint::operator=(&v14, &v15);\n  cocos2d::CCPoint::operator+(&v15, &v14);\n  cocos2d::CCPoint::operator=(&v14, &v15);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, (const cocos2d::CCPoint *)&v14);\n  result = EditorUI::createObject((__int64)this, v7, (const cocos2d::CCPoint *)&v15);\n  if ( !result )\n    return nullptr;\n  *((_WORD *)result + 602) = *((_WORD *)a2 + 601) + 1;\n  return result;\n}", "assembly": "; \n; EditorUI::createEdgeForObject from 0xb078c0 to 0xb07ae4 (548 bytes)\n; \n; 7 xrefs:\n; > EditorUI::createRockEdges @ 0xb07c5c\n; > EditorUI::createRockEdges @ 0xb07ca0\n; > EditorUI::createRockEdges @ 0xb07cf0\n; > EditorUI::createRockEdges @ 0xb07e74\n; > EditorUI::createRockEdges @ 0xb07eb0\n; > EditorUI::createRockEdges @ 0xb07ef4\n; > <???> @ 0x9c940\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:01:24 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xb078c0\nMOV             X29, SP                                                ; +0x4, 0xb078c4\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x8, 0xb078c8\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb078cc\nMOV             X22, X1                                                ; +0x10, 0xb078d0\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x14, 0xb078d4\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x18, 0xb078d8\nLDR             X3, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xb078dc\nMOV             W19, W2                                                ; +0x20, 0xb078e0\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x24, 0xb078e4\nMOV             X26, X0                                                ; +0x28, 0xb078e8\nLDR             X3, [X3]                                               ; +0x2c, 0xb078ec\nLDR             W1, [X1,#0x404]; int                                   ; +0x30, 0xb078f0\nSTR             X3, [X29,#0x80+var_8]                                  ; +0x34, 0xb078f4\nBL              _ZN8EditorUI13edgeForObjectEii; EditorUI::edgeForObject(int,int) ; +0x38, 0xb078f8\nCMP             W0, WZR                                                ; +0x3c, 0xb078fc\nMOV             W24, W0                                                ; +0x40, 0xb07900\nB.LE            loc_B079FC                                             ; +0x44, 0xb07904\nADD             X25, X29, #0x80+var_28                                 ; +0x48, 0xb07908\nADD             X23, X29, #0x80+var_20                                 ; +0x4c, 0xb0790c\nMOV             X8, X25                                                ; +0x50, 0xb07910\nBL              _Z12offsetForKeyi; offsetForKey(int)                   ; +0x54, 0xb07914\nADRP            X1, #qword_155E0A8@PAGE                                ; +0x58, 0xb07918\nMOV             X0, X23; this                                          ; +0x5c, 0xb0791c\nADD             X1, X1, #qword_155E0A8@PAGEOFF                         ; +0x60, 0xb07920\nADD             X1, X1, #8; cocos2d::CCPoint *                         ; +0x64, 0xb07924\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x68, 0xb07928\nCMP             W19, #7; switch 8 cases                                ; +0x6c, 0xb0792c\nB.LS            loc_B079E4                                             ; +0x70, 0xb07930\nADD             X19, X29, #0x80+var_10; jumptable 0000000000B079F8 default case ; +0x74, 0xb07934\nLDR             X1, [X22]                                              ; +0x78, 0xb07938\nADD             X20, X29, #0x80+var_18                                 ; +0x7c, 0xb0793c\nMOV             X8, X20                                                ; +0x80, 0xb07940\nMOV             X0, X22                                                ; +0x84, 0xb07944\nLDR             X1, [X1,#0x550]                                        ; +0x88, 0xb07948\nBLR             X1                                                     ; +0x8c, 0xb0794c\nMOV             X8, X19                                                ; +0x90, 0xb07950\nMOV             X0, X20                                                ; +0x94, 0xb07954\nMOV             X1, X25                                                ; +0x98, 0xb07958\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x9c, 0xb0795c\nMOV             X1, X19                                                ; +0xa0, 0xb07960\nMOV             X0, X20                                                ; +0xa4, 0xb07964\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa8, 0xb07968\nMOV             X8, X19                                                ; +0xac, 0xb0796c\nMOV             X0, X20                                                ; +0xb0, 0xb07970\nMOV             X1, X23                                                ; +0xb4, 0xb07974\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xb8, 0xb07978\nMOV             X1, X19                                                ; +0xbc, 0xb0797c\nMOV             X0, X20                                                ; +0xc0, 0xb07980\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xc4, 0xb07984\nMOV             X0, X19; this                                          ; +0xc8, 0xb07988\nMOV             X1, X20; cocos2d::CCPoint *                            ; +0xcc, 0xb0798c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xd0, 0xb07990\nMOV             W1, W24                                                ; +0xd4, 0xb07994\nMOV             X0, X26                                                ; +0xd8, 0xb07998\nMOV             X2, X19                                                ; +0xdc, 0xb0799c\nBL              _ZN8EditorUI12createObjectEiN7cocos2d7CCPointE; EditorUI::createObject(int,cocos2d::CCPoint) ; +0xe0, 0xb079a0\nMOV             X1, X0                                                 ; +0xe4, 0xb079a4\nCBZ             X0, loc_B079FC                                         ; +0xe8, 0xb079a8\nLDRH            W2, [X22,#0x4B2]                                       ; +0xec, 0xb079ac\nADD             W2, W2, #1                                             ; +0xf0, 0xb079b0\nSTRH            W2, [X1,#0x4B4]                                        ; +0xf4, 0xb079b4\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xf8, 0xb079b8\nLDR             X2, [X29,#0x80+var_8]                                  ; +0xfc, 0xb079bc\nLDR             X1, [X21]                                              ; +0x100, 0xb079c0\nCMP             X2, X1                                                 ; +0x104, 0xb079c4\nB.NE            loc_B07AE0                                             ; +0x108, 0xb079c8\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x10c, 0xb079cc\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x110, 0xb079d0\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x114, 0xb079d4\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x118, 0xb079d8\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x11c, 0xb079dc\nRET                                                                    ; +0x120, 0xb079e0\nADRL            X0, jpt_B079F8                                         ; +0x124, 0xb079e4\nLDRB            W0, [X0,W19,UXTW]                                      ; +0x12c, 0xb079ec\nADR             X1, loc_B079FC                                         ; +0x130, 0xb079f0\nADD             X0, X1, W0,SXTB#2                                      ; +0x134, 0xb079f4\nBR              X0; switch jump                                        ; +0x138, 0xb079f8\nMOV             X0, #0                                                 ; +0x13c, 0xb079fc\nB               loc_B079B8                                             ; +0x140, 0xb07a00\nFMOV            S0, #-30.0; jumptable 0000000000B079F8 case 6          ; +0x144, 0xb07a04\nFMOV            S1, S0; float                                          ; +0x148, 0xb07a08\nADD             X19, X29, #0x80+var_10                                 ; +0x14c, 0xb07a0c\nMOV             X0, X19; this                                          ; +0x150, 0xb07a10\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x154, 0xb07a14\nMOV             X0, X23                                                ; +0x158, 0xb07a18\nMOV             X1, X19                                                ; +0x15c, 0xb07a1c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x160, 0xb07a20\nB               loc_B07938                                             ; +0x164, 0xb07a24\nADD             X19, X29, #0x80+var_10; jumptable 0000000000B079F8 case 5 ; +0x168, 0xb07a28\nMOV             X0, X19; this                                          ; +0x16c, 0xb07a2c\nFMOV            S0, #30.0; float                                       ; +0x170, 0xb07a30\nFMOV            S1, #-30.0; float                                      ; +0x174, 0xb07a34\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x178, 0xb07a38\nMOV             X0, X23                                                ; +0x17c, 0xb07a3c\nMOV             X1, X19                                                ; +0x180, 0xb07a40\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x184, 0xb07a44\nB               loc_B07938                                             ; +0x188, 0xb07a48\nFMOV            S0, #30.0; jumptable 0000000000B079F8 case 4           ; +0x18c, 0xb07a4c\nB               loc_B07A08                                             ; +0x190, 0xb07a50\nFMOV            S1, WZR; jumptable 0000000000B079F8 case 3             ; +0x194, 0xb07a54\nADD             X19, X29, #0x80+var_10                                 ; +0x198, 0xb07a58\nMOV             X0, X19; this                                          ; +0x19c, 0xb07a5c\nFMOV            S0, #-30.0; float                                      ; +0x1a0, 0xb07a60\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a4, 0xb07a64\nMOV             X0, X23                                                ; +0x1a8, 0xb07a68\nMOV             X1, X19                                                ; +0x1ac, 0xb07a6c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1b0, 0xb07a70\nB               loc_B07938                                             ; +0x1b4, 0xb07a74\nADD             X19, X29, #0x80+var_10; jumptable 0000000000B079F8 case 2 ; +0x1b8, 0xb07a78\nFMOV            S0, WZR                                                ; +0x1bc, 0xb07a7c\nMOV             X0, X19                                                ; +0x1c0, 0xb07a80\nB               loc_B07A34                                             ; +0x1c4, 0xb07a84\nFMOV            S1, WZR; jumptable 0000000000B079F8 case 1             ; +0x1c8, 0xb07a88\nADD             X19, X29, #0x80+var_10                                 ; +0x1cc, 0xb07a8c\nMOV             X0, X19; this                                          ; +0x1d0, 0xb07a90\nFMOV            S0, #30.0; float                                       ; +0x1d4, 0xb07a94\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1d8, 0xb07a98\nMOV             X0, X23                                                ; +0x1dc, 0xb07a9c\nMOV             X1, X19                                                ; +0x1e0, 0xb07aa0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1e4, 0xb07aa4\nB               loc_B07938                                             ; +0x1e8, 0xb07aa8\nFMOV            S0, WZR; jumptable 0000000000B079F8 case 0             ; +0x1ec, 0xb07aac\nADD             X19, X29, #0x80+var_10                                 ; +0x1f0, 0xb07ab0\nMOV             X0, X19; this                                          ; +0x1f4, 0xb07ab4\nFMOV            S1, #30.0; float                                       ; +0x1f8, 0xb07ab8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1fc, 0xb07abc\nMOV             X0, X23                                                ; +0x200, 0xb07ac0\nMOV             X1, X19                                                ; +0x204, 0xb07ac4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x208, 0xb07ac8\nB               loc_B07938                                             ; +0x20c, 0xb07acc\nADD             X19, X29, #0x80+var_10; jumptable 0000000000B079F8 case 7 ; +0x210, 0xb07ad0\nMOV             X0, X19                                                ; +0x214, 0xb07ad4\nFMOV            S0, #-30.0                                             ; +0x218, 0xb07ad8\nB               loc_B07AB8                                             ; +0x21c, 0xb07adc\nBL              .__stack_chk_fail                                      ; +0x220, 0xb07ae0", "xrefs": ["EditorUI::createRockEdges @ 0xb07c5c", "EditorUI::createRockEdges @ 0xb07ca0", "EditorUI::createRockEdges @ 0xb07cf0", "EditorUI::createRockEdges @ 0xb07e74", "EditorUI::createRockEdges @ 0xb07eb0", "EditorUI::createRockEdges @ 0xb07ef4", "<???> @ 0x9c940"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}