	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQgetResult                    ## -- Begin function PQgetResult
	.p2align	4, 0x90
_PQgetResult:                           ## @PQgetResult
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r12
	callq	_parseInput
	movq	(%r12), %rax
	movq	_PGASYNC_BUSY@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_7
LBB0_2:
	addq	$-128, %rax
	cmpq	$4, %rax
	ja	LBB0_18
## %bb.3:
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%r12, %rdi
	callq	_pqPrepareAsyncResult
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	%rax, (%r12)
	testq	%r14, %r14
	jne	LBB0_24
LBB0_14:
	xorl	%r14d, %r14d
LBB0_15:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_pqWait
	testq	%rax, %rax
	jne	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_pqFlush
	testl	%eax, %eax
	jg	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_pqWait
	testq	%rax, %rax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_pqReadData
	testq	%rax, %rax
	js	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_parseInput
	cmpq	$0, 16(%r12)
	movq	(%r12), %rax
	movq	(%r15), %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_29
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_7
	jmp	LBB0_2
LBB0_16:
	movq	%r12, %rdi
	callq	_pqSaveErrorResult
LBB0_17:
	movq	$129, (%r12)
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pqPrepareAsyncResult           ## TAILCALL
LBB0_18:
	leaq	8(%r12), %r14
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	movq	_PGRES_FATAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_PQmakeEmptyPGresult
	jmp	LBB0_23
LBB0_19:
	movq	_PGRES_COPY_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	_PGRES_COPY_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_PGRES_COPY_BOTH@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_getCopyResult
LBB0_23:
	movq	%rax, %r14
	testq	%r14, %r14
	je	LBB0_14
LBB0_24:
	cmpl	$0, (%r14)
	jle	LBB0_15
## %bb.25:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, -48(%rbp)
	movq	%r14, -56(%rbp)
	movq	8(%r14), %rax
	movq	_PGEVT_RESULTCREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%rax,%rbx), %edx
	movq	%r15, %rsi
	callq	*16(%rax,%rbx)
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	8(%r14), %rax
	movl	$1, 4(%rax,%rbx)
	incq	%r13
	movslq	(%r14), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jl	LBB0_26
	jmp	LBB0_15
LBB0_28:
	leaq	8(%r12), %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movq	8(%r14), %rcx
	movl	(%rcx,%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_pqSetResultError
	movq	_PGRES_FATAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_15
LBB0_29:
	movq	%r12, %rdi
	callq	_pqSaveWriteError
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_PGASYNC_BUSY,8,3               ## @PGASYNC_BUSY
	.comm	_PGRES_COPY_IN,4,2              ## @PGRES_COPY_IN
	.comm	_PGRES_COPY_OUT,4,2             ## @PGRES_COPY_OUT
	.comm	_PGRES_COPY_BOTH,4,2            ## @PGRES_COPY_BOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected asyncStatus: %d\n"

	.comm	_PGRES_FATAL_ERROR,4,2          ## @PGRES_FATAL_ERROR
	.comm	_PGEVT_RESULTCREATE,4,2         ## @PGEVT_RESULTCREATE
L_.str.1:                               ## @.str.1
	.asciz	"PGEventProc \"%s\" failed during PGEVT_RESULTCREATE event\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQgetResult                    ; -- Begin function PQgetResult
	.p2align	2
_PQgetResult:                           ; @PQgetResult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	bl	_parseInput
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _PGASYNC_BUSY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PGASYNC_BUSY@GOTPAGEOFF]
	ldr	x9, [x21]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_pqFlush
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #0
	mov	w1, #1
	mov	x2, x19
	bl	_pqWait
	cbz	x0, LBB0_3
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	mov	w1, #0
	mov	x2, x19
	bl	_pqWait
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pqReadData
	tbnz	x0, #63, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_parseInput
	ldr	x10, [x19, #16]
	ldr	x8, [x19]
	ldr	x9, [x21]
	cbz	x10, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.10:
	mov	x0, x19
	bl	_pqSaveWriteError
	b	LBB0_16
LBB0_11:
	mov	x20, #0
	b	LBB0_28
LBB0_12:
	sub	x8, x8, #128
	cmp	x8, #4
	b.hi	LBB0_17
; %bb.13:
	mov	x20, #0
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	mov	x0, x19
	bl	_pqPrepareAsyncResult
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x19]
	cbnz	x20, LBB0_23
	b	LBB0_28
LBB0_15:
	mov	x0, x19
	bl	_pqSaveErrorResult
LBB0_16:
	mov	w8, #129
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pqPrepareAsyncResult
LBB0_17:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	ldr	w2, [x0], #8
	bl	_printfPQExpBuffer
Lloh6:
	adrp	x8, _PGRES_FATAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGRES_FATAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQmakeEmptyPGresult
	b	LBB0_22
LBB0_18:
Lloh9:
	adrp	x8, _PGRES_COPY_OUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PGRES_COPY_OUT@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
Lloh11:
	adrp	x8, _PGRES_COPY_IN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PGRES_COPY_IN@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh13:
	adrp	x8, _PGRES_COPY_BOTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PGRES_COPY_BOTH@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_getCopyResult
LBB0_22:
	mov	x20, x0
	cbz	x20, LBB0_28
LBB0_23:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.24:
	mov	x22, #0
	mov	x21, #0
Lloh15:
	adrp	x23, _PGEVT_RESULTCREATE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _PGEVT_RESULTCREATE@GOTPAGEOFF]
	mov	w24, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	stp	x20, x19, [sp]
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	ldr	x9, [x8, #16]
	ldr	w0, [x23]
	ldr	w2, [x8, #8]
	mov	x1, sp
	blr	x9
	cbz	w0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	str	w24, [x8, #4]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #24
	cmp	x21, x8
	b.lt	LBB0_25
	b	LBB0_28
LBB0_27:
	add	x21, x19, #8
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x22]
	mov	x0, x21
	bl	_printfPQExpBuffer
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_pqSetResultError
Lloh19:
	adrp	x8, _PGRES_FATAL_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PGRES_FATAL_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_28:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_28-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_19-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
                                        ; -- End function
	.comm	_PGASYNC_BUSY,8,3               ; @PGASYNC_BUSY
	.comm	_PGRES_COPY_IN,4,2              ; @PGRES_COPY_IN
	.comm	_PGRES_COPY_OUT,4,2             ; @PGRES_COPY_OUT
	.comm	_PGRES_COPY_BOTH,4,2            ; @PGRES_COPY_BOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected asyncStatus: %d\n"

	.comm	_PGRES_FATAL_ERROR,4,2          ; @PGRES_FATAL_ERROR
	.comm	_PGEVT_RESULTCREATE,4,2         ; @PGEVT_RESULTCREATE
l_.str.1:                               ; @.str.1
	.asciz	"PGEventProc \"%s\" failed during PGEVT_RESULTCREATE event\n"

.subsections_via_symbols
