	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_backup_init            ## -- Begin function sqlite3_backup_init
	.p2align	4, 0x90
_sqlite3_backup_init:                   ## @sqlite3_backup_init
	.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, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rdx), %edi
	callq	_sqlite3_mutex_enter
	movl	(%r15), %edi
	callq	_sqlite3_mutex_enter
	cmpq	%r15, %r14
	je	LBB0_6
## %bb.1:
	movl	$48, %edi
	callq	_sqlite3MallocZero
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_findBtree
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_findBtree
	movq	%rax, (%rbx)
	movq	%r15, 40(%rbx)
	movq	%r14, 32(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, 24(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.3:
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_checkReadTransaction
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	16(%rbx), %rax
	incl	(%rax)
	jmp	LBB0_10
LBB0_6:
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_sqlite3ErrorWithMsg
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_sqlite3_free
	jmp	LBB0_9
LBB0_8:
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sqlite3Error
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	(%r15), %edi
	callq	_sqlite3_mutex_leave
	movl	(%r14), %edi
	callq	_sqlite3_mutex_leave
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"source and destination must be distinct"

	.comm	_SQLITE_NOMEM_BKPT,4,2          ## @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_OK,8,3                  ## @SQLITE_OK
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_backup_init            ; -- Begin function sqlite3_backup_init
	.p2align	2
_sqlite3_backup_init:                   ; @sqlite3_backup_init
	.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	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x2]
	bl	_sqlite3_mutex_enter
	ldr	w0, [x20]
	bl	_sqlite3_mutex_enter
	cmp	x19, x20
	b.eq	LBB0_6
; %bb.1:
	mov	w0, #48
	bl	_sqlite3MallocZero
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_findBtree
	str	x0, [x21, #16]
	mov	x0, x20
	mov	x1, x20
	mov	x2, x22
	bl	_findBtree
	str	x0, [x21]
	stp	x19, x20, [x21, #32]
	mov	w8, #1
	str	w8, [x21, #8]
	str	xzr, [x21, #24]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x1, x0
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_checkReadTransaction
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x21, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sqlite3ErrorWithMsg
	mov	x21, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_sqlite3_free
	mov	x21, #0
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sqlite3Error
LBB0_9:
	ldr	w0, [x20]
	bl	_sqlite3_mutex_leave
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"source and destination must be distinct"

	.comm	_SQLITE_NOMEM_BKPT,4,2          ; @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_OK,8,3                  ; @SQLITE_OK
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
.subsections_via_symbols
