	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwmfreq_store
_pwmfreq_store:                         ## @pwmfreq_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	16(%rax), %rbx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_3
LBB0_2:
	movq	-56(%rbp), %r15
	movq	_pwmfreq_table@GOTPCREL(%rip), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_find_closest
	movl	%eax, %r15d
	movq	%r13, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r14), %rdi
	callq	_TEMP_TRANGE_REG
	movl	%eax, %edi
	callq	_adt7475_read
	movq	(%r13), %rcx
	movq	(%r14), %rdi
	andl	$-16, %eax
	orl	%r15d, %eax
	movl	%eax, (%rcx,%rdi,4)
	callq	_TEMP_TRANGE_REG
	movq	(%r13), %rcx
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_pwmfreq_table,4,2              ## @pwmfreq_table
	.no_dead_strip	_pwmfreq_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwmfreq_store
_pwmfreq_store:                         ; @pwmfreq_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x20, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	x21, [x0, #16]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_3
LBB0_2:
	ldr	x23, [sp, #8]
Lloh3:
	adrp	x8, _pwmfreq_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pwmfreq_table@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_find_closest
	mov	x23, x0
	add	x24, x22, #8
	mov	x0, x24
	bl	_mutex_lock
	ldr	x0, [x20]
	bl	_TEMP_TRANGE_REG
	bl	_adt7475_read
	ldr	x9, [x22]
	ldr	x8, [x20]
	and	w10, w0, #0xfffffff0
	orr	w10, w10, w23
	str	w10, [x9, x8, lsl #2]
	mov	x0, x8
	bl	_TEMP_TRANGE_REG
	mov	x1, x0
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	mov	x0, x24
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_pwmfreq_table,4,2              ; @pwmfreq_table
	.no_dead_strip	_pwmfreq_store
.subsections_via_symbols
