	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_cc608
_process_cc608:                         ## @process_cc608
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	cmpl	%ebx, 4(%rax)
	jne	LBB0_2
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, (%rax)
	movl	%ebx, 4(%rax)
	cmpl	$16, %edx
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	andl	$-32, %eax
	cmpl	$64, %eax
	je	LBB0_35
LBB0_4:
	leal	-17(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_6
## %bb.5:
	movl	%ebx, %ecx
	andl	$-64, %ecx
	cmpl	$64, %ecx
	jne	LBB0_6
LBB0_35:
	movq	%r15, %rdi
	movl	%edx, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_pac                     ## TAILCALL
LBB0_6:
	cmpl	$17, %edx
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %ecx
	andl	$-16, %ecx
	cmpl	$32, %ecx
	je	LBB0_36
LBB0_8:
	cmpl	$23, %edx
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %ecx
	andl	$-2, %ecx
	cmpl	$46, %ecx
	jne	LBB0_10
LBB0_36:
	movq	%r15, %rdi
	movl	%edx, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_textattr                ## TAILCALL
LBB0_10:
	cmpl	$28, %edx
	ja	LBB0_27
## %bb.11:
	movl	$271581184, %ecx                ## imm = 0x10300000
	btl	%edx, %ecx
	jae	LBB0_27
## %bb.12:
	leal	-32(%rbx), %eax
	cmpl	$15, %eax
	ja	LBB0_38
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	addl	$-35, %ebx
	movl	%ebx, 8(%r15)
	movq	_CCMODE_ROLLUP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_27:
	cmpl	$2, %eax
	ja	LBB0_28
## %bb.37:
	movsbl	%dl, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_char                    ## TAILCALL
LBB0_28:
	cmpl	$32, %edx
	jl	LBB0_30
## %bb.29:
	movsbl	%dl, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_handle_char
	movq	(%r15), %rax
	movq	$0, (%rax)
	jmp	LBB0_34
LBB0_14:
	movq	_CCMODE_POPON@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	movl	%edx, %esi
	movl	$36, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_delete_end_of_row       ## TAILCALL
LBB0_18:
	movq	_CCMODE_PAINTON@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	movq	_CCMODE_TEXT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	jmp	LBB0_34
LBB0_20:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_edm                     ## TAILCALL
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ff_dlog
	cmpl	$0, 24(%r15)
	jne	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_reap_screen
LBB0_23:
	movq	%r15, %rdi
	callq	_roll_up
	movl	$0, 28(%r15)
	jmp	LBB0_34
LBB0_24:
	cmpl	$0, 24(%r15)
	je	LBB0_34
## %bb.25:
	movq	16(%r15), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 12(%r15)
	sete	%cl
	movl	$0, (%rax,%rcx,4)
	jmp	LBB0_34
LBB0_26:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ff_dlog
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_eoc                     ## TAILCALL
LBB0_30:
	cmpl	$23, %edx
	jne	LBB0_38
## %bb.31:
	leal	-33(%rbx), %eax
	cmpl	$2, %eax
	ja	LBB0_38
## %bb.32:
	addl	$-32, %ebx
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_handle_char
	decl	%ebx
	jne	LBB0_33
	jmp	LBB0_34
LBB0_38:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_dlog                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_38
	.long	L0_0_set_38
	.long	L0_0_set_38
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_38
	.long	L0_0_set_18
	.long	L0_0_set_38
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_CCMODE_POPON,4,2               ## @CCMODE_POPON
	.comm	_CCMODE_ROLLUP,4,2              ## @CCMODE_ROLLUP
	.comm	_CCMODE_PAINTON,4,2             ## @CCMODE_PAINTON
	.comm	_CCMODE_TEXT,4,2                ## @CCMODE_TEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"carriage return\n"

L_.str.1:                               ## @.str.1
	.asciz	"handle_eoc\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown command 0x%hhx 0x%hhx\n"

	.no_dead_strip	_process_cc608
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_cc608
_process_cc608:                         ; @process_cc608
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, w2
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, w3
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	stp	w2, w3, [x8]
	cmp	w2, #16
	b.ne	LBB0_5
; %bb.4:
	and	w8, w3, #0xffffffe0
	cmp	w8, #64
	b.eq	LBB0_7
LBB0_5:
	sub	w8, w2, #17
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.6:
	and	w9, w3, #0xffffffc0
	cmp	w9, #64
	b.ne	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_handle_pac
LBB0_8:
	cmp	w2, #17
	b.ne	LBB0_10
; %bb.9:
	and	w9, w3, #0xfffffff0
	cmp	w9, #32
	b.eq	LBB0_12
LBB0_10:
	cmp	w2, #23
	b.ne	LBB0_13
; %bb.11:
	and	w9, w3, #0xfffffffe
	cmp	w9, #46
	b.ne	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_handle_textattr
LBB0_13:
	cmp	w2, #28
	b.hi	LBB0_18
; %bb.14:
	mov	w9, #1
	lsl	w9, w9, w2
	mov	w10, #271581184
	tst	w9, w10
	b.eq	LBB0_18
; %bb.15:
	sub	w8, w3, #32
	cmp	w8, #15
	b.hi	LBB0_41
; %bb.16:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_17
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:
	sub	w8, w3, #35
	str	w8, [x19, #8]
Lloh2:
	adrp	x8, _CCMODE_ROLLUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CCMODE_ROLLUP@GOTPAGEOFF]
	b	LBB0_27
LBB0_18:
	cmp	w8, #2
	b.hi	LBB0_21
; %bb.19:
	sxtb	w1, w2
	mov	x0, x19
	mov	x2, x3
LBB0_20:
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_handle_char
LBB0_21:
	cmp	w2, #32
	b.lt	LBB0_35
; %bb.22:
	sxtb	w1, w2
	mov	x0, x19
	mov	x2, x3
	mov	x3, x20
	bl	_handle_char
	ldr	x8, [x19]
	str	xzr, [x8]
	b	LBB0_2
LBB0_23:
Lloh4:
	adrp	x8, _CCMODE_POPON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CCMODE_POPON@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:
	mov	x0, x19
	mov	x1, x2
	mov	w2, #36
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_handle_delete_end_of_row
LBB0_25:
Lloh6:
	adrp	x8, _CCMODE_PAINTON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCMODE_PAINTON@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh8:
	adrp	x8, _CCMODE_TEXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CCMODE_TEXT@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	b	LBB0_2
LBB0_28:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_handle_edm
LBB0_29:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_31
; %bb.30:
	mov	x0, x19
	mov	x1, x20
	bl	_reap_screen
LBB0_31:
	mov	x0, x19
	bl	_roll_up
	str	wzr, [x19, #28]
	b	LBB0_2
LBB0_32:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.33:
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #12]
	cmp	w9, #0
	cset	w9, eq
	str	wzr, [x8, w9, uxtw #2]
	b	LBB0_2
LBB0_34:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_handle_eoc
LBB0_35:
	cmp	w2, #23
	b.ne	LBB0_40
; %bb.36:
	sub	w21, w3, #33
	cmp	w21, #2
	b.hi	LBB0_40
; %bb.37:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #0
	mov	x3, x20
	bl	_handle_char
	cbz	w21, LBB0_2
; %bb.38:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #0
	mov	x3, x20
	bl	_handle_char
	cmp	w21, #1
	b.eq	LBB0_2
; %bb.39:
	mov	x0, x19
	mov	w1, #32
	mov	w2, #0
	b	LBB0_20
LBB0_40:
                                        ; kill: def $w3 killed $w3 killed $x3 def $x3
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_41:
	stp	x2, x3, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_17)>>2
	.byte	(LBB0_41-LBB0_17)>>2
	.byte	(LBB0_41-LBB0_17)>>2
	.byte	(LBB0_41-LBB0_17)>>2
	.byte	(LBB0_24-LBB0_17)>>2
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_41-LBB0_17)>>2
	.byte	(LBB0_25-LBB0_17)>>2
	.byte	(LBB0_41-LBB0_17)>>2
	.byte	(LBB0_26-LBB0_17)>>2
	.byte	(LBB0_28-LBB0_17)>>2
	.byte	(LBB0_29-LBB0_17)>>2
	.byte	(LBB0_32-LBB0_17)>>2
	.byte	(LBB0_34-LBB0_17)>>2
                                        ; -- End function
	.comm	_CCMODE_POPON,4,2               ; @CCMODE_POPON
	.comm	_CCMODE_ROLLUP,4,2              ; @CCMODE_ROLLUP
	.comm	_CCMODE_PAINTON,4,2             ; @CCMODE_PAINTON
	.comm	_CCMODE_TEXT,4,2                ; @CCMODE_TEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"carriage return\n"

l_.str.1:                               ; @.str.1
	.asciz	"handle_eoc\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown command 0x%hhx 0x%hhx\n"

	.no_dead_strip	_process_cc608
.subsections_via_symbols
