	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_callback
_net_callback:                          ## @net_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	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_CALLBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, (%rbx)
	movq	%r14, 8(%rbx)
	movq	_netthread_mbox@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_MQ_Send
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_LWIP_ERROR
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_NETMSG_CALLBACK,4,2            ## @NETMSG_CALLBACK
	.comm	_netthread_mbox,4,2             ## @netthread_mbox
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.no_dead_strip	_net_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_callback
_net_callback:                          ; @net_callback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, 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_CALLBACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETMSG_CALLBACK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	stp	x21, 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
	bl	_MQ_Send
Lloh15:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LWIP_ERROR
Lloh19:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.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	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_NETMSG_CALLBACK,4,2            ; @NETMSG_CALLBACK
	.comm	_netthread_mbox,4,2             ; @netthread_mbox
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.no_dead_strip	_net_callback
.subsections_via_symbols
