	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis5595_update_device
_sis5595_update_device:                 ## @sis5595_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	76(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	addq	80(%r15), %rax
	movq	(%r12), %rdi
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	jne	LBB0_8
LBB0_2:
	cmpl	$0, 4(%r15)
	js	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_SIS5595_REG_IN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_SIS5595_REG_IN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_SIS5595_REG_IN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	leaq	1(%rbx), %rax
	movslq	4(%r15), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	xorl	%edi, %edi
	callq	_SIS5595_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	32(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_SIS5595_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	40(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_SIS5595_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	32(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_SIS5595_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sis5595_read_value
	movq	40(%r15), %rcx
	movl	%eax, 4(%rcx)
	cmpl	$3, 4(%r15)
	jne	LBB0_7
## %bb.6:
	movq	_SIS5595_REG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sis5595_read_value
	movl	%eax, 48(%r15)
	movq	_SIS5595_REG_TEMP_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sis5595_read_value
	movl	%eax, 52(%r15)
	movq	_SIS5595_REG_TEMP_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sis5595_read_value
	movl	%eax, 56(%r15)
LBB0_7:
	movq	_SIS5595_REG_FANDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sis5595_read_value
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movq	64(%r15), %rdx
	movl	%ecx, (%rdx)
	sarl	$6, %eax
	movl	%eax, 4(%rdx)
	movq	_SIS5595_REG_ALARM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sis5595_read_value
	movl	%eax, %ebx
	movq	_SIS5595_REG_ALARM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sis5595_read_value
	shll	$8, %eax
	orl	%ebx, %eax
	movl	%eax, 72(%r15)
	movq	(%r12), %rax
	movq	%rax, 80(%r15)
	movl	$1, (%r15)
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SIS5595_REG_TEMP,4,2           ## @SIS5595_REG_TEMP
	.comm	_SIS5595_REG_TEMP_OVER,4,2      ## @SIS5595_REG_TEMP_OVER
	.comm	_SIS5595_REG_TEMP_HYST,4,2      ## @SIS5595_REG_TEMP_HYST
	.comm	_SIS5595_REG_FANDIV,4,2         ## @SIS5595_REG_FANDIV
	.comm	_SIS5595_REG_ALARM1,4,2         ## @SIS5595_REG_ALARM1
	.comm	_SIS5595_REG_ALARM2,4,2         ## @SIS5595_REG_ALARM2
	.no_dead_strip	_sis5595_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis5595_update_device
_sis5595_update_device:                 ; @sis5595_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
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x20, x0, #76
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #80]
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_8
LBB0_2:
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_SIS5595_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #8]
	lsl	x23, x21, #2
	str	w0, [x8, x23]
	mov	x0, x21
	bl	_SIS5595_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, x23]
	mov	x0, x21
	bl	_SIS5595_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, x23]
	add	x8, x21, #1
	ldrsw	x9, [x19, #4]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	bl	_SIS5595_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8]
	mov	w0, #0
	bl	_SIS5595_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8]
	mov	w23, #1
	mov	w0, #1
	bl	_SIS5595_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_SIS5595_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_sis5595_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8, #4]
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.ne	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _SIS5595_REG_TEMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIS5595_REG_TEMP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sis5595_read_value
	str	w0, [x19, #48]
Lloh8:
	adrp	x8, _SIS5595_REG_TEMP_OVER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIS5595_REG_TEMP_OVER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sis5595_read_value
	str	w0, [x19, #52]
Lloh11:
	adrp	x8, _SIS5595_REG_TEMP_HYST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIS5595_REG_TEMP_HYST@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sis5595_read_value
	str	w0, [x19, #56]
LBB0_7:
Lloh14:
	adrp	x8, _SIS5595_REG_FANDIV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIS5595_REG_FANDIV@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sis5595_read_value
	ubfx	w8, w0, #4, #2
	ldr	x9, [x19, #64]
	asr	w10, w0, #6
	stp	w8, w10, [x9]
Lloh17:
	adrp	x8, _SIS5595_REG_ALARM1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIS5595_REG_ALARM1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sis5595_read_value
	mov	x21, x0
Lloh20:
	adrp	x8, _SIS5595_REG_ALARM2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIS5595_REG_ALARM2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sis5595_read_value
	orr	w8, w21, w0, lsl #8
	str	w8, [x19, #72]
	ldr	x8, [x22]
	str	x8, [x19, #80]
	str	w23, [x19]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SIS5595_REG_TEMP,4,2           ; @SIS5595_REG_TEMP
	.comm	_SIS5595_REG_TEMP_OVER,4,2      ; @SIS5595_REG_TEMP_OVER
	.comm	_SIS5595_REG_TEMP_HYST,4,2      ; @SIS5595_REG_TEMP_HYST
	.comm	_SIS5595_REG_FANDIV,4,2         ; @SIS5595_REG_FANDIV
	.comm	_SIS5595_REG_ALARM1,4,2         ; @SIS5595_REG_ALARM1
	.comm	_SIS5595_REG_ALARM2,4,2         ; @SIS5595_REG_ALARM2
	.no_dead_strip	_sis5595_update_device
.subsections_via_symbols
