	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Pred1Input
_Pred1Input:                            ## @Pred1Input
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_MRU@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$2, %rdi
	movq	_MB_CCPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_m_get
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_MBUF_CTOP
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_m_length
	movl	%eax, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_MBUF_CTOP
	movq	%rax, %r14
	movl	(%r13), %eax
	andl	$127, %eax
	movl	%eax, (%r14)
	movl	(%r13), %eax
	movl	4(%r13), %ecx
	shll	$8, %eax
	leaq	8(%r14), %r8
	movl	%ecx, 4(%r14)
	movslq	4(%r13), %rcx
	addq	$8, %r13
	movslq	%eax, %r15
	addq	%rcx, %r15
	movl	%r15d, %r12d
	andl	$32767, %r12d                   ## imm = 0x7FFF
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, (%rax)
	testl	$32768, %r15d                   ## imm = 0x8000
	jne	LBB0_1
## %bb.4:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leal	4(%r15), %edx
	cmpl	%ebx, %edx
	jne	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, 4(%rax)
	movq	%r13, %rsi
	movq	%r8, %rdx
	movl	%r15d, %ecx
	movq	%r8, %rbx
	callq	_SyncTable
	movq	%rbx, %rcx
	movl	%r15d, %r12d
	movq	%r15, %rax
	jmp	LBB0_7
LBB0_1:
	addl	$-4, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r8, %rdx
	movl	%ebx, %ecx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	callq	_decompress
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, 4(%r15)
	cmpl	%eax, %r12d
	jne	LBB0_2
## %bb.3:
	movslq	%ebx, %rax
	movl	%r12d, %r15d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_7:
	leaq	(%rcx,%r15,4), %rsi
	movl	(%r13,%rax,4), %ecx
	movl	%ecx, 8(%r14,%r15,4)
	movl	4(%r13,%rax,4), %eax
	movl	%eax, 12(%r14,%r15,4)
	subq	%r14, %rsi
	addq	$8, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%esi, (%rbx)
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hdlc_Fcs
	movl	%eax, %r13d
	movq	_GOODFCS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_11
## %bb.8:
	addq	$2, 8(%rbx)
	addl	$-4, (%rbx)
	movq	%rbx, %rdi
	callq	_MBUF_CTOP
	movl	(%rax), %ecx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	testb	$1, %cl
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_9
## %bb.10:
	addq	$2, 8(%rbx)
	addl	$-2, (%rbx)
	movl	(%rdx), %ecx
	shll	$8, %ecx
	orl	4(%rax), %ecx
	movl	%ecx, (%rdx)
	jmp	LBB0_13
LBB0_5:
	movq	_LogCCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_Printf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_fsm_Reopen
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_m_freem
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_2:
	movq	_LogCCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_fsm_Reopen
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_m_freem
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_MBUF_CTOP
	testb	$-128, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r14
	cmoveq	%rax, %r14
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_LogCCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	addq	$8, %r12
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%r12, %rdi
	callq	_fsm_Reopen
	movq	%rbx, %rdi
	callq	_m_freem
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	incq	8(%rbx)
	decl	(%rbx)
LBB0_13:
	movq	%r15, %rdi
	callq	_m_freem
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MRU,8,3                    ## @MAX_MRU
	.comm	_MB_CCPIN,4,2                   ## @MB_CCPIN
	.comm	_LogCCP,4,2                     ## @LogCCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pred1: Length error (got %d, not %d)\n"

	.comm	_GOODFCS,4,2                    ## @GOODFCS
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"un"

	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
L_.str.3:                               ## @.str.3
	.asciz	"Pred1Input: fcs = 0x%04x (%scompressed), len = 0x%x, olen = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: Bad %scompressed CRC-16\n"

	.no_dead_strip	_Pred1Input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Pred1Input
_Pred1Input:                            ; @Pred1Input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x21, x1
	mov	x27, x0
Lloh0:
	adrp	x8, _MAX_MRU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MRU@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, #2
