	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_sendto                     ## -- Begin function net_sendto
	.p2align	4, 0x90
_net_sendto:                            ## @net_sendto
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	$0, -52(%rbp)
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ecx, %r14
	movq	%r14, %rsi
	callq	_LWIP_DEBUGF
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	jle	LBB0_2
## %bb.4:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_get_socket
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r13, %rcx
	movq	%rax, %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_netconn_peer
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %ebx
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_LWIP_DEBUGF
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_ip_addr_debug_print
	movl	(%r12), %r12d
	movl	%ebx, %edi
	callq	_ntohs
	movslq	%eax, %rsi
	movl	%r12d, %edi
	callq	_LWIP_DEBUGF
	movl	(%r13), %r12d
	movl	%ebx, %edi
	callq	_ntohs
	movl	%r12d, %edi
	leaq	-48(%rbp), %rsi
	movl	%eax, %edx
	callq	_netconn_connect
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_net_send
	movq	%rax, %rbx
	movl	(%r13), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	movl	-52(%rbp), %edx
	leaq	-56(%rbp), %rsi
	callq	_netconn_connect
	jmp	LBB0_9
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_9:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_netconn_disconnect
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKETS_DEBUG,4,2              ## @SOCKETS_DEBUG
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOTSOCK,8,3                   ## @ENOTSOCK
	.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_sendto                     ; -- Begin function net_sendto
	.p2align	2
_net_sendto:                            ; @net_sendto
	.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, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x27, _SOCKETS_DEBUG@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SOCKETS_DEBUG@GOTPAGEOFF]
	ldr	w0, [x27]
	sxtw	x25, w19
	mov	x1, x25
	bl	_LWIP_DEBUGF
	cbz	x21, LBB0_5
; %bb.1:
	cmp	x20, #0
	b.le	LBB0_5
; %bb.2:
	mov	x0, x22
	bl	_get_socket
	cbz	x0, LBB0_6
; %bb.3:
	mov	x23, x0
	ldr	w0, [x0]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_netconn_peer
	mov	x26, x0
Lloh2:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh4:
	ldr	x28, [x8]
	ldp	w24, w8, [x24]
	str	w8, [sp, #24]
	ldr	w0, [x27]
	mov	x1, x25
	bl	_LWIP_DEBUGF
	ldr	w0, [x27]
	add	x1, sp, #24
	bl	_ip_addr_debug_print
	ldr	w25, [x27]
	mov	x0, x24
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x25
	bl	_LWIP_DEBUGF
	ldr	w25, [x23]
	mov	x0, x24
	bl	_ntohs
	mov	x2, x0
	add	x1, sp, #24
	mov	x0, x25
	bl	_netconn_connect
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_net_send
	mov	x19, x0
	ldr	w0, [x23]
	cmp	x26, x28
	b.ne	LBB0_9
; %bb.4:
	ldr	w2, [sp, #12]
	add	x1, sp, #16
	bl	_netconn_connect
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_8:
	mov	x0, x19
	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_9:
	bl	_netconn_disconnect
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKETS_DEBUG,4,2              ; @SOCKETS_DEBUG
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOTSOCK,8,3                   ; @ENOTSOCK
	.comm	_ERR_OK,8,3                     ; @ERR_OK
.subsections_via_symbols
