	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdb_sqlite_make_database
_hdb_sqlite_make_database:              ## @hdb_sqlite_make_database
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	(%rsi), %r12
	movq	%rdx, %rdi
	callq	_strdup
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_hdb_sqlite_open_database
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_SQLITE_OPEN_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hdb_sqlite_open_database
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_28
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_33
LBB0_5:
	movq	16(%r12), %rsi
	movq	_HDBSQLITE_CREATE_TABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_exec_stmt
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	$1, %r13d
	jmp	LBB0_28
LBB0_7:
	movq	16(%r12), %rsi
	movq	_HDBSQLITE_CREATE_TRIGGERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_exec_stmt
	movl	%eax, %r15d
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_28
LBB0_8:
	movq	16(%r12), %rsi
	leaq	24(%r12), %rdx
	movq	_HDBSQLITE_GET_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.10:
	movq	16(%r12), %rsi
	leaq	60(%r12), %rdx
	movq	_HDBSQLITE_FETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.12:
	movq	16(%r12), %rsi
	leaq	56(%r12), %rdx
	movq	_HDBSQLITE_GET_IDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.14:
	movq	16(%r12), %rsi
	leaq	52(%r12), %rdx
	movq	_HDBSQLITE_ADD_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.16:
	movq	16(%r12), %rsi
	leaq	48(%r12), %rdx
	movq	_HDBSQLITE_ADD_PRINCIPAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.18:
	movq	16(%r12), %rsi
	leaq	44(%r12), %rdx
	movq	_HDBSQLITE_ADD_ALIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.20:
	movq	16(%r12), %rsi
	leaq	40(%r12), %rdx
	movq	_HDBSQLITE_DELETE_ALIASES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.22:
	movq	16(%r12), %rsi
	leaq	36(%r12), %rdx
	movq	_HDBSQLITE_UPDATE_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movq	16(%r12), %rsi
	leaq	32(%r12), %rdx
	movq	_HDBSQLITE_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	movq	16(%r12), %rsi
	leaq	28(%r12), %rdx
	movq	_HDBSQLITE_GET_ALL_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_hdb_sqlite_prepare_stmt
	testl	%eax, %eax
	je	LBB0_34
LBB0_27:
	movl	%eax, %r15d
LBB0_28:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_sqlite3_close
LBB0_30:
	testl	%r13d, %r13d
	je	LBB0_32
## %bb.31:
	movq	8(%r12), %rdi
	callq	_unlink
LBB0_32:
	movl	%r15d, %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	16(%r12), %rsi
	movl	24(%r12), %edx
	movl	%r14d, %edi
	callq	_hdb_sqlite_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_36
## %bb.35:
	movl	24(%r12), %edi
	xorl	%esi, %esi
	callq	_sqlite3_column_double
	movq	%rax, (%r12)
LBB0_36:
	movl	24(%r12), %edi
	callq	_sqlite3_reset
	movq	(%r12), %rax
	movq	_HDBSQLITE_VERSION@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.37:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_krb5_set_error_message
	testl	%r15d, %r15d
	jne	LBB0_28
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SQLITE_OPEN_CREATE,4,2         ## @SQLITE_OPEN_CREATE
	.comm	_HDBSQLITE_CREATE_TABLES,4,2    ## @HDBSQLITE_CREATE_TABLES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDBSQLITE_CREATE_TRIGGERS,4,2  ## @HDBSQLITE_CREATE_TRIGGERS
	.comm	_HDBSQLITE_GET_VERSION,4,2      ## @HDBSQLITE_GET_VERSION
	.comm	_HDBSQLITE_FETCH,4,2            ## @HDBSQLITE_FETCH
	.comm	_HDBSQLITE_GET_IDS,4,2          ## @HDBSQLITE_GET_IDS
	.comm	_HDBSQLITE_ADD_ENTRY,4,2        ## @HDBSQLITE_ADD_ENTRY
	.comm	_HDBSQLITE_ADD_PRINCIPAL,4,2    ## @HDBSQLITE_ADD_PRINCIPAL
	.comm	_HDBSQLITE_ADD_ALIAS,4,2        ## @HDBSQLITE_ADD_ALIAS
	.comm	_HDBSQLITE_DELETE_ALIASES,4,2   ## @HDBSQLITE_DELETE_ALIASES
	.comm	_HDBSQLITE_UPDATE_ENTRY,4,2     ## @HDBSQLITE_UPDATE_ENTRY
	.comm	_HDBSQLITE_REMOVE,4,2           ## @HDBSQLITE_REMOVE
	.comm	_HDBSQLITE_GET_ALL_ENTRIES,4,2  ## @HDBSQLITE_GET_ALL_ENTRIES
	.comm	_SQLITE_ROW,4,2                 ## @SQLITE_ROW
	.comm	_HDBSQLITE_VERSION,8,3          ## @HDBSQLITE_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDBSQLITE_VERSION mismatch"

	.no_dead_strip	_hdb_sqlite_make_database
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdb_sqlite_make_database
_hdb_sqlite_make_database:              ; @hdb_sqlite_make_database
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
	mov	x0, x2
	bl	_strdup
	str	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_hdb_sqlite_open_database
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _SQLITE_OPEN_CREATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OPEN_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_hdb_sqlite_open_database
	cbz	w0, LBB0_17
