	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_body
_rx_body:                               ## @rx_body
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	movl	%eax, -48(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %r14
	leaq	L_.str(%rip), %r15
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_poll
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_perror
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movl	(%r13), %ecx
	callq	_recv
	testl	%eax, %eax
	js	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	4(%rbx)
	addl	%eax, (%rbx)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll on thread"

	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.no_dead_strip	_rx_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_body
_rx_body:                               ; @rx_body
	.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	x19, x0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x21, _POLLIN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _POLLIN@GOTPAGEOFF]
	ldr	w9, [x21]
	str	w8, [sp, #8]
	str	w9, [sp]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
Lloh4:
	adrp	x22, _MSG_DONTWAIT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MSG_DONTWAIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, sp
	mov	w1, #1
	mov	w2, #-1
	bl	_poll
	tbz	x0, #63, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_perror
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #4]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x19, #8]
	ldr	w3, [x22]
	bl	_recv
	tbnz	w0, #31, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w0
	add.2s	v0, v0, v1
	str	d0, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll on thread"

	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.no_dead_strip	_rx_body
.subsections_via_symbols
