	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function isdnhdlc_decode
LCPI0_0:
	.long	130                             ## 0x82
	.long	0                               ## 0x0
	.long	65535                           ## 0xffff
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_isdnhdlc_decode
	.p2align	4, 0x90
_isdnhdlc_decode:                       ## @isdnhdlc_decode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%edx, %r12d
	movl	%edx, (%rcx)
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	leaq	LJTI0_0(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_55:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$133, 20(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%rbx)
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_60
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rbx)
	movl	(%r13), %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	callq	_bitrev8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 16(%rbx)
	addq	$4, %r13
	decl	%r12d
	cmpq	$1, 56(%rbx)
	movl	$0, %ecx
	adcl	$7, %ecx
	movl	%ecx, (%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%rbx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_59
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %eax
	testb	$-128, %al
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$132, 20(%rbx)
	jmp	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$255, 16(%rbx)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	$129, 20(%rbx)
	movl	$8, (%rbx)
	movl	$8, %ecx
	jmp	LBB0_59
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edx
	movl	24(%rbx), %eax
	testb	$-128, %dl
	jne	LBB0_28
## %bb.35:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$5, %eax
	je	LBB0_44
## %bb.36:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$6, %eax
	jne	LBB0_43
## %bb.37:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 40(%rbx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_check_frame
	movl	%eax, %r15d
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	$65535, 28(%rbx)                ## imm = 0xFFFF
	movl	$0, 36(%rbx)
	cmpq	$0, 56(%rbx)
	jne	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	cltq
	leaq	_isdnhdlc_decode.fast_flag(%rip), %rcx
	movzbl	(%rax,%rcx), %ecx
	cmpl	%ecx, 16(%rbx)
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	_isdnhdlc_decode.fast_flag_value(%rip), %rcx
	movzbl	(%rax,%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movl	$134, 20(%rbx)
	movl	%eax, 52(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_44
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %eax
	testb	$-128, %al
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [130,0,65535,0]
	movups	%xmm0, 20(%rbx)
	movq	$0, 36(%rbx)
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %eax
	testb	$-128, %al
	jne	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, 24(%rbx)
	jmp	LBB0_18
LBB0_53:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %eax
	cmpl	48(%rbx), %eax
	je	LBB0_10
## %bb.54:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$255, %eax
	je	LBB0_55
## %bb.56:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	52(%rbx), %rax
	cmpq	$8, %rax
	jne	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$131, 20(%rbx)
	jmp	LBB0_59
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 56(%rbx)
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbx), %edx
	leal	1(%rdx), %esi
	movl	%esi, 24(%rbx)
	cmpl	$7, %edx
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %ecx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$133, 20(%rbx)
	jmp	LBB0_18
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rax), %esi
	movl	%esi, 24(%rbx)
	cmpl	$5, %eax
	je	LBB0_45
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$6, %eax
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	_HDLC_FRAMING_ERROR@GOTPCREL(%rip), %rsi
	subl	(%rsi), %eax
	cmpl	$0, 40(%rbx)
	cmovel	%r15d, %eax
	cmpq	$0, 56(%rbx)
	je	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$129, 20(%rbx)
	jmp	LBB0_46
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$129, 20(%rbx)
	jmp	LBB0_18
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbx), %edx
	incl	%edx
	movl	%edx, 24(%rbx)
	cmpl	$6, %edx
	jne	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$131, 20(%rbx)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_19
LBB0_43:                                ##   in Loop: Header=BB0_3 Depth=1
	sarl	32(%rbx)
	incl	36(%rbx)
	jmp	LBB0_44
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rbx), %eax
	sarl	%eax
	orl	$128, %eax
	movl	%eax, 32(%rbx)
	incl	36(%rbx)
	jmp	LBB0_45
LBB0_42:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$130, 20(%rbx)
	movl	$0, 40(%rbx)