; %bb.3:
	mov	x20, x0
	mov	w22, #0
	b	LBB0_20
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_24
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	x1, [x21, #16]
	add	x2, x21, #24
Lloh6:
	adrp	x8, _HDBSQLITE_GET_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDBSQLITE_GET_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	x1, [x21, #16]
	add	x2, x21, #60
Lloh9:
	adrp	x8, _HDBSQLITE_FETCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDBSQLITE_FETCH@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.8:
	ldr	x1, [x21, #16]
	add	x2, x21, #56
Lloh12:
	adrp	x8, _HDBSQLITE_GET_IDS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDBSQLITE_GET_IDS@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	x1, [x21, #16]
	add	x2, x21, #52
Lloh15:
	adrp	x8, _HDBSQLITE_ADD_ENTRY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDBSQLITE_ADD_ENTRY@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.10:
	ldr	x1, [x21, #16]
	add	x2, x21, #48
Lloh18:
	adrp	x8, _HDBSQLITE_ADD_PRINCIPAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDBSQLITE_ADD_PRINCIPAL@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.11:
	ldr	x1, [x21, #16]
	add	x2, x21, #44
Lloh21:
	adrp	x8, _HDBSQLITE_ADD_ALIAS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDBSQLITE_ADD_ALIAS@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	x1, [x21, #16]
	add	x2, x21, #40
Lloh24:
	adrp	x8, _HDBSQLITE_DELETE_ALIASES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDBSQLITE_DELETE_ALIASES@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	x1, [x21, #16]
	add	x2, x21, #36
Lloh27:
	adrp	x8, _HDBSQLITE_UPDATE_ENTRY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HDBSQLITE_UPDATE_ENTRY@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.14:
	ldr	x1, [x21, #16]
	add	x2, x21, #32
Lloh30:
	adrp	x8, _HDBSQLITE_REMOVE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDBSQLITE_REMOVE@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	x1, [x21, #16]
	add	x2, x21, #28
Lloh33:
	adrp	x8, _HDBSQLITE_GET_ALL_ENTRIES@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HDBSQLITE_GET_ALL_ENTRIES@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_hdb_sqlite_prepare_stmt
	cbz	w0, LBB0_25
LBB0_16:
	mov	x20, x0
	b	LBB0_20
LBB0_17:
	ldr	x1, [x21, #16]
Lloh36:
	adrp	x8, _HDBSQLITE_CREATE_TABLES@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HDBSQLITE_CREATE_TABLES@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x22, _EINVAL@GOTPAGE
Lloh40:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_hdb_sqlite_exec_stmt
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
	mov	w22, #1
	b	LBB0_20
LBB0_19:
	ldr	x1, [x21, #16]
Lloh41:
	adrp	x8, _HDBSQLITE_CREATE_TRIGGERS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HDBSQLITE_CREATE_TRIGGERS@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_hdb_sqlite_exec_stmt
	mov	x20, x0
	mov	w22, #1
	cbz	w0, LBB0_6
LBB0_20:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_sqlite3_close
LBB0_22:
	cbz	w22, LBB0_24
; %bb.23:
	ldr	x0, [x21, #8]
	bl	_unlink
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_25:
	ldr	x1, [x21, #16]
	ldr	w2, [x21, #24]
	mov	x0, x19
	bl	_hdb_sqlite_step
Lloh44:
	adrp	x8, _SQLITE_ROW@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SQLITE_ROW@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.26:
	ldr	w0, [x21, #24]
	mov	w1, #0
	bl	_sqlite3_column_double
	str	x0, [x21]
LBB0_27:
	ldr	w0, [x21, #24]
	bl	_sqlite3_reset
	ldr	x8, [x21]
Lloh47:
	adrp	x9, _HDBSQLITE_VERSION@GOTPAGE
Lloh48:
	ldr	x9, [x9, _HDBSQLITE_VERSION@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.28:
	mov	w20, #0
	b	LBB0_24
LBB0_29:
Lloh50:
	adrp	x8, _EINVAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh52:
	ldr	w20, [x8]
Lloh53:
	adrp	x2, l_.str@PAGE
Lloh54:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	cbnz	w20, LBB0_20
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SQLITE_OPEN_CREATE,4,2         ; @SQLITE_OPEN_CREATE
	.comm	_HDBSQLITE_CREATE_TABLES,4,2    ; @HDBSQLITE_CREATE_TABLES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDBSQLITE_CREATE_TRIGGERS,4,2  ; @HDBSQLITE_CREATE_TRIGGERS
	.comm	_HDBSQLITE_GET_VERSION,4,2      ; @HDBSQLITE_GET_VERSION
	.comm	_HDBSQLITE_FETCH,4,2            ; @HDBSQLITE_FETCH
	.comm	_HDBSQLITE_GET_IDS,4,2          ; @HDBSQLITE_GET_IDS
	.comm	_HDBSQLITE_ADD_ENTRY,4,2        ; @HDBSQLITE_ADD_ENTRY
	.comm	_HDBSQLITE_ADD_PRINCIPAL,4,2    ; @HDBSQLITE_ADD_PRINCIPAL
	.comm	_HDBSQLITE_ADD_ALIAS,4,2        ; @HDBSQLITE_ADD_ALIAS
	.comm	_HDBSQLITE_DELETE_ALIASES,4,2   ; @HDBSQLITE_DELETE_ALIASES
	.comm	_HDBSQLITE_UPDATE_ENTRY,4,2     ; @HDBSQLITE_UPDATE_ENTRY
	.comm	_HDBSQLITE_REMOVE,4,2           ; @HDBSQLITE_REMOVE
	.comm	_HDBSQLITE_GET_ALL_ENTRIES,4,2  ; @HDBSQLITE_GET_ALL_ENTRIES
	.comm	_SQLITE_ROW,4,2                 ; @SQLITE_ROW
	.comm	_HDBSQLITE_VERSION,8,3          ; @HDBSQLITE_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDBSQLITE_VERSION mismatch"

	.no_dead_strip	_hdb_sqlite_make_database
.subsections_via_symbols
