	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77620_get_fps_period_reg_value
_max77620_get_fps_period_reg_value:     ## @max77620_get_fps_period_reg_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.max77620_get_fps_period_reg_value(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	jge	LBB0_9
## %bb.3:
	leal	(%rcx,%rcx), %edx
	movl	$1, %eax
	cmpl	%esi, %edx
	jge	LBB0_9
## %bb.4:
	leal	(,%rcx,4), %edx
	movl	$2, %eax
	cmpl	%esi, %edx
	jge	LBB0_9
## %bb.5:
	leal	(,%rcx,8), %edx
	movl	$3, %eax
	cmpl	%esi, %edx
	jge	LBB0_9
## %bb.6:
	movl	%ecx, %edx
	shll	$4, %edx
	movl	$4, %eax
	cmpl	%esi, %edx
	jge	LBB0_9
## %bb.7:
	movl	%ecx, %edx
	shll	$5, %edx
	movl	$5, %eax
	cmpl	%esi, %edx
	jge	LBB0_9
## %bb.8:
	shll	$6, %ecx
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	setl	%al
	orl	$6, %eax
LBB0_9:
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX20024_FPS_PERIOD_MIN_US,4,2 ## @MAX20024_FPS_PERIOD_MIN_US
	.comm	_MAX77620_FPS_PERIOD_MIN_US,4,2 ## @MAX77620_FPS_PERIOD_MIN_US
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max77620_get_fps_period_reg_value
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.max77620_get_fps_period_reg_value
l_switch.table.max77620_get_fps_period_reg_value:
	.quad	_MAX20024_FPS_PERIOD_MIN_US
	.quad	_MAX77620_FPS_PERIOD_MIN_US
	.quad	_MAX20024_FPS_PERIOD_MIN_US

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77620_get_fps_period_reg_value
_max77620_get_fps_period_reg_value:     ; @max77620_get_fps_period_reg_value
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.max77620_get_fps_period_reg_value@PAGE
Lloh1:
	add	x9, x9, l_switch.table.max77620_get_fps_period_reg_value@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_7
; %bb.2:
	cmp	w1, w8, lsl #1
	b.le	LBB0_8
; %bb.3:
	cmp	w1, w8, lsl #2
	b.le	LBB0_9
; %bb.4:
	cmp	w1, w8, lsl #3
	b.le	LBB0_10
; %bb.5:
	mov	w9, #4
	mov	w10, #5
	cmp	w1, w8, lsl #6
	mov	w11, #6
	cinc	w11, w11, gt
	cmp	w1, w8, lsl #5
	csel	w10, w10, w11, le
	cmp	w1, w8, lsl #4
	csel	w0, w9, w10, le
	ret
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	mov	w0, #1
	ret
LBB0_9:
	mov	w0, #2
	ret
LBB0_10:
	mov	w0, #3
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX20024_FPS_PERIOD_MIN_US,4,2 ; @MAX20024_FPS_PERIOD_MIN_US
	.comm	_MAX77620_FPS_PERIOD_MIN_US,4,2 ; @MAX77620_FPS_PERIOD_MIN_US
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max77620_get_fps_period_reg_value
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.max77620_get_fps_period_reg_value
l_switch.table.max77620_get_fps_period_reg_value:
	.quad	_MAX20024_FPS_PERIOD_MIN_US
	.quad	_MAX77620_FPS_PERIOD_MIN_US
	.quad	_MAX20024_FPS_PERIOD_MIN_US

.subsections_via_symbols
