	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_Input
_ip_Input:                              ## @ip_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_m_length
	movq	%rax, %r13
	cmpq	$9, %rax
	jb	LBB0_2
## %bb.1:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rcx
	movl	$8, %r8d
	callq	_log_Printf
	movq	%rbx, %rdi
	callq	_m_freem
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_2:
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_mbuf_Read
	movl	$0, -44(%rbp)
	leaq	20(%r15), %r8
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rcx
	xorl	%r9d, %r9d
	callq	_PacketCheck
	testq	%rax, %rax
	js	LBB0_15
## %bb.3:
	movl	$0, -48(%rbp)
	leaq	16(%r15), %rdx
	leaq	-48(%rbp), %rcx
	movl	%r12d, %esi
	callq	_FilterCheck
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	jne	LBB0_6
## %bb.5:
	movl	-48(%rbp), %esi
	movl	%esi, -44(%rbp)
LBB0_6:
	movq	%r15, %rdi
	callq	_bundle_StartIdleTimer
LBB0_7:
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:
	movl	%r12d, %edi
	callq	_htonl
	movl	%eax, -56(%rbp)
	addq	$8, %r13
LBB0_9:
	movl	(%r15), %edi
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	callq	_write
	cmpl	%r13d, %eax
	je	LBB0_14
## %bb.10:
	movq	_LogERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	(%r14), %r14d
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movl	%ebx, %edi
	movl	%r14d, %edx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_log_Printf
LBB0_14:
	movq	%r13, %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip_Input: %s: Packet too large (got %zd, max %d)\n"

	.comm	_LogERROR,4,2                   ## @LogERROR
L_.str.1:                               ## @.str.1
	.asciz	"ip_Input: %s: wrote %zd, got %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"ip_Input: %s: wrote %zd, got %zd\n"

	.no_dead_strip	_ip_Input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_Input
_ip_Input:                              ; @ip_Input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_m_length
	mov	x19, x0
	cmp	x0, #9
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LogWARN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	mov	w4, #8
	bl	_log_Printf
	mov	x0, x23
	bl	_m_freem
	mov	x19, #0
	b	LBB0_15
LBB0_2:
	mov	x0, x23
	mov	x2, x19
	bl	_mbuf_Read
	str	wzr, [sp, #12]
	add	x4, x21, #20
	add	x6, sp, #12
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	mov	x5, #0
	bl	_PacketCheck
	tbnz	x0, #63, LBB0_12
; %bb.3:
	str	wzr, [sp, #8]
	add	x2, x21, #16
	add	x3, sp, #8
	mov	x1, x22
	bl	_FilterCheck
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w1, [sp, #12]
	cbnz	w1, LBB0_6
; %bb.5:
	ldr	w1, [sp, #8]
	str	w1, [sp, #12]
LBB0_6:
	mov	x0, x21
	bl	_bundle_StartIdleTimer
LBB0_7:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_htonl
	str	w0, [sp, #24]
	add	x19, x19, #8
LBB0_9:
	ldr	w0, [x21]
	add	x1, sp, #16
	mov	x2, x19
	bl	_write
	cmp	w0, w19
	b.eq	LBB0_15
; %bb.10:
	mov	x4, x0
Lloh5:
	adrp	x8, _LogERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	w20, [x20]
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.11:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	x19, #0
	b	LBB0_15
LBB0_13:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x4, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_log_Printf
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip_Input: %s: Packet too large (got %zd, max %d)\n"

	.comm	_LogERROR,4,2                   ; @LogERROR
l_.str.1:                               ; @.str.1
	.asciz	"ip_Input: %s: wrote %zd, got %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"ip_Input: %s: wrote %zd, got %zd\n"

	.no_dead_strip	_ip_Input
.subsections_via_symbols
