	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_recv
_client_recv:                           ## @client_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	_rs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	movl	$1, %esi
	callq	_rs_poll
	testl	%eax, %eax
	jle	LBB0_2
LBB0_3:
	movq	_rs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_flags@GOTPCREL(%rip), %rax
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_rs_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_2:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rs,4,2                         ## @rs
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_flags,4,2                      ## @flags
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_errno,8,3                      ## @errno
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rrecv"

	.no_dead_strip	_client_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_recv
_client_recv:                           ; @client_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _rs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rs@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _POLLIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #1
	bl	_rs_poll
	cmp	w0, #1
	b.lt	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _flags@GOTPAGE
Lloh6:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, x21
	mov	x2, x20
	bl	_rs_recv
	mov	x19, x0
	tbz	w0, #31, LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
; %bb.4:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_6
LBB0_5:
	mov	x19, x0
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_rs,4,2                         ; @rs
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_flags,4,2                      ; @flags
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_errno,8,3                      ; @errno
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rrecv"

	.no_dead_strip	_client_recv
.subsections_via_symbols
