	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_getbyte_if_available        ## -- Begin function pq_getbyte_if_available
	.p2align	4, 0x90
_pq_getbyte_if_available:               ## @pq_getbyte_if_available
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PqCommReadingMsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	movq	_PqRecvPointer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	_PqRecvLength@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_2
## %bb.1:
	movq	_PqRecvBuffer@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%rcx)
	movb	(%rdx,%rax), %al
	movb	%al, (%rbx)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_2:
	movl	$1, %edi
	callq	_socket_set_nonblocking
	movq	_MyProcPort@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_secure_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	je	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.4:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.5:
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.6:
	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
LBB0_8:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PqCommReadingMsg,4,2           ## @PqCommReadingMsg
	.comm	_PqRecvPointer,8,3              ## @PqRecvPointer
	.comm	_PqRecvLength,8,3               ## @PqRecvLength
	.comm	_PqRecvBuffer,8,3               ## @PqRecvBuffer
	.comm	_MyProcPort,4,2                 ## @MyProcPort
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_getbyte_if_available        ; -- Begin function pq_getbyte_if_available
	.p2align	2
_pq_getbyte_if_available:               ; @pq_getbyte_if_available
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PqCommReadingMsg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PqCommReadingMsg@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_Assert
Lloh3:
	adrp	x9, _PqRecvPointer@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PqRecvPointer@GOTPAGEOFF]
	ldr	x8, [x9]
Lloh5:
	adrp	x10, _PqRecvLength@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PqRecvLength@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ge	LBB0_2
; %bb.1:
Lloh8:
	adrp	x10, _PqRecvBuffer@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PqRecvBuffer@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	add	x11, x8, #1
	str	x11, [x9]
	ldrb	w8, [x10, x8]
	strb	w8, [x19]
	mov	w0, #1
	b	LBB0_7
LBB0_2:
	mov	w0, #1
	bl	_socket_set_nonblocking
Lloh11:
	adrp	x8, _MyProcPort@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MyProcPort@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #1
	bl	_secure_read
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _EWOULDBLOCK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _EWOULDBLOCK@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
Lloh26:
	adrp	x11, _EINTR@GOTPAGE
Lloh27:
	ldr	x11, [x11, _EINTR@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh29:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
	bl	_errcode_for_socket_access
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
Lloh34:
	adrp	x8, _EOF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PqCommReadingMsg,4,2           ; @PqCommReadingMsg
	.comm	_PqRecvPointer,8,3              ; @PqRecvPointer
	.comm	_PqRecvLength,8,3               ; @PqRecvLength
	.comm	_PqRecvBuffer,8,3               ; @PqRecvBuffer
	.comm	_MyProcPort,4,2                 ; @MyProcPort
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.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
.subsections_via_symbols
