// // sub_1000075D8 from 0x1000075d8 to 0x1000078a0 (712 bytes) // // 11 xrefs: // > sub_10000710C @ 0x100007168 // > sub_10000710C @ 0x100007198 // > sub_10000710C @ 0x1000071c8 // > sub_10000710C @ 0x1000071f8 // > sub_10000710C @ 0x100007228 // > sub_10000710C @ 0x100007258 // > sub_10000710C @ 0x100007288 // > sub_10000710C @ 0x1000072b8 // > sub_10000710C @ 0x1000072e8 // > sub_10000756C @ 0x1000075a0 // > EditorUI::addObjectsToSmartTemplate @ 0x100478270 // // This function is hookable on this platform (idp: arm, 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 10:57:11 +0000 // __int64 __fastcall sub_1000075D8(_DWORD *a1, float *a2) { int v4; // w8 unsigned int v5; // w9 bool v6; // zf unsigned int v7; // w8 __int64 v8; // x19 __int64 v9; // x8 float v11; // s8 float v12; // s0 _BOOL4 v13; // w8 int v14; // w9 float v15; // s8 float v16; // s8 float v17; // s8 if ( !a1 ) goto LABEL_10; v4 = a1[257]; if ( v4 != 2897 ) { if ( v4 != 2896 ) { v5 = 48; v6 = v4 == 2895; v7 = 49; goto LABEL_5; } v9 = (unsigned int)a1[271]; if ( (unsigned int)v9 < 8 ) { v8 = *(unsigned int *)&a2_4[4 * v9]; goto LABEL_11; } LABEL_10: v8 = 48; goto LABEL_11; } v12 = fabsf((*(float (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 368LL))(a1)); v13 = v12 == 270.0 || v12 == 90.0; v14 = a1[271]; v8 = 48; if ( v14 > 3 ) { if ( v14 > 5 ) { if ( v14 != 6 ) { if ( v14 != 7 ) goto LABEL_11; LABEL_52: v6 = !v13; v7 = 54; v5 = 69; goto LABEL_5; } goto LABEL_54; } if ( v14 != 4 ) { LABEL_47: v6 = !v13; v7 = 65; v5 = 73; goto LABEL_5; } LABEL_53: v6 = !v13; v7 = 56; v5 = 71; goto LABEL_5; } if ( v14 <= 1 ) { if ( v14 ) { if ( v14 != 1 ) goto LABEL_11; goto LABEL_47; } goto LABEL_52; } if ( v14 == 2 ) goto LABEL_53; LABEL_54: v6 = !v13; v7 = 67; v5 = 75; LABEL_5: if ( v6 ) v8 = v7; else v8 = v5; LABEL_11: if ( (sub_100026398(a2, &unk_1009F23E0) & 1) != 0 ) return v8; if ( (int)v8 > 68 ) { if ( (int)v8 > 72 ) { if ( (_DWORD)v8 == 73 || (_DWORD)v8 == 75 ) { v16 = a2[1]; if ( v16 > *(float *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) + 4) ) { if ( (_DWORD)v8 == 75 ) return 76; else return 74; } } } else if ( (_DWORD)v8 == 69 || (_DWORD)v8 == 71 ) { v11 = a2[1]; if ( v11 < *(float *)((*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) + 4) ) { if ( (_DWORD)v8 == 71 ) return 72; else return 70; } } } else { if ( (int)v8 > 64 ) { if ( (_DWORD)v8 != 65 ) { if ( (_DWORD)v8 != 67 ) return v8; goto LABEL_34; } } else if ( (_DWORD)v8 != 54 ) { if ( (_DWORD)v8 != 56 ) return v8; LABEL_34: v15 = *a2; if ( v15 < *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) ) { if ( (_DWORD)v8 == 67 ) return 68; else return 57; } return v8; } v17 = *a2; if ( v17 > *(float *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1) ) { if ( (_DWORD)v8 == 65 ) return 66; else return 55; } } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source