	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_freq
_store_pwm_freq:                        ## @store_pwm_freq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r12d
	leaq	16(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	_w83627hf@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_pwm_freq_to_reg_627hf
	movl	%eax, %ebx
	movq	8(%r13), %rax
	movl	%ebx, (%rax,%r14,4)
	movq	_W83627HF_REG_PWM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	(,%r14,4), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_w83627hf_read_value
	leaq	_store_pwm_freq.mask(%rip), %rcx
	andl	(%rcx,%r14,4), %eax
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	jmp	LBB0_3
LBB0_2:
	movl	%r12d, %edi
	callq	_pwm_freq_to_reg
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	_W83637HF_REG_PWM_FREQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
LBB0_3:
	callq	_w83627hf_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @store_pwm_freq.mask
_store_pwm_freq.mask:
	.long	248                             ## 0xf8
	.long	143                             ## 0x8f

	.comm	_w83627hf,8,3                   ## @w83627hf
	.comm	_W83627HF_REG_PWM_FREQ,4,2      ## @W83627HF_REG_PWM_FREQ
	.comm	_W83637HF_REG_PWM_FREQ,8,3      ## @W83637HF_REG_PWM_FREQ
	.no_dead_strip	_store_pwm_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_freq
_store_pwm_freq:                        ; @store_pwm_freq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x23, [x0]
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x22, x0
	add	x20, x21, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _w83627hf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _w83627hf@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x22
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_pwm_freq_to_reg_627hf
	ldr	x8, [x21, #8]
	lsl	x24, x23, #2
	str	w0, [x8, x24]
Lloh3:
	adrp	x8, _W83627HF_REG_PWM_FREQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W83627HF_REG_PWM_FREQ@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	lsl	w8, w23, #2
	lsl	w23, w0, w8
	mov	x0, x21
	mov	x1, x22
	bl	_w83627hf_read_value
Lloh6:
	adrp	x8, _store_pwm_freq.mask@PAGE
Lloh7:
	add	x8, x8, _store_pwm_freq.mask@PAGEOFF
	ldr	w8, [x8, x24]
	and	w8, w8, w0
	orr	w2, w8, w23
	mov	x0, x21
	mov	x1, x22
	b	LBB0_3
LBB0_2:
	bl	_pwm_freq_to_reg
	mov	x2, x0
	ldr	x8, [x21, #8]
	lsl	x9, x23, #2
	str	w0, [x8, x9]
Lloh8:
	adrp	x8, _W83637HF_REG_PWM_FREQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W83637HF_REG_PWM_FREQ@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w1, [x8, x9]
	mov	x0, x21
LBB0_3:
	bl	_w83627hf_write_value
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @store_pwm_freq.mask
_store_pwm_freq.mask:
	.long	248                             ; 0xf8
	.long	143                             ; 0x8f

	.comm	_w83627hf,8,3                   ; @w83627hf
	.comm	_W83627HF_REG_PWM_FREQ,4,2      ; @W83627HF_REG_PWM_FREQ
	.comm	_W83637HF_REG_PWM_FREQ,8,3      ; @W83637HF_REG_PWM_FREQ
	.no_dead_strip	_store_pwm_freq
.subsections_via_symbols
