{"type": "func", "start": 10272932, "end": 10273488, "name": "EditorUI::createEdgeForObject", "pseudocode": "// \n// EditorUI::createEdgeForObject from 0x9cc0a4 to 0x9cc2d0 (556 bytes)\n// \n// 7 xrefs:\n// > EditorUI::createRockEdges @ 0x9cc448\n// > EditorUI::createRockEdges @ 0x9cc48c\n// > EditorUI::createRockEdges @ 0x9cc4dc\n// > EditorUI::createRockEdges @ 0x9cc660\n// > EditorUI::createRockEdges @ 0x9cc69c\n// > EditorUI::createRockEdges @ 0x9cc6e0\n// > <???> @ 0x74b20\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\nGameObject *EditorUI::createEdgeForObject(EditorUI *a1, GameObject *a2, int a3)\n{\n  int v6; // w23\n  float v7; // s0\n  float v8; // s1\n  float v9; // s0\n  float v10; // s1\n  GameObject *result; // x0\n  float v12; // s0\n  float v13; // s0\n  float v14; // s1\n  float v15; // s0\n  float v16; // s0\n  float v17; // s1\n  float v18; // s0\n  float v19; // s1\n  float v20; // s0\n  float v21; // s1\n  float v22; // s0\n  float v23; // s0\n  float v24; // s1\n  _BYTE v25[8]; // [xsp+58h] [xbp+58h] BYREF\n  cocos2d::CCPoint v26; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::CCPoint v27; // [xsp+68h] [xbp+68h] BYREF\n  cocos2d::CCPoint v28; // [xsp+70h] [xbp+70h] BYREF\n  cocos2d::CCPoint v29; // 0:s0.4,4:s1.4\n\n  v6 = EditorUI::edgeForObject(a1, a2->m_objectID, a3);\n  if ( v6 <= 0 )\n    return nullptr;\n  EditorUI::offsetForKey(a1, v6);\n  cocos2d::CCPoint::CCPoint(&v26, &stru_1243DD0);\n  switch ( a3 )\n  {\n    case 0:\n      v22 = 0.0;\n      goto LABEL_16;\n    case 1:\n      cocos2d::CCPoint::CCPoint(&v28, 30.0, 0.0);\n      cocos2d::CCPoint::operator=(&v26, v20, v21);\n      break;\n    case 2:\n      v15 = 0.0;\n      goto LABEL_10;\n    case 3:\n      cocos2d::CCPoint::CCPoint(&v28, -30.0, 0.0);\n      cocos2d::CCPoint::operator=(&v26, v18, v19);\n      break;\n    case 4:\n      v12 = 30.0;\n      goto LABEL_8;\n    case 5:\n      v15 = 30.0;\nLABEL_10:\n      cocos2d::CCPoint::CCPoint(&v28, v15, -30.0);\n      cocos2d::CCPoint::operator=(&v26, v16, v17);\n      break;\n    case 6:\n      v12 = -30.0;\nLABEL_8:\n      cocos2d::CCPoint::CCPoint(&v28, v12, v12);\n      cocos2d::CCPoint::operator=(&v26, v13, v14);\n      break;\n    case 7:\n      v22 = -30.0;\nLABEL_16:\n      cocos2d::CCPoint::CCPoint(&v28, v22, 30.0);\n      cocos2d::CCPoint::operator=(&v26, v23, v24);\n      break;\n    default:\n      break;\n  }\n  ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))a2->getRealPosition)(&v27, a2);\n  cocos2d::CCPoint::operator+(&v28, &v27, v25);\n  cocos2d::CCPoint::operator=(&v27, v7, v8);\n  cocos2d::CCPoint::operator+(&v28, &v27, &v26);\n  cocos2d::CCPoint::operator=(&v27, v9, v10);\n  cocos2d::CCPoint::CCPoint(&v28, &v27);\n  result = EditorUI::createObject(a1, v6, v29);\n  if ( !result )\n    return nullptr;\n  result->m_editorLayer2 = a2->m_editorLayer + 1;\n  return result;\n}", "assembly": "; \n; EditorUI::createEdgeForObject from 0x9cc0a4 to 0x9cc2d0 (556 bytes)\n; \n; 7 xrefs:\n; > EditorUI::createRockEdges @ 0x9cc448\n; > EditorUI::createRockEdges @ 0x9cc48c\n; > EditorUI::createRockEdges @ 0x9cc4dc\n; > EditorUI::createRockEdges @ 0x9cc660\n; > EditorUI::createRockEdges @ 0x9cc69c\n; > EditorUI::createRockEdges @ 0x9cc6e0\n; > <???> @ 0x74b20\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\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x9cc0a4\nMOV             X29, SP                                                ; +0x4, 0x9cc0a8\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x8, 0x9cc0ac\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9cc0b0\nMOV             X22, X1                                                ; +0x10, 0x9cc0b4\nLDR             W1, [X1,#0x3F4]; int                                   ; +0x14, 0x9cc0b8\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x18, 0x9cc0bc\nLDR             X3, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x9cc0c0\nMOV             W19, W2                                                ; +0x20, 0x9cc0c4\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x24, 0x9cc0c8\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x28, 0x9cc0cc\nLDR             X3, [X3]                                               ; +0x2c, 0x9cc0d0\nMOV             X25, X0                                                ; +0x30, 0x9cc0d4\nSTR             X3, [X29,#0x80+var_8]                                  ; +0x34, 0x9cc0d8\nBL              _ZN8EditorUI13edgeForObjectEii; EditorUI::edgeForObject(int,int) ; +0x38, 0x9cc0dc\nCMP             W0, WZR                                                ; +0x3c, 0x9cc0e0\nMOV             W23, W0                                                ; +0x40, 0x9cc0e4\nB.LE            loc_9CC1E8                                             ; +0x44, 0x9cc0e8\nADD             X26, X29, #0x80+var_28                                 ; +0x48, 0x9cc0ec\nMOV             X0, X25; this                                          ; +0x4c, 0x9cc0f0\nMOV             X8, X26                                                ; +0x50, 0x9cc0f4\nMOV             W1, W23; int                                           ; +0x54, 0x9cc0f8\nADD             X24, X29, #0x80+var_20                                 ; +0x58, 0x9cc0fc\nBL              _ZN8EditorUI12offsetForKeyEi; EditorUI::offsetForKey(int) ; +0x5c, 0x9cc100\nADRP            X1, #qword_1243DC8@PAGE                                ; +0x60, 0x9cc104\nMOV             X0, X24; this                                          ; +0x64, 0x9cc108\nADD             X1, X1, #qword_1243DC8@PAGEOFF                         ; +0x68, 0x9cc10c\nADD             X1, X1, #8; cocos2d::CCPoint *                         ; +0x6c, 0x9cc110\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x70, 0x9cc114\nCMP             W19, #7; switch 8 cases                                ; +0x74, 0x9cc118\nB.LS            loc_9CC1D0                                             ; +0x78, 0x9cc11c\nADD             X19, X29, #0x80+var_10; jumptable 00000000009CC1E4 default case ; +0x7c, 0x9cc120\nLDR             X1, [X22]                                              ; +0x80, 0x9cc124\nADD             X20, X29, #0x80+var_18                                 ; +0x84, 0x9cc128\nMOV             X8, X20                                                ; +0x88, 0x9cc12c\nMOV             X0, X22                                                ; +0x8c, 0x9cc130\nLDR             X1, [X1,#0x540]                                        ; +0x90, 0x9cc134\nBLR             X1                                                     ; +0x94, 0x9cc138\nMOV             X8, X19                                                ; +0x98, 0x9cc13c\nMOV             X0, X20                                                ; +0x9c, 0x9cc140\nMOV             X1, X26                                                ; +0xa0, 0x9cc144\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xa4, 0x9cc148\nMOV             X1, X19                                                ; +0xa8, 0x9cc14c\nMOV             X0, X20                                                ; +0xac, 0x9cc150\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xb0, 0x9cc154\nMOV             X8, X19                                                ; +0xb4, 0x9cc158\nMOV             X0, X20                                                ; +0xb8, 0x9cc15c\nMOV             X1, X24                                                ; +0xbc, 0x9cc160\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xc0, 0x9cc164\nMOV             X1, X19                                                ; +0xc4, 0x9cc168\nMOV             X0, X20                                                ; +0xc8, 0x9cc16c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xcc, 0x9cc170\nMOV             X0, X19; this                                          ; +0xd0, 0x9cc174\nMOV             X1, X20; cocos2d::CCPoint *                            ; +0xd4, 0x9cc178\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xd8, 0x9cc17c\nMOV             W1, W23                                                ; +0xdc, 0x9cc180\nMOV             X0, X25                                                ; +0xe0, 0x9cc184\nMOV             X2, X19                                                ; +0xe4, 0x9cc188\nBL              _ZN8EditorUI12createObjectEiN7cocos2d7CCPointE; EditorUI::createObject(int,cocos2d::CCPoint) ; +0xe8, 0x9cc18c\nMOV             X1, X0                                                 ; +0xec, 0x9cc190\nCBZ             X0, loc_9CC1E8                                         ; +0xf0, 0x9cc194\nLDRH            W2, [X22,#0x4A2]                                       ; +0xf4, 0x9cc198\nADD             W2, W2, #1                                             ; +0xf8, 0x9cc19c\nSTRH            W2, [X1,#0x4A4]                                        ; +0xfc, 0x9cc1a0\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x100, 0x9cc1a4\nLDR             X2, [X29,#0x80+var_8]                                  ; +0x104, 0x9cc1a8\nLDR             X1, [X21]                                              ; +0x108, 0x9cc1ac\nCMP             X2, X1                                                 ; +0x10c, 0x9cc1b0\nB.NE            loc_9CC2CC                                             ; +0x110, 0x9cc1b4\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x114, 0x9cc1b8\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x118, 0x9cc1bc\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x11c, 0x9cc1c0\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x120, 0x9cc1c4\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x124, 0x9cc1c8\nRET                                                                    ; +0x128, 0x9cc1cc\nADRL            X0, jpt_9CC1E4                                         ; +0x12c, 0x9cc1d0\nLDRB            W0, [X0,W19,UXTW]                                      ; +0x134, 0x9cc1d8\nADR             X1, loc_9CC1E8                                         ; +0x138, 0x9cc1dc\nADD             X0, X1, W0,SXTB#2                                      ; +0x13c, 0x9cc1e0\nBR              X0; switch jump                                        ; +0x140, 0x9cc1e4\nMOV             X0, #0                                                 ; +0x144, 0x9cc1e8\nB               loc_9CC1A4                                             ; +0x148, 0x9cc1ec\nFMOV            S0, #-30.0; jumptable 00000000009CC1E4 case 6          ; +0x14c, 0x9cc1f0\nFMOV            S1, S0; float                                          ; +0x150, 0x9cc1f4\nADD             X19, X29, #0x80+var_10                                 ; +0x154, 0x9cc1f8\nMOV             X0, X19; this                                          ; +0x158, 0x9cc1fc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x15c, 0x9cc200\nMOV             X0, X24                                                ; +0x160, 0x9cc204\nMOV             X1, X19                                                ; +0x164, 0x9cc208\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x168, 0x9cc20c\nB               loc_9CC124                                             ; +0x16c, 0x9cc210\nADD             X19, X29, #0x80+var_10; jumptable 00000000009CC1E4 case 5 ; +0x170, 0x9cc214\nMOV             X0, X19; this                                          ; +0x174, 0x9cc218\nFMOV            S0, #30.0; float                                       ; +0x178, 0x9cc21c\nFMOV            S1, #-30.0; float                                      ; +0x17c, 0x9cc220\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x180, 0x9cc224\nMOV             X0, X24                                                ; +0x184, 0x9cc228\nMOV             X1, X19                                                ; +0x188, 0x9cc22c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x18c, 0x9cc230\nB               loc_9CC124                                             ; +0x190, 0x9cc234\nFMOV            S0, #30.0; jumptable 00000000009CC1E4 case 4           ; +0x194, 0x9cc238\nB               loc_9CC1F4                                             ; +0x198, 0x9cc23c\nFMOV            S1, WZR; jumptable 00000000009CC1E4 case 3             ; +0x19c, 0x9cc240\nADD             X19, X29, #0x80+var_10                                 ; +0x1a0, 0x9cc244\nMOV             X0, X19; this                                          ; +0x1a4, 0x9cc248\nFMOV            S0, #-30.0; float                                      ; +0x1a8, 0x9cc24c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1ac, 0x9cc250\nMOV             X0, X24                                                ; +0x1b0, 0x9cc254\nMOV             X1, X19                                                ; +0x1b4, 0x9cc258\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1b8, 0x9cc25c\nB               loc_9CC124                                             ; +0x1bc, 0x9cc260\nADD             X19, X29, #0x80+var_10; jumptable 00000000009CC1E4 case 2 ; +0x1c0, 0x9cc264\nFMOV            S0, WZR                                                ; +0x1c4, 0x9cc268\nMOV             X0, X19                                                ; +0x1c8, 0x9cc26c\nB               loc_9CC220                                             ; +0x1cc, 0x9cc270\nFMOV            S1, WZR; jumptable 00000000009CC1E4 case 1             ; +0x1d0, 0x9cc274\nADD             X19, X29, #0x80+var_10                                 ; +0x1d4, 0x9cc278\nMOV             X0, X19; this                                          ; +0x1d8, 0x9cc27c\nFMOV            S0, #30.0; float                                       ; +0x1dc, 0x9cc280\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1e0, 0x9cc284\nMOV             X0, X24                                                ; +0x1e4, 0x9cc288\nMOV             X1, X19                                                ; +0x1e8, 0x9cc28c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1ec, 0x9cc290\nB               loc_9CC124                                             ; +0x1f0, 0x9cc294\nFMOV            S0, WZR; jumptable 00000000009CC1E4 case 0             ; +0x1f4, 0x9cc298\nADD             X19, X29, #0x80+var_10                                 ; +0x1f8, 0x9cc29c\nMOV             X0, X19; this                                          ; +0x1fc, 0x9cc2a0\nFMOV            S1, #30.0; float                                       ; +0x200, 0x9cc2a4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x204, 0x9cc2a8\nMOV             X0, X24                                                ; +0x208, 0x9cc2ac\nMOV             X1, X19                                                ; +0x20c, 0x9cc2b0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x210, 0x9cc2b4\nB               loc_9CC124                                             ; +0x214, 0x9cc2b8\nADD             X19, X29, #0x80+var_10; jumptable 00000000009CC1E4 case 7 ; +0x218, 0x9cc2bc\nMOV             X0, X19                                                ; +0x21c, 0x9cc2c0\nFMOV            S0, #-30.0                                             ; +0x220, 0x9cc2c4\nB               loc_9CC2A4                                             ; +0x224, 0x9cc2c8\nBL              .__stack_chk_fail                                      ; +0x228, 0x9cc2cc", "xrefs": ["EditorUI::createRockEdges @ 0x9cc448", "EditorUI::createRockEdges @ 0x9cc48c", "EditorUI::createRockEdges @ 0x9cc4dc", "EditorUI::createRockEdges @ 0x9cc660", "EditorUI::createRockEdges @ 0x9cc69c", "EditorUI::createRockEdges @ 0x9cc6e0", "<???> @ 0x74b20"], "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"}