	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vt8231_update_device
_vt8231_update_device:                  ## @vt8231_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, %r15
	leaq	84(%rax), %rbx
	movq	%rbx, %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	88(%r15), %rax
	movq	(%rdx), %rdi
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_regvolt@GOTPCREL(%rip), %r14
	movq	_regvoltmin@GOTPCREL(%rip), %r12
	movq	_regvoltmax@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	$6, %rbx
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	96(%r15), %esi
	movl	%ebx, %edi
	callq	_ISVOLT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_5
LBB0_6:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_VT8231_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vt8231_read_value
	movq	32(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_VT8231_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vt8231_read_value
	movq	40(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_VT8231_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vt8231_read_value
	movq	32(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_VT8231_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vt8231_read_value
	movq	40(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	_VT8231_REG_TEMP_LOW01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movl	%eax, %ebx
	movl	%eax, %r14d
	sarl	$6, %r14d
	shrl	$2, %ebx
	andl	$12, %ebx
	movq	_VT8231_REG_TEMP_LOW25@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movl	%eax, %r12d
	shll	$4, %r12d
	orl	%r14d, %r12d
	orl	%ebx, %r12d
	movq	_regtempmin@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rbx
	incl	%r13d
	cmpq	$12, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	96(%r15), %esi
	movl	%r13d, %edi
	callq	_ISTEMP
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_regtemp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,2), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movl	%r12d, %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
                                        ## kill: def $eax killed $eax def $rax
	andl	$3, %edx
	leal	(%rdx,%rax,4), %eax
	movq	48(%r15), %rcx
	movl	%eax, (%rcx,%rbx,2)
	movq	_regtempmax@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,2), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movq	56(%r15), %rcx
	movl	%eax, (%rcx,%rbx,2)
	movq	(%r14), %rax
	movl	(%rax,%rbx,2), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movq	64(%r15), %rcx
	movl	%eax, (%rcx,%rbx,2)
	jmp	LBB0_9
LBB0_10:
	movq	_VT8231_REG_FANDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movq	72(%r15), %rdx
	movl	%ecx, (%rdx)
	sarl	$6, %eax
	movl	%eax, 4(%rdx)
	movq	_VT8231_REG_ALARM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	movl	%eax, %ebx
	movq	_VT8231_REG_ALARM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vt8231_read_value
	shll	$8, %eax
	orl	%ebx, %eax
	movl	%eax, 80(%r15)
	movq	32(%r15), %rcx
	movq	40(%r15), %rdx
	cmpl	$0, (%rcx)
	movl	(%rdx), %esi
	je	LBB0_11
## %bb.13:
	testl	%esi, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %rsi
	jne	LBB0_16
## %bb.14:
	andl	$-65, %eax
	jmp	LBB0_15
LBB0_1:
	cmpl	$0, (%r15)
	jne	LBB0_23
	jmp	LBB0_2
LBB0_11:
	testl	%esi, %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %rsi
	je	LBB0_16
## %bb.12:
	orl	$64, %eax
LBB0_15:
	movl	%eax, 80(%r15)
LBB0_16:
	cmpl	$0, 4(%rcx)
	movl	4(%rdx), %ecx
	je	LBB0_17
## %bb.19:
	testl	%ecx, %ecx
	jne	LBB0_22
## %bb.20:
	andl	$-129, %eax
	jmp	LBB0_21
LBB0_17:
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.18:
	orl	$128, %eax
LBB0_21:
	movl	%eax, 80(%r15)
LBB0_22:
	movq	(%rsi), %rax
	movq	%rax, 88(%r15)
	movl	$1, (%r15)
LBB0_23:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %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	_regvolt,8,3                    ## @regvolt
	.comm	_regvoltmin,8,3                 ## @regvoltmin
	.comm	_regvoltmax,8,3                 ## @regvoltmax
	.comm	_VT8231_REG_TEMP_LOW01,4,2      ## @VT8231_REG_TEMP_LOW01
	.comm	_VT8231_REG_TEMP_LOW25,4,2      ## @VT8231_REG_TEMP_LOW25
	.comm	_regtemp,8,3                    ## @regtemp
	.comm	_regtempmax,8,3                 ## @regtempmax
	.comm	_regtempmin,8,3                 ## @regtempmin
	.comm	_VT8231_REG_FANDIV,4,2          ## @VT8231_REG_FANDIV
	.comm	_VT8231_REG_ALARM1,4,2          ## @VT8231_REG_ALARM1
	.comm	_VT8231_REG_ALARM2,4,2          ## @VT8231_REG_ALARM2
	.no_dead_strip	_vt8231_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vt8231_update_device
_vt8231_update_device:                  ; @vt8231_update_device
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x20, x0, #84
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #88]
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
	cbz	x0, LBB0_12
LBB0_1:
	mov	x21, #0
Lloh5:
	adrp	x23, _regvolt@GOTPAGE
Lloh6:
	ldr	x23, [x23, _regvolt@GOTPAGEOFF]
Lloh7:
	adrp	x24, _regvoltmin@GOTPAGE
Lloh8:
	ldr	x24, [x24, _regvoltmin@GOTPAGEOFF]
Lloh9:
	adrp	x25, _regvoltmax@GOTPAGE
Lloh10:
	ldr	x25, [x25, _regvoltmax@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, #6
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #96]
	mov	x0, x21
	bl	_ISVOLT
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	lsl	x26, x21, #2
	ldr	w1, [x8, x26]
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, x26]
	ldr	x8, [x24]
	ldr	w1, [x8, x26]
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, x26]
	ldr	x8, [x25]
	ldr	w1, [x8, x26]
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, x26]
	b	LBB0_2
