	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm90_update_device
_lm90_update_device:                    ## @lm90_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, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	80(%rax), %r14
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_lm90_update_limits
	testl	%eax, %eax
	js	LBB0_8
LBB0_2:
	movq	8(%r15), %rbx
	movl	72(%r15), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	$0, (%r15)
	movq	_LM90_REG_R_LOCAL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.4:
	movq	16(%r15), %rax
	movq	_LOCAL_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	_LM90_REG_R_LOCAL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.5:
	movq	16(%r15), %rax
	movq	_LOCAL_HIGH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	64(%r15), %rdx
	movq	_LM90_REG_R_LOCAL_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.6:
	callq	_lm90_read16
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_25
LBB0_7:
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_25
	jmp	LBB0_3
LBB0_9:
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.10:
	shll	$8, %ebx
LBB0_11:
	movq	24(%r15), %rax
	movq	_LOCAL_TEMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	_LM90_REG_R_REMOTE_TEMPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LM90_REG_R_REMOTE_TEMPL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_lm90_read16
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.12:
	movq	24(%r15), %rax
	movq	_REMOTE_TEMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	_LM90_REG_R_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.13:
	movl	%ebx, 32(%r15)
	movq	40(%r15), %rax
	movq	_max6696@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.14:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lm90_select_remote_channel
	testl	%eax, %eax
	js	LBB0_8
## %bb.15:
	movq	_LM90_REG_R_REMOTE_TEMPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rdx
	movq	%r14, %rdi
	callq	_lm90_read16
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_24
## %bb.16:
	movq	24(%r15), %rax
	movq	_REMOTE2_TEMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_lm90_select_remote_channel
	movq	_MAX6696_REG_R_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_lm90_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.17:
	shll	$8, %ebx
	orl	32(%r15), %ebx
	movl	%ebx, 32(%r15)
LBB0_18:
	testb	$-128, 48(%r15)
	jne	LBB0_22
## %bb.19:
	testl	%ebx, 52(%r15)
	jne	LBB0_22
## %bb.20:
	testb	$-128, 56(%r15)
	je	LBB0_22
## %bb.21:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	$-129, %esi
	andl	56(%r15), %esi
	movq	%r15, %rdi
	callq	_lm90_update_confreg
LBB0_22:
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movl	$1, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_8:
	movl	%eax, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_lm90_select_remote_channel
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updating lm90 data.\n"

	.comm	_LM90_REG_R_LOCAL_LOW,4,2       ## @LM90_REG_R_LOCAL_LOW
	.comm	_LOCAL_LOW,8,3                  ## @LOCAL_LOW
	.comm	_LM90_REG_R_LOCAL_HIGH,4,2      ## @LM90_REG_R_LOCAL_HIGH
	.comm	_LOCAL_HIGH,8,3                 ## @LOCAL_HIGH
	.comm	_LM90_REG_R_LOCAL_TEMP,4,2      ## @LM90_REG_R_LOCAL_TEMP
	.comm	_LOCAL_TEMP,8,3                 ## @LOCAL_TEMP
	.comm	_LM90_REG_R_REMOTE_TEMPH,4,2    ## @LM90_REG_R_REMOTE_TEMPH
	.comm	_LM90_REG_R_REMOTE_TEMPL,8,3    ## @LM90_REG_R_REMOTE_TEMPL
	.comm	_REMOTE_TEMP,8,3                ## @REMOTE_TEMP
	.comm	_LM90_REG_R_STATUS,4,2          ## @LM90_REG_R_STATUS
	.comm	_max6696,8,3                    ## @max6696
	.comm	_REMOTE2_TEMP,8,3               ## @REMOTE2_TEMP
	.comm	_MAX6696_REG_R_STATUS2,4,2      ## @MAX6696_REG_R_STATUS2
L_.str.1:                               ## @.str.1
	.asciz	"Re-enabling ALERT#\n"

	.no_dead_strip	_lm90_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm90_update_device
