	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_Input                      ## -- Begin function fsm_Input
	.p2align	4, 0x90
_fsm_Input:                             ## @fsm_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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_m_length
	cmpq	$11, %rax
	ja	LBB0_1
## %bb.19:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_m_freem                        ## TAILCALL
LBB0_1:
	movq	%rax, %r12
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_mbuf_Read
	movq	%rax, %r14
	movl	-48(%rbp), %edi
	callq	_ntohs
	cmpq	%r12, %rax
	jbe	LBB0_3
## %bb.2:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	24(%r15), %rax
	movl	(%rax), %r15d
	movl	-48(%rbp), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%r14, %rdi
	callq	_m_freem
	jmp	LBB0_18
LBB0_3:
	movl	-56(%rbp), %eax
	cmpl	(%r15), %eax
	jge	LBB0_4
LBB0_6:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_m_prepend
	movq	%rax, %rdi
	callq	_m_pullup
	movq	%rax, %rbx
	movq	_CODE_CODEREJ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	_fsm_Input.id(%rip), %r12d
	leal	1(%r12), %eax
	movl	%eax, _fsm_Input.id(%rip)
	movq	%rbx, %rdi
	callq	_MBUF_CTOP
	movl	(%rbx), %r8d
	movq	_MB_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_fsm_Output
	movq	%rbx, %rdi
	callq	_m_freem
	jmp	LBB0_18
LBB0_4:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$0, 4(%r15)
	js	LBB0_6
## %bb.7:
	movq	_FsmCodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	-52(%rbp), %ebx
	cmpl	8(%r15), %ebx
	je	LBB0_11
## %bb.8:
	cmpq	$0, -24(%rcx)
	je	LBB0_11
## %bb.9:
	movq	%rcx, %r12
	movl	12(%r15), %edi
	movq	_OPT_IDCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Enabled
	testq	%rax, %rax
	je	LBB0_10
## %bb.20:
	movl	32(%r15), %edi
	movq	24(%r15), %rax
	movl	(%rax), %edx
	movslq	-8(%r12), %rcx
	movl	-52(%rbp), %r8d
	movl	8(%r15), %r9d
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_18
LBB0_10:
	movl	-52(%rbp), %ebx
	movq	%r12, %rcx
LBB0_11:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	32(%r15), %r12d
	movq	24(%r15), %rax
	movl	(%rax), %r13d
	movslq	-8(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_State2Nam
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movl	%r13d, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_log_Printf
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, -16(%rcx)
	je	LBB0_17
## %bb.12:
	movl	-52(%rbp), %eax
	cmpl	8(%r15), %eax
	je	LBB0_16
## %bb.13:
	movl	12(%r15), %edi
	movq	_OPT_IDCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Enabled
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	cmpq	$0, -24(%rcx)
	je	LBB0_17
## %bb.15:
	movl	8(%r15), %eax
LBB0_16:
	incl	%eax
	movl	%eax, 8(%r15)
LBB0_17:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	*-32(%rcx)
LBB0_18:
	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	"%s: Oops: Got %zu bytes but %d byte payload - dropped\n"

.zerofill __DATA,__bss,_fsm_Input.id,4,2 ## @fsm_Input.id
	.comm	_CODE_CODEREJ,4,2               ## @CODE_CODEREJ
	.comm	_MB_UNKNOWN,4,2                 ## @MB_UNKNOWN
	.comm	_FsmCodes,8,3                   ## @FsmCodes
	.comm	_OPT_IDCHECK,4,2                ## @OPT_IDCHECK
L_.str.1:                               ## @.str.1
	.asciz	"%s: Recv%s(%d), dropped (expected %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Recv%s(%d) state = %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsm_Input                      ; -- Begin function fsm_Input
	.p2align	2
_fsm_Input:                             ; @fsm_Input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_m_length
	cmp	x0, #11
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_m_freem
LBB0_2:
	mov	x21, x0
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #12
	bl	_mbuf_Read
	mov	x20, x0
	ldr	w0, [sp, #24]
	bl	_ntohs
	cmp	x0, x21
	b.ls	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _LogWARN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x19, #24]
	ldr	w19, [x8]
	ldr	w0, [sp, #24]
	bl	_ntohs
	mov	x4, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	mov	x3, x21
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_log_Printf
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #16]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_8
LBB0_5:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #12
	mov	w3, #0
	bl	_m_prepend
	bl	_m_pullup
	mov	x20, x0
Lloh5:
	adrp	x8, _CODE_CODEREJ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CODE_CODEREJ@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	adrp	x8, _fsm_Input.id@PAGE
	ldr	w22, [x8, _fsm_Input.id@PAGEOFF]
	add	w9, w22, #1
	str	w9, [x8, _fsm_Input.id@PAGEOFF]
	bl	_MBUF_CTOP
	mov	x3, x0
	ldr	w4, [x20]
Lloh8:
	adrp	x8, _MB_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MB_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_fsm_Output
LBB0_6:
	mov	x0, x20
	bl	_m_freem
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	cbnz	w8, LBB0_5
; %bb.9:
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_5
; %bb.10:
Lloh11:
	adrp	x8, _FsmCodes@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FsmCodes@GOTPAGEOFF]
Lloh13:
	ldr	x25, [x8]
	ldr	w21, [sp, #20]
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.eq	LBB0_15
; %bb.11:
	ldur	x8, [x25, #-24]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	w0, [x19, #12]
Lloh14:
	adrp	x8, _OPT_IDCHECK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OPT_IDCHECK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_Enabled
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	ldursw	x3, [x25, #-8]
	ldr	w4, [sp, #20]
	ldr	w8, [x19, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	bl	_log_Printf
	b	LBB0_7
LBB0_14:
	ldr	w21, [sp, #20]
LBB0_15:
	ldr	w22, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w23, [x8]
	ldursw	x24, [x25, #-8]
	ldr	w0, [x19, #16]
	bl	_State2Nam
                                        ; kill: def $w0 killed $w0 def $x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x0, [sp]
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	bl	_log_Printf
	ldur	x8, [x25, #-16]
	cbz	x8, LBB0_21
; %bb.16:
	ldr	w8, [sp, #20]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.17:
	ldr	w0, [x19, #12]
Lloh21:
	adrp	x8, _OPT_IDCHECK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OPT_IDCHECK@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_Enabled
	cbnz	x0, LBB0_21
; %bb.18:
	ldur	x8, [x25, #-24]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	w8, [x19, #8]
LBB0_20:
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_21:
	ldur	x8, [x25, #-32]
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x20
	blr	x8
	b	LBB0_7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Oops: Got %zu bytes but %d byte payload - dropped\n"

.zerofill __DATA,__bss,_fsm_Input.id,4,2 ; @fsm_Input.id
	.comm	_CODE_CODEREJ,4,2               ; @CODE_CODEREJ
	.comm	_MB_UNKNOWN,4,2                 ; @MB_UNKNOWN
	.comm	_FsmCodes,8,3                   ; @FsmCodes
	.comm	_OPT_IDCHECK,4,2                ; @OPT_IDCHECK
l_.str.1:                               ; @.str.1
	.asciz	"%s: Recv%s(%d), dropped (expected %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Recv%s(%d) state = %s\n"

.subsections_via_symbols