LBB0_5:
	mov	w0, #0
	bl	_VT8231_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8]
	mov	w0, #0
	bl	_VT8231_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8]
	mov	w0, #1
	bl	_VT8231_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_VT8231_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8, #4]
Lloh11:
	adrp	x8, _VT8231_REG_TEMP_LOW01@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VT8231_REG_TEMP_LOW01@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vt8231_read_value
	lsr	w8, w0, #2
	and	w8, w8, #0xc
	orr	w24, w8, w0, asr #6
Lloh14:
	adrp	x8, _VT8231_REG_TEMP_LOW25@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VT8231_REG_TEMP_LOW25@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vt8231_read_value
	mov	w23, #0
	mov	x21, #0
	orr	w24, w24, w0, lsl #4
Lloh17:
	adrp	x25, _regtemp@GOTPAGE
Lloh18:
	ldr	x25, [x25, _regtemp@GOTPAGEOFF]
Lloh19:
	adrp	x26, _regtempmax@GOTPAGE
Lloh20:
	ldr	x26, [x26, _regtempmax@GOTPAGEOFF]
Lloh21:
	adrp	x27, _regtempmin@GOTPAGE
Lloh22:
	ldr	x27, [x27, _regtempmin@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	add	w23, w23, #2
	cmp	x21, #6
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #96]
	mov	x0, x21
	bl	_ISTEMP
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	lsl	x28, x21, #2
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_vt8231_read_value
	asr	w8, w24, w23
	bfi	w8, w0, #2, #30
	ldr	x9, [x19, #48]
	str	w8, [x9, x28]
	ldr	x8, [x26]
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #56]
	str	w0, [x8, x28]
	ldr	x8, [x27]
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_vt8231_read_value
	ldr	x8, [x19, #64]
	str	w0, [x8, x28]
	b	LBB0_6
LBB0_9:
Lloh23:
	adrp	x8, _VT8231_REG_FANDIV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VT8231_REG_FANDIV@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vt8231_read_value
	ubfx	w8, w0, #4, #2
	ldr	x9, [x19, #72]
	asr	w10, w0, #6
	stp	w8, w10, [x9]
Lloh26:
	adrp	x8, _VT8231_REG_ALARM1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VT8231_REG_ALARM1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vt8231_read_value
	mov	x21, x0
Lloh29:
	adrp	x8, _VT8231_REG_ALARM2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VT8231_REG_ALARM2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vt8231_read_value
	orr	w8, w21, w0, lsl #8
	str	w8, [x19, #80]
	ldp	x9, x10, [x19, #32]
	ldr	w12, [x9]
	ldr	w11, [x10]
	cbz	w12, LBB0_13
; %bb.10:
	cbnz	w11, LBB0_16
; %bb.11:
	and	w8, w8, #0xffffffbf
	b	LBB0_15
LBB0_12:
	ldr	w8, [x19]
	cbnz	w8, LBB0_23
	b	LBB0_1
LBB0_13:
	cbz	w11, LBB0_16
; %bb.14:
	orr	w8, w8, #0x40
LBB0_15:
	str	w8, [x19, #80]
LBB0_16:
	ldr	w11, [x9, #4]
	ldr	w9, [x10, #4]
	cbz	w11, LBB0_19
; %bb.17:
	cbnz	w9, LBB0_22
; %bb.18:
	and	w8, w8, #0xffffff7f
	b	LBB0_21
LBB0_19:
	cbz	w9, LBB0_22
; %bb.20:
	orr	w8, w8, #0x80
LBB0_21:
	str	w8, [x19, #80]
LBB0_22:
	ldr	x8, [x22]
	str	x8, [x19, #88]
	mov	w8, #1
	str	w8, [x19]
LBB0_23:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_regvolt,8,3                    ; @regvolt
	.comm	_regvoltmin,8,3                 ; @regvoltmin
	.comm	_regvoltmax,8,3                 ; @regvoltmax
	.comm	_VT8231_REG_TEMP_LOW01,4,2      ; @VT8231_REG_TEMP_LOW01
	.comm	_VT8231_REG_TEMP_LOW25,4,2      ; @VT8231_REG_TEMP_LOW25
	.comm	_regtemp,8,3                    ; @regtemp
	.comm	_regtempmax,8,3                 ; @regtempmax
	.comm	_regtempmin,8,3                 ; @regtempmin
	.comm	_VT8231_REG_FANDIV,4,2          ; @VT8231_REG_FANDIV
	.comm	_VT8231_REG_ALARM1,4,2          ; @VT8231_REG_ALARM1
	.comm	_VT8231_REG_ALARM2,4,2          ; @VT8231_REG_ALARM2
	.no_dead_strip	_vt8231_update_device
.subsections_via_symbols
