	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdb_sqlite_prepare_stmt
_hdb_sqlite_prepare_stmt:               ## @hdb_sqlite_prepare_stmt
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	movl	$-1, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movq	_MAX_RETRIES@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	leaq	L_.str(%rip), %rsi
	callq	_krb5_warnx
	movl	$1, %edi
	callq	_sleep
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$-1, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	incl	%r12d
	movq	_MAX_RETRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_IOERR_BLOCKED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_LOCKED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
LBB0_6:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$0, %eax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%r13, %rdi
	callq	_sqlite3_errmsg
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_krb5_set_error_message
	movl	(%r12), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RETRIES,4,2                ## @MAX_RETRIES
	.comm	_SQLITE_BUSY,4,2                ## @SQLITE_BUSY
	.comm	_SQLITE_IOERR_BLOCKED,4,2       ## @SQLITE_IOERR_BLOCKED
	.comm	_SQLITE_LOCKED,4,2              ## @SQLITE_LOCKED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdb-sqlite: prepare busy"

	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to prepare stmt %s: %s"

	.no_dead_strip	_hdb_sqlite_prepare_stmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdb_sqlite_prepare_stmt
_hdb_sqlite_prepare_stmt:               ; @hdb_sqlite_prepare_stmt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x3
	mov	w2, #-1
	mov	x3, x22
	mov	x4, #0
	bl	_sqlite3_prepare_v2
Lloh0:
	adrp	x24, _MAX_RETRIES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_RETRIES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w25, #0
Lloh2:
	adrp	x26, _SQLITE_BUSY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SQLITE_BUSY@GOTPAGEOFF]
Lloh4:
	adrp	x27, _SQLITE_IOERR_BLOCKED@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SQLITE_IOERR_BLOCKED@GOTPAGEOFF]
Lloh6:
	adrp	x28, _SQLITE_LOCKED@GOTPAGE
Lloh7:
	ldr	x28, [x28, _SQLITE_LOCKED@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	ldr	w9, [x27]
	ldr	w10, [x28]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_krb5_warnx
	mov	w0, #1
	bl	_sleep
	mov	x0, x21
	mov	x1, x19
	mov	w2, #-1
	mov	x3, x22
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	ldr	w8, [x24]
	add	w25, w25, #1
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_4:
Lloh10:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x23, _EINVAL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x21
	bl	_sqlite3_errmsg
	mov	x4, x0
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	bl	_krb5_set_error_message
	ldr	w0, [x23]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RETRIES,4,2                ; @MAX_RETRIES
	.comm	_SQLITE_BUSY,4,2                ; @SQLITE_BUSY
	.comm	_SQLITE_IOERR_BLOCKED,4,2       ; @SQLITE_IOERR_BLOCKED
	.comm	_SQLITE_LOCKED,4,2              ; @SQLITE_LOCKED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdb-sqlite: prepare busy"

	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to prepare stmt %s: %s"

	.no_dead_strip	_hdb_sqlite_prepare_stmt
.subsections_via_symbols
