	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_send                       ## -- Begin function net_send
	.p2align	4, 0x90
_net_send:                              ## @net_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ecx, %rsi
	callq	_LWIP_DEBUGF
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	jle	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_get_socket
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_netconn_type
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_9
## %bb.7:
	cmpl	$131, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$132, %eax
	jne	LBB0_13
LBB0_9:
	xorl	%eax, %eax
	callq	_netbuf_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_netbuf_ref
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_netconn_send
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_netbuf_delete
	jmp	LBB0_14
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOTSOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_LWIP_DEBUGF
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r12), %edi
	movq	_NETCONN_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_netconn_write
	movq	%rax, %r14
	jmp	LBB0_14
LBB0_13:
	movq	_ERR_ARG@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_14:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rcx
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rcx), %edi
	cmpq	(%rax), %r14
	jne	LBB0_15
## %bb.16:
	movq	%rbx, %rsi
	callq	_LWIP_DEBUGF
	jmp	LBB0_17
LBB0_15:
	movq	%r14, %rsi
	callq	_LWIP_DEBUGF
	movq	$-1, %rbx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKETS_DEBUG,4,2              ## @SOCKETS_DEBUG
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOTSOCK,8,3                   ## @ENOTSOCK
	.comm	_ENOBUFS,8,3                    ## @ENOBUFS
	.comm	_NETCONN_COPY,4,2               ## @NETCONN_COPY
	.comm	_ERR_ARG,8,3                    ## @ERR_ARG
	.comm	_ERR_OK,8,3                     ## @ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_send                       ; -- Begin function net_send
	.p2align	2
_net_send:                              ; @net_send
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _SOCKETS_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SOCKETS_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	sxtw	x1, w3
	bl	_LWIP_DEBUGF
	cbz	x20, LBB0_8
; %bb.1:
	cmp	x19, #0
	b.le	LBB0_8
; %bb.2:
	mov	x0, x21
	bl	_get_socket
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	ldr	w0, [x0]
	bl	_netconn_type
	sub	w8, w0, #128
	cmp	w8, #3
	b.lo	LBB0_6
; %bb.4:
	cmp	w0, #131
	b.eq	LBB0_13
; %bb.5:
	cmp	w0, #132
	b.ne	LBB0_14
LBB0_6:
	bl	_netbuf_new
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	mov	x1, x20
	mov	x2, x19
	bl	_netbuf_ref
	ldr	w0, [x22]
	mov	x1, x23
	bl	_netconn_send
	mov	x20, x0
	mov	x0, x23
	bl	_netbuf_delete
	b	LBB0_15
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh4:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_LWIP_DEBUGF
Lloh6:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _NETCONN_COPY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETCONN_COPY@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_netconn_write
	mov	x20, x0
	b	LBB0_15
LBB0_14:
Lloh11:
	adrp	x8, _ERR_ARG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_ARG@GOTPAGEOFF]
Lloh13:
	ldr	x20, [x8]
LBB0_15:
Lloh14:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w0, [x24]
	cmp	x20, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x1, x19
	bl	_LWIP_DEBUGF
	b	LBB0_12
LBB0_17:
	mov	x1, x20
	bl	_LWIP_DEBUGF
	mov	x19, #-1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKETS_DEBUG,4,2              ; @SOCKETS_DEBUG
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOTSOCK,8,3                   ; @ENOTSOCK
	.comm	_ENOBUFS,8,3                    ; @ENOBUFS
	.comm	_NETCONN_COPY,4,2               ; @NETCONN_COPY
	.comm	_ERR_ARG,8,3                    ; @ERR_ARG
	.comm	_ERR_OK,8,3                     ; @ERR_OK
.subsections_via_symbols
