	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it87_update_device
_it87_update_device:                    ## @it87_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	100(%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	104(%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
	movq	_update_vbat@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_IT87_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_it87_read_value
	orl	$64, %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_it87_write_value
LBB0_4:
	movq	_NUM_VIN@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	movq	_NUM_VIN_LIMIT@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_IT87_REG_VIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx)
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_IT87_REG_VIN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_it87_read_value
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 4(%rcx)
	movl	%ebx, %edi
	callq	_IT87_REG_VIN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_it87_read_value
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_9
LBB0_10:
	movq	_NUM_FAN@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.11:
	xorl	%ebx, %ebx
	movq	_IT87_REG_FAN@GOTPCREL(%rip), %r13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_IT87_REG_FAN_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_has_16bit_fans
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_IT87_REG_FANX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	shll	$8, %eax
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	orl	%eax, (%rcx)
	movq	_IT87_REG_FANX_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	shll	$8, %eax
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	orl	%eax, 4(%rcx)
	jmp	LBB0_15
LBB0_16:
	movq	_NUM_TEMP@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_25
## %bb.17:
	xorl	%ebx, %ebx
	movq	_NUM_TEMP_LIMIT@GOTPCREL(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_25
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %r13d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %edi
	callq	_IT87_REG_TEMP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_it87_read_value
	movq	40(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_has_temp_offset
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_NUM_TEMP_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_IT87_REG_TEMP_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movq	40(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 12(%rcx)
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %edi
	callq	_IT87_REG_TEMP_LOW
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_it87_read_value
	movq	40(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 4(%rcx)
	movl	%ebx, %edi
	callq	_IT87_REG_TEMP_HIGH
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_it87_read_value
	movq	40(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_24
LBB0_25:
	testb	$7, 16(%r15)
	je	LBB0_28
## %bb.26:
	movq	%r15, %rdi
	callq	_has_16bit_fans
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	_IT87_REG_FAN_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, %ecx
	andl	$7, %ecx
	movq	48(%r15), %rdx
	movl	%ecx, (%rdx)
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$7, %ecx
	movl	%ecx, 4(%rdx)
	andl	$64, %eax
	shrl	$5, %eax
	orl	$1, %eax
	movl	%eax, 8(%rdx)
LBB0_28:
	movq	_IT87_REG_ALARM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, %r12d
	movq	_IT87_REG_ALARM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, %ebx
	shll	$8, %ebx
	orl	%r12d, %ebx
	movq	_IT87_REG_ALARM3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	shll	$16, %eax
	orl	%ebx, %eax
	movl	%eax, 56(%r15)
	movq	_IT87_REG_BEEP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, 60(%r15)
	movq	_IT87_REG_FAN_MAIN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, 64(%r15)
	movq	_IT87_REG_FAN_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, 68(%r15)
	movq	_NUM_PWM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_33
## %bb.29:
	xorl	%ebx, %ebx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_33
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	72(%r15), %r12d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_it87_update_pwm_ctrl
	jmp	LBB0_32
LBB0_33:
	movq	_IT87_REG_TEMP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, 76(%r15)
	movq	_IT87_REG_TEMP_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	movl	%eax, 80(%r15)
	movq	88(%r15), %rax
	movq	_it8712@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_35
## %bb.34:
	movq	_it8716@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
LBB0_35:
	movq	_IT87_REG_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	andl	$63, %eax
	movl	%eax, 96(%r15)
LBB0_36:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 104(%r15)
	movl	$1, (%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_1:
	cmpl	$0, (%r15)
	je	LBB0_2
LBB0_37:
	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	_update_vbat,8,3                ## @update_vbat
	.comm	_IT87_REG_CONFIG,4,2            ## @IT87_REG_CONFIG
	.comm	_NUM_VIN,4,2                    ## @NUM_VIN
	.comm	_IT87_REG_VIN,8,3               ## @IT87_REG_VIN
	.comm	_NUM_VIN_LIMIT,4,2              ## @NUM_VIN_LIMIT
	.comm	_NUM_FAN,4,2                    ## @NUM_FAN
	.comm	_IT87_REG_FAN_MIN,8,3           ## @IT87_REG_FAN_MIN
	.comm	_IT87_REG_FAN,8,3               ## @IT87_REG_FAN
	.comm	_IT87_REG_FANX,8,3              ## @IT87_REG_FANX
	.comm	_IT87_REG_FANX_MIN,8,3          ## @IT87_REG_FANX_MIN
	.comm	_NUM_TEMP,4,2                   ## @NUM_TEMP
	.comm	_NUM_TEMP_OFFSET,4,2            ## @NUM_TEMP_OFFSET
	.comm	_IT87_REG_TEMP_OFFSET,8,3       ## @IT87_REG_TEMP_OFFSET
	.comm	_NUM_TEMP_LIMIT,4,2             ## @NUM_TEMP_LIMIT
	.comm	_IT87_REG_FAN_DIV,4,2           ## @IT87_REG_FAN_DIV
	.comm	_IT87_REG_ALARM1,4,2            ## @IT87_REG_ALARM1
	.comm	_IT87_REG_ALARM2,4,2            ## @IT87_REG_ALARM2
	.comm	_IT87_REG_ALARM3,4,2            ## @IT87_REG_ALARM3
	.comm	_IT87_REG_BEEP_ENABLE,4,2       ## @IT87_REG_BEEP_ENABLE
	.comm	_IT87_REG_FAN_MAIN_CTRL,4,2     ## @IT87_REG_FAN_MAIN_CTRL
	.comm	_IT87_REG_FAN_CTL,4,2           ## @IT87_REG_FAN_CTL
	.comm	_NUM_PWM,4,2                    ## @NUM_PWM
	.comm	_IT87_REG_TEMP_ENABLE,4,2       ## @IT87_REG_TEMP_ENABLE
	.comm	_IT87_REG_TEMP_EXTRA,4,2        ## @IT87_REG_TEMP_EXTRA
	.comm	_it8712,8,3                     ## @it8712
	.comm	_it8716,8,3                     ## @it8716
	.comm	_IT87_REG_VID,4,2               ## @IT87_REG_VID
	.no_dead_strip	_it87_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function it87_update_device
_it87_update_device:                    ; @it87_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, #100
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x19, #104]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	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_35
LBB0_1:
Lloh6:
	adrp	x8, _update_vbat@GOTPAGE
Lloh7:
	ldr	x8, [x8, _update_vbat@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _IT87_REG_CONFIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IT87_REG_CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_it87_read_value
	orr	w2, w0, #0x40
	mov	x0, x19
	mov	x1, x21
	bl	_it87_write_value
LBB0_3:
Lloh12:
	adrp	x23, _NUM_VIN@GOTPAGE
Lloh13:
	ldr	x23, [x23, _NUM_VIN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x21, #0
Lloh14:
	adrp	x24, _IT87_REG_VIN@GOTPAGE
Lloh15:
	ldr	x24, [x24, _IT87_REG_VIN@GOTPAGEOFF]
Lloh16:
	adrp	x25, _NUM_VIN_LIMIT@GOTPAGE
Lloh17:
	ldr	x25, [x25, _NUM_VIN_LIMIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #4]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	str	w0, [x8]
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_IT87_REG_VIN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #8]
	lsl	x22, x21, #3
	ldr	x8, [x8, x22]
	str	w0, [x8, #4]
	mov	x0, x21
	bl	_IT87_REG_VIN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22]
	str	w0, [x8, #8]
	b	LBB0_5
LBB0_9:
Lloh18:
	adrp	x23, _NUM_FAN@GOTPAGE
Lloh19:
	ldr	x23, [x23, _NUM_FAN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x21, #0
Lloh20:
	adrp	x24, _IT87_REG_FAN_MIN@GOTPAGE
Lloh21:
	ldr	x24, [x24, _IT87_REG_FAN_MIN@GOTPAGEOFF]
Lloh22:
	adrp	x25, _IT87_REG_FAN@GOTPAGE
Lloh23:
	ldr	x25, [x25, _IT87_REG_FAN@GOTPAGEOFF]
Lloh24:
	adrp	x26, _IT87_REG_FANX@GOTPAGE
Lloh25:
	ldr	x26, [x26, _IT87_REG_FANX@GOTPAGEOFF]
Lloh26:
	adrp	x27, _IT87_REG_FANX_MIN@GOTPAGE
Lloh27:
	ldr	x27, [x27, _IT87_REG_FANX_MIN@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #16]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24]
	lsl	x28, x21, #2
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #24]
	lsl	x22, x21, #3
	ldr	x8, [x8, x22]
	str	w0, [x8, #4]
	ldr	x8, [x25]
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22]
	str	w0, [x8]
	mov	x0, x19
	bl	_has_16bit_fans
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22]
	ldr	w9, [x8]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8]
	ldr	x8, [x27]
	ldr	w1, [x8, x28]
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x22]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8, #4]
	b	LBB0_11
LBB0_15:
Lloh28:
	adrp	x23, _NUM_TEMP@GOTPAGE
Lloh29:
	ldr	x23, [x23, _NUM_TEMP@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.16:
	mov	x21, #0
Lloh30:
	adrp	x24, _NUM_TEMP_OFFSET@GOTPAGE
Lloh31:
	ldr	x24, [x24, _NUM_TEMP_OFFSET@GOTPAGEOFF]
Lloh32:
	adrp	x25, _IT87_REG_TEMP_OFFSET@GOTPAGE
Lloh33:
	ldr	x25, [x25, _IT87_REG_TEMP_OFFSET@GOTPAGEOFF]
Lloh34:
	adrp	x26, _NUM_TEMP_LIMIT@GOTPAGE
Lloh35:
	ldr	x26, [x26, _NUM_TEMP_LIMIT@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #32]
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	bl	_IT87_REG_TEMP
	mov	x1, x0
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x21, lsl #3]
	str	w0, [x8]
	mov	x0, x19
	bl	_has_temp_offset
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrsw	x8, [x24]
	cmp	x21, x8
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x25]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x21, lsl #3]
	str	w0, [x8, #12]
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	ldrsw	x8, [x26]
	cmp	x21, x8
	b.ge	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
	bl	_IT87_REG_TEMP_LOW
	mov	x1, x0
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #40]
	lsl	x22, x21, #3
	ldr	x8, [x8, x22]
	str	w0, [x8, #4]
	mov	x0, x21
	bl	_IT87_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x19
	bl	_it87_read_value
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x22]
	str	w0, [x8, #8]
	b	LBB0_17
LBB0_24:
	ldrb	w8, [x19, #16]
	tst	w8, #0x7
	b.eq	LBB0_27
; %bb.25:
	mov	x0, x19
	bl	_has_16bit_fans
	cbnz	x0, LBB0_27
; %bb.26:
Lloh36:
	adrp	x8, _IT87_REG_FAN_DIV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IT87_REG_FAN_DIV@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	and	w8, w0, #0x7
	ldr	x9, [x19, #48]
	ubfx	w10, w0, #3, #3
	stp	w8, w10, [x9]
	tst	w0, #0x40
	mov	w8, #3
	csinc	w8, w8, wzr, ne
	str	w8, [x9, #8]
LBB0_27:
Lloh39:
	adrp	x8, _IT87_REG_ALARM1@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IT87_REG_ALARM1@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	mov	x21, x0
Lloh42:
	adrp	x8, _IT87_REG_ALARM2@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IT87_REG_ALARM2@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	orr	w21, w21, w0, lsl #8
Lloh45:
	adrp	x8, _IT87_REG_ALARM3@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IT87_REG_ALARM3@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	orr	w8, w21, w0, lsl #16
	str	w8, [x19, #56]
Lloh48:
	adrp	x8, _IT87_REG_BEEP_ENABLE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IT87_REG_BEEP_ENABLE@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	str	w0, [x19, #60]
Lloh51:
	adrp	x8, _IT87_REG_FAN_MAIN_CTRL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IT87_REG_FAN_MAIN_CTRL@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	str	w0, [x19, #64]
Lloh54:
	adrp	x8, _IT87_REG_FAN_CTL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _IT87_REG_FAN_CTL@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	str	w0, [x19, #68]
Lloh57:
	adrp	x22, _NUM_PWM@GOTPAGE
Lloh58:
	ldr	x22, [x22, _NUM_PWM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.28:
	mov	w21, #0
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_32
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x19, #72]
	mov	x0, x21
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_it87_update_pwm_ctrl
	b	LBB0_29
LBB0_32:
Lloh59:
	adrp	x8, _IT87_REG_TEMP_ENABLE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IT87_REG_TEMP_ENABLE@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	str	w0, [x19, #76]
Lloh62:
	adrp	x8, _IT87_REG_TEMP_EXTRA@GOTPAGE
Lloh63:
	ldr	x8, [x8, _IT87_REG_TEMP_EXTRA@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	str	w0, [x19, #80]
	ldr	x8, [x19, #88]
Lloh65:
	adrp	x9, _it8712@GOTPAGE
Lloh66:
	ldr	x9, [x9, _it8712@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
Lloh68:
	adrp	x10, _it8716@GOTPAGE
Lloh69:
	ldr	x10, [x10, _it8716@GOTPAGEOFF]
Lloh70:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_34
; %bb.33:
Lloh71:
	adrp	x8, _IT87_REG_VID@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IT87_REG_VID@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_it87_read_value
	and	w8, w0, #0x3f
	str	w8, [x19, #96]
LBB0_34:
Lloh74:
	adrp	x8, _jiffies@GOTPAGE
Lloh75:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	str	x8, [x19, #104]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_36
LBB0_35:
	ldr	w8, [x19]
	cbz	w8, LBB0_1
LBB0_36:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_update_vbat,8,3                ; @update_vbat
	.comm	_IT87_REG_CONFIG,4,2            ; @IT87_REG_CONFIG
	.comm	_NUM_VIN,4,2                    ; @NUM_VIN
	.comm	_IT87_REG_VIN,8,3               ; @IT87_REG_VIN
	.comm	_NUM_VIN_LIMIT,4,2              ; @NUM_VIN_LIMIT
	.comm	_NUM_FAN,4,2                    ; @NUM_FAN
	.comm	_IT87_REG_FAN_MIN,8,3           ; @IT87_REG_FAN_MIN
	.comm	_IT87_REG_FAN,8,3               ; @IT87_REG_FAN
	.comm	_IT87_REG_FANX,8,3              ; @IT87_REG_FANX
	.comm	_IT87_REG_FANX_MIN,8,3          ; @IT87_REG_FANX_MIN
	.comm	_NUM_TEMP,4,2                   ; @NUM_TEMP
	.comm	_NUM_TEMP_OFFSET,4,2            ; @NUM_TEMP_OFFSET
	.comm	_IT87_REG_TEMP_OFFSET,8,3       ; @IT87_REG_TEMP_OFFSET
	.comm	_NUM_TEMP_LIMIT,4,2             ; @NUM_TEMP_LIMIT
	.comm	_IT87_REG_FAN_DIV,4,2           ; @IT87_REG_FAN_DIV
	.comm	_IT87_REG_ALARM1,4,2            ; @IT87_REG_ALARM1
	.comm	_IT87_REG_ALARM2,4,2            ; @IT87_REG_ALARM2
	.comm	_IT87_REG_ALARM3,4,2            ; @IT87_REG_ALARM3
	.comm	_IT87_REG_BEEP_ENABLE,4,2       ; @IT87_REG_BEEP_ENABLE
	.comm	_IT87_REG_FAN_MAIN_CTRL,4,2     ; @IT87_REG_FAN_MAIN_CTRL
	.comm	_IT87_REG_FAN_CTL,4,2           ; @IT87_REG_FAN_CTL
	.comm	_NUM_PWM,4,2                    ; @NUM_PWM
	.comm	_IT87_REG_TEMP_ENABLE,4,2       ; @IT87_REG_TEMP_ENABLE
	.comm	_IT87_REG_TEMP_EXTRA,4,2        ; @IT87_REG_TEMP_EXTRA
	.comm	_it8712,8,3                     ; @it8712
	.comm	_it8716,8,3                     ; @it8716
	.comm	_IT87_REG_VID,4,2               ; @IT87_REG_VID
	.no_dead_strip	_it87_update_device
.subsections_via_symbols
