	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_recvfrom
_ds_recvfrom:                           ## @ds_recvfrom
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_rs_readable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	callq	_rs_have_rdata
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r13), %rax
	movq	24(%r13), %r15
	leaq	(%rax,%rax,2), %r14
	movq	16(%r15,%r14,8), %rax
	movq	(%rax), %rax
	movq	(%r15,%r14,8), %rbx
	movq	8(%r15,%r14,8), %rcx
	movq	%r12, %rdi
	leaq	(%rcx,%rax), %r12
	movq	(%rcx,%rax), %rsi
	subq	%rsi, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
	addq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_ds_set_src
LBB0_5:
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	(%r15,%r14,8), %rax
	addq	$16, %rax
	movq	(%rax), %rsi
	movq	-8(%rax), %rdx
	movq	%r13, %rdi
	callq	_ds_post_recv
	movq	8(%r13), %rax
	leaq	1(%rax), %rcx
	movslq	16(%r13), %rdx
	xorl	%esi, %esi
	cmpq	%rdx, %rax
	cmovneq	%rcx, %rsi
	movq	%rsi, 8(%r13)
	incl	20(%r13)
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_rs_nonblocking
	movq	_rs_have_rdata@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ds_get_comp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rs_readable,4,2                ## @rs_readable
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.no_dead_strip	_ds_recvfrom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_recvfrom
_ds_recvfrom:                           ; @ds_recvfrom
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _rs_readable@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rs_readable@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	bl	_rs_have_rdata
	cbz	w0, LBB0_7
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	mov	w10, #24
	mul	x9, x9, x10
	add	x27, x8, x9
	mov	x28, x27
	ldr	x10, [x28, #16]!
	ldr	x10, [x10]
	ldr	x11, [x27, #8]!
	ldr	x8, [x8, x9]
	add	x26, x11, x10
	ldr	x9, [x26]
	sub	x8, x8, x9
	cmp	x8, x24
	csel	x25, x8, x24, lo
	add	x1, x26, x9
	mov	x0, x23
	mov	x2, x25
	bl	_memcpy
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	bl	_ds_set_src
LBB0_4:
Lloh3:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_8
; %bb.5:
	ldr	x1, [x28]
	ldr	x2, [x27]
	mov	x0, x19
	bl	_ds_post_recv
	ldr	x8, [x19, #8]
	ldp	w9, w10, [x19, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	x8, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x19, #8]
	add	w8, w10, #1
	str	w8, [x19, #20]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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
	b	_ERR
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_rs_nonblocking
	mov	x1, x0
Lloh9:
	adrp	x2, _rs_have_rdata@GOTPAGE
Lloh10:
	ldr	x2, [x2, _rs_have_rdata@GOTPAGEOFF]
	mov	x0, x19
	bl	_ds_get_comp
	mov	x25, x0
	cbz	w0, LBB0_2
LBB0_8:
	mov	x0, x25
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_rs_readable,4,2                ; @rs_readable
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.no_dead_strip	_ds_recvfrom
.subsections_via_symbols
