	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libpqrcv_PQgetResult
_libpqrcv_PQgetResult:                  ## @libpqrcv_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
	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
	movq	_MyLatch@GOTPCREL(%rip), %r12
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_PQconsumeInput
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_PQisBusy
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %r15d
	movq	_WL_SOCKET_READABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r13), %ebx
	movq	%r14, %rdi
	callq	_PQsocket
	movq	_WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_WaitLatchOrSocket
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_ResetLatch
	xorl	%eax, %eax
	callq	_ProcessWalRcvInterrupts
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PQgetResult                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ## @WL_EXIT_ON_PM_DEATH
	.comm	_WL_SOCKET_READABLE,4,2         ## @WL_SOCKET_READABLE
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE,4,2 ## @WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE
	.no_dead_strip	_libpqrcv_PQgetResult
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libpqrcv_PQgetResult
_libpqrcv_PQgetResult:                  ; @libpqrcv_PQgetResult
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _MyLatch@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MyLatch@GOTPAGEOFF]
Lloh2:
	adrp	x23, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
Lloh4:
	adrp	x24, _WL_SOCKET_READABLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WL_SOCKET_READABLE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _WL_LATCH_SET@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WL_LATCH_SET@GOTPAGEOFF]
Lloh8:
	adrp	x26, _WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_PQconsumeInput
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_PQisBusy
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_PQsocket
	mov	x2, x0
	ldr	w4, [x26]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_WaitLatchOrSocket
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_ResetLatch
	bl	_ProcessWalRcvInterrupts
	b	LBB0_1
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PQgetResult
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ; @WL_EXIT_ON_PM_DEATH
	.comm	_WL_SOCKET_READABLE,4,2         ; @WL_SOCKET_READABLE
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE,4,2 ; @WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE
	.no_dead_strip	_libpqrcv_PQgetResult
.subsections_via_symbols
