	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getCopyStart
_getCopyStart:                          ## @getCopyStart
	.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, %r13
	callq	_PQmakeEmptyPGresult
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	8(%r13), %rdi
	movq	%r13, %rsi
	callq	_pqGetc
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movl	8(%r13), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	movl	$2, %esi
	movq	%r13, %rdx
	callq	_pqGetInt
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	callq	_PQclear
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %r12d
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.4:
	leal	(,%r12,4), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_pqResultAlloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_MemSet
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$2, %esi
	movq	%r13, %rdx
	callq	_pqGetInt
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_6
LBB0_8:
	movq	%r14, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_getCopyStart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getCopyStart
_getCopyStart:                          ; @getCopyStart
	.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	x19, x0
	bl	_PQmakeEmptyPGresult
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #8
	mov	x1, x19
	bl	_pqGetc
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x19, #8]
	str	w8, [x20, #16]
	mov	x0, x20
	mov	w1, #2
	mov	x2, x19
	bl	_pqGetInt
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_PQclear
Lloh0:
	adrp	x8, _EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_4:
	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
LBB0_5:
	ldr	w22, [x20]
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.6:
	lsl	w21, w22, #2
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_pqResultAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.7:
	mov	w1, #0
	mov	x2, x21
	bl	_MemSet
	mov	x21, #0
	lsl	x22, x22, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	w1, #2
	mov	x2, x19
	bl	_pqGetInt
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #12]
	ldr	x9, [x20, #8]
	str	w8, [x9, x21]
	add	x21, x21, #4
	cmp	x22, x21
	b.ne	LBB0_8
LBB0_10:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_getCopyStart
.subsections_via_symbols
