	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpip_input                    ## -- Begin function tcpip_input
	.p2align	4, 0x90
_tcpip_input:                           ## @tcpip_input
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_mbox@GOTPCREL(%rip), %rdi
	callq	_sys_mbox_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_MEMP_TCPIP_MSG_INPKT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_memp_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	_TCPIP_MSG_INPKT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, (%rbx)
	movq	_mbox@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_sys_mbox_trypost
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_memp_free
LBB0_5:
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ERR_VAL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mbox,4,2                       ## @mbox
	.comm	_MEMP_TCPIP_MSG_INPKT,4,2       ## @MEMP_TCPIP_MSG_INPKT
	.comm	_ERR_MEM,8,3                    ## @ERR_MEM
	.comm	_TCPIP_MSG_INPKT,4,2            ## @TCPIP_MSG_INPKT
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.comm	_ERR_VAL,8,3                    ## @ERR_VAL
	.comm	_NETIF_FLAG_ETHARP,4,2          ## @NETIF_FLAG_ETHARP
	.comm	_NETIF_FLAG_ETHERNET,4,2        ## @NETIF_FLAG_ETHERNET
	.comm	_TCPIP_DEBUG,4,2                ## @TCPIP_DEBUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpip_input                    ; -- Begin function tcpip_input
	.p2align	2
_tcpip_input:                           ; @tcpip_input
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _mbox@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mbox@GOTPAGEOFF]
	bl	_sys_mbox_valid
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x22, _MEMP_TCPIP_MSG_INPKT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MEMP_TCPIP_MSG_INPKT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_memp_malloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
Lloh4:
	adrp	x8, _TCPIP_MSG_INPKT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCPIP_MSG_INPKT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	stp	x20, x21, [x0]
Lloh7:
	adrp	x0, _mbox@GOTPAGE
Lloh8:
	ldr	x0, [x0, _mbox@GOTPAGEOFF]
	mov	x1, x19
	bl	_sys_mbox_trypost
Lloh9:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.3:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_memp_free
LBB0_4:
Lloh12:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mbox,4,2                       ; @mbox
	.comm	_MEMP_TCPIP_MSG_INPKT,4,2       ; @MEMP_TCPIP_MSG_INPKT
	.comm	_ERR_MEM,8,3                    ; @ERR_MEM
	.comm	_TCPIP_MSG_INPKT,4,2            ; @TCPIP_MSG_INPKT
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.comm	_ERR_VAL,8,3                    ; @ERR_VAL
	.comm	_NETIF_FLAG_ETHARP,4,2          ; @NETIF_FLAG_ETHARP
	.comm	_NETIF_FLAG_ETHERNET,4,2        ; @NETIF_FLAG_ETHERNET
	.comm	_TCPIP_DEBUG,4,2                ; @TCPIP_DEBUG
.subsections_via_symbols
