	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pac
_handle_pac:                            ## @handle_pac
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	(%rdx), %esi
	cmpl	$3, %esi
	jl	LBB0_3
## %bb.1:
	addl	$-2, %esi
	movl	%esi, (%r12)
	movq	_debug_608@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	(%r12), %esi
LBB0_3:
	movq	8(%r12), %rax
	movl	%esi, (%rax)
	movq	_cc_channel@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_15
## %bb.4:
	movq	_rowdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%r15b, %esi
	movl	%esi, %ecx
	andl	$7, %ecx
	movzbl	%r14b, %edx
	movl	%edx, %edi
	shrl	$5, %edi
	andl	$1, %edi
	leal	(%rdi,%rcx,2), %ecx
	movl	(%rax,%rcx,4), %r15d
	movq	_debug_608@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_6:
	movl	%r14d, %ecx
	andb	$-32, %cl
	movb	$-64, %al
	cmpb	$64, %cl
	je	LBB0_10
## %bb.7:
	movb	$-96, %al
	cmpb	$95, %r14b
	jle	LBB0_8
LBB0_10:
	addb	%r14b, %al
	movq	_pac2_attribs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	%al, %eax
	movq	(%rcx,%rax,8), %rsi
	movq	(%rsi), %rcx
	movq	8(%r12), %rax
	movq	%rcx, 8(%rax)
	movq	8(%rsi), %rdx
	movq	%rdx, 16(%rax)
	movl	16(%rsi), %r14d
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	_color_text@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movq	_font_text@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %r8d
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_hb_log
	movq	8(%r12), %rax
LBB0_12:
	movl	24(%rax), %ecx
	leal	-128(%rcx), %edx
	movl	$132, %esi
	subl	%ecx, %esi
	xorl	%ebx, %ebx
	cmpl	$3, %edx
	cmovbl	%esi, %ebx
	cmpl	%ebx, %r15d
	cmovgl	%r15d, %ebx
	movq	_MODE_TEXT@GOTPCREL(%rip), %rdx
	decl	%ebx
	cmpl	(%rdx), %ecx
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_move_roll_up
	movq	8(%r12), %rax
	movl	%ebx, 28(%rax)
LBB0_14:
	movl	%ebx, 32(%rax)
	movl	%r14d, 36(%rax)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_608,8,3                  ## @debug_608
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nChannel correction, now %d\n"

	.comm	_cc_channel,4,2                 ## @cc_channel
	.comm	_rowdata,8,3                    ## @rowdata
L_.str.1:                               ## @.str.1
	.asciz	"\rPAC: %02X %02X"

L_.str.2:                               ## @.str.2
	.asciz	"\rThis is not a PAC!!!!!\n"

	.comm	_pac2_attribs,8,3               ## @pac2_attribs
L_.str.3:                               ## @.str.3
	.asciz	"  --  Position: %d:%d, color: %s,  font: %s\n"

	.comm	_color_text,8,3                 ## @color_text
	.comm	_font_text,8,3                  ## @font_text
	.comm	_MODE_TEXT,4,2                  ## @MODE_TEXT
	.no_dead_strip	_handle_pac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pac
_handle_pac:                            ; @handle_pac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x23, _debug_608@GOTPAGE
Lloh1:
	ldr	x23, [x23, _debug_608@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	sub	w8, w8, #2
	str	w8, [x19]
	ldr	x9, [x23]
	cbz	x9, LBB0_3
; %bb.2:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	ldr	w8, [x19]
LBB0_3:
	ldr	x9, [x19, #8]
	str	w8, [x9]
Lloh4:
	adrp	x9, _cc_channel@GOTPAGE
Lloh5:
	ldr	x9, [x9, _cc_channel@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.4:
Lloh7:
	adrp	x8, _rowdata@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rowdata@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ubfiz	w9, w21, #1, #3
	bfxil	w9, w20, #5, #1
	ldr	w22, [x8, w9, uxtw #2]
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.5:
	stp	x21, x20, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
LBB0_6:
	and	w8, w20, #0xe0
	cmp	w8, #64
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #192
	b	LBB0_10
LBB0_8:
	sxtb	w8, w20
	cmp	w8, #95
	b.le	LBB0_16
; %bb.9:
	mov	w8, #160
LBB0_10:
Lloh12:
	adrp	x9, _pac2_attribs@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pac2_attribs@GOTPAGEOFF]
	add	w8, w8, w20
Lloh14:
	ldr	x9, [x9]
	and	x8, x8, #0xff
	ldr	x11, [x9, x8, lsl #3]
	ldr	x8, [x19, #8]
	ldp	x10, x9, [x11]
	stp	x10, x9, [x8, #8]
	ldr	w21, [x11, #16]
	ldr	x11, [x23]
	cbz	x11, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _color_text@GOTPAGE
Lloh16:
	ldr	x8, [x8, _color_text@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x8, [x8, x10, lsl #3]
Lloh18:
	adrp	x10, _font_text@GOTPAGE
Lloh19:
	ldr	x10, [x10, _font_text@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	w8, [x8]
	ldr	w9, [x10, x9, lsl #2]
	stp	x8, x9, [sp, #16]
	stp	x22, x21, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	ldr	x8, [x19, #8]
LBB0_12:
	ldr	w9, [x8, #24]
	sub	w10, w9, #128
	mov	w11, #132
	sub	w11, w11, w9
	cmp	w10, #3
	csel	w10, w11, wzr, lo
	cmp	w22, w10
	csel	w10, w22, w10, gt
Lloh23:
	adrp	x11, _MODE_TEXT@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MODE_TEXT@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	sub	w20, w10, #1
	cmp	w9, w11
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_move_roll_up
	ldr	x8, [x19, #8]
	str	w20, [x8, #28]
LBB0_14:
	stp	w20, w21, [x8, #32]
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	ldr	x8, [x23]
	cbz	x8, LBB0_15
; %bb.17:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_hb_log
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_608,8,3                  ; @debug_608
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nChannel correction, now %d\n"

	.comm	_cc_channel,4,2                 ; @cc_channel
	.comm	_rowdata,8,3                    ; @rowdata
l_.str.1:                               ; @.str.1
	.asciz	"\rPAC: %02X %02X"

l_.str.2:                               ; @.str.2
	.asciz	"\rThis is not a PAC!!!!!\n"

	.comm	_pac2_attribs,8,3               ; @pac2_attribs
l_.str.3:                               ; @.str.3
	.asciz	"  --  Position: %d:%d, color: %s,  font: %s\n"

	.comm	_color_text,8,3                 ; @color_text
	.comm	_font_text,8,3                  ; @font_text
	.comm	_MODE_TEXT,4,2                  ; @MODE_TEXT
	.no_dead_strip	_handle_pac
.subsections_via_symbols
