	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_recvfrom                   ## -- Begin function net_recvfrom
	.p2align	4, 0x90
_net_recvfrom:                          ## @net_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ecx, %rsi
	callq	_LWIP_DEBUGF
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	jle	LBB0_2
## %bb.4:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_socket
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.7:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_11
LBB0_9:
	cmpl	$0, 28(%r12)
	je	LBB0_10
LBB0_11:
	movl	24(%r12), %edi
	callq	_netconn_recv
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	_netbuf_len
	movq	8(%r12), %rcx
	subq	%rcx, %rax
	jle	LBB0_14
## %bb.15:
	cmpq	%r14, %rax
	movq	%rbx, %rdi
	movq	%r14, %rbx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmovbq	%rax, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_netbuf_copypartial
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_20
## %bb.16:
	testq	%r13, %r13
	je	LBB0_20
## %bb.17:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_netbuf_fromaddr
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_netbuf_fromport
	movq	%rax, %r15
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, %rdi
	callq	_htons
	movl	%eax, -68(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	(%r13), %edx
	cmpl	$13, %edx
	jb	LBB0_19
## %bb.18:
	movl	$12, (%r13)
	movl	$12, %edx
LBB0_19:
	leaq	-72(%rbp), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_LWIP_DEBUGF
	movl	(%r15), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ip_addr_debug_print
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_LWIP_DEBUGF
LBB0_20:
	movl	24(%r12), %edi
	callq	_netconn_type
	movq	_NETCONN_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:
	cmpq	%r14, -96(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	addq	%rbx, 8(%r12)
	jmp	LBB0_24
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOTSOCK@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_24:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_23:
	addq	$8, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netbuf_delete
	jmp	LBB0_24
LBB0_10:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_LWIP_DEBUGF
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_LWIP_DEBUGF
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKETS_DEBUG,4,2              ## @SOCKETS_DEBUG
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOTSOCK,8,3                   ## @ENOTSOCK
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_NETCONN_TCP,8,3                ## @NETCONN_TCP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_recvfrom                   ; -- Begin function net_recvfrom
	.p2align	2
_net_recvfrom:                          ; @net_recvfrom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x5
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x26, x1
	mov	x21, x0
Lloh0:
	adrp	x27, _SOCKETS_DEBUG@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SOCKETS_DEBUG@GOTPAGEOFF]
	ldr	w0, [x27]
	sxtw	x1, w23
	bl	_LWIP_DEBUGF
	cbz	x26, LBB0_17
; %bb.1:
	cmp	x19, #0
	b.le	LBB0_17
; %bb.2:
	mov	x0, x21
	bl	_get_socket
	cbz	x0, LBB0_18
; %bb.3:
	mov	x20, x0
	ldr	x25, [x0, #16]
	cbnz	x25, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_23
LBB0_7:
	ldr	w0, [x20, #24]
	bl	_netconn_recv
	mov	x25, x0
	cbz	x0, LBB0_24
LBB0_8:
	mov	x0, x25
	bl	_netbuf_len
	mov	x27, x20
	ldr	x3, [x27, #8]!
	sub	x28, x0, x3
	cmp	x28, #1
	b.lt	LBB0_21
; %bb.9:
	cmp	x28, x19
	csel	x23, x28, x19, lo
	mov	x0, x25
	mov	x1, x26
	mov	x2, x23
	bl	_netbuf_copypartial
	cbz	x22, LBB0_14
; %bb.10:
	cbz	x24, LBB0_14
; %bb.11:
	mov	x0, x25
	bl	_netbuf_fromaddr
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x25
	bl	_netbuf_fromport
	mov	x26, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh8:
	adrp	x8, _AF_INET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x26
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	bl	_htons
	ldr	w8, [x26]
	stp	w8, w0, [sp, #16]
	ldr	w2, [x24]
	cmp	w2, #13
	b.lo	LBB0_13
; %bb.12:
	mov	w8, #12
	str	w8, [x24]
	mov	w2, #12
LBB0_13:
	add	x1, sp, #16
	mov	x0, x22
	bl	_memcpy
Lloh11:
	adrp	x22, _SOCKETS_DEBUG@GOTPAGE
Lloh12:
	ldr	x22, [x22, _SOCKETS_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_LWIP_DEBUGF
	ldr	w0, [x22]
	mov	x1, x26
	bl	_ip_addr_debug_print
	ldr	w0, [x22]
	mov	x1, x23
	bl	_LWIP_DEBUGF
LBB0_14:
	ldr	w0, [x20, #24]
	bl	_netconn_type
Lloh13:
	adrp	x8, _NETCONN_TCP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETCONN_TCP@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.15:
	cmp	x28, x19
	b.ls	LBB0_22
; %bb.16:
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	stp	x8, x25, [x20, #8]
	b	LBB0_20
LBB0_17:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh18:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	neg	x23, x8
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	mov	x23, #0
	b	LBB0_20
LBB0_22:
	stp	xzr, xzr, [x27]
	mov	x0, x25
	bl	_netbuf_delete
	b	LBB0_20
LBB0_23:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_LWIP_DEBUGF
Lloh20:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_19
LBB0_24:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_LWIP_DEBUGF
	mov	x23, #0
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKETS_DEBUG,4,2              ; @SOCKETS_DEBUG
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOTSOCK,8,3                   ; @ENOTSOCK
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_NETCONN_TCP,8,3                ; @NETCONN_TCP
.subsections_via_symbols
