	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77620_set_fps_param
_max77620_set_fps_param:                ## @max77620_set_fps_param
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	_MAX77620_GPIO1@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%esi, (%rax)
	jg	LBB0_12
## %bb.1:
	movl	%esi, %ecx
	movq	_MAX77620_GPIO3@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_12
## %bb.2:
	movq	%rdi, %r14
	leal	-128(%rdx), %edi
	cmpl	$5, %edi
	ja	LBB0_7
## %bb.3:
	movq	8(%r14), %rax
	movslq	%ecx, %rsi
	movl	$9, %ebx
	btl	%edi, %ebx
	jb	LBB0_8
## %bb.4:
	movl	$18, %ebx
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rax,%rsi,8), %rax
	xorl	%esi, %esi
	btl	%edi, %ebx
	jae	LBB0_6
## %bb.5:
	cmpl	$129, %edx
	sete	%sil
	leaq	(%rax,%rsi,4), %rax
	addq	$8, %rax
	movq	_MAX77620_FPS_PU_PERIOD_SHIFT@GOTPCREL(%rip), %rdx
	movq	_MAX77620_FPS_PU_PERIOD_MASK@GOTPCREL(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rax,%rsi,8), %rdi
	cmpl	$128, %edx
	leaq	4(%rax,%rsi,8), %rax
	cmovneq	%rdi, %rax
	movq	_MAX77620_FPS_SRC_SHIFT@GOTPCREL(%rip), %rdx
	movq	_MAX77620_FPS_SRC_MASK@GOTPCREL(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	cmpl	$130, %edx
	sete	%sil
	leaq	(%rax,%rsi,4), %rax
	addq	$16, %rax
	movq	_MAX77620_FPS_PD_PERIOD_SHIFT@GOTPCREL(%rip), %rdx
	movq	_MAX77620_FPS_PD_PERIOD_MASK@GOTPCREL(%rip), %rsi
LBB0_9:
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	_MAX77620_REG_FPS_GPIO1@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	leal	(%rcx,%rdi), %r15d
	decl	%r15d
	movb	(%rdx), %cl
	movl	(%rsi), %edx
	movl	4(%r14), %edi
	shll	%cl, %eax
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_dev_err
	jmp	LBB0_12
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77620_GPIO1,4,2             ## @MAX77620_GPIO1
	.comm	_MAX77620_GPIO3,4,2             ## @MAX77620_GPIO3
	.comm	_MAX77620_REG_FPS_GPIO1,4,2     ## @MAX77620_REG_FPS_GPIO1
	.comm	_MAX77620_FPS_SRC_MASK,4,2      ## @MAX77620_FPS_SRC_MASK
	.comm	_MAX77620_FPS_SRC_SHIFT,4,2     ## @MAX77620_FPS_SRC_SHIFT
	.comm	_MAX77620_FPS_PU_PERIOD_MASK,4,2 ## @MAX77620_FPS_PU_PERIOD_MASK
	.comm	_MAX77620_FPS_PU_PERIOD_SHIFT,4,2 ## @MAX77620_FPS_PU_PERIOD_SHIFT
	.comm	_MAX77620_FPS_PD_PERIOD_MASK,4,2 ## @MAX77620_FPS_PD_PERIOD_MASK
	.comm	_MAX77620_FPS_PD_PERIOD_SHIFT,4,2 ## @MAX77620_FPS_PD_PERIOD_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameter %d for pin %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Reg 0x%02x update failed %d\n"

	.no_dead_strip	_max77620_set_fps_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77620_set_fps_param
_max77620_set_fps_param:                ; @max77620_set_fps_param
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _MAX77620_GPIO1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77620_GPIO1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX77620_GPIO3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX77620_GPIO3@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #8, le
	b.ge	LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_9
LBB0_2:
	mov	x3, x1
	mov	x19, x0
	sub	w9, w2, #128
	cmp	w9, #5
	b.hi	LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	sxtw	x10, w3
	mov	w11, #1
	lsl	w9, w11, w9
	mov	w11, #9
	tst	w9, w11
	b.ne	LBB0_5
; %bb.4:
	mov	w11, #18
	mov	w12, #24
	madd	x12, x10, x12, x8
	add	x13, x12, #8
	add	x12, x12, #12
	cmp	w2, #129
	csel	x12, x12, x13, eq
Lloh6:
	adrp	x13, _MAX77620_FPS_PU_PERIOD_SHIFT@GOTPAGE
Lloh7:
	ldr	x13, [x13, _MAX77620_FPS_PU_PERIOD_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x14, _MAX77620_FPS_PU_PERIOD_MASK@GOTPAGE
Lloh9:
	ldr	x14, [x14, _MAX77620_FPS_PU_PERIOD_MASK@GOTPAGEOFF]
	mov	w15, #24
	madd	x8, x10, x15, x8
	add	x10, x8, #16
	add	x8, x8, #20
	cmp	w2, #130
	csel	x8, x8, x10, eq
Lloh10:
	adrp	x15, _MAX77620_FPS_PD_PERIOD_SHIFT@GOTPAGE
Lloh11:
	ldr	x15, [x15, _MAX77620_FPS_PD_PERIOD_SHIFT@GOTPAGEOFF]
Lloh12:
	adrp	x16, _MAX77620_FPS_PD_PERIOD_MASK@GOTPAGE
Lloh13:
	ldr	x16, [x16, _MAX77620_FPS_PD_PERIOD_MASK@GOTPAGEOFF]
	tst	w9, w11
	csel	x10, x12, x8, ne
	csel	x8, x14, x16, ne
	csel	x9, x13, x15, ne
	ldr	w10, [x10]
	tbz	w10, #31, LBB0_6
	b	LBB0_1
LBB0_5:
	mov	w9, #24
	madd	x8, x10, x9, x8
	add	x9, x8, #4
	cmp	w2, #128
	csel	x10, x9, x8, eq
Lloh14:
	adrp	x9, _MAX77620_FPS_SRC_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX77620_FPS_SRC_SHIFT@GOTPAGEOFF]
Lloh16:
	adrp	x8, _MAX77620_FPS_SRC_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX77620_FPS_SRC_MASK@GOTPAGEOFF]
	ldr	w10, [x10]
	tbnz	w10, #31, LBB0_1
