	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_freq_store
_pwm_freq_store:                        ## @pwm_freq_store
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	16(%rax), %rbx
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_LM93_PWM_CTL4@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	%r13d, %edi
	callq	_LM93_REG_PWM_CTL
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rbx
	movl	%eax, %esi
	callq	_lm93_read_byte
	movl	%eax, %r15d
	andl	$248, %r15d
	movq	-72(%rbp), %rdi
	callq	_LM93_PWM_FREQ_TO_REG
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rbx), %rsi
	movl	%r14d, (%rax,%rsi,4)
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_lm93_disable_fan_smart_tach
	movq	(%rbx), %rsi
LBB0_3:
	movl	%r13d, %edi
	callq	_LM93_REG_PWM_CTL
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_lm93_write_byte
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM93_PWM_CTL4,8,3              ## @LM93_PWM_CTL4
	.no_dead_strip	_pwm_freq_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_freq_store
_pwm_freq_store:                        ; @pwm_freq_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x23, x0
	ldr	x20, [x0, #16]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_4
; %bb.1:
	add	x22, x23, #8
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x25, _LM93_PWM_CTL4@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LM93_PWM_CTL4@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x21
	bl	_LM93_REG_PWM_CTL
	mov	x1, x0
	mov	x0, x20
	bl	_lm93_read_byte
	and	w24, w0, #0xf8
	ldr	x0, [sp, #8]
	bl	_LM93_PWM_FREQ_TO_REG
	ldr	x8, [x23]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x1, [x25]
	orr	w24, w0, w24
	str	w24, [x8, x1, lsl #2]
	cbnz	w24, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_lm93_disable_fan_smart_tach
	ldr	x1, [x25]
LBB0_3:
	mov	x0, x21
	bl	_LM93_REG_PWM_CTL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_lm93_write_byte
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LM93_PWM_CTL4,8,3              ; @LM93_PWM_CTL4
	.no_dead_strip	_pwm_freq_store
.subsections_via_symbols
