	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rrecv                          ## -- Begin function rrecv
	.p2align	4, 0x90
_rrecv:                                 ## @rrecv
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, %esi
	movq	_idm@GOTPCREL(%rip), %rdi
	callq	_idm_at
	movq	%rax, %r15
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$56, %r15
	movq	%r15, %rdi
	callq	_fastlock_acquire
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ds_recvfrom
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_fastlock_release
	movl	%ebx, %eax
	jmp	LBB0_24
LBB0_2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_rs_opening@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_rs_do_connect
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_24
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_24
LBB0_6:
	addq	$56, %r15
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_fastlock_acquire
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rbx, %rdi
	callq	_rs_have_rdata
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_rs_nonblocking
	movq	_rs_conn_have_rdata@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rs_get_comp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_27
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_MSG_PEEK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%r14, %r14
	jne	LBB0_13
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=2
	shlq	$2, %rsi
	addq	64(%rbx), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_memcpy
	movq	$0, 40(%rbx)
	addq	%r12, %r13
	subq	%r12, %r14
	addq	%r12, 48(%rbx)
	xorl	%esi, %esi
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	shlq	$2, %rsi
	addq	64(%rbx), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	addq	%r15, %r13
	movdqu	40(%rbx), %xmm0
	movq	%r15, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 40(%rbx)
	subq	%r15, %r14
	je	LBB0_21
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_rs_have_rdata
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	16(%rbx), %rcx
	movq	72(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rax
	movq	%rax, %rsi
	subq	%r14, %rsi
	jbe	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rsi, (%rdx,%rcx,8)
	movq	%r14, %rax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	incl	80(%rbx)
	leaq	1(%rcx), %rdx
	movslq	24(%rbx), %rsi
	cmpq	%rsi, %rcx
	movl	$0, %ecx
	cmovneq	%rdx, %rcx
	movq	%rcx, 16(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	32(%rbx), %r12
	movq	40(%rbx), %rsi
	subq	%rsi, %r12
	movq	%rax, %r15
	subq	%r12, %r15
	ja	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rax, %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_MSG_WAITALL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_rs_readable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	movl	$0, %r15d
	jne	LBB0_7
	jmp	LBB0_23
LBB0_21:
	xorl	%r14d, %r14d
LBB0_22:
	xorl	%r15d, %r15d
LBB0_23:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fastlock_release
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	subl	%r14d, %ecx
	cmpq	%rax, %r14
	movl	%ecx, %eax
	cmovel	%r15d, %eax
	testl	%r15d, %r15d
	cmovel	%ecx, %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_rs_peek
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subq	%rax, %r14
	jmp	LBB0_22
LBB0_27:
	movq	%rax, %r15
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_idm,4,2                        ## @idm
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_rs_opening,4,2                 ## @rs_opening
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_rs_conn_have_rdata,4,2         ## @rs_conn_have_rdata
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.comm	_MSG_WAITALL,4,2                ## @MSG_WAITALL
	.comm	_rs_readable,4,2                ## @rs_readable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rrecv                          ; -- Begin function rrecv
	.p2align	2
_rrecv:                                 ; @rrecv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x1, x0
Lloh0:
	adrp	x0, _idm@GOTPAGE
Lloh1:
	ldr	x0, [x0, _idm@GOTPAGEOFF]
	bl	_idm_at
	mov	x23, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x20, x23, #56
	mov	x0, x20
	bl	_fastlock_acquire
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	mov	x4, #0
	mov	x5, #0
	bl	_ds_recvfrom
	mov	x19, x0
	mov	x0, x20
	bl	_fastlock_release
	mov	x0, x19
	b	LBB0_22
LBB0_2:
	ldr	w8, [x23, #8]
Lloh5:
	adrp	x9, _rs_opening@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rs_opening@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_rs_do_connect
	cbz	w0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh10:
	adrp	x10, _EINPROGRESS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _EINPROGRESS@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_22
; %bb.5:
Lloh13:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_22
LBB0_6:
	add	x20, x23, #56
	mov	x0, x20
	bl	_fastlock_acquire
Lloh16:
	adrp	x28, _MSG_PEEK@GOTPAGE
Lloh17:
	ldr	x28, [x28, _MSG_PEEK@GOTPAGEOFF]
	mov	x24, x19
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x23
	bl	_rs_have_rdata
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_rs_nonblocking
	mov	x1, x0
Lloh18:
	adrp	x8, _rs_conn_have_rdata@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rs_conn_have_rdata@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_rs_get_comp
	cbnz	w0, LBB0_24
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x28]
	tst	w8, w21
	b.ne	LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	x24, LBB0_12
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x9, [x23, #64]
	add	x1, x9, x8, lsl #2
	mov	x0, x22
	mov	x2, x25
	bl	_memcpy
	add	x22, x22, x25
	ldur	q0, [x23, #40]
	dup.2d	v1, x25
	add.2d	v0, v0, v1
	stur	q0, [x23, #40]
	subs	x24, x24, x25
	b.eq	LBB0_20
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_rs_have_rdata
	cbz	x0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x9, [x23, #72]
	ldr	x8, [x23, #16]
	ldr	x25, [x9, x8, lsl #3]
	subs	x10, x25, x24
	b.ls	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	str	x10, [x9, x8, lsl #3]
	mov	x25, x24
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w9, [x23, #80]
	add	w9, w9, #1
	str	w9, [x23, #80]
	ldrsw	x9, [x23, #24]
	cmp	x8, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x23, #16]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	ldp	x9, x8, [x23, #32]
	sub	x26, x9, x8
	subs	x27, x25, x26
	b.ls	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x9, [x23, #64]
	add	x1, x9, x8, lsl #2
	mov	x0, x22
	mov	x2, x26
	bl	_memcpy
	mov	x8, #0
	add	x22, x22, x26
	sub	x24, x24, x26
	ldr	x9, [x23, #48]
	add	x9, x9, x26
	stp	xzr, x9, [x23, #40]
	mov	x25, x27
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh21:
	adrp	x8, _MSG_WAITALL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_WAITALL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23, #8]
Lloh24:
	adrp	x9, _rs_readable@GOTPAGE
Lloh25:
	ldr	x9, [x9, _rs_readable@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
LBB0_20:
	mov	w25, #0
LBB0_21:
	mov	x0, x20
	bl	_fastlock_release
	sub	w8, w19, w24
	cmp	x24, x19
	ccmp	w25, #0, #4, eq
	csel	w0, w25, w8, ne
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_rs_peek
	mov	w25, #0
	sub	x24, x19, x0
	b	LBB0_21
LBB0_24:
	mov	x25, x0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_idm,4,2                        ; @idm
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_rs_opening,4,2                 ; @rs_opening
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_rs_conn_have_rdata,4,2         ; @rs_conn_have_rdata
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.comm	_MSG_WAITALL,4,2                ; @MSG_WAITALL
	.comm	_rs_readable,4,2                ; @rs_readable
.subsections_via_symbols
