	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function w83791d_update_device
LCPI0_0:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	7                               ## 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_w83791d_update_device:                 ## @w83791d_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
	movq	%rdi, %r12
	callq	_to_i2c_client
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	leaq	120(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	addq	128(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	jne	LBB0_12
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	_NUMBER_OF_VIN@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_W83791D_REG_IN_MIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_W83791D_REG_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_W83791D_REG_IN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_NUMBER_OF_FANIN@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_W83791D_REG_FAN_MIN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_W83791D_REG_FAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	32(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	40(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	_W83791D_REG_FAN_DIV@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r13d
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%r12d, %ecx
	shrl	$4, %ecx
	movq	48(%r15), %rdx
	shrl	$6, %r12d
	shrl	$6, %r13d
	movd	%ecx, %xmm0
	pinsrd	$1, %r12d, %xmm0
	pinsrd	$2, %r13d, %xmm0
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rdx)
	shrl	$4, %eax
	andl	$7, %eax
	movl	%eax, 16(%rdx)
	movq	_W83791D_REG_VBAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	48(%r15), %rcx
	movl	%eax, %edx
	shrl	$3, %edx
	andl	$4, %edx
	orl	%edx, (%rcx)
	movl	%eax, %edx
	shrl	$4, %edx
	andl	$4, %edx
	orl	%edx, 4(%rcx)
	shrl	$5, %eax
	andl	$4, %eax
	orl	%eax, 8(%rcx)
	movq	_NUMBER_OF_PWM@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	movq	_W83791D_REG_PWM@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	56(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	_W83791D_REG_FAN_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%r12d, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	movq	64(%r15), %rdx
	movl	%ecx, (%rdx)
	shrl	$4, %r12d
	andl	$3, %r12d
	movl	%r12d, 4(%rdx)
	shrl	$2, %eax
	andl	$3, %eax
	movl	%eax, 8(%rdx)
	movq	_W83791D_REG_TEMP_TARGET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	andl	$127, %eax
	movq	72(%r15), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	andl	$127, %eax
	movq	72(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	andl	$127, %eax
	movq	72(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	_W83791D_REG_TEMP_TOL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%r12d, %ecx
	andl	$15, %ecx
	movq	80(%r15), %rdx
	movl	%ecx, (%rdx)
	shrl	$4, %r12d
	andl	$15, %r12d
	movl	%r12d, 4(%rdx)
	andl	$15, %eax
	movl	%eax, 8(%rdx)
	movq	_W83791D_REG_TEMP1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	88(%r15), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	88(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movq	88(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	_W83791D_REG_TEMP_ADD@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	shll	$8, %r12d
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	orl	%r12d, %eax
	movq	96(%r15), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	shll	$8, %r12d
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	12(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	orl	%r12d, %eax
	movq	96(%r15), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	16(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	shll	$8, %r12d
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	20(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	orl	%r12d, %eax
	movq	96(%r15), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	shll	$8, %r12d
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	orl	%r12d, %eax
	movq	96(%r15), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	shll	$8, %r12d
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	12(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	orl	%r12d, %eax
	movq	96(%r15), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	16(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	shll	$8, %r12d
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	20(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	orl	%r12d, %eax
	movq	96(%r15), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx)
	movq	_W83791D_REG_ALARM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	movq	_W83791D_REG_ALARM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r13d
	shll	$8, %r13d
	addl	%r12d, %r13d
	movq	_W83791D_REG_ALARM3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	shll	$16, %eax
	addl	%r13d, %eax
	movl	%eax, 104(%r15)
	movq	_W83791D_REG_BEEP_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	movl	%eax, %r13d
	shll	$8, %r13d
	addl	%r12d, %r13d
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	shll	$16, %eax
	addl	%r13d, %eax
	movl	%eax, 108(%r15)
	movq	_GLOBAL_BEEP_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btl	%ecx, %eax
	setb	%dl
	movl	%edx, 112(%r15)
	movq	_W83791D_REG_VID_FANDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	andl	$15, %eax
	movl	%eax, 116(%r15)
	movq	_W83791D_REG_DID_VID4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_w83791d_read
	shll	$4, %eax
	andl	$16, %eax
	orl	%eax, 116(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 128(%r15)
	movl	$1, (%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting w83791d device update\n"

	.comm	_NUMBER_OF_VIN,4,2              ## @NUMBER_OF_VIN
	.comm	_W83791D_REG_IN,8,3             ## @W83791D_REG_IN
	.comm	_W83791D_REG_IN_MAX,8,3         ## @W83791D_REG_IN_MAX
	.comm	_W83791D_REG_IN_MIN,8,3         ## @W83791D_REG_IN_MIN
	.comm	_NUMBER_OF_FANIN,4,2            ## @NUMBER_OF_FANIN
	.comm	_W83791D_REG_FAN,8,3            ## @W83791D_REG_FAN
	.comm	_W83791D_REG_FAN_MIN,8,3        ## @W83791D_REG_FAN_MIN
	.comm	_W83791D_REG_FAN_DIV,8,3        ## @W83791D_REG_FAN_DIV
	.comm	_W83791D_REG_VBAT,4,2           ## @W83791D_REG_VBAT
	.comm	_NUMBER_OF_PWM,4,2              ## @NUMBER_OF_PWM
	.comm	_W83791D_REG_PWM,8,3            ## @W83791D_REG_PWM
	.comm	_W83791D_REG_FAN_CFG,8,3        ## @W83791D_REG_FAN_CFG
	.comm	_W83791D_REG_TEMP_TARGET,8,3    ## @W83791D_REG_TEMP_TARGET
	.comm	_W83791D_REG_TEMP_TOL,8,3       ## @W83791D_REG_TEMP_TOL
	.comm	_W83791D_REG_TEMP1,8,3          ## @W83791D_REG_TEMP1
	.comm	_W83791D_REG_TEMP_ADD,8,3       ## @W83791D_REG_TEMP_ADD
	.comm	_W83791D_REG_ALARM1,4,2         ## @W83791D_REG_ALARM1
	.comm	_W83791D_REG_ALARM2,4,2         ## @W83791D_REG_ALARM2
	.comm	_W83791D_REG_ALARM3,4,2         ## @W83791D_REG_ALARM3
	.comm	_W83791D_REG_BEEP_CTRL,8,3      ## @W83791D_REG_BEEP_CTRL
	.comm	_GLOBAL_BEEP_ENABLE_SHIFT,4,2   ## @GLOBAL_BEEP_ENABLE_SHIFT
	.comm	_W83791D_REG_VID_FANDIV,4,2     ## @W83791D_REG_VID_FANDIV
	.comm	_W83791D_REG_DID_VID4,4,2       ## @W83791D_REG_DID_VID4
	.no_dead_strip	_w83791d_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function w83791d_update_device
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967290                      ; 0xfffffffa
lCPI0_1:
	.long	4294967293                      ; 0xfffffffd
	.long	4294967292                      ; 0xfffffffc
lCPI0_2:
	.long	4294967294                      ; 0xfffffffe
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_w83791d_update_device:                 ; @w83791d_update_device
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x22, x0
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	add	x20, x0, #120
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	x8, [x19, #128]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #1
	add	x1, x8, x9
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_12
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
Lloh7:
	adrp	x22, _NUMBER_OF_VIN@GOTPAGE
Lloh8:
	ldr	x22, [x22, _NUMBER_OF_VIN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
Lloh9:
	adrp	x25, _W83791D_REG_IN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _W83791D_REG_IN@GOTPAGEOFF]
Lloh11:
	adrp	x26, _W83791D_REG_IN_MAX@GOTPAGE
Lloh12:
	ldr	x26, [x26, _W83791D_REG_IN_MAX@GOTPAGEOFF]
Lloh13:
	adrp	x27, _W83791D_REG_IN_MIN@GOTPAGE
Lloh14:
	ldr	x27, [x27, _W83791D_REG_IN_MIN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	lsl	x28, x23, #2
	ldr	w1, [x8, x28]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #8]
	str	w0, [x8, x28]
	ldr	x8, [x26]
	ldr	w1, [x8, x28]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #16]
	str	w0, [x8, x28]
	ldr	x8, [x27]
	ldr	w1, [x8, x28]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #24]
	str	w0, [x8, x28]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
Lloh15:
	adrp	x22, _NUMBER_OF_FANIN@GOTPAGE
Lloh16:
	ldr	x22, [x22, _NUMBER_OF_FANIN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
Lloh17:
	adrp	x25, _W83791D_REG_FAN@GOTPAGE
Lloh18:
	ldr	x25, [x25, _W83791D_REG_FAN@GOTPAGEOFF]
Lloh19:
	adrp	x26, _W83791D_REG_FAN_MIN@GOTPAGE
Lloh20:
	ldr	x26, [x26, _W83791D_REG_FAN_MIN@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	lsl	x27, x23, #2
	ldr	w1, [x8, x27]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #32]
	str	w0, [x8, x27]
	ldr	x8, [x26]
	ldr	w1, [x8, x27]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #40]
	str	w0, [x8, x27]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_7
LBB0_8:
Lloh21:
	adrp	x25, _W83791D_REG_FAN_DIV@GOTPAGE
Lloh22:
	ldr	x25, [x25, _W83791D_REG_FAN_DIV@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x25]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	mov	x23, x0
	ldr	x8, [x25]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #48]
	dup.2s	v0, w22
Lloh23:
	adrp	x9, lCPI0_0@PAGE
Lloh24:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v8, #3
	and.8b	v0, v0, v8
	str	d0, [x8]
	ubfx	w9, w23, #6, #2
	and	w10, w0, #0x7
	stp	w9, w10, [x8, #8]
	ubfx	w9, w0, #4, #3
	str	w9, [x8, #16]
Lloh25:
	adrp	x8, _W83791D_REG_VBAT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _W83791D_REG_VBAT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	dup.2s	v0, w0
	ldr	x8, [x19, #48]
Lloh28:
	adrp	x9, lCPI0_1@PAGE
Lloh29:
	ldr	d1, [x9, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #4
	and.8b	v0, v0, v1
	ldr	d1, [x8]
	orr.8b	v0, v1, v0
	str	d0, [x8]
	lsr	w9, w0, #5
	and	w9, w9, #0x4
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
Lloh30:
	adrp	x22, _NUMBER_OF_PWM@GOTPAGE
Lloh31:
	ldr	x22, [x22, _NUMBER_OF_PWM@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_11
; %bb.9:
	mov	x23, #0
Lloh32:
	adrp	x25, _W83791D_REG_PWM@GOTPAGE
Lloh33:
	ldr	x25, [x25, _W83791D_REG_PWM@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	lsl	x26, x23, #2
	ldr	w1, [x8, x26]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #56]
	str	w0, [x8, x26]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_10
LBB0_11:
Lloh34:
	adrp	x23, _W83791D_REG_FAN_CFG@GOTPAGE
Lloh35:
	ldr	x23, [x23, _W83791D_REG_FAN_CFG@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	dup.2s	v0, w22
	ldr	x8, [x19, #64]
Lloh36:
	adrp	x9, lCPI0_2@PAGE
Lloh37:
	ldr	d1, [x9, lCPI0_2@PAGEOFF]
	ushl.2s	v0, v0, v1
	and.8b	v0, v0, v8
	str	d0, [x8]
	ubfx	w9, w0, #2, #2
	str	w9, [x8, #8]
Lloh38:
	adrp	x22, _W83791D_REG_TEMP_TARGET@GOTPAGE
Lloh39:
	ldr	x22, [x22, _W83791D_REG_TEMP_TARGET@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	and	w8, w0, #0x7f
	ldr	x9, [x19, #72]
	str	w8, [x9]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	and	w8, w0, #0x7f
	ldr	x9, [x19, #72]
	str	w8, [x9, #4]
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83791d_read
	and	w8, w0, #0x7f
	ldr	x9, [x19, #72]
	str	w8, [x9, #8]
Lloh40:
	adrp	x23, _W83791D_REG_TEMP_TOL@GOTPAGE
Lloh41:
	ldr	x23, [x23, _W83791D_REG_TEMP_TOL@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	and	w8, w22, #0xf
	ldr	x9, [x19, #80]
	ubfx	w10, w22, #4, #4
	stp	w8, w10, [x9]
	and	w8, w0, #0xf
	str	w8, [x9, #8]
Lloh42:
	adrp	x22, _W83791D_REG_TEMP1@GOTPAGE
Lloh43:
	ldr	x22, [x22, _W83791D_REG_TEMP1@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #88]
	str	w0, [x8]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #88]
	str	w0, [x8, #4]
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83791d_read
	ldr	x8, [x19, #88]
	str	w0, [x8, #8]
Lloh44:
	adrp	x23, _W83791D_REG_TEMP_ADD@GOTPAGE
Lloh45:
	ldr	x23, [x23, _W83791D_REG_TEMP_ADD@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #96]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8, #12]
	mov	x0, x21
	bl	_w83791d_read
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #96]
	ldr	x9, [x9]
	str	w8, [x9, #4]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8, #16]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x8, #20]
	mov	x0, x21
	bl	_w83791d_read
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #96]
	ldr	x9, [x9]
	str	w8, [x9, #8]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #96]
	ldr	x9, [x9, #8]
	str	w8, [x9]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #12]
	mov	x0, x21
	bl	_w83791d_read
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #96]
	ldr	x9, [x9, #8]
	str	w8, [x9, #4]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #16]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #20]
	mov	x0, x21
	bl	_w83791d_read
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #96]
	ldr	x9, [x9, #8]
	str	w8, [x9, #8]
Lloh46:
	adrp	x8, _W83791D_REG_ALARM1@GOTPAGE
Lloh47:
	ldr	x8, [x8, _W83791D_REG_ALARM1@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
Lloh49:
	adrp	x8, _W83791D_REG_ALARM2@GOTPAGE
Lloh50:
	ldr	x8, [x8, _W83791D_REG_ALARM2@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	add	w22, w22, w0, lsl #8
Lloh52:
	adrp	x8, _W83791D_REG_ALARM3@GOTPAGE
Lloh53:
	ldr	x8, [x8, _W83791D_REG_ALARM3@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	add	w8, w22, w0, lsl #16
	str	w8, [x19, #104]
Lloh55:
	adrp	x23, _W83791D_REG_BEEP_CTRL@GOTPAGE
Lloh56:
	ldr	x23, [x23, _W83791D_REG_BEEP_CTRL@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	mov	x22, x0
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83791d_read
	add	w22, w22, w0, lsl #8
	ldr	x8, [x23]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83791d_read
	add	w8, w22, w0, lsl #16
Lloh57:
	adrp	x9, _GLOBAL_BEEP_ENABLE_SHIFT@GOTPAGE
Lloh58:
	ldr	x9, [x9, _GLOBAL_BEEP_ENABLE_SHIFT@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	and	w9, w9, #0x1
	stp	w8, w9, [x19, #108]
Lloh60:
	adrp	x8, _W83791D_REG_VID_FANDIV@GOTPAGE
Lloh61:
	ldr	x8, [x8, _W83791D_REG_VID_FANDIV@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	and	w8, w0, #0xf
	str	w8, [x19, #116]
Lloh63:
	adrp	x8, _W83791D_REG_DID_VID4@GOTPAGE
Lloh64:
	ldr	x8, [x8, _W83791D_REG_DID_VID4@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83791d_read
	ubfiz	w8, w0, #4, #1
	ldr	w9, [x19, #116]
	orr	w8, w8, w9
	str	w8, [x19, #116]
	ldr	x8, [x24]
	str	x8, [x19, #128]
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdr	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting w83791d device update\n"

	.comm	_NUMBER_OF_VIN,4,2              ; @NUMBER_OF_VIN
	.comm	_W83791D_REG_IN,8,3             ; @W83791D_REG_IN
	.comm	_W83791D_REG_IN_MAX,8,3         ; @W83791D_REG_IN_MAX
	.comm	_W83791D_REG_IN_MIN,8,3         ; @W83791D_REG_IN_MIN
	.comm	_NUMBER_OF_FANIN,4,2            ; @NUMBER_OF_FANIN
	.comm	_W83791D_REG_FAN,8,3            ; @W83791D_REG_FAN
	.comm	_W83791D_REG_FAN_MIN,8,3        ; @W83791D_REG_FAN_MIN
	.comm	_W83791D_REG_FAN_DIV,8,3        ; @W83791D_REG_FAN_DIV
	.comm	_W83791D_REG_VBAT,4,2           ; @W83791D_REG_VBAT
	.comm	_NUMBER_OF_PWM,4,2              ; @NUMBER_OF_PWM
	.comm	_W83791D_REG_PWM,8,3            ; @W83791D_REG_PWM
	.comm	_W83791D_REG_FAN_CFG,8,3        ; @W83791D_REG_FAN_CFG
	.comm	_W83791D_REG_TEMP_TARGET,8,3    ; @W83791D_REG_TEMP_TARGET
	.comm	_W83791D_REG_TEMP_TOL,8,3       ; @W83791D_REG_TEMP_TOL
	.comm	_W83791D_REG_TEMP1,8,3          ; @W83791D_REG_TEMP1
	.comm	_W83791D_REG_TEMP_ADD,8,3       ; @W83791D_REG_TEMP_ADD
	.comm	_W83791D_REG_ALARM1,4,2         ; @W83791D_REG_ALARM1
	.comm	_W83791D_REG_ALARM2,4,2         ; @W83791D_REG_ALARM2
	.comm	_W83791D_REG_ALARM3,4,2         ; @W83791D_REG_ALARM3
	.comm	_W83791D_REG_BEEP_CTRL,8,3      ; @W83791D_REG_BEEP_CTRL
	.comm	_GLOBAL_BEEP_ENABLE_SHIFT,4,2   ; @GLOBAL_BEEP_ENABLE_SHIFT
	.comm	_W83791D_REG_VID_FANDIV,4,2     ; @W83791D_REG_VID_FANDIV
	.comm	_W83791D_REG_DID_VID4,4,2       ; @W83791D_REG_DID_VID4
	.no_dead_strip	_w83791d_update_device
.subsections_via_symbols
