// // EditorUI::createRockEdges from 0x1006f0ba0 to 0x1006f0f18 (888 bytes) // // 1 xrefs: // > EditorUI::createSmartObjectsFromType @ 0x100015193 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:35:51 +0000 // __int64 __fastcall EditorUI::createRockEdges(__int64 a1, __int64 a2) { __int64 v2; // r15 unsigned int v3; // r12d _QWORD *v4; // rsi __int64 v5; // rax unsigned int v6; // r14d float v7; // xmm0_4 float v8; // xmm1_4 unsigned int v9; // ebx __int64 v10; // rax float *v11; // rax __int64 EdgeForObject; // rax int v13; // eax __int64 v14; // rax __int64 v15; // rax int v16; // ecx __int64 v17; // rax __int64 v18; // rax __int64 v19; // r14 __int64 v21; // rbx unsigned int *v22; // rax __int64 *v23; // r15 unsigned __int64 v24; // r12 __int64 v25; // r14 __int64 v26; // [rsp+0h] [rbp-70h] BYREF unsigned __int64 v27; // [rsp+8h] [rbp-68h] BYREF __int64 v28; // [rsp+10h] [rbp-60h] unsigned __int64 v29; // [rsp+18h] [rbp-58h] BYREF _QWORD *v30; // [rsp+20h] [rbp-50h] __int64 v31; // [rsp+28h] [rbp-48h] int v32; // [rsp+30h] [rbp-40h] int v33; // [rsp+34h] [rbp-3Ch] __int64 v34; // [rsp+38h] [rbp-38h] int v35; // [rsp+44h] [rbp-2Ch] v31 = a1; if ( !a2 || !(unsigned int)sub_1007FEF90(a2) ) return 0; v2 = sub_1007FE900(a2); v34 = sub_1007FE900(a2); sub_1007FEF70(v2, a2); if ( (unsigned int)sub_1007FEF90(v2) ) { v3 = 0; do { v4 = (_QWORD *)sub_1007FEFE0(v2, v3); v5 = *v4; v30 = v4; (*(void (__fastcall **)(unsigned __int64 *))(v5 + 1360))(&v27); v32 = 0; v35 = 0; v33 = 0; v6 = 0; while ( 1 ) { sub_1002782D0(&v29, &qword_100BE6500); v28 = v6; switch ( v6 ) { case 0u: v7 = 0.0; v8 = 30.0; break; case 1u: v8 = 0.0; v7 = 30.0; break; case 2u: v7 = 0.0; v8 = -30.0; break; case 3u: v8 = 0.0; v7 = -30.0; break; } sub_100278250((float *)&v26, v7, v8); sub_100278300(&v29, &v26); sub_100278350((double *)&v26, &v27, &v29); if ( !(unsigned int)sub_1007FEF90(v2) ) break; v9 = 0; while ( 1 ) { if ( v3 != v9 ) { v10 = sub_1007FEFE0(v2, v9); v11 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1328LL))(v10); if ( sub_100278940(v11, (float *)&v26) ) break; } if ( ++v9 >= (unsigned int)sub_1007FEF90(v2) ) goto LABEL_20; } LABEL_8: if ( ++v6 == 4 ) goto LABEL_5; } LABEL_20: EdgeForObject = EditorUI::createEdgeForObject(v31, v30, v6); if ( EdgeForObject ) sub_1007FEBF0(v34, EdgeForObject); v13 = v28; switch ( v28 ) { case 0LL: LOBYTE(v13) = 1; v32 = v13; goto LABEL_8; case 1LL: LOBYTE(v13) = 1; v35 = v13; if ( (v32 & 1) != 0 ) { v14 = EditorUI::createEdgeForObject(v31, v30, 4); if ( v14 ) sub_1007FEBF0(v34, v14); } goto LABEL_8; case 2LL: if ( (v35 & 1) != 0 ) { v15 = EditorUI::createEdgeForObject(v31, v30, 5); LOBYTE(v16) = 1; v33 = v16; if ( v15 ) v15 = sub_1007FEBF0(v34, v15); LOBYTE(v15) = 1; v35 = v15; } else { LOBYTE(v13) = 1; v33 = v13; v35 = 0; } goto LABEL_8; case 3LL: if ( (v33 & 1) != 0 ) { v17 = EditorUI::createEdgeForObject(v31, v30, 6); if ( v17 ) sub_1007FEBF0(v34, v17); } if ( (v32 & 1) != 0 ) { v18 = EditorUI::createEdgeForObject(v31, v30, 7); if ( v18 ) sub_1007FEBF0(v34, v18); } break; default: goto LABEL_8; } LABEL_5: ++v3; } while ( v3 < (unsigned int)sub_1007FEF90(v2) ); } v19 = v34; if ( (unsigned int)sub_1007FEF90(v34) ) { v21 = sub_1007FEFE0(v2, 0); if ( v21 != 0 && v19 != 0 ) { v22 = *(unsigned int **)(v19 + 56); if ( *v22 ) { v23 = *((__int64 **)v22 + 2); v24 = (unsigned __int64)&v23[*v22 - 1]; do { v25 = *v23; if ( !*v23 ) break; GameObject::duplicateColorMode(*v23, v21); GameObject::duplicateAttributes(v25, v21); *(_BYTE *)(v25 + 1148) = 1; ++v23; } while ( (unsigned __int64)v23 <= v24 ); return v34; } } } return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source