	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdnhdlc_encode                ## -- Begin function isdnhdlc_encode
	.p2align	4, 0x90
_isdnhdlc_encode:                       ## @isdnhdlc_encode
	.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, %r15d
	movq	%r8, %r12
	movl	%edx, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, (%rcx)
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.1:
	cmpl	$132, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	$137, (%rbx)
LBB0_3:
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	jle	LBB0_89
## %bb.4:
	leaq	LJTI0_0(%rip), %r8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, (%r12)
	addq	$4, %r12
	movl	$0, 40(%rbx)
	incl	%r13d
	decl	%r15d
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_89
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	$133, %ecx
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 16(%rbx)
	je	LBB0_41
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movabsq	$34359738503, %rax              ## imm = 0x800000087
	movq	%rax, (%rbx)
	movl	20(%rbx), %eax
	movl	$65535, %ecx                    ## imm = 0xFFFF
	xorl	%ecx, %eax
	movl	%eax, 20(%rbx)
	movzbl	%al, %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%eax, 12(%rbx)
	decl	%r14d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, 8(%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$8, 4(%rbx)
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$8, %eax
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %ecx
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	$-128, %ecx
	cmpl	$12, %ecx
	ja	LBB0_78
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r8,%rcx,4), %rcx
	addq	%r8, %rcx
	jmpq	*%rcx
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	movl	36(%rbx), %ecx
	addl	%ecx, %ecx
	incl	%ecx
	movl	%ecx, 36(%rbx)
	incl	40(%rbx)
	decl	%eax
	movl	%eax, 4(%rbx)
	jne	LBB0_78
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	$131, (%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, 16(%rbx)
	movl	40(%rbx), %esi
	cmpl	$8, %esi
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %ecx
	movl	36(%rbx), %edx
	addl	%edx, %edx
	movl	%edx, 36(%rbx)
	incl	%esi
	movl	%esi, 40(%rbx)
	testb	$1, %cl
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	orl	$1, %edx
	movl	%edx, 36(%rbx)
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	sarl	%ecx
	movl	%ecx, 12(%rbx)
	decl	%eax
	movl	%eax, 4(%rbx)
	jne	LBB0_78
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$133, (%rbx)
	movl	$65535, 20(%rbx)                ## imm = 0xFFFF
	jmp	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	movabsq	$34359738623, %rcx              ## imm = 0x8000000FF
	movq	%rcx, 36(%rbx)
	cmpl	$8, %eax
	jne	LBB0_43
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$126, 36(%rbx)
	movl	$130, (%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	shll	36(%rbx)
	incl	40(%rbx)
	cmpl	$5, 44(%rbx)
	je	LBB0_30
## %bb.46:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$8, %eax
	jne	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_crc_ccitt_byte
	leaq	LJTI0_0(%rip), %r8
	movl	%eax, 20(%rbx)
LBB0_48:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %eax
	testb	$1, %al
	jne	LBB0_70
## %bb.49:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 44(%rbx)
	jmp	LBB0_71
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	36(%rbx), %ecx
	movl	44(%rbx), %esi
	addl	%ecx, %ecx
	movl	%ecx, 36(%rbx)
	incl	40(%rbx)
	cmpl	$5, %esi
	je	LBB0_30
## %bb.50:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %edx
	testb	$1, %dl
	jne	LBB0_72
## %bb.51:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 44(%rbx)
	jmp	LBB0_73
LBB0_33:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	36(%rbx), %ecx
	movl	44(%rbx), %esi
	addl	%ecx, %ecx
	movl	%ecx, 36(%rbx)
	incl	40(%rbx)
	cmpl	$5, %esi
	je	LBB0_30
## %bb.52:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %edx
	testb	$1, %dl
	jne	LBB0_76
## %bb.53:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 44(%rbx)
	jmp	LBB0_77
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	36(%rbx), %esi
	movl	44(%rbx), %edi
	addl	%esi, %esi
	movl	%esi, 36(%rbx)
	movslq	40(%rbx), %rdx
	leaq	1(%rdx), %rcx
	movl	%ecx, 40(%rbx)
	cmpl	$5, %edi
	jne	LBB0_54
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 44(%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_37:                                ##   in Loop: Header=BB0_7 Depth=1
	shll	36(%rbx)
	incl	40(%rbx)
	testl	%r14d, %r14d
	je	LBB0_60
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$8, %eax
	je	LBB0_66
	jmp	LBB0_78
LBB0_39:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	40(%rbx)
	movl	36(%rbx), %eax
	movl	44(%rbx), %ecx
	addl	%eax, %eax
	incl	%eax
	movl	%eax, 36(%rbx)
	incl	%ecx
	movl	%ecx, 44(%rbx)
	cmpl	$6, %ecx
	jne	LBB0_78
## %bb.40:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$138, (%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_41:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 48(%rbx)
	je	LBB0_62
LBB0_42:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	shll	36(%rbx)
	incl	40(%rbx)
	movl	$0, 44(%rbx)
	movl	$139, (%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_43:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$255, %eax
	cmpq	$0, 24(%rbx)
	jne	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$255, %edi
	callq	_bitrev8
	leaq	LJTI0_0(%rip), %r8
LBB0_45:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, (%r12)
	addq	$4, %r12
	movl	$0, 4(%rbx)
	movl	$0, 40(%rbx)
	incl	%r13d
	xorl	%r15d, %r15d
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_54:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %edi
	testb	$1, %dil
	je	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_7 Depth=1
	orl	$1, %esi
	movl	%esi, 36(%rbx)
LBB0_56:                                ##   in Loop: Header=BB0_7 Depth=1
	sarl	%edi
	movl	%edi, 12(%rbx)
	decl	%eax
	movl	%eax, 4(%rbx)
	jne	LBB0_78
## %bb.57:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	_isdnhdlc_encode.xfast_flag_value(%rip), %rax
	movzbl	(%rcx,%rax), %eax
	movl	%eax, 32(%rbx)
	cmpl	$0, 56(%rbx)
	je	LBB0_82
## %bb.58:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$126, 32(%rbx)
	movl	$129, (%rbx)
	movl	$7, %eax
	subl	%edx, %eax
	movl	%eax, 4(%rbx)
	cmpl	$8, %ecx
	jne	LBB0_78
## %bb.59:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$131, (%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_60:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$140, (%rbx)
	jmp	LBB0_61
LBB0_62:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$132, (%rbx)
	xorl	%eax, %eax
LBB0_63:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 8(%rbx)
	testl	%r14d, %r14d
	je	LBB0_67
LBB0_64:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$8, %eax
	jne	LBB0_78
## %bb.65:                              ##   in Loop: Header=BB0_7 Depth=1
	movb	$8, %cl
	subb	40(%rbx), %cl
	movl	32(%rbx), %eax
	sarl	%cl, %eax
	movl	%eax, 36(%rbx)
LBB0_66:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$133, (%rbx)
	movl	$0, 44(%rbx)
	movabsq	$281470681743361, %rax          ## imm = 0xFFFF00000001
	movq	%rax, 16(%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_67:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 24(%rbx)
	movl	32(%rbx), %eax
	jne	LBB0_69
## %bb.68:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %edi
	callq	_bitrev8
	leaq	LJTI0_0(%rip), %r8
LBB0_69:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, (%r12)
	addq	$4, %r12
	incl	%r13d
	decl	%r15d
LBB0_61:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r14d, %r14d
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_70:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	44(%rbx)
	incl	36(%rbx)
LBB0_71:                                ##   in Loop: Header=BB0_7 Depth=1
	sarl	%eax
	movl	%eax, 12(%rbx)
	decl	4(%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	jmp	LBB0_85
LBB0_72:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%esi
	movl	%esi, 44(%rbx)
	orl	$1, %ecx
	movl	%ecx, 36(%rbx)
LBB0_73:                                ##   in Loop: Header=BB0_7 Depth=1
	sarl	%edx
	movl	%edx, 12(%rbx)
	decl	%eax
	movl	%eax, 4(%rbx)
	jne	LBB0_78
## %bb.74:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$126, 12(%rbx)
	movabsq	$34359738504, %rax              ## imm = 0x800000088
	jmp	LBB0_75
LBB0_76:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%esi
	movl	%esi, 44(%rbx)
	orl	$1, %ecx
	movl	%ecx, 36(%rbx)
LBB0_77:                                ##   in Loop: Header=BB0_7 Depth=1
	sarl	%edx
	movl	%edx, 12(%rbx)
	decl	%eax
	movl	%eax, 4(%rbx)
	je	LBB0_81
	.p2align	4, 0x90
LBB0_78:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 48(%rbx)
	je	LBB0_85
LBB0_79:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	40(%rbx), %eax
	cmpl	$7, %eax
	jne	LBB0_86
## %bb.80:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	36(%rbx), %eax
	addl	%eax, %eax
	incl	%eax
	movl	%eax, 36(%rbx)
	movl	$8, 40(%rbx)
	jmp	LBB0_87
LBB0_81:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	20(%rbx), %eax
	sarl	$8, %eax
	movl	%eax, 12(%rbx)
	movabsq	$34359738502, %rax              ## imm = 0x800000086
LBB0_75:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, (%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_79
	.p2align	4, 0x90
LBB0_85:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	40(%rbx), %eax
LBB0_86:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$8, %eax
	jne	LBB0_6
LBB0_87:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 24(%rbx)
	movl	36(%rbx), %eax
	jne	LBB0_5
## %bb.88:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %edi
	callq	_bitrev8
	leaq	LJTI0_0(%rip), %r8
	jmp	LBB0_5
LBB0_82:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 48(%rbx)
	je	LBB0_84
## %bb.83:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$140, (%rbx)
	movl	$0, 16(%rbx)
	movl	$1, %r15d
	jmp	LBB0_79
LBB0_84:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$132, (%rbx)
	movl	$0, 16(%rbx)
	movl	$1, %r15d
	jmp	LBB0_85
LBB0_89:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	%r14d, (%rax)
LBB0_90:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_91:
	movl	%r15d, %edx
	shlq	$2, %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	movq	%r12, %rdi
	callq	_memset_pattern16
	movl	$-1, %r13d
	jmp	LBB0_90
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_91, LBB0_91-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_63, LBB0_63-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
LJTI0_0:
	.long	L0_0_set_91
	.long	L0_0_set_20
	.long	L0_0_set_22
	.long	L0_0_set_27
	.long	L0_0_set_63
	.long	L0_0_set_29
	.long	L0_0_set_31
	.long	L0_0_set_33
	.long	L0_0_set_35
	.long	L0_0_set_64
	.long	L0_0_set_37
	.long	L0_0_set_39
	.long	L0_0_set_42
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
_isdnhdlc_encode.xfast_flag_value:      ## @isdnhdlc_encode.xfast_flag_value
	.ascii	"~?\237\317\347\363\371\374~"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

.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_encode
lCPI0_0:
	.long	135                             ; 0x87
	.long	8                               ; 0x8
lCPI0_1:
	.long	255                             ; 0xff
	.long	8                               ; 0x8
lCPI0_2:
	.long	131                             ; 0x83
	.long	0                               ; 0x0
lCPI0_3:
	.long	136                             ; 0x88
	.long	8                               ; 0x8
lCPI0_4:
	.long	134                             ; 0x86
	.long	8                               ; 0x8
lCPI0_5:
	.long	1                               ; 0x1
	.long	65535                           ; 0xffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_isdnhdlc_encode
	.p2align	2
_isdnhdlc_encode:                       ; @isdnhdlc_encode
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-160]!          ; 16-byte Folded Spill
	.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
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x25, x5
	mov	x20, x4
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	str	w2, [x3]
	cmp	w2, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #132
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #137
	str	w8, [x22]
LBB0_3:
	cmp	w25, #1
	b.lt	LBB0_86
; %bb.4:
	mov	w23, #0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w28, #8
	mov	w26, #133
Lloh2:
	adrp	x8, lCPI0_5@PAGE
Lloh3:
	ldr	d9, [x8, lCPI0_5@PAGEOFF]
	movi.2s	v10, #1
Lloh4:
	adrp	x27, lJTI0_0@PAGE
Lloh5:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x8, lCPI0_2@PAGE
Lloh7:
	ldr	d11, [x8, lCPI0_2@PAGEOFF]
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d12, [x8, lCPI0_1@PAGEOFF]
Lloh10:
	adrp	x8, lCPI0_3@PAGE
Lloh11:
	ldr	d13, [x8, lCPI0_3@PAGEOFF]
Lloh12:
	adrp	x8, lCPI0_4@PAGE
Lloh13:
	ldr	d14, [x8, lCPI0_4@PAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w0, [x20], #4
	str	wzr, [x22, #40]
	add	w23, w23, #1
	sub	w25, w25, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w25, #0
	b.le	LBB0_87
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w9, w9, #128
	cmp	w9, #12
	b.hi	LBB0_73
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	adr	x10, LBB0_11
	ldrh	w11, [x27, x9, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #1
	ldp	w10, w11, [x22, #36]
	bfi	w9, w10, #1, #31
	add	w10, w11, #1
	stp	w9, w10, [x22, #36]
	subs	w8, w8, #1
	stp	w8, wzr, [x22, #4]
	b.ne	LBB0_73
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	str	d11, [x22]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w24, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22]
	cmp	w9, #133
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_46
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #20]
	eor	w8, w8, #0xffff
	str	w8, [x22, #20]
	str	d8, [x22]
	and	w8, w8, #0xff
	str	w8, [x22, #12]
	mov	w8, #8
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #0
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21], #4
	str	w8, [x22, #12]
	subs	w24, w24, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #1
	str	w8, [x22, #8]
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #8
	str	w8, [x22, #4]
	b	LBB0_8
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #1
	str	w9, [x22, #16]
	ldr	w9, [x22, #40]
	cmp	w9, #8
	b.eq	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x22, #36]
	lsl	w10, w10, #1
	add	w9, w9, #1
	stp	w10, w9, [x22, #36]
	ldr	w9, [x22, #12]
	tbz	w9, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	orr	w10, w10, #0x1
	str	w10, [x22, #36]
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w9, w9, #1
	str	w9, [x22, #12]
	subs	w8, w8, #1
	str	w8, [x22, #4]
	b.ne	LBB0_73
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w26, [x22]
	mov	w8, #65535
	str	w8, [x22, #20]
	b	LBB0_41
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #8]
	stur	d12, [x22, #36]
	cmp	w8, #8
	b.ne	LBB0_48
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #126
	str	w8, [x22, #36]
	mov	w8, #130
	b	LBB0_57
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	d0, [x22, #36]
	shl.2s	v1, v0, #1
	add.2s	v0, v0, v10
	mov.s	v1[1], v0[1]
	stur	d1, [x22, #36]
	ldr	w9, [x22, #44]
	cmp	w9, #5
	b.eq	LBB0_41
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #8
	b.ne	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22, #20]
	ldr	w1, [x22, #12]
	bl	_crc_ccitt_byte
	str	w0, [x22, #20]
LBB0_32:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #12]
	tbnz	w8, #0, LBB0_66
; %bb.33:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #44]
	b	LBB0_67
LBB0_34:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	d1, [x22, #36]
	shl.2s	v0, v1, #1
	add.2s	v1, v1, v10
	mov.16b	v2, v0
	mov.s	v2[1], v1[1]
	stur	d2, [x22, #36]
	ldr	w10, [x22, #44]
	cmp	w10, #5
	b.eq	LBB0_41
; %bb.35:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22, #12]
	tbnz	w9, #0, LBB0_68
; %bb.36:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #44]
	b	LBB0_69
LBB0_37:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	d1, [x22, #36]
	shl.2s	v0, v1, #1
	add.2s	v1, v1, v10
	mov.16b	v2, v0
	mov.s	v2[1], v1[1]
	stur	d2, [x22, #36]
	ldr	w10, [x22, #44]
	cmp	w10, #5
	b.eq	LBB0_41
; %bb.38:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22, #12]
	tbnz	w9, #0, LBB0_71
; %bb.39:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #44]
	b	LBB0_72
LBB0_40:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w9, w10, [x22, #36]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	lsl	w11, w9, #1
	add	x9, x10, #1
	stp	w11, w9, [x22, #36]
	ldr	w12, [x22, #44]
	cmp	w12, #5
	b.ne	LBB0_50
LBB0_41:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #44]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_42:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	d0, [x22, #36]
	shl.2s	v1, v0, #1
	add.2s	v0, v0, v10
	mov.s	v1[1], v0[1]
	stur	d1, [x22, #36]
	cbz	w24, LBB0_56
; %bb.43:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #8
	b.eq	LBB0_62
	b	LBB0_73
LBB0_44:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w8, w9, [x22, #36]
	add	w9, w9, #1
	mov	w10, #1
	bfi	w10, w8, #1, #31
	stp	w10, w9, [x22, #36]
	ldr	w8, [x22, #44]
	add	w8, w8, #1
	str	w8, [x22, #44]
	cmp	w8, #6
	b.ne	LBB0_73
; %bb.45:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #138
	b	LBB0_57
LBB0_46:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_58
LBB0_47:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #8]
	ldur	d0, [x22, #36]
	shl.2s	v1, v0, #1
	add.2s	v0, v0, v10
	mov.s	v1[1], v0[1]
	stur	d1, [x22, #36]
	str	wzr, [x22, #44]
	mov	w8, #139
	b	LBB0_57
LBB0_48:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_76
; %bb.49:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #255
	b	LBB0_77
LBB0_50:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w12, [x22, #12]
	tbz	w12, #0, LBB0_52
; %bb.51:                               ;   in Loop: Header=BB0_7 Depth=1
	orr	w11, w11, #0x1
	str	w11, [x22, #36]
LBB0_52:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w11, w12, #1
	str	w11, [x22, #12]
	subs	w8, w8, #1
	str	w8, [x22, #4]
	b.ne	LBB0_73
; %bb.53:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh14:
	adrp	x8, _isdnhdlc_encode.xfast_flag_value@PAGE
Lloh15:
	add	x8, x8, _isdnhdlc_encode.xfast_flag_value@PAGEOFF
	ldrb	w8, [x8, x9]
	str	w8, [x22, #32]
	ldr	w8, [x22, #56]
	cbz	w8, LBB0_79
; %bb.54:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #126
	str	w8, [x22, #32]
	mov	w8, #7
	sub	w8, w8, w10
	mov	w10, #129
	stp	w10, w8, [x22]
	cmp	w9, #8
	b.ne	LBB0_73
; %bb.55:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #131
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #140
LBB0_57:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w8, [x22]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_58:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #132
	str	w9, [x22]
LBB0_59:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x22, #8]
	cbz	w24, LBB0_63
LBB0_60:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #8
	b.ne	LBB0_73
; %bb.61:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #32]
	ldr	w9, [x22, #40]
	sub	w9, w28, w9
	asr	w8, w8, w9
	str	w8, [x22, #36]
LBB0_62:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w26, [x22]
	str	wzr, [x22, #44]
	str	d9, [x22, #16]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_63:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	ldr	w0, [x22, #32]
	cbnz	x8, LBB0_65
; %bb.64:                               ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_bitrev8
LBB0_65:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w24, #0
	str	w0, [x20], #4
	add	w23, w23, #1
	sub	w25, w25, #1
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_66:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22, #44]
	add	w9, w9, #1
	str	w9, [x22, #44]
	ldr	w9, [x22, #36]
	add	w9, w9, #1
	str	w9, [x22, #36]
LBB0_67:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w8, w8, #1
	str	w8, [x22, #12]
	ldr	w8, [x22, #4]
	sub	w8, w8, #1
	str	w8, [x22, #4]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_68:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, #1
	str	w10, [x22, #44]
	fmov	w10, s0
	orr	w10, w10, #0x1
	str	w10, [x22, #36]
LBB0_69:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w9, w9, #1
	str	w9, [x22, #12]
	subs	w8, w8, #1
	str	w8, [x22, #4]
	b.ne	LBB0_73
; %bb.70:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #126
	str	w8, [x22, #12]
	str	d13, [x22]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_71:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, #1
	str	w10, [x22, #44]
	fmov	w10, s0
	orr	w10, w10, #0x1
	str	w10, [x22, #36]
LBB0_72:                                ;   in Loop: Header=BB0_7 Depth=1
	asr	w9, w9, #1
	str	w9, [x22, #12]
	subs	w8, w8, #1
	str	w8, [x22, #4]
	b.eq	LBB0_78
LBB0_73:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_82
LBB0_74:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #40]
	cmp	w8, #7
	b.ne	LBB0_83
; %bb.75:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #36]
	mov	w9, #1
	bfi	w9, w8, #1, #31
	stp	w9, w28, [x22, #36]
	b	LBB0_84
LBB0_76:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #255
	bl	_bitrev8
LBB0_77:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
	str	w0, [x20], #4
	str	wzr, [x22, #4]
	add	w23, w23, #1
	str	wzr, [x22, #40]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_78:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #20]
	asr	w8, w8, #8
	str	w8, [x22, #12]
	str	d14, [x22]
	ldr	x8, [x22, #48]
	cbnz	x8, LBB0_74
	b	LBB0_82
LBB0_79:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_81
; %bb.80:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #140
	str	w8, [x22]
	str	wzr, [x22, #16]
	mov	w25, #1
	b	LBB0_74
LBB0_81:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #132
	str	w8, [x22]
	str	wzr, [x22, #16]
	mov	w25, #1
LBB0_82:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #40]
LBB0_83:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #8
	b.ne	LBB0_6
LBB0_84:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #24]
	ldr	w0, [x22, #36]
	cbnz	x8, LBB0_5
; %bb.85:                               ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_bitrev8
	b	LBB0_5
LBB0_86:
	mov	w23, #0
LBB0_87:
	ldr	w8, [x19]
	sub	w8, w8, w24
	str	w8, [x19]
LBB0_88:
	mov	x0, x23
	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
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	ret
LBB0_89:
	mov	w8, w25
	lsl	x2, x8, #2
Lloh16:
	adrp	x1, l_.memset_pattern@PAGE
Lloh17:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	x0, x20
	bl	_memset_pattern16
	mov	w23, #-1
	b	LBB0_88
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh6
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_89-LBB0_11)>>2
	.short	(LBB0_11-LBB0_11)>>2
	.short	(LBB0_22-LBB0_11)>>2
	.short	(LBB0_27-LBB0_11)>>2
	.short	(LBB0_59-LBB0_11)>>2
	.short	(LBB0_29-LBB0_11)>>2
	.short	(LBB0_34-LBB0_11)>>2
	.short	(LBB0_37-LBB0_11)>>2
	.short	(LBB0_40-LBB0_11)>>2
	.short	(LBB0_60-LBB0_11)>>2
	.short	(LBB0_42-LBB0_11)>>2
	.short	(LBB0_44-LBB0_11)>>2
	.short	(LBB0_47-LBB0_11)>>2
                                        ; -- End function
_isdnhdlc_encode.xfast_flag_value:      ; @isdnhdlc_encode.xfast_flag_value
	.ascii	"~?\237\317\347\363\371\374~"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

.subsections_via_symbols
