{"type": "func", "start": 6732520, "end": 6732770, "name": "EditorUI::createEdgeForObject", "pseudocode": "// \n// EditorUI::createEdgeForObject from 0x66bae8 to 0x66bbe2 (250 bytes)\n// \n// 3 xrefs:\n// > EditorUI::createRockEdges @ 0x66bcf4\n// > EditorUI::createRockEdges @ 0x66bd8c\n// > EditorUI::createRockEdges @ 0x66bda6\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:55:45 +0000\n// \n\nGameObject *__fastcall EditorUI::createEdgeForObject(EditorUI *this, GameObject *a2, int a3)\n{\n  GameObject *v6; // r9\n  float v7; // r1\n  float v8; // r2\n  GameObject *result; // r0\n  _BYTE v10[8]; // [sp+4h] [bp-28h] BYREF\n  _BYTE v11[8]; // [sp+Ch] [bp-20h] BYREF\n  _BYTE v12[8]; // [sp+14h] [bp-18h] BYREF\n  _BYTE v13[8]; // [sp+1Ch] [bp-10h] BYREF\n\n  v6 = (GameObject *)EditorUI::edgeForObject(this, *((_DWORD *)a2 + 223), a3);\n  if ( (int)v6 <= 0 )\n    return nullptr;\n  offsetForKey((cocos2d::CCPoint *)v10);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)&unk_D2D1E8);\n  switch ( a3 )\n  {\n    case 0:\n      v7 = 0.0;\n      goto LABEL_14;\n    case 1:\n      v7 = 30.0;\n      goto LABEL_7;\n    case 2:\n      v7 = 0.0;\n      goto LABEL_10;\n    case 3:\n      v7 = -30.0;\nLABEL_7:\n      v8 = 0.0;\n      goto LABEL_15;\n    case 4:\n      v7 = 30.0;\n      goto LABEL_12;\n    case 5:\n      v7 = 30.0;\nLABEL_10:\n      v8 = -30.0;\n      goto LABEL_15;\n    case 6:\n      v7 = -30.0;\nLABEL_12:\n      v8 = v7;\n      goto LABEL_15;\n    case 7:\n      v7 = -30.0;\nLABEL_14:\n      v8 = 30.0;\nLABEL_15:\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v7, v8);\n      cocos2d::CCPoint::operator=(v11, v13);\n      break;\n    default:\n      break;\n  }\n  (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)a2 + 680))(v12, a2);\n  cocos2d::CCPoint::operator+(v13, v12, v10);\n  cocos2d::CCPoint::operator=(v12, v13);\n  cocos2d::CCPoint::operator+(v13, v12, v11);\n  cocos2d::CCPoint::operator=(v12, v13);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);\n  result = EditorUI::createObject((int)this, v6, (const cocos2d::CCPoint *)v13);\n  if ( result )\n    *((_WORD *)result + 520) = *((_WORD *)a2 + 519) + 1;\n  return result;\n}", "assembly": "; \n; EditorUI::createEdgeForObject from 0x66bae8 to 0x66bbe2 (250 bytes)\n; \n; 3 xrefs:\n; > EditorUI::createRockEdges @ 0x66bcf4\n; > EditorUI::createRockEdges @ 0x66bd8c\n; > EditorUI::createRockEdges @ 0x66bda6\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:55:45 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x66bae8\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x66baec\nLDR             R7, =(__stack_chk_guard_ptr - 0x66BAFC)                ; +0x6, 0x66baee\nMOV             R8, R1                                                 ; +0x8, 0x66baf0\nLDR.W           R1, [R1,#0x37C]; int                                   ; +0xa, 0x66baf2\nMOV             R11, R0                                                ; +0xe, 0x66baf6\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x66baf8\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x66bafa\nMOV             R6, R2                                                 ; +0x14, 0x66bafc\nLDR             R3, [R7]                                               ; +0x16, 0x66bafe\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x18, 0x66bb00\nBL              _ZN8EditorUI13edgeForObjectEii; EditorUI::edgeForObject(int,int) ; +0x1a, 0x66bb02\nSUBS.W          R9, R0, #0                                             ; +0x1e, 0x66bb06\nBLE             loc_66BBCE                                             ; +0x22, 0x66bb0a\nADD.W           R10, SP, #0x2C+var_28                                  ; +0x24, 0x66bb0c\nMOV             R1, R9                                                 ; +0x28, 0x66bb10\nADD             R5, SP, #0x2C+var_20                                   ; +0x2a, 0x66bb12\nADD             R4, SP, #0x2C+var_10                                   ; +0x2c, 0x66bb14\nMOV             R0, R10; this                                          ; +0x2e, 0x66bb16\nBL              _Z12offsetForKeyi; offsetForKey(int)                   ; +0x30, 0x66bb18\nLDR             R1, =(qword_D2D1E0 - 0x66BB24)                         ; +0x34, 0x66bb1c\nMOV             R0, R5; this                                           ; +0x36, 0x66bb1e\nADD             R1, PC; qword_D2D1E0                                   ; +0x38, 0x66bb20\nADDS            R1, #(unk_D2D1E8 - 0xD2D1E0); cocos2d::CCPoint *       ; +0x3a, 0x66bb22\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x3c, 0x66bb24\nCMP             R6, #7; switch 8 cases                                 ; +0x40, 0x66bb28\nBHI             def_66BB2C; jumptable 0066BB2C default case            ; +0x42, 0x66bb2a\nTBB.W           [PC,R6]; switch jump                                   ; +0x44, 0x66bb2c\nDCB 4; jump table for switch statement                                 ; +0x48, 0x66bb30\nDCB 7                                                                  ; +0x49, 0x66bb31\nDCB 0xA                                                                ; +0x4a, 0x66bb32\nDCB 0xD                                                                ; +0x4b, 0x66bb33\nDCB 0x11                                                               ; +0x4c, 0x66bb34\nDCB 0x14                                                               ; +0x4d, 0x66bb35\nDCB 0x18                                                               ; +0x4e, 0x66bb36\nDCB 0x1C                                                               ; +0x4f, 0x66bb37\nMOV             R0, R4; jumptable 0066BB2C case 0                      ; +0x50, 0x66bb38\nMOVS            R1, #0                                                 ; +0x52, 0x66bb3a\nB               loc_66BB6C                                             ; +0x54, 0x66bb3c\nMOV             R0, R4; jumptable 0066BB2C case 1                      ; +0x56, 0x66bb3e\nLDR             R1, flt_66BBE4                                         ; +0x58, 0x66bb40\nB               loc_66BB4E                                             ; +0x5a, 0x66bb42\nMOV             R0, R4; jumptable 0066BB2C case 2                      ; +0x5c, 0x66bb44\nMOVS            R1, #0                                                 ; +0x5e, 0x66bb46\nB               loc_66BB5C                                             ; +0x60, 0x66bb48\nLDR             R1, flt_66BBE8; jumptable 0066BB2C case 3              ; +0x62, 0x66bb4a\nMOV             R0, R4                                                 ; +0x64, 0x66bb4c\nMOVS            R2, #0                                                 ; +0x66, 0x66bb4e\nB               loc_66BB6E                                             ; +0x68, 0x66bb50\nMOV             R0, R4; jumptable 0066BB2C case 4                      ; +0x6a, 0x66bb52\nLDR             R1, flt_66BBE4                                         ; +0x6c, 0x66bb54\nB               loc_66BB64                                             ; +0x6e, 0x66bb56\nLDR             R1, flt_66BBE4; jumptable 0066BB2C case 5              ; +0x70, 0x66bb58\nMOV             R0, R4                                                 ; +0x72, 0x66bb5a\nLDR             R2, flt_66BBE8                                         ; +0x74, 0x66bb5c\nB               loc_66BB6E                                             ; +0x76, 0x66bb5e\nLDR             R1, flt_66BBE8; jumptable 0066BB2C case 6              ; +0x78, 0x66bb60\nMOV             R0, R4                                                 ; +0x7a, 0x66bb62\nMOV             R2, R1                                                 ; +0x7c, 0x66bb64\nB               loc_66BB6E                                             ; +0x7e, 0x66bb66\nLDR             R1, flt_66BBE8; jumptable 0066BB2C case 7              ; +0x80, 0x66bb68\nMOV             R0, R4; this                                           ; +0x82, 0x66bb6a\nLDR             R2, flt_66BBE4; float                                  ; +0x84, 0x66bb6c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x86, 0x66bb6e\nMOV             R0, R5                                                 ; +0x8a, 0x66bb72\nMOV             R1, R4                                                 ; +0x8c, 0x66bb74\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x8e, 0x66bb76\nLDR.W           R3, [R8]; jumptable 0066BB2C default case              ; +0x92, 0x66bb7a\nADD             R6, SP, #0x2C+var_18                                   ; +0x96, 0x66bb7e\nMOV             R1, R8                                                 ; +0x98, 0x66bb80\nMOV             R0, R6                                                 ; +0x9a, 0x66bb82\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x9c, 0x66bb84\nBLX             R3                                                     ; +0xa0, 0x66bb88\nMOV             R2, R10                                                ; +0xa2, 0x66bb8a\nMOV             R0, R4                                                 ; +0xa4, 0x66bb8c\nMOV             R1, R6                                                 ; +0xa6, 0x66bb8e\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xa8, 0x66bb90\nMOV             R1, R4                                                 ; +0xac, 0x66bb94\nMOV             R0, R6                                                 ; +0xae, 0x66bb96\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xb0, 0x66bb98\nMOV             R2, R5                                                 ; +0xb4, 0x66bb9c\nMOV             R0, R4                                                 ; +0xb6, 0x66bb9e\nMOV             R1, R6                                                 ; +0xb8, 0x66bba0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xba, 0x66bba2\nMOV             R1, R4                                                 ; +0xbe, 0x66bba6\nMOV             R0, R6                                                 ; +0xc0, 0x66bba8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xc2, 0x66bbaa\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0xc6, 0x66bbae\nMOV             R0, R4; this                                           ; +0xc8, 0x66bbb0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xca, 0x66bbb2\nMOV             R0, R11                                                ; +0xce, 0x66bbb6\nMOV             R1, R9                                                 ; +0xd0, 0x66bbb8\nMOV             R2, R4                                                 ; +0xd2, 0x66bbba\nBL              _ZN8EditorUI12createObjectEiN7cocos2d7CCPointE; EditorUI::createObject(int,cocos2d::CCPoint) ; +0xd4, 0x66bbbc\nCBZ             R0, loc_66BBD0                                         ; +0xd8, 0x66bbc0\nLDRH.W          R3, [R8,#0x40E]                                        ; +0xda, 0x66bbc2\nADDS            R3, #1                                                 ; +0xde, 0x66bbc6\nSTRH.W          R3, [R0,#0x410]                                        ; +0xe0, 0x66bbc8\nB               loc_66BBD0                                             ; +0xe4, 0x66bbcc\nMOVS            R0, #0                                                 ; +0xe6, 0x66bbce\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xe8, 0x66bbd0\nLDR             R3, [R7]                                               ; +0xea, 0x66bbd2\nCMP             R2, R3                                                 ; +0xec, 0x66bbd4\nBEQ             loc_66BBDC                                             ; +0xee, 0x66bbd6\nBLX             __stack_chk_fail                                       ; +0xf0, 0x66bbd8\nADD             SP, SP, #0x2C ; ','                                    ; +0xf4, 0x66bbdc\nPOP.W           {R4-R11,PC}                                            ; +0xf6, 0x66bbde", "xrefs": ["EditorUI::createRockEdges @ 0x66bcf4", "EditorUI::createRockEdges @ 0x66bd8c", "EditorUI::createRockEdges @ 0x66bda6"], "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"}