_lm90_update_device:                    ; @lm90_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
	ldr	x20, [x0, #80]
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_lm90_update_limits
	tbnz	w0, #31, LBB0_23
LBB0_2:
	ldr	x21, [x19, #8]
	ldr	w0, [x19, #72]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_time_after
	cbz	x0, LBB0_7
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	str	wzr, [x19]
Lloh4:
	adrp	x8, _LM90_REG_R_LOCAL_LOW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LM90_REG_R_LOCAL_LOW@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.4:
	ldr	x8, [x19, #16]
Lloh7:
	adrp	x9, _LOCAL_LOW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LOCAL_LOW@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	w21, [x8, x9, lsl #2]
Lloh10:
	adrp	x8, _LM90_REG_R_LOCAL_HIGH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LM90_REG_R_LOCAL_HIGH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.5:
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _LOCAL_HIGH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LOCAL_HIGH@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	w21, [x8, x9, lsl #2]
	ldr	x2, [x19, #64]
Lloh16:
	adrp	x8, _LM90_REG_R_LOCAL_TEMP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LM90_REG_R_LOCAL_TEMP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	cbz	x2, LBB0_9
; %bb.6:
	bl	_lm90_read16
	mov	x21, x0
	tbz	w0, #31, LBB0_11
	b	LBB0_24
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.8:
	mov	w21, #0
	b	LBB0_24
LBB0_9:
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.10:
	lsl	w21, w21, #8
LBB0_11:
	ldr	x8, [x19, #24]
Lloh19:
	adrp	x9, _LOCAL_TEMP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LOCAL_TEMP@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	str	w21, [x8, x9, lsl #2]
Lloh22:
	adrp	x23, _LM90_REG_R_REMOTE_TEMPH@GOTPAGE
Lloh23:
	ldr	x23, [x23, _LM90_REG_R_REMOTE_TEMPH@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh24:
	adrp	x24, _LM90_REG_R_REMOTE_TEMPL@GOTPAGE
Lloh25:
	ldr	x24, [x24, _LM90_REG_R_REMOTE_TEMPL@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x20
	bl	_lm90_read16
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.12:
	ldr	x8, [x19, #24]
Lloh26:
	adrp	x9, _REMOTE_TEMP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _REMOTE_TEMP@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	w21, [x8, x9, lsl #2]
Lloh29:
	adrp	x8, _LM90_REG_R_STATUS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LM90_REG_R_STATUS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.13:
	str	w21, [x19, #32]
	ldr	x8, [x19, #40]
Lloh32:
	adrp	x9, _max6696@GOTPAGE
Lloh33:
	ldr	x9, [x9, _max6696@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:
	mov	x0, x19
	mov	w1, #1
	bl	_lm90_select_remote_channel
	tbnz	w0, #31, LBB0_23
; %bb.15:
	ldr	w1, [x23]
	ldr	x2, [x24]
	mov	x0, x20
	bl	_lm90_read16
	mov	x21, x0
	tbnz	w0, #31, LBB0_25
; %bb.16:
	ldr	x8, [x19, #24]
Lloh35:
	adrp	x9, _REMOTE2_TEMP@GOTPAGE
Lloh36:
	ldr	x9, [x9, _REMOTE2_TEMP@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	str	w21, [x8, x9, lsl #2]
	mov	x0, x19
	mov	w1, #0
	bl	_lm90_select_remote_channel
Lloh38:
	adrp	x8, _MAX6696_REG_R_STATUS2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAX6696_REG_R_STATUS2@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_lm90_read_reg
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.17:
	ldr	w8, [x19, #32]
	orr	w21, w8, w21, lsl #8
	str	w21, [x19, #32]
LBB0_18:
	ldrb	w8, [x19, #48]
	tbnz	w8, #7, LBB0_22
; %bb.19:
	ldr	w8, [x19, #52]
	tst	w8, w21
	b.ne	LBB0_22
; %bb.20:
	ldrb	w8, [x19, #56]
	tbz	w8, #7, LBB0_22
; %bb.21:
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x19, #56]
	and	w1, w8, #0xffffff7f
	mov	x0, x19
	bl	_lm90_update_confreg
LBB0_22:
	mov	w21, #0
	ldr	x8, [x22]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_24
LBB0_23:
	mov	x21, x0
LBB0_24:
	mov	x0, x21
	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
LBB0_25:
	mov	x0, x19
	mov	w1, #0
	bl	_lm90_select_remote_channel
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updating lm90 data.\n"

	.comm	_LM90_REG_R_LOCAL_LOW,4,2       ; @LM90_REG_R_LOCAL_LOW
	.comm	_LOCAL_LOW,8,3                  ; @LOCAL_LOW
	.comm	_LM90_REG_R_LOCAL_HIGH,4,2      ; @LM90_REG_R_LOCAL_HIGH
	.comm	_LOCAL_HIGH,8,3                 ; @LOCAL_HIGH
	.comm	_LM90_REG_R_LOCAL_TEMP,4,2      ; @LM90_REG_R_LOCAL_TEMP
	.comm	_LOCAL_TEMP,8,3                 ; @LOCAL_TEMP
	.comm	_LM90_REG_R_REMOTE_TEMPH,4,2    ; @LM90_REG_R_REMOTE_TEMPH
	.comm	_LM90_REG_R_REMOTE_TEMPL,8,3    ; @LM90_REG_R_REMOTE_TEMPL
	.comm	_REMOTE_TEMP,8,3                ; @REMOTE_TEMP
	.comm	_LM90_REG_R_STATUS,4,2          ; @LM90_REG_R_STATUS
	.comm	_max6696,8,3                    ; @max6696
	.comm	_REMOTE2_TEMP,8,3               ; @REMOTE2_TEMP
	.comm	_MAX6696_REG_R_STATUS2,4,2      ; @MAX6696_REG_R_STATUS2
l_.str.1:                               ; @.str.1
	.asciz	"Re-enabling ALERT#\n"

	.no_dead_strip	_lm90_update_device
.subsections_via_symbols