LBB0_6:
Lloh18:
	adrp	x11, _MAX77620_REG_FPS_GPIO1@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MAX77620_REG_FPS_GPIO1@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	add	w11, w3, w11
	sub	w21, w11, #1
	ldr	w9, [x9]
	ldr	w2, [x8]
	ldr	w0, [x19, #4]
	lsl	w3, w10, w9
	mov	x1, x21
	bl	_regmap_update_bits
	mov	x20, x0
	tbz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dev_err
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_dev_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77620_GPIO1,4,2             ; @MAX77620_GPIO1
	.comm	_MAX77620_GPIO3,4,2             ; @MAX77620_GPIO3
	.comm	_MAX77620_REG_FPS_GPIO1,4,2     ; @MAX77620_REG_FPS_GPIO1
	.comm	_MAX77620_FPS_SRC_MASK,4,2      ; @MAX77620_FPS_SRC_MASK
	.comm	_MAX77620_FPS_SRC_SHIFT,4,2     ; @MAX77620_FPS_SRC_SHIFT
	.comm	_MAX77620_FPS_PU_PERIOD_MASK,4,2 ; @MAX77620_FPS_PU_PERIOD_MASK
	.comm	_MAX77620_FPS_PU_PERIOD_SHIFT,4,2 ; @MAX77620_FPS_PU_PERIOD_SHIFT
	.comm	_MAX77620_FPS_PD_PERIOD_MASK,4,2 ; @MAX77620_FPS_PD_PERIOD_MASK
	.comm	_MAX77620_FPS_PD_PERIOD_SHIFT,4,2 ; @MAX77620_FPS_PD_PERIOD_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter %d for pin %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Reg 0x%02x update failed %d\n"

	.no_dead_strip	_max77620_set_fps_param
.subsections_via_symbols