Lloh3:
	adrp	x8, _MB_CCPIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB_CCPIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_m_get
	mov	x20, x0
	mov	x0, x19
	bl	_MBUF_CTOP
	mov	x25, x0
	mov	x0, x19
	bl	_m_length
	mov	x23, x0
	mov	x0, x20
	bl	_MBUF_CTOP
	mov	x24, x0
	ldr	w8, [x25]
	and	w8, w8, #0x7f
	str	w8, [x0]
	ldp	w8, w9, [x25]
	lsl	w8, w8, #8
	add	x26, x0, #8
	str	w9, [x0, #4]
	add	x28, x25, #8
	ldrsw	x9, [x25, #4]
	add	x22, x9, w8, sxtw
	and	w25, w22, #0x7fff
	ldr	w8, [x21]
	add	w8, w25, w8
	str	w8, [x21]
	tbnz	w22, #15, LBB0_3
; %bb.1:
	add	w2, w22, #4
	cmp	w2, w23
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x21, #4]
	add	w8, w8, w22
	str	w8, [x21, #4]
	mov	x0, x27
	mov	x1, x28
	mov	x2, x26
	mov	x3, x22
	bl	_SyncTable
	mov	x25, x22
	mov	x8, x22
	b	LBB0_5
LBB0_3:
	sub	w22, w23, #4
	mov	x0, x27
	mov	x1, x28
	mov	x2, x26
	mov	x3, x22
	bl	_decompress
	ldr	w8, [x21, #4]
	add	w8, w8, w23
	str	w8, [x21, #4]
	cmp	w25, w0
	b.ne	LBB0_9
; %bb.4:
	sxtw	x8, w22
	mov	x22, x25
LBB0_5:
	add	x8, x28, x8, lsl #2
	add	x9, x26, x25, lsl #2
	ldr	w10, [x8]
	str	w10, [x9]
	ldr	w8, [x8, #4]
	str	w8, [x9, #4]!
	sub	x8, x9, x24
	add	x8, x8, #4
	lsr	x1, x8, #2
	str	w1, [x20]
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_hdlc_Fcs
Lloh6:
	adrp	x8, _GOODFCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GOODFCS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x20, #8]
	add	x8, x8, #2
	str	x8, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #4
	str	w8, [x20]
	mov	x0, x20
	bl	_MBUF_CTOP
	ldr	w8, [x0]
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	str	w8, [x10]
	tbnz	w8, #0, LBB0_14
; %bb.7:
	ldr	x8, [x20, #8]
	add	x8, x8, #2
	str	x8, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #2
	str	w8, [x20]
	ldr	w8, [x10]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8, lsl #8
	str	w8, [x10]
	b	LBB0_13
LBB0_8:
Lloh9:
	adrp	x8, _LogCCP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LogCCP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	add	x0, x21, #8
	b	LBB0_11
LBB0_9:
	mov	x2, x0
Lloh14:
	adrp	x8, _LogCCP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LogCCP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	add	x0, x21, #8
	bl	_fsm_Reopen
	mov	x0, x19
	bl	_m_freem
	mov	x19, x20
	b	LBB0_12
LBB0_10:
	mov	x24, x0
	mov	x0, x19
	bl	_MBUF_CTOP
	ldr	w8, [x0]
Lloh19:
	adrp	x9, l_.str.1@PAGE
Lloh20:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh21:
	adrp	x10, l_.str.2@PAGE
Lloh22:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, #0x80
	csel	x25, x10, x9, eq
Lloh23:
	adrp	x8, _LogDEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LogDEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x23, [sp, #8]
	str	x25, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x24
	bl	_log_Printf
Lloh28:
	adrp	x8, _LogCCP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LogCCP@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]!
	ldr	w2, [x8]
	str	x25, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_log_Printf
	mov	x0, x21
LBB0_11:
	bl	_fsm_Reopen
	mov	x0, x20
	bl	_m_freem
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x19
	bl	_m_freem
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	ldr	x8, [x20, #8]
	add	x8, x8, #1
	str	x8, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MRU,8,3                    ; @MAX_MRU
	.comm	_MB_CCPIN,4,2                   ; @MB_CCPIN
	.comm	_LogCCP,4,2                     ; @LogCCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pred1: Length error (got %d, not %d)\n"

	.comm	_GOODFCS,4,2                    ; @GOODFCS
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"un"

	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
l_.str.3:                               ; @.str.3
	.asciz	"Pred1Input: fcs = 0x%04x (%scompressed), len = 0x%x, olen = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: Bad %scompressed CRC-16\n"

	.no_dead_strip	_Pred1Input
.subsections_via_symbols
