	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pq_recvbuf
_pq_recvbuf:                            ## @pq_recvbuf
	.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	_PqRecvPointer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.1:
	movq	_PqRecvLength@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rsi, %rdx
	jle	LBB0_3
## %bb.2:
	movq	_PqRecvBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rdi, %rsi
	callq	_memmove
	movq	(%rbx), %rax
	movq	_PqRecvLength@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
	jmp	LBB0_4
LBB0_3:
	movq	$0, (%rbx)
	movq	%rax, %rbx
LBB0_4:
	movq	$0, (%rbx)
LBB0_5:
	xorl	%edi, %edi
	callq	_socket_set_nonblocking
	movq	_MyProcPort@GOTPCREL(%rip), %r15
	movq	_PqRecvBuffer@GOTPCREL(%rip), %r12
	movq	_PQ_RECV_BUFFER_SIZE@GOTPCREL(%rip), %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	_PqRecvLength@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rsi
	addq	%rax, %rsi
	movq	(%rbx), %rdx
	subq	%rax, %rdx
	callq	_secure_read
	testl	%eax, %eax
	jns	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.8:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_socket_access
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_10
LBB0_9:
	je	LBB0_10
## %bb.11:
	movl	%eax, %eax
	movq	_PqRecvLength@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PqRecvPointer,8,3              ## @PqRecvPointer
	.comm	_PqRecvLength,8,3               ## @PqRecvLength
	.comm	_PqRecvBuffer,8,3               ## @PqRecvBuffer
	.comm	_MyProcPort,4,2                 ## @MyProcPort
	.comm	_PQ_RECV_BUFFER_SIZE,8,3        ## @PQ_RECV_BUFFER_SIZE
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_COMMERROR,4,2                  ## @COMMERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not receive data from client: %m"

	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_pq_recvbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pq_recvbuf
_pq_recvbuf:                            ; @pq_recvbuf
	.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
Lloh0:
	adrp	x21, _PqRecvPointer@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PqRecvPointer@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x19, _PqRecvLength@GOTPAGE
Lloh3:
	ldr	x19, [x19, _PqRecvLength@GOTPAGEOFF]
Lloh4:
	adrp	x20, _PqRecvBuffer@GOTPAGE
Lloh5:
	ldr	x20, [x20, _PqRecvBuffer@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x19]
	subs	x2, x9, x8
	b.le	LBB0_3
; %bb.2:
	ldr	x0, [x20]
	add	x1, x0, x8
	bl	_memmove
	ldr	x8, [x21]
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
	str	xzr, [x21]
Lloh6:
	adrp	x21, _PqRecvLength@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PqRecvLength@GOTPAGEOFF]
LBB0_4:
	str	xzr, [x21]
LBB0_5:
	mov	w0, #0
	bl	_socket_set_nonblocking
Lloh8:
	adrp	x21, _MyProcPort@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MyProcPort@GOTPAGEOFF]
Lloh10:
	adrp	x22, _PQ_RECV_BUFFER_SIZE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _PQ_RECV_BUFFER_SIZE@GOTPAGEOFF]
Lloh12:
	adrp	x23, _errno@GOTPAGE
Lloh13:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh14:
	adrp	x24, _EINTR@GOTPAGE
Lloh15:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x1, x9, x8
	ldr	x8, [x22]
	sub	x2, x8, x9
	bl	_secure_read
	tbz	w0, #31, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.8:
Lloh16:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	bl	_errcode_for_socket_access
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_11
LBB0_9:
	mov	x8, x0
	cbz	w0, LBB0_11
; %bb.10:
	mov	w0, #0
	ldr	x9, [x19]
	add	x8, x9, w8, uxtw
	str	x8, [x19]
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x8, _EOF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_12:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PqRecvPointer,8,3              ; @PqRecvPointer
	.comm	_PqRecvLength,8,3               ; @PqRecvLength
	.comm	_PqRecvBuffer,8,3               ; @PqRecvBuffer
	.comm	_MyProcPort,4,2                 ; @MyProcPort
	.comm	_PQ_RECV_BUFFER_SIZE,8,3        ; @PQ_RECV_BUFFER_SIZE
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_COMMERROR,4,2                  ; @COMMERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not receive data from client: %m"

	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_pq_recvbuf
.subsections_via_symbols
