	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_common_recv              ## -- Begin function proto_common_recv
	.p2align	4, 0x90
_proto_common_recv:                     ## @proto_common_recv
	.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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	notl	%edi
	shrl	$31, %edi
	callq	_PJDLOG_ASSERT
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	_MSG_WAITALL@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_recv
	movl	%eax, %ecx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_4
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.8:
	js	LBB0_9
## %bb.13:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.15:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_proto_descriptor_recv          ## TAILCALL
LBB0_1:
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_PJDLOG_ASSERT
	movq	_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_shutdown
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_12
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_7:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_9:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.10:
	movl	%r15d, %edi
	callq	_blocking_socket
	testq	%rax, %rax
	je	LBB0_2
## %bb.11:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_14:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHUT_WR,4,2                    ## @SHUT_WR
	.comm	_errno,4,2                      ## @errno
	.comm	_MSG_WAITALL,4,2                ## @MSG_WAITALL
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_common_recv              ; -- Begin function proto_common_recv
	.p2align	2
_proto_common_recv:                     ; @proto_common_recv
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_PJDLOG_ASSERT
	cbz	x22, LBB0_7
; %bb.1:
	mov	w0, #1
	bl	_PJDLOG_ASSERT
	cmp	x21, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
Lloh0:
	adrp	x24, _MSG_WAITALL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_WAITALL@GOTPAGEOFF]
Lloh2:
	adrp	x23, _errno@GOTPAGE
Lloh3:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x25, _EINTR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_recv
	mov	x8, x0
	ldr	w0, [x23]
	ldr	w9, [x25]
	cmn	w8, #1
	ccmp	w0, w9, #0, eq
	b.eq	LBB0_2
; %bb.3:
	cbz	w8, LBB0_8
; %bb.4:
	tbnz	w8, #31, LBB0_9
; %bb.5:
	cbz	x20, LBB0_12
; %bb.6:
	mov	x0, x19
	mov	x1, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_proto_descriptor_recv
LBB0_7:
	cmp	x21, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
Lloh6:
	adrp	x8, _SHUT_WR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHUT_WR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_shutdown
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w0, w8, wzr, eq
	b	LBB0_14
LBB0_8:
Lloh12:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_9:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_blocking_socket
	cbz	x0, LBB0_13
; %bb.11:
Lloh18:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	w0, [x23]
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	ldr	w0, [x23]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SHUT_WR,4,2                    ; @SHUT_WR
	.comm	_errno,4,2                      ; @errno
	.comm	_MSG_WAITALL,4,2                ; @MSG_WAITALL
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
