	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via686a_update_device
_via686a_update_device:                 ## @via686a_update_device
	.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
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	76(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rdx
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	addq	80(%rbx), %rax
	movq	(%rdx), %rdi
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	callq	_VIA686A_REG_IN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_VIA686A_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_VIA686A_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_VIA686A_REG_IN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_VIA686A_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_VIA686A_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$2, %edi
	callq	_VIA686A_REG_IN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_VIA686A_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_VIA686A_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	24(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$3, %edi
	callq	_VIA686A_REG_IN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$3, %edi
	callq	_VIA686A_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$3, %edi
	callq	_VIA686A_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	24(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$4, %edi
	callq	_VIA686A_REG_IN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$4, %edi
	callq	_VIA686A_REG_IN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$4, %edi
	callq	_VIA686A_REG_IN_MAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	24(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$1, %edi
	callq	_VIA686A_REG_FAN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	32(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_VIA686A_REG_FAN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$2, %edi
	callq	_VIA686A_REG_FAN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	32(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$2, %edi
	callq	_VIA686A_REG_FAN_MIN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_via686a_read_value
	movq	40(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_VIA686A_REG_TEMP@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shll	$2, %eax
	movq	48(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_VIA686A_REG_TEMP_OVER@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movq	56(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_VIA686A_REG_TEMP_HYST@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movq	64(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shll	$2, %eax
	movq	48(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movq	56(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r12), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movq	64(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shll	$2, %eax
	movq	48(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movq	56(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r12), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movq	64(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_VIA686A_REG_TEMP_LOW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shrl	$6, %eax
	andl	$3, %eax
	movq	48(%rbx), %rcx
	orl	%eax, (%rcx)
	movq	_VIA686A_REG_TEMP_LOW23@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shrl	$4, %eax
	andl	$3, %eax
	movq	48(%rbx), %rcx
	orl	%eax, 4(%rcx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shrl	$6, %eax
	andl	$3, %eax
	movq	48(%rbx), %rcx
	orl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_via686a_update_fan_div
	movq	_VIA686A_REG_ALARM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	movl	%eax, %r15d
	movq	_VIA686A_REG_ALARM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_via686a_read_value
	shll	$8, %eax
	orl	%r15d, %eax
	movl	%eax, 72(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%rbx)
	movl	$1, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_VIA686A_REG_TEMP,8,3           ## @VIA686A_REG_TEMP
	.comm	_VIA686A_REG_TEMP_OVER,8,3      ## @VIA686A_REG_TEMP_OVER
	.comm	_VIA686A_REG_TEMP_HYST,8,3      ## @VIA686A_REG_TEMP_HYST
	.comm	_VIA686A_REG_TEMP_LOW1,4,2      ## @VIA686A_REG_TEMP_LOW1
	.comm	_VIA686A_REG_TEMP_LOW23,4,2     ## @VIA686A_REG_TEMP_LOW23
	.comm	_VIA686A_REG_ALARM1,4,2         ## @VIA686A_REG_ALARM1
	.comm	_VIA686A_REG_ALARM2,4,2         ## @VIA686A_REG_ALARM2
	.no_dead_strip	_via686a_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via686a_update_device
_via686a_update_device:                 ; @via686a_update_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x20, x0, #76
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #80]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x1, x8, w9, sxtw
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
LBB0_2:
	mov	w0, #0
	bl	_VIA686A_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	w0, #0
	bl	_VIA686A_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8]
	mov	w0, #0
	bl	_VIA686A_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8]
	mov	w23, #1
	mov	w0, #1
	bl	_VIA686A_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_VIA686A_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_VIA686A_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
	mov	w0, #2
	bl	_VIA686A_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_VIA686A_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_VIA686A_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
	mov	w0, #3
	bl	_VIA686A_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #12]
	mov	w0, #3
	bl	_VIA686A_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #12]
	mov	w0, #3
	bl	_VIA686A_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, #12]
	mov	w0, #4
	bl	_VIA686A_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #16]
	mov	w0, #4
	bl	_VIA686A_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #16]
	mov	w0, #4
	bl	_VIA686A_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, #16]
	mov	w0, #1
	bl	_VIA686A_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8]
	mov	w0, #1
	bl	_VIA686A_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8]
	mov	w0, #2
	bl	_VIA686A_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8, #4]
	mov	w0, #2
	bl	_VIA686A_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8, #4]
Lloh5:
	adrp	x21, _VIA686A_REG_TEMP@GOTPAGE
Lloh6:
	ldr	x21, [x21, _VIA686A_REG_TEMP@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_via686a_read_value
	lsl	w8, w0, #2
	ldr	x9, [x19, #48]
	str	w8, [x9]
Lloh7:
	adrp	x24, _VIA686A_REG_TEMP_OVER@GOTPAGE
Lloh8:
	ldr	x24, [x24, _VIA686A_REG_TEMP_OVER@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #56]
	str	w0, [x8]
Lloh9:
	adrp	x25, _VIA686A_REG_TEMP_HYST@GOTPAGE
Lloh10:
	ldr	x25, [x25, _VIA686A_REG_TEMP_HYST@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #64]
	str	w0, [x8]
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_via686a_read_value
	lsl	w8, w0, #2
	ldr	x9, [x19, #48]
	str	w8, [x9, #4]
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #56]
	str	w0, [x8, #4]
	ldr	x8, [x25]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #64]
	str	w0, [x8, #4]
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_via686a_read_value
	lsl	w8, w0, #2
	ldr	x9, [x19, #48]
	str	w8, [x9, #8]
	ldr	x8, [x24]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #56]
	str	w0, [x8, #8]
	ldr	x8, [x25]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_via686a_read_value
	ldr	x8, [x19, #64]
	str	w0, [x8, #8]
Lloh11:
	adrp	x8, _VIA686A_REG_TEMP_LOW1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VIA686A_REG_TEMP_LOW1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_via686a_read_value
	ubfx	w8, w0, #6, #2
	ldr	x9, [x19, #48]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh14:
	adrp	x21, _VIA686A_REG_TEMP_LOW23@GOTPAGE
Lloh15:
	ldr	x21, [x21, _VIA686A_REG_TEMP_LOW23@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_via686a_read_value
	ubfx	w8, w0, #4, #2
	ldr	x9, [x19, #48]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_via686a_read_value
	ubfx	w8, w0, #6, #2
	ldr	x9, [x19, #48]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_via686a_update_fan_div
Lloh16:
	adrp	x8, _VIA686A_REG_ALARM1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VIA686A_REG_ALARM1@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_via686a_read_value
	mov	x21, x0
Lloh19:
	adrp	x8, _VIA686A_REG_ALARM2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VIA686A_REG_ALARM2@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_via686a_read_value
	orr	w8, w21, w0, lsl #8
	str	w8, [x19, #72]
	ldr	x8, [x22]
	str	x8, [x19, #80]
	str	w23, [x19]
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_VIA686A_REG_TEMP,8,3           ; @VIA686A_REG_TEMP
	.comm	_VIA686A_REG_TEMP_OVER,8,3      ; @VIA686A_REG_TEMP_OVER
	.comm	_VIA686A_REG_TEMP_HYST,8,3      ; @VIA686A_REG_TEMP_HYST
	.comm	_VIA686A_REG_TEMP_LOW1,4,2      ; @VIA686A_REG_TEMP_LOW1
	.comm	_VIA686A_REG_TEMP_LOW23,4,2     ; @VIA686A_REG_TEMP_LOW23
	.comm	_VIA686A_REG_ALARM1,4,2         ; @VIA686A_REG_ALARM1
	.comm	_VIA686A_REG_ALARM2,4,2         ; @VIA686A_REG_ALARM2
	.no_dead_strip	_via686a_update_device
.subsections_via_symbols
