	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netconn_send
_netconn_send:                          ## @netconn_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	%rsi, %r14
	movq	_MEMP_API_MSG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_memp_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_API_LIB_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movslq	(%rax), %rsi
	callq	_LWIP_DEBUGF
	movq	_APIMSG_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%rbx, 8(%r15)
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_apimsg_post
	movl	8(%rbx), %edi
	leaq	-40(%rbp), %rsi
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MQ_Receive
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_memp_free
	movq	(%rbx), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ERR_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_VAL,8,3                    ## @ERR_VAL
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_MEMP_API_MSG,4,2               ## @MEMP_API_MSG
	.comm	_ERR_MEM,8,3                    ## @ERR_MEM
	.comm	_API_LIB_DEBUG,4,2              ## @API_LIB_DEBUG
	.comm	_APIMSG_SEND,4,2                ## @APIMSG_SEND
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.no_dead_strip	_netconn_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netconn_send
_netconn_send:                          ; @netconn_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x1
Lloh3:
	adrp	x22, _MEMP_API_MSG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MEMP_API_MSG@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_memp_malloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x8, _API_LIB_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _API_LIB_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldrsw	x1, [x8]
	bl	_LWIP_DEBUGF
Lloh8:
	adrp	x8, _APIMSG_SEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _APIMSG_SEND@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x8, [x20]
	stp	x8, x19, [x21]
	mov	x0, x21
	bl	_apimsg_post
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_MQ_Receive
	ldr	w0, [x22]
	mov	x1, x21
	bl	_memp_free
	ldr	x0, [x19]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	str	x0, [x19]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_VAL,8,3                    ; @ERR_VAL
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_MEMP_API_MSG,4,2               ; @MEMP_API_MSG
	.comm	_ERR_MEM,8,3                    ; @ERR_MEM
	.comm	_API_LIB_DEBUG,4,2              ; @API_LIB_DEBUG
	.comm	_APIMSG_SEND,4,2                ; @APIMSG_SEND
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.no_dead_strip	_netconn_send
.subsections_via_symbols
