	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc86c001_set_mode
_tc86c001_set_mode:                     ## @tc86c001_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	8(%rdi), %rax
	movslq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rdi)
	setne	%cl
	leaq	(%rax,%rcx,2), %rbx
	movq	%rbx, %rdi
	callq	_inw
	leal	-128(%r14), %edx
	xorl	%ecx, %ecx
	cmpl	$12, %edx
	ja	LBB0_2
## %bb.1:
	movslq	%edx, %rcx
	leaq	l_switch.table.tc86c001_set_mode(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
LBB0_2:
	cmpl	$140, %r14d
	movl	$63743, %edx                    ## imm = 0xF8FF
	movl	$65295, %esi                    ## imm = 0xFF0F
	cmovll	%edx, %esi
	andl	%esi, %eax
	orl	%ecx, %eax
	movl	%eax, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_outw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tc86c001_set_mode
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.tc86c001_set_mode
l_switch.table.tc86c001_set_mode:
	.long	192                             ## 0xc0
	.long	176                             ## 0xb0
	.long	160                             ## 0xa0
	.long	144                             ## 0x90
	.long	128                             ## 0x80
	.long	1024                            ## 0x400
	.long	768                             ## 0x300
	.long	512                             ## 0x200
	.long	256                             ## 0x100
	.long	0                               ## 0x0
	.long	112                             ## 0x70
	.long	96                              ## 0x60
	.long	80                              ## 0x50

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc86c001_set_mode
_tc86c001_set_mode:                     ; @tc86c001_set_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldp	x9, x8, [x0]
	ldrsw	x8, [x8]
	cmp	x9, #0
	cset	w9, ne
	add	x20, x8, w9, uxtw #1
	mov	x0, x20
	bl	_inw
	sub	w8, w19, #128
	cmp	w8, #12
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.tc86c001_set_mode@PAGE
Lloh1:
	add	x9, x9, l_switch.table.tc86c001_set_mode@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	mov	w9, #65295
	mov	w10, #63743
	cmp	w19, #140
	csel	w9, w10, w9, lt
	and	w9, w0, w9
	orr	w0, w8, w9
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_outw
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tc86c001_set_mode
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.tc86c001_set_mode
l_switch.table.tc86c001_set_mode:
	.long	192                             ; 0xc0
	.long	176                             ; 0xb0
	.long	160                             ; 0xa0
	.long	144                             ; 0x90
	.long	128                             ; 0x80
	.long	1024                            ; 0x400
	.long	768                             ; 0x300
	.long	512                             ; 0x200
	.long	256                             ; 0x100
	.long	0                               ; 0x0
	.long	112                             ; 0x70
	.long	96                              ; 0x60
	.long	80                              ; 0x50

.subsections_via_symbols
