	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct6683_update_device
_nct6683_update_device:                 ## @nct6683_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, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r12
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	jne	LBB0_28
LBB0_2:
	cmpl	$0, 4(%r12)
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_get_in_reg
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	72(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_get_in_reg
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	72(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	callq	_get_in_reg
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	72(%r12), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_10
LBB0_11:
	cmpl	$0, 8(%r12)
	jle	LBB0_22
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_22
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_NCT6683_REG_MON
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read16
	movq	56(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_get_temp_reg
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	48(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_get_temp_reg
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	48(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	callq	_get_temp_reg
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	48(%r12), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	callq	_get_temp_reg
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read
	movq	48(%r12), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_21
LBB0_22:
	movq	40(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_27
## %bb.23:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movq	40(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r12), %eax
	btl	%ebx, %eax
	jae	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%ebx, %edi
	callq	_NCT6683_REG_FAN_RPM
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read16
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_NCT6683_REG_FAN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nct6683_read16
	movq	32(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_26
LBB0_27:
	movq	%r15, %rdi
	callq	_nct6683_update_pwm
	movq	(%r13), %rax
	movq	%rax, 24(%r12)
	movl	$1, (%r12)
LBB0_28:
	movq	%r14, %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,8,3                         ## @HZ
	.no_dead_strip	_nct6683_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct6683_update_device
_nct6683_update_device:                 ; @nct6683_update_device
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_28
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_get_in_reg
	tbnz	w0, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #72]
	ldr	x8, [x8]
	str	x0, [x8, x22, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	bl	_get_in_reg
	tbnz	w0, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #8]
	str	x0, [x8, x22, lsl #3]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #2
	mov	x2, x22
	bl	_get_in_reg
	tbnz	w0, #31, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #16]
	str	x0, [x8, x22, lsl #3]
	b	LBB0_4
LBB0_11:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.12:
	mov	x22, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.ge	LBB0_22
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	ldr	w0, [x8, x22, lsl #2]
	bl	_NCT6683_REG_MON
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read16
	ldr	x8, [x19, #56]
	str	x0, [x8, x22, lsl #3]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_get_temp_reg
	tbnz	w0, #31, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	str	x0, [x8, x22, lsl #3]
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	bl	_get_temp_reg
	tbnz	w0, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #8]
	str	x0, [x8, x22, lsl #3]
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	w1, #2
	mov	x2, x22
	bl	_get_temp_reg
	tbnz	w0, #31, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #16]
	str	x0, [x8, x22, lsl #3]
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	w1, #3
	mov	x2, x22
	bl	_get_temp_reg
	tbnz	w0, #31, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #24]
	str	x0, [x8, x22, lsl #3]
	b	LBB0_13
LBB0_22:
	ldr	x0, [x19, #40]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.23:
	mov	x22, #0
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x22, x22, #1
	ldr	x0, [x19, #40]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_27
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #12]
	lsr	w8, w8, w22
	tbz	w8, #0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x22
	bl	_NCT6683_REG_FAN_RPM
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read16
	ldr	x8, [x19, #40]
	lsl	x24, x22, #3
	str	x0, [x8, x24]
	mov	x0, x22
	bl	_NCT6683_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_nct6683_read16
	ldr	x8, [x19, #32]
	str	x0, [x8, x24]
	b	LBB0_24
LBB0_27:
	mov	x0, x21
	bl	_nct6683_update_pwm
	ldr	x8, [x23]
	str	x8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
LBB0_28:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_nct6683_update_device
.subsections_via_symbols
