//
// sub_1007186B0 from 0x1007186b0 to 0x100718715 (101 bytes)
//
// 3 xrefs:
// > DS_Dictionary::DS_Dictionary @ 0x100158dfe
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x10015b54b
// > DS_Dictionary::saveRootSubDictToString @ 0x10015bc2f
//
// 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:36:09 +0000
//
__int64 __fastcall sub_1007186B0(_QWORD **a1, const char *a2)
{
_QWORD *v2; // rdi
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rbx
v2 = *a1;
if ( !v2 )
return 0;
v3 = *v2 & 7LL;
if ( v3 != 6 && (_DWORD)v3 != 1 )
return 0;
v4 = sub_100718720(v2, *(_QWORD *)(*v2 & 0xFFFFFFFFFFFFFFE0LL));
if ( !v4 )
return 0;
v5 = v4;
sub_100717DB0((const char **)(v4 + 8), (__int64 *)v4, 16, a2);
return v5;
}