	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdb_sqlite_rename
_hdb_sqlite_rename:                     ## @hdb_sqlite_rename
	.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	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	(%rsi), %r13
	leaq	L_.str(%rip), %rsi
	callq	_krb5_warnx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	_strncasecmp
	leaq	7(%r12), %rbx
	testq	%rax, %rax
	cmovneq	%r12, %rbx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_hdb_sqlite_close_database
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_rename
	movl	%eax, %r12d
	movl	(%r13), %edi
	callq	_free
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_hdb_sqlite_make_database
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdb_sqlite_rename"

L_.str.1:                               ## @.str.1
	.asciz	"sqlite:"

	.no_dead_strip	_hdb_sqlite_rename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdb_sqlite_rename
_hdb_sqlite_rename:                     ; @hdb_sqlite_rename
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_krb5_warnx
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w22, #7
	mov	x0, x19
	mov	w2, #7
	bl	_strncasecmp
	cmp	x0, #0
	csel	x8, x22, xzr, eq
	add	x19, x19, x8
	mov	x0, x21
	mov	x1, x20
	bl	_hdb_sqlite_close_database
	ldr	w0, [x23]
	mov	x1, x19
	bl	_rename
	mov	x22, x0
	ldr	w0, [x23]
	bl	_free
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_hdb_sqlite_make_database
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdb_sqlite_rename"

l_.str.1:                               ; @.str.1
	.asciz	"sqlite:"

	.no_dead_strip	_hdb_sqlite_rename
.subsections_via_symbols
