	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83l786ng_update_device
_w83l786ng_update_device:               ## @w83l786ng_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	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	leaq	40(%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	48(%r12), %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, (%r12)
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%edi, %edi
	callq	_W83L786NG_REG_IN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	104(%r12), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_W83L786NG_REG_IN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	96(%r12), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_W83L786NG_REG_IN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	88(%r12), %rcx
	movq	%rax, (%rcx)
	movl	$1, %edi
	callq	_W83L786NG_REG_IN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	104(%r12), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, %edi
	callq	_W83L786NG_REG_IN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	96(%r12), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, %edi
	callq	_W83L786NG_REG_IN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	88(%r12), %rcx
	movq	%rax, 8(%rcx)
	movl	$2, %edi
	callq	_W83L786NG_REG_IN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	104(%r12), %rcx
	movq	%rax, 16(%rcx)
	movl	$2, %edi
	callq	_W83L786NG_REG_IN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	96(%r12), %rcx
	movq	%rax, 16(%rcx)
	movl	$2, %edi
	callq	_W83L786NG_REG_IN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	88(%r12), %rcx
	movq	%rax, 16(%rcx)
	xorl	%edi, %edi
	callq	_W83L786NG_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	80(%r12), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_W83L786NG_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	72(%r12), %rcx
	movq	%rax, (%rcx)
	movl	$1, %edi
	callq	_W83L786NG_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	80(%r12), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, %edi
	callq	_W83L786NG_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83l786ng_read_value
	movq	72(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	_W83L786NG_REG_FAN_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movl	%eax, %ecx
	andl	$7, %ecx
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx)
	shrl	$4, %eax
	andl	$7, %eax
	movl	%eax, 4(%rdx)
	movq	_W83L786NG_REG_FAN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movq	_W83L786NG_PWM_MODE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	btl	%eax, %ebx
	setae	%cl
	movq	16(%r12), %rax
	movl	%ecx, (%rax)
	movq	_W83L786NG_PWM_ENABLE_SHIFT@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	sarl	%cl, %eax
	andl	$2, %eax
	orl	$1, %eax
	movq	24(%r12), %rcx
	movl	%eax, (%rcx)
	movq	_W83L786NG_REG_PWM@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	64(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_W83L786NG_PWM_MODE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %eax
	xorl	%ecx, %ecx
	btl	%eax, %ebx
	setae	%cl
	movq	16(%r12), %rax
	movl	%ecx, 4(%rax)
	movq	(%r14), %rax
	movb	4(%rax), %cl
	sarl	%cl, %ebx
	andl	$2, %ebx
	orl	$1, %ebx
	movq	24(%r12), %rax
	movl	%ebx, 4(%rax)
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	64(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	_W83L786NG_REG_TEMP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	56(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	56(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	56(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	56(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	56(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movq	56(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	_W83L786NG_REG_TOLERANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_w83l786ng_read_value
	movl	%eax, %ecx
	andl	$15, %ecx
	movq	32(%r12), %rdx
	movl	%ecx, (%rdx)
	shrl	$4, %eax
	andl	$15, %eax
	movl	%eax, 4(%rdx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r12)
	movl	$1, (%r12)
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r12, %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	"Updating w83l786ng data.\n"

	.comm	_W83L786NG_REG_FAN_DIV,4,2      ## @W83L786NG_REG_FAN_DIV
	.comm	_W83L786NG_REG_FAN_CFG,4,2      ## @W83L786NG_REG_FAN_CFG
	.comm	_W83L786NG_PWM_MODE_SHIFT,8,3   ## @W83L786NG_PWM_MODE_SHIFT
	.comm	_W83L786NG_PWM_ENABLE_SHIFT,8,3 ## @W83L786NG_PWM_ENABLE_SHIFT
	.comm	_W83L786NG_REG_PWM,8,3          ## @W83L786NG_REG_PWM
	.comm	_W83L786NG_REG_TEMP,8,3         ## @W83L786NG_REG_TEMP
	.comm	_W83L786NG_REG_TOLERANCE,4,2    ## @W83L786NG_REG_TOLERANCE
	.no_dead_strip	_w83l786ng_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83l786ng_update_device
_w83l786ng_update_device:               ; @w83l786ng_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	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	add	x20, x0, #40
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #48]
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:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	w0, #0
	bl	_W83L786NG_REG_IN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #104]
	str	x0, [x8]
	mov	w0, #0
	bl	_W83L786NG_REG_IN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #96]
	str	x0, [x8]
	mov	w0, #0
	bl	_W83L786NG_REG_IN_MAX
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #88]
	str	x0, [x8]
	mov	w24, #1
	mov	w0, #1
	bl	_W83L786NG_REG_IN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #104]
	str	x0, [x8, #8]
	mov	w0, #1
	bl	_W83L786NG_REG_IN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #96]
	str	x0, [x8, #8]
	mov	w0, #1
	bl	_W83L786NG_REG_IN_MAX
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #88]
	str	x0, [x8, #8]
	mov	w0, #2
	bl	_W83L786NG_REG_IN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #104]
	str	x0, [x8, #16]
	mov	w0, #2
	bl	_W83L786NG_REG_IN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #96]
	str	x0, [x8, #16]
	mov	w0, #2
	bl	_W83L786NG_REG_IN_MAX
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #88]
	str	x0, [x8, #16]
	mov	w0, #0
	bl	_W83L786NG_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #80]
	str	x0, [x8]
	mov	w0, #0
	bl	_W83L786NG_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #72]
	str	x0, [x8]
	mov	w0, #1
	bl	_W83L786NG_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #80]
	str	x0, [x8, #8]
	mov	w0, #1
	bl	_W83L786NG_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #72]
	str	x0, [x8, #8]
Lloh7:
	adrp	x8, _W83L786NG_REG_FAN_DIV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _W83L786NG_REG_FAN_DIV@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	and	w8, w0, #0x7
	ldr	x9, [x19, #8]
	ubfx	w10, w0, #4, #3
	stp	w8, w10, [x9]
Lloh10:
	adrp	x8, _W83L786NG_REG_FAN_CFG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _W83L786NG_REG_FAN_CFG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	mov	x22, x0
	mvn	w25, w22
Lloh13:
	adrp	x26, _W83L786NG_PWM_MODE_SHIFT@GOTPAGE
Lloh14:
	ldr	x26, [x26, _W83L786NG_PWM_MODE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w8, [x8]
	lsr	w8, w25, w8
	and	w8, w8, #0x1
	ldp	x9, x10, [x19, #16]
	str	w8, [x9]
Lloh15:
	adrp	x27, _W83L786NG_PWM_ENABLE_SHIFT@GOTPAGE
Lloh16:
	ldr	x27, [x27, _W83L786NG_PWM_ENABLE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	w8, [x8]
	asr	w8, w22, w8
	and	w8, w8, #0x2
	orr	w8, w8, #0x1
	str	w8, [x10]
Lloh17:
	adrp	x28, _W83L786NG_REG_PWM@GOTPAGE
Lloh18:
	ldr	x28, [x28, _W83L786NG_REG_PWM@GOTPAGEOFF]
	ldr	x8, [x28]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #64]
	str	x0, [x8]
	ldr	x8, [x26]
	ldr	w8, [x8, #4]
	lsr	w8, w25, w8
	and	w8, w8, #0x1
	ldp	x9, x10, [x19, #16]
	str	w8, [x9, #4]
	ldr	x8, [x27]
	ldr	w8, [x8, #4]
	asr	w8, w22, w8
	and	w8, w8, #0x2
	orr	w8, w8, #0x1
	str	w8, [x10, #4]
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #64]
	str	x0, [x8, #8]
Lloh19:
	adrp	x22, _W83L786NG_REG_TEMP@GOTPAGE
Lloh20:
	ldr	x22, [x22, _W83L786NG_REG_TEMP@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	str	x0, [x8, #16]
Lloh21:
	adrp	x8, _W83L786NG_REG_TOLERANCE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _W83L786NG_REG_TOLERANCE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_w83l786ng_read_value
	and	w8, w0, #0xf
	ldr	x9, [x19, #32]
	ubfx	w10, w0, #4, #4
	stp	w8, w10, [x9]
	ldr	x8, [x23]
	str	x8, [x19, #48]
	str	w24, [x19]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updating w83l786ng data.\n"

	.comm	_W83L786NG_REG_FAN_DIV,4,2      ; @W83L786NG_REG_FAN_DIV
	.comm	_W83L786NG_REG_FAN_CFG,4,2      ; @W83L786NG_REG_FAN_CFG
	.comm	_W83L786NG_PWM_MODE_SHIFT,8,3   ; @W83L786NG_PWM_MODE_SHIFT
	.comm	_W83L786NG_PWM_ENABLE_SHIFT,8,3 ; @W83L786NG_PWM_ENABLE_SHIFT
	.comm	_W83L786NG_REG_PWM,8,3          ; @W83L786NG_REG_PWM
	.comm	_W83L786NG_REG_TEMP,8,3         ; @W83L786NG_REG_TEMP
	.comm	_W83L786NG_REG_TOLERANCE,4,2    ; @W83L786NG_REG_TOLERANCE
	.no_dead_strip	_w83l786ng_update_device
.subsections_via_symbols
