	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_apr
_close_apr:                             ## @close_apr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	24(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.2:
	movl	(%r12), %eax
	movq	_STMT_INTERNAL_LAST@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %esi
	addl	%eax, %esi
	jle	LBB0_12
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_svn_sqlite__reset
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_svn_error_compose_create
	movq	%rax, %r14
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_svn_sqlite__finalize
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_svn_error_compose_create
	movq	%rax, %r14
	movl	(%r12), %eax
	movl	(%r15), %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	leal	(%rcx,%rax), %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12), %rdx
	jmp	LBB0_4
LBB0_11:
	movq	16(%r12), %rdi
LBB0_12:
	callq	_sqlite3_close
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_svn_error_clear
	jmp	LBB0_17
LBB0_14:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:
	movq	$0, 16(%r12)
LBB0_16:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_17:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SQLITE_ERROR_CODE              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_STMT_INTERNAL_LAST,4,2         ## @STMT_INTERNAL_LAST
	.comm	_SQLITE_OK,8,3                  ## @SQLITE_OK
	.no_dead_strip	_close_apr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_apr
_close_apr:                             ; @close_apr
	.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	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x10, [x19, #24]
	cbz	x10, LBB0_11
; %bb.2:
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _STMT_INTERNAL_LAST@GOTPAGE
Lloh4:
	ldr	x21, [x21, _STMT_INTERNAL_LAST@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w11, w9, w8
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x22, #0
	ldr	x0, [x10, x22, lsl #3]
	cbz	x0, LBB0_8
LBB0_4:
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
; %bb.5:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_svn_sqlite__reset
	mov	x1, x0
	mov	x0, x20
	bl	_svn_error_compose_create
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x22, lsl #3]
LBB0_7:
	bl	_svn_sqlite__finalize
	mov	x1, x20
	bl	_svn_error_compose_create
	mov	x20, x0
	ldr	w8, [x19]
	ldr	w9, [x21]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, #1
	add	w10, w9, w8
	cmp	x22, w10, sxtw
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x19, #24]
	ldr	x0, [x10, x22, lsl #3]
	cbnz	x0, LBB0_4
	b	LBB0_8
LBB0_10:
	ldr	x0, [x19, #16]
LBB0_11:
	bl	_sqlite3_close
	cbz	x20, LBB0_13
; %bb.12:
	ldr	x19, [x20]
	mov	x0, x20
	bl	_svn_error_clear
	b	LBB0_16
LBB0_13:
Lloh5:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.14:
	str	xzr, [x19, #16]
LBB0_15:
Lloh8:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	x19, [x8]
LBB0_16:
	mov	x0, x19
	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_17:
	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
	b	_SQLITE_ERROR_CODE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_STMT_INTERNAL_LAST,4,2         ; @STMT_INTERNAL_LAST
	.comm	_SQLITE_OK,8,3                  ; @SQLITE_OK
	.no_dead_strip	_close_apr
.subsections_via_symbols
