	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rose_parse_ccitt
_rose_parse_ccitt:                      ## @rose_parse_ccitt
	.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
	movl	%edx, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	1(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	leaq	4(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movb	(%rdi), %al
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shrb	$6, %cl
	movzbl	%cl, %ecx
	movslq	(%r14,%rcx,4), %rcx
	addq	%r14, %rcx
	jmpq	*%rcx
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %r15
	movb	$2, %al
	movl	$2, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$3, %r15
	movb	$3, %al
	movl	$3, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %r15
	movb	$4, %al
	movl	$4, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	1(%r15), %r13d
	movq	_FAC_CCITT_DEST_NSAP@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	7(%r15), %rsi
	movq	_ROSE_ADDR_LEN@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	leaq	12(%r15), %rsi
	leaq	-10(%r13), %rax
	movzbl	%al, %edx
	leaq	-59(%rbp), %rdi
	callq	_memcpy
	movb	$0, -69(%rbp,%r13)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-59(%rbp), %rsi
	callq	_asc2ax
	movzbl	(%r15), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_FAC_CCITT_SRC_NSAP@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	7(%r15), %rsi
	movq	_ROSE_ADDR_LEN@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	leaq	12(%r15), %rsi
	leaq	-10(%r13), %rax
	movzbl	%al, %edx
	leaq	-59(%rbp), %rdi
	callq	_memcpy
	movb	$0, -69(%rbp,%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-59(%rbp), %rsi
	callq	_asc2ax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %eax
	addl	$2, %r13d
	addq	%rax, %r15
	addq	$2, %r15
	movl	%r13d, %eax
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	addb	%al, %r12b
	movzbl	(%r15), %eax
	testb	%al, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	subl	%r13d, %ebx
	testl	%ebx, %ebx
	jg	LBB0_1
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movzbl	%r12b, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_FAC_CCITT_DEST_NSAP,1,0        ## @FAC_CCITT_DEST_NSAP
	.comm	_ROSE_ADDR_LEN,1,0              ## @ROSE_ADDR_LEN
	.comm	_FAC_CCITT_SRC_NSAP,1,0         ## @FAC_CCITT_SRC_NSAP
	.no_dead_strip	_rose_parse_ccitt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rose_parse_ccitt
_rose_parse_ccitt:                      ; @rose_parse_ccitt
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	w25, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x22, x1, #8
	add	x23, x1, #1
	add	x24, x1, #4
Lloh3:
	adrp	x26, lJTI0_0@PAGE
Lloh4:
	add	x26, x26, lJTI0_0@PAGEOFF
	ldrb	w8, [x0]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #4
	mov	w8, #4
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w8, w25
	sub	w19, w19, w8
	ldrb	w8, [x21]
	cmp	w8, #0
	ccmp	w19, #0, #4, ne
	b.le	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w8, #6
	adr	x10, LBB0_1
	ldrb	w11, [x26, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #2
	mov	w8, #2
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #3
	mov	w8, #3
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w27, [x21, #1]
Lloh5:
	adrp	x9, _FAC_CCITT_DEST_NSAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FAC_CCITT_DEST_NSAP@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x21, #7
Lloh7:
	adrp	x8, _ROSE_ADDR_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ROSE_ADDR_LEN@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x20
	bl	_memcpy
	add	x1, x21, #12
	sub	x28, x27, #10
	and	w2, w28, #0xff
	add	x0, sp, #13
	bl	_memcpy
	add	x8, sp, #13
	strb	wzr, [x8, x28]
	add	x1, sp, #13
	mov	x0, x22
	bl	_asc2ax
	ldrb	w8, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x9, _FAC_CCITT_SRC_NSAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FAC_CCITT_SRC_NSAP@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x21, #7
Lloh11:
	adrp	x8, _ROSE_ADDR_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ROSE_ADDR_LEN@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x23
	bl	_memcpy
	add	x1, x21, #12
	sub	x28, x27, #10
	and	w2, w28, #0xff
	add	x0, sp, #13
	bl	_memcpy
	add	x8, sp, #13
	strb	wzr, [x8, x28]
	add	x1, sp, #13
	mov	x0, x24
	bl	_asc2ax
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w27, #2
	add	x21, x21, x8
	b	LBB0_2
LBB0_11:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	and	w0, w25, #0xff
	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_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_6-LBB0_1)>>2
                                        ; -- End function
	.comm	_FAC_CCITT_DEST_NSAP,1,0        ; @FAC_CCITT_DEST_NSAP
	.comm	_ROSE_ADDR_LEN,1,0              ; @ROSE_ADDR_LEN
	.comm	_FAC_CCITT_SRC_NSAP,1,0         ; @FAC_CCITT_SRC_NSAP
	.no_dead_strip	_rose_parse_ccitt
.subsections_via_symbols
