	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm78_update_device
_lm78_update_device:                    ## @lm78_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
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	80(%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	88(%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:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_LM78_REG_IN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_LM78_REG_IN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_LM78_REG_IN_MAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$7, %rbx
	jne	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	callq	_LM78_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	32(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_LM78_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	40(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_LM78_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	32(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_LM78_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	40(%r15), %rcx
	movl	%eax, 4(%rcx)
	movl	$2, %edi
	callq	_LM78_REG_FAN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	32(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_LM78_REG_FAN_MIN
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_lm78_read_value
	movq	40(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	_LM78_REG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	movl	%eax, 48(%r15)
	movq	_LM78_REG_TEMP_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	movl	%eax, 52(%r15)
	movq	_LM78_REG_TEMP_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	movl	%eax, 56(%r15)
	movq	_LM78_REG_VID_FANDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	movl	%eax, %ebx
	andl	$15, %eax
	movl	%eax, 60(%r15)
	movq	64(%r15), %rcx
	movq	_lm79@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_LM78_REG_CHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	shll	$4, %eax
	andl	$16, %eax
	orl	60(%r15), %eax
	jmp	LBB0_7
LBB0_6:
	orl	$16, %eax
LBB0_7:
	movl	%eax, 60(%r15)
	movl	%ebx, %eax
	shrl	$4, %eax
	andl	$3, %eax
	movq	72(%r15), %rcx
	movl	%eax, (%rcx)
	sarl	$6, %ebx
	movl	%ebx, 4(%rcx)
	movq	_LM78_REG_ALARM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	movl	%eax, %ebx
	movq	_LM78_REG_ALARM2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lm78_read_value
	shll	$8, %eax
	addl	%ebx, %eax
	movl	%eax, 96(%r15)
	movq	(%r12), %rax
	movq	%rax, 88(%r15)
	movl	$1, (%r15)
	movq	72(%r15), %rax
	movl	$1, 8(%rax)
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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting lm78 update\n"

	.comm	_LM78_REG_TEMP,4,2              ## @LM78_REG_TEMP
	.comm	_LM78_REG_TEMP_OVER,4,2         ## @LM78_REG_TEMP_OVER
	.comm	_LM78_REG_TEMP_HYST,4,2         ## @LM78_REG_TEMP_HYST
	.comm	_LM78_REG_VID_FANDIV,4,2        ## @LM78_REG_VID_FANDIV
	.comm	_lm79,8,3                       ## @lm79
	.comm	_LM78_REG_CHIPID,4,2            ## @LM78_REG_CHIPID
	.comm	_LM78_REG_ALARM1,4,2            ## @LM78_REG_ALARM1
	.comm	_LM78_REG_ALARM2,4,2            ## @LM78_REG_ALARM2
	.no_dead_strip	_lm78_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm78_update_device
_lm78_update_device:                    ; @lm78_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, #80
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #88]
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:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_LM78_REG_IN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #8]
	lsl	x23, x21, #2
	str	w0, [x8, x23]
	mov	x0, x21
	bl	_LM78_REG_IN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, x23]
	mov	x0, x21
	bl	_LM78_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, x23]
	add	x21, x21, #1
	cmp	x21, #7
	b.ne	LBB0_3
; %bb.4:
	mov	w0, #0
	bl	_LM78_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8]
	mov	w0, #0
	bl	_LM78_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8]
	mov	w0, #1
	bl	_LM78_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_LM78_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8, #4]
	mov	w0, #2
	bl	_LM78_REG_FAN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_LM78_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x19
	bl	_lm78_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8, #8]
Lloh7:
	adrp	x8, _LM78_REG_TEMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LM78_REG_TEMP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	str	w0, [x19, #48]
Lloh10:
	adrp	x8, _LM78_REG_TEMP_OVER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LM78_REG_TEMP_OVER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	str	w0, [x19, #52]
Lloh13:
	adrp	x8, _LM78_REG_TEMP_HYST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LM78_REG_TEMP_HYST@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	str	w0, [x19, #56]
Lloh16:
	adrp	x8, _LM78_REG_VID_FANDIV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LM78_REG_VID_FANDIV@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	mov	x21, x0
	and	w8, w0, #0xf
	str	w8, [x19, #60]
	ldr	x9, [x19, #64]
Lloh19:
	adrp	x10, _lm79@GOTPAGE
Lloh20:
	ldr	x10, [x10, _lm79@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _LM78_REG_CHIPID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LM78_REG_CHIPID@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	ubfiz	w8, w0, #4, #1
	ldr	w9, [x19, #60]
	orr	w8, w8, w9
	b	LBB0_7
LBB0_6:
	orr	w8, w8, #0x10
LBB0_7:
	str	w8, [x19, #60]
	ubfx	w8, w21, #4, #2
	ldr	x9, [x19, #72]
	asr	w10, w21, #6
	stp	w8, w10, [x9]
Lloh25:
	adrp	x8, _LM78_REG_ALARM1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LM78_REG_ALARM1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	mov	x21, x0
Lloh28:
	adrp	x8, _LM78_REG_ALARM2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LM78_REG_ALARM2@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lm78_read_value
	add	w8, w21, w0, lsl #8
	str	w8, [x19, #96]
	ldr	x8, [x22]
	str	x8, [x19, #88]
	mov	w8, #1
	str	w8, [x19]
	ldr	x9, [x19, #72]
	str	w8, [x9, #8]
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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting lm78 update\n"

	.comm	_LM78_REG_TEMP,4,2              ; @LM78_REG_TEMP
	.comm	_LM78_REG_TEMP_OVER,4,2         ; @LM78_REG_TEMP_OVER
	.comm	_LM78_REG_TEMP_HYST,4,2         ; @LM78_REG_TEMP_HYST
	.comm	_LM78_REG_VID_FANDIV,4,2        ; @LM78_REG_VID_FANDIV
	.comm	_lm79,8,3                       ; @lm79
	.comm	_LM78_REG_CHIPID,4,2            ; @LM78_REG_CHIPID
	.comm	_LM78_REG_ALARM1,4,2            ; @LM78_REG_ALARM1
	.comm	_LM78_REG_ALARM2,4,2            ; @LM78_REG_ALARM2
	.no_dead_strip	_lm78_update_device
.subsections_via_symbols
