	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_interval_store
_update_interval_store:                 ## @update_interval_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, %r15
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %r12
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	$125, %r15d
	movl	$125, %esi
	movl	$16000, %edx                    ## imm = 0x3E80
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	shlq	$2, %rax
	movabsq	$-5853766786057164379, %rcx     ## imm = 0xAEC33E1F671529A5
	mulq	%rcx
	movq	%rdx, %rdi
	shrq	$8, %rdi
	callq	___fls
	movl	%eax, %r13d
	movl	$7, %ebx
	subl	%eax, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_TMP401_CONVERSION_RATE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%r13d, %ecx
	shll	%cl, %r15d
	movl	%r15d, (%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMP401_CONVERSION_RATE_WRITE,4,2 ## @TMP401_CONVERSION_RATE_WRITE
	.no_dead_strip	_update_interval_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_interval_store
_update_interval_store:                 ; @update_interval_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
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	mov	w25, #125
	mov	w1, #125
	mov	w2, #16000
	bl	_clamp_val
	str	x0, [sp, #8]
	lsl	x8, x0, #2
	mov	x9, #10661
	movk	x9, #26389, lsl #16
	movk	x9, #15903, lsl #32
	movk	x9, #44739, lsl #48
	umulh	x8, x8, x9
	lsr	x0, x8, #8
	bl	___fls
	mov	x22, x0
	mov	w8, #7
	sub	w23, w8, w0
	add	x24, x20, #4
	mov	x0, x24
	bl	_mutex_lock
Lloh0:
	adrp	x8, _TMP401_CONVERSION_RATE_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMP401_CONVERSION_RATE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_i2c_smbus_write_byte_data
	lsl	w8, w25, w22
	str	w8, [x20]
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x19
LBB0_2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TMP401_CONVERSION_RATE_WRITE,4,2 ; @TMP401_CONVERSION_RATE_WRITE
	.no_dead_strip	_update_interval_store
.subsections_via_symbols