LBB0_44:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, 24(%rbx)
LBB0_45:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %eax
LBB0_46:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jne	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	cmpl	$8, 36(%rbx)
	jne	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_3 Depth=1
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 36(%rbx)
	movl	28(%rbx), %edi
	movl	32(%rbx), %esi
	callq	_crc_ccitt_byte
	movl	%eax, 28(%rbx)
	movslq	44(%rbx), %rax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rbx), %ecx
	leal	1(%rax), %edx
	movl	%edx, 44(%rbx)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax,4)
	jmp	LBB0_52
LBB0_51:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	movq	_HDLC_LENGTH_ERROR@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	$0, 44(%rbx)
LBB0_52:                                ##   in Loop: Header=BB0_3 Depth=1
	shll	16(%rbx)
	movl	(%rbx), %ecx
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	decl	%ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_59
LBB0_58:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	_isdnhdlc_decode.fast_abort(%rip), %rdx
	movzbl	-1(%rax,%rdx), %edx
	movq	%rax, %rsi
	decq	%rsi
	movl	%edx, 32(%rbx)
	leal	-2(%rax), %edx
	cmpl	$2, %eax
	movl	$0, %eax
	cmovll	%eax, %edx
	movl	%edx, 24(%rbx)
	movl	%esi, 36(%rbx)
	movl	$130, 20(%rbx)
	movl	$0, 40(%rbx)
	jmp	LBB0_59
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rcx
	leaq	_isdnhdlc_decode.fast_abort(%rip), %rsi
	movzbl	1(%rcx,%rsi), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$133, 20(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_46
LBB0_60:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	jmp	LBB0_61
LBB0_1:
	movl	%r12d, %eax
LBB0_61:
	subl	%r12d, %eax
	movl	%eax, (%rcx)
LBB0_62:
	xorl	%eax, %eax
LBB0_63:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	movl	$0, 44(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	%r12d, (%rcx)
	shll	16(%rbx)
	decl	(%rbx)
	jmp	LBB0_63
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_62, LBB0_62-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
LJTI0_0:
	.long	L0_0_set_62
	.long	L0_0_set_12
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_20
	.long	L0_0_set_9
	.long	L0_0_set_53
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
_isdnhdlc_decode.fast_flag:             ## @isdnhdlc_decode.fast_flag
	.ascii	"\000\000\000 08<>?"

_isdnhdlc_decode.fast_flag_value:       ## @isdnhdlc_decode.fast_flag_value
	.ascii	"\000~\374\371\363\347\317\237?"

_isdnhdlc_decode.fast_abort:            ## @isdnhdlc_decode.fast_abort
	.ascii	"\000\000\200\300\340\360\370\374\376\377"

	.comm	_HDLC_FRAMING_ERROR,4,2         ## @HDLC_FRAMING_ERROR
	.comm	_HDLC_LENGTH_ERROR,4,2          ## @HDLC_LENGTH_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function isdnhdlc_decode
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_2:
	.long	132                             ; 0x84
	.long	0                               ; 0x0
lCPI0_3:
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	130                             ; 0x82
	.long	0                               ; 0x0
	.long	65535                           ; 0xffff
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_isdnhdlc_decode
	.p2align	2
_isdnhdlc_decode:                       ; @isdnhdlc_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x19, x3
	mov	x20, x2
	str	w2, [x3]
	cmp	w2, #1
	b.lt	LBB0_61
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x24, x1
	mov	x21, x0
	mov	w25, #0
	mov	w26, #7
	ldr	w8, [x0]
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x9, lCPI0_2@PAGE
Lloh3:
	ldr	d8, [x9, lCPI0_2@PAGEOFF]
	movi	d9, #0x0000000000ffff
	movi.2s	v10, #1
Lloh4:
	adrp	x9, lCPI0_0@PAGE
Lloh5:
	ldr	d11, [x9, lCPI0_0@PAGEOFF]
	mov	w28, #129
Lloh6:
	adrp	x9, lCPI0_1@PAGE
Lloh7:
	ldr	q0, [x9, lCPI0_1@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
Lloh8:
	adrp	x9, lCPI0_3@PAGE
Lloh9:
	ldr	d12, [x9, lCPI0_3@PAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	stur	d8, [x21, #20]
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	w9, w9, #1
	str	w9, [x21, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w8, #1
	str	w8, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w20, #0
	b.le	LBB0_60
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x24]
	cbnz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_bitrev8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x21, #16]
	add	x24, x24, #4
	sub	w20, w20, #1
	ldr	x8, [x21, #56]
	cmp	x8, #0
	cinc	w8, w26, eq
	str	w8, [x21]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #20]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hi	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	adr	x10, LBB0_12
	ldrb	w11, [x27, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #16]
	tbz	w9, #7, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x21, #56]
	cbnz	x10, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x21, #24]
	add	w11, w10, #1
	str	w11, [x21, #24]
	cmp	w10, #7
	b.lt	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, #133
	b	LBB0_41
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #16]
	cmp	w8, #255
	b.eq	LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	stur	d12, [x21, #20]
	mov	w8, #8
	str	w8, [x21]
	b	LBB0_5
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #16]
	ldr	w10, [x21, #24]
	tbnz	w9, #7, LBB0_34
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w10, #5
	b.eq	LBB0_49
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w10, #6
	b.ne	LBB0_46
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_check_frame
	mov	x25, x0
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	d9, [x21, #28]
	str	wzr, [x21, #36]
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_48
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x21, #16]
	ldr	w8, [x21]
	sxtw	x9, w8
Lloh10:
	adrp	x11, _isdnhdlc_decode.fast_flag@PAGE
Lloh11:
	add	x11, x11, _isdnhdlc_decode.fast_flag@PAGEOFF
	ldrb	w11, [x11, x9]
	cmp	w10, w11
	b.ne	LBB0_48
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x10, _isdnhdlc_decode.fast_flag_value@PAGE
Lloh13:
	add	x10, x10, _isdnhdlc_decode.fast_flag_value@PAGEOFF
	ldrb	w9, [x10, x9]
	mov	w10, #134
	str	w10, [x21, #20]
	stp	w9, w8, [x21, #48]
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_49
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #16]
	tbnz	w9, #7, LBB0_38
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x21, #20]
	stp	wzr, wzr, [x21, #36]
	b	LBB0_3
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #16]
	tbnz	w9, #7, LBB0_39
; %bb.30:                               ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x21, #24]
	b	LBB0_3
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #16]
	ldr	w10, [x21, #48]
	cmp	w9, w10
	b.ne	LBB0_42
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x21]
	b	LBB0_5
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w11, w10, #1
	str	w11, [x21, #24]
	cmp	w10, #5
	b.eq	LBB0_50
; %bb.35:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w10, #6
	b.ne	LBB0_47
; %bb.36:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x21, #40]
Lloh14:
	adrp	x11, _HDLC_FRAMING_ERROR@GOTPAGE
Lloh15:
	ldr	x11, [x11, _HDLC_FRAMING_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	w10, #0
	csneg	w25, w25, w11, eq
	ldr	x10, [x21, #56]
	cbz	x10, LBB0_58
; %bb.37:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w28, [x21, #20]
	b	LBB0_50
LBB0_38:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w28, [x21, #20]
	b	LBB0_3
LBB0_39:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x21, #24]
	add	w10, w10, #1
	str	w10, [x21, #24]
	cmp	w10, #6
	b.ne	LBB0_3
; %bb.40:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, #131
LBB0_41:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w10, [x21, #20]
	b	LBB0_3
LBB0_42:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #255
	b.ne	LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
	mov	w9, #133
	str	w9, [x21, #20]
	b	LBB0_33
LBB0_44:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x9, [x21, #52]
	cmp	w9, #8
	b.ne	LBB0_57
; %bb.45:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #131
	str	w9, [x21, #20]
	b	LBB0_5
LBB0_46:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	d0, [x21, #32]
	sshr.2s	v1, v0, #1
	add.2s	v0, v0, v10
	mov.s	v1[1], v0[1]
	str	d1, [x21, #32]
	b	LBB0_49
LBB0_47:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w9, [x21, #32]
	asr	w8, w8, #1
	orr	w8, w8, #0x80
	add	w9, w9, #1
	stp	w8, w9, [x21, #32]
	b	LBB0_50
LBB0_48:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #130
	str	w8, [x21, #20]
	str	wzr, [x21, #40]
LBB0_49:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x21, #24]
LBB0_50:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w25, LBB0_65
; %bb.51:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #36]
	cmp	w8, #8
	b.ne	LBB0_54
; %bb.52:                               ;   in Loop: Header=BB0_6 Depth=1
	stur	d11, [x21, #36]
	ldp	w0, w1, [x21, #28]
	bl	_crc_ccitt_byte
	str	w0, [x21, #28]
	ldrsw	x8, [x21, #44]
	cmp	w8, w22
	b.ge	LBB0_55
; %bb.53:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w25, #0
	ldr	w9, [x21, #32]
	add	w10, w8, #1
	str	w10, [x21, #44]
	str	w9, [x23, x8, lsl #2]
	b	LBB0_56
LBB0_54:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w25, #0
	b	LBB0_56
LBB0_55:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh17:
	adrp	x8, _HDLC_LENGTH_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HDLC_LENGTH_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w25, w8
	str	wzr, [x21, #44]
LBB0_56:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #16]
	lsl	w8, w8, #1
	str	w8, [x21, #16]
	ldr	w8, [x21]
	b	LBB0_4
LBB0_57:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x10, x9, #1
Lloh20:
	adrp	x11, _isdnhdlc_decode.fast_abort@PAGE
Lloh21:
	add	x11, x11, _isdnhdlc_decode.fast_abort@PAGEOFF
	ldrb	w11, [x11, x10]
	subs	w9, w9, #2
	csel	w9, wzr, w9, lt
	stp	w11, w10, [x21, #32]
	str	w9, [x21, #24]
	mov	w9, #130
	str	w9, [x21, #20]
	str	wzr, [x21, #40]
	b	LBB0_5
LBB0_58:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh22:
	adrp	x10, _isdnhdlc_decode.fast_abort@PAGE
Lloh23:
	add	x10, x10, _isdnhdlc_decode.fast_abort@PAGEOFF
	add	x8, x10, w8, sxtw
	ldrb	w8, [x8, #1]
	cmp	w9, w8
	b.ne	LBB0_50
; %bb.59:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #133
	str	w8, [x21, #20]
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_50
LBB0_60:
	ldr	w8, [x19]
	b	LBB0_62
LBB0_61:
	mov	x8, x20
LBB0_62:
	mov	w25, #0
	sub	w8, w8, w20
	str	w8, [x19]
LBB0_63:
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_64:
	mov	w25, #0
	b	LBB0_63
LBB0_65:
	str	wzr, [x21, #44]
	ldr	w8, [x19]
	sub	w8, w8, w20
	str	w8, [x19]
	ldr	w8, [x21, #16]
	lsl	w8, w8, #1
	str	w8, [x21, #16]
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	b	LBB0_63
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_64-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_27-LBB0_12)>>2
	.byte	(LBB0_29-LBB0_12)>>2
	.byte	(LBB0_17-LBB0_12)>>2
	.byte	(LBB0_31-LBB0_12)>>2
                                        ; -- End function
_isdnhdlc_decode.fast_flag:             ; @isdnhdlc_decode.fast_flag
	.ascii	"\000\000\000 08<>?"

_isdnhdlc_decode.fast_flag_value:       ; @isdnhdlc_decode.fast_flag_value
	.ascii	"\000~\374\371\363\347\317\237?"

_isdnhdlc_decode.fast_abort:            ; @isdnhdlc_decode.fast_abort
	.ascii	"\000\000\200\300\340\360\370\374\376\377"

	.comm	_HDLC_FRAMING_ERROR,4,2         ; @HDLC_FRAMING_ERROR
	.comm	_HDLC_LENGTH_ERROR,4,2          ; @HDLC_LENGTH_ERROR
.subsections_via_symbols
