	.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
	pushq	%rax
	.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	48(%rax), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %r14
	movq	%r12, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_adt7468@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	cmpq	$11300, %rdx                    ## imm = 0x2C24
	jb	LBB0_4
## %bb.3:
	movq	_ADT7468_HFPWM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	8(%r12), %edx
	jmp	LBB0_6
LBB0_4:
	movl	40(%r12), %esi
	movl	44(%r12), %edi
	callq	_FREQ_TO_REG
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movl	%r13d, %edi
	callq	_LM85_REG_AFAN_RANGE
	movq	16(%r12), %rcx
	movq	32(%r12), %rdx
	movl	(%rdx,%r13,4), %edx
	shll	$4, %edx
	orl	(%rcx,%r13,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_lm85_write_value
	movq	(%r12), %rax
	movq	_adt7468@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_ADT7468_HFPWM@GOTPCREL(%rip), %rax
	movl	8(%r12), %edx
	orl	(%rax), %edx
LBB0_6:
	movl	%edx, 8(%r12)
	movq	_ADT7468_REG_CFG5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lm85_write_value
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adt7468,8,3                    ## @adt7468
	.comm	_ADT7468_HFPWM,4,2              ## @ADT7468_HFPWM
	.comm	_ADT7468_REG_CFG5,4,2           ## @ADT7468_REG_CFG5
	.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	x23, [x0]
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x20, [x0, #48]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_8
; %bb.1:
	add	x22, x21, #24
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x24, _adt7468@GOTPAGE
Lloh1:
	ldr	x24, [x24, _adt7468@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x2, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	lsr	x8, x2, #2
	cmp	x8, #2825
	b.lo	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ADT7468_HFPWM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADT7468_HFPWM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	bic	w2, w9, w8
	b	LBB0_6
LBB0_4:
	ldp	w1, w0, [x21, #40]
	bl	_FREQ_TO_REG
	ldr	x8, [x21, #16]
	lsl	x25, x23, #2
	str	w0, [x8, x25]
	mov	x0, x23
	bl	_LM85_REG_AFAN_RANGE
	mov	x1, x0
	ldr	x8, [x21, #32]
	ldr	w8, [x8, x25]
	ldr	x9, [x21, #16]
	ldr	w9, [x9, x25]
	orr	w2, w9, w8, lsl #4
	mov	x0, x20
	bl	_lm85_write_value
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _ADT7468_HFPWM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADT7468_HFPWM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w2, w9, w8
LBB0_6:
	str	w2, [x21, #8]
Lloh8:
	adrp	x8, _ADT7468_REG_CFG5@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADT7468_REG_CFG5@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lm85_write_value
LBB0_7:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_adt7468,8,3                    ; @adt7468
	.comm	_ADT7468_HFPWM,4,2              ; @ADT7468_HFPWM
	.comm	_ADT7468_REG_CFG5,4,2           ; @ADT7468_REG_CFG5
	.no_dead_strip	_pwm_freq_store
.subsections_via_symbols
