	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_apimsg
_net_apimsg:                            ## @net_apimsg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_MEMP_TCPIP_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_memp_malloc
	movq	%rax, %rbx
	movq	_TCPIP_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_LWIP_DEBUGF
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_NETMSG_API@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, (%rbx)
	movq	_netthread_mbox@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MQ_Send                        ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_LWIP_ERROR
	movq	_MEMP_API_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memp_free                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMP_TCPIP_MSG,4,2             ## @MEMP_TCPIP_MSG
	.comm	_TCPIP_DEBUG,4,2                ## @TCPIP_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"net_apimsg: msg out of memory.\n"

	.comm	_MEMP_API_MSG,4,2               ## @MEMP_API_MSG
	.comm	_NETMSG_API,4,2                 ## @NETMSG_API
	.comm	_netthread_mbox,4,2             ## @netthread_mbox
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.no_dead_strip	_net_apimsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_apimsg
_net_apimsg:                            ; @net_apimsg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MEMP_TCPIP_MSG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMP_TCPIP_MSG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_memp_malloc
	mov	x20, x0
Lloh3:
	adrp	x8, _TCPIP_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCPIP_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_LWIP_DEBUGF
	cbz	x20, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _NETMSG_API@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETMSG_API@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	str	x19, [x20]
Lloh9:
	adrp	x8, _netthread_mbox@GOTPAGE
Lloh10:
	ldr	x8, [x8, _netthread_mbox@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MQ_Send
LBB0_2:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LWIP_ERROR
Lloh17:
	adrp	x8, _MEMP_API_MSG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEMP_API_MSG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memp_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMP_TCPIP_MSG,4,2             ; @MEMP_TCPIP_MSG
	.comm	_TCPIP_DEBUG,4,2                ; @TCPIP_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"net_apimsg: msg out of memory.\n"

	.comm	_MEMP_API_MSG,4,2               ; @MEMP_API_MSG
	.comm	_NETMSG_API,4,2                 ; @NETMSG_API
	.comm	_netthread_mbox,4,2             ; @netthread_mbox
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.no_dead_strip	_net_apimsg
.subsections_via_symbols
