	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CloneArchive                   ## -- Begin function CloneArchive
	.p2align	4, 0x90
_CloneArchive:                          ## @CloneArchive
	.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	%rdi, %r14
	movl	$88, %edi
	callq	_pg_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	$88, %edx
	callq	_memcpy
	leaq	80(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movups	%xmm0, 64(%rbx)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_pg_strdup
	movq	%rax, 40(%rbx)
LBB0_2:
	movq	$0, 32(%rbx)
	movq	(%r14), %rax
	movq	_archModeRead@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	24(%r14), %r15
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	callq	_Assert
	movl	28(%r15), %esi
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	movq	16(%r15), %r8
	movl	24(%r15), %r9d
	movq	%rbx, %rdi
	callq	_ConnectDatabase
	movq	%rbx, %rdi
	callq	__doSetFixedOutputState
	jmp	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	callq	_Assert
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_initPQExpBuffer
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_appendPQExpBufferStr
	movq	8(%r14), %rdi
	callq	_PQdb
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_appendConnStrVal
	movq	8(%r14), %rdi
	callq	_PQhost
	movq	%rax, %r12
	movq	8(%r14), %rdi
	callq	_PQport
	movq	%rax, %r13
	movq	8(%r14), %rdi
	callq	_PQuser
	movl	-48(%rbp), %esi
	movq	_TRI_NO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%rax, %r8
	callq	_ConnectDatabase
	movq	%r15, %rdi
	callq	_termPQExpBuffer
LBB0_5:
	movq	%rbx, %rdi
	callq	*16(%rbx)
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_Assert
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_archModeRead,8,3               ## @archModeRead
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbname="

	.comm	_TRI_NO,4,2                     ## @TRI_NO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CloneArchive                   ; -- Begin function CloneArchive
	.p2align	2
_CloneArchive:                          ; @CloneArchive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	mov	w0, #88
	bl	_pg_malloc
	mov	x19, x0
	mov	x1, x20
	mov	w2, #88
	bl	_memcpy
	add	x0, x19, #80
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [x19, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #48]
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_pg_strdup
	str	x0, [x19, #40]
LBB0_2:
	str	xzr, [x19, #32]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _archModeRead@GOTPAGE
Lloh1:
	ldr	x9, [x9, _archModeRead@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x21, [x20, #24]
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldp	x2, x3, [x21]
	ldr	x4, [x21, #16]
	ldp	w5, w1, [x21, #24]
	mov	x0, x19
	bl	_ConnectDatabase
	mov	x0, x19
	bl	__doSetFixedOutputState
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	add	x0, sp, #8
	bl	_initPQExpBuffer
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_appendPQExpBufferStr
	ldr	x0, [x20, #8]
	bl	_PQdb
	mov	x1, x0
	add	x0, sp, #8
	bl	_appendConnStrVal
	ldr	x0, [x20, #8]
	bl	_PQhost
	mov	x21, x0
	ldr	x0, [x20, #8]
	bl	_PQport
	mov	x22, x0
	ldr	x0, [x20, #8]
	bl	_PQuser
	mov	x4, x0
	ldr	w1, [sp, #8]
Lloh5:
	adrp	x8, _TRI_NO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRI_NO@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_ConnectDatabase
	add	x0, sp, #8
	bl	_termPQExpBuffer
LBB0_5:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_archModeRead,8,3               ; @archModeRead
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbname="

	.comm	_TRI_NO,4,2                     ; @TRI_NO
.subsections_via_symbols
