	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun8i_ui_scaler_coef_index
_sun8i_ui_scaler_coef_index:            ## @sun8i_ui_scaler_coef_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SUN8I_UI_SCALER_SCALE_FRAC@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$-3, %cl
	shrl	%cl, %edi
	movl	%edi, %eax
	shrl	$3, %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	andl	$7, %edi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_5:
	shrl	%edi
	orl	$8, %edi
LBB0_2:
	movl	%edi, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	movl	$14, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movl	$12, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movl	$13, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_SUN8I_UI_SCALER_SCALE_FRAC,4,2 ## @SUN8I_UI_SCALER_SCALE_FRAC
	.no_dead_strip	_sun8i_ui_scaler_coef_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun8i_ui_scaler_coef_index
_sun8i_ui_scaler_coef_index:            ; @sun8i_ui_scaler_coef_index
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SUN8I_UI_SCALER_SCALE_FRAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUN8I_UI_SCALER_SCALE_FRAC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #3
	lsr	w8, w0, w8
	lsr	w0, w8, #3
	cmp	w0, #4
	b.hi	LBB0_3
; %bb.1:
	and	w8, w8, #0x7
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x0]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_3:
	mov	w0, #14
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_5:
	lsr	w8, w8, #1
	orr	w0, w8, #0x8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #12
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_7:
	mov	w0, #13
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_SUN8I_UI_SCALER_SCALE_FRAC,4,2 ; @SUN8I_UI_SCALER_SCALE_FRAC
	.no_dead_strip	_sun8i_ui_scaler_coef_index
.subsections_via_symbols
