	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_extended
_handle_extended:                       ## @handle_extended
	.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, %rbx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	(%rdx), %eax
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.1:
	addl	$-2, %eax
	movl	%eax, (%rbx)
	movq	_debug_608@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movzbl	%al, %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	(%rbx), %eax
LBB0_3:
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_cc_channel@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_debug_608@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movzbl	%r14b, %edx
	movzbl	%r15b, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
LBB0_7:
	movl	%r15d, %eax
	andb	$-2, %al
	movb	$1, %r12b
	cmpb	$18, %al
	jne	LBB0_17
## %bb.8:
	movl	%r14d, %eax
	andb	$-32, %al
	cmpb	$32, %al
	jne	LBB0_17
## %bb.9:
	cmpb	$19, %r15b
	je	LBB0_13
## %bb.10:
	cmpb	$18, %r15b
	jne	LBB0_11
## %bb.12:
	addb	$112, %r14b
	jmp	LBB0_14
LBB0_4:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_13:
	addb	$-112, %r14b
	jmp	LBB0_14
LBB0_11:
	xorl	%r14d, %r14d
LBB0_14:
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_16
## %bb.15:
	decq	%rcx
	movq	%rcx, 8(%rax)
LBB0_16:
	movzbl	%r14b, %edi
	movq	%rbx, %rsi
	callq	_write_char
LBB0_17:
	movzbl	%r12b, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
L_.str.1:                               ## @.str.1
	.asciz	"\rExtended: %02X %02X\n"

	.no_dead_strip	_handle_extended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_extended
_handle_extended:                       ; @handle_extended
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x2]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	sub	w8, w8, #2
	str	w8, [x19]
Lloh0:
	adrp	x9, _debug_608@GOTPAGE
Lloh1:
	ldr	x9, [x9, _debug_608@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
	and	w1, w8, #0xff
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	ldr	w8, [x19]
LBB0_3:
	ldr	x9, [x19, #8]
	str	w8, [x9]
Lloh5:
	adrp	x9, _cc_channel@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cc_channel@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.4:
Lloh8:
	adrp	x8, _debug_608@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug_608@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w8, w21
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_hb_log
LBB0_6:
	and	w8, w20, #0xfe
	mov	w0, #1
	cmp	w8, #18
	b.ne	LBB0_12
; %bb.7:
	and	w8, w21, #0xe0
	cmp	w8, #32
	b.ne	LBB0_12
; %bb.8:
	sub	w8, w21, #112
	add	w9, w21, #112
	cmp	w20, #18
	csel	w9, wzr, w9, ne
	cmp	w20, #19
	csel	w8, w8, w9, eq
	ldr	x9, [x19, #8]
	ldr	x10, [x9, #8]
	subs	x10, x10, #1
	b.lt	LBB0_10
; %bb.9:
	str	x10, [x9, #8]
LBB0_10:
	and	w0, w8, #0xff
	mov	x1, x19
	bl	_write_char
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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
l_.str.1:                               ; @.str.1
	.asciz	"\rExtended: %02X %02X\n"

	.no_dead_strip	_handle_extended
.subsections_via_symbols
