	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1031_update_device
_adm1031_update_device:                 ## @adm1031_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, %r14
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	leaq	112(%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	120(%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_11
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r13d, %rax
	movq	128(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_ADM1031_REG_TEMP_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	24(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_TEMP_MIN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	32(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_TEMP_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	40(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_TEMP_CRIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	48(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_AUTO_TEMP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	56(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	8(%r12), %rax
	xorl	%ecx, %ecx
	movq	_adm1031@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%cl
	orq	$2, %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ADM1031_REG_TEMP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movl	%eax, %r15d
	movq	_ADM1031_REG_EXT_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adm1031_read_value
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_TEMP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movl	%eax, %r13d
	cmpl	%r15d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ADM1031_REG_EXT_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adm1031_read_value
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_5
LBB0_6:
	movq	_ADM1031_REG_CONF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adm1031_read_value
	movl	%eax, 64(%r12)
	movq	_ADM1031_REG_CONF2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adm1031_read_value
	movl	%eax, 68(%r12)
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_ADM1031_REG_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_ADM1031_REG_STATUS
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	shll	$8, %eax
	orl	%ebx, %eax
	movl	%eax, 72(%r12)
	movq	8(%r12), %rcx
	movq	_adm1030@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_8
## %bb.7:
	andl	$49407, %eax                    ## imm = 0xC0FF
	movl	%eax, 72(%r12)
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ADM1031_REG_FAN_DIV
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	80(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_FAN_MIN
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	88(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_ADM1031_REG_FAN_SPEED
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_adm1031_read_value
	movq	96(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_ADM1031_REG_PWM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adm1031_read_value
	movl	%r13d, %ecx
	sarl	%cl, %eax
	andl	$15, %eax
	movq	104(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	8(%r12), %rax
	xorl	%ecx, %ecx
	cmpq	(%r15), %rax
	sete	%cl
	movl	$2, %eax
	subq	%rcx, %rax
	addl	$4, %r13d
	cmpq	%rax, %rbx
	jb	LBB0_9
## %bb.10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 120(%r12)
	movl	$1, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	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	"Starting adm1031 update\n"

	.comm	_adm1031,8,3                    ## @adm1031
	.comm	_ADM1031_REG_EXT_TEMP,4,2       ## @ADM1031_REG_EXT_TEMP
	.comm	_ADM1031_REG_CONF1,4,2          ## @ADM1031_REG_CONF1
	.comm	_ADM1031_REG_CONF2,4,2          ## @ADM1031_REG_CONF2
	.comm	_adm1030,8,3                    ## @adm1030
	.comm	_ADM1031_REG_PWM,4,2            ## @ADM1031_REG_PWM
	.no_dead_strip	_adm1031_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1031_update_device
_adm1031_update_device:                 ; @adm1031_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, #112
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	x8, [x19, #120]
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_11
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	x22, #0
Lloh7:
	adrp	x26, _ADM1031_REG_EXT_TEMP@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ADM1031_REG_EXT_TEMP@GOTPAGEOFF]
Lloh9:
	adrp	x27, _adm1031@GOTPAGE
Lloh10:
	ldr	x27, [x27, _adm1031@GOTPAGEOFF]
	mov	w28, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w23
	ldr	x9, [x19, #128]
	str	x8, [x9, x22, lsl #3]
	mov	x0, x22
	bl	_ADM1031_REG_TEMP_OFFSET
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #24]
	lsl	x23, x22, #2
	str	w0, [x8, x23]
	mov	x0, x22
	bl	_ADM1031_REG_TEMP_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #32]
	str	w0, [x8, x23]
	mov	x0, x22
	bl	_ADM1031_REG_TEMP_MAX
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #40]
	str	w0, [x8, x23]
	mov	x0, x22
	bl	_ADM1031_REG_TEMP_CRIT
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #48]
	str	w0, [x8, x23]
	mov	x0, x22
	bl	_ADM1031_REG_AUTO_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #56]
	str	w0, [x8, x23]
	add	x22, x22, #1
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	cinc	x8, x28, eq
	cmp	x22, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ADM1031_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	mov	x24, x0
	ldr	w1, [x26]
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, x22, lsl #2]
	mov	x0, x22
	bl	_ADM1031_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	mov	x23, x0
	cmp	w0, w24
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, x22, lsl #2]
	b	LBB0_3
LBB0_6:
Lloh11:
	adrp	x8, _ADM1031_REG_CONF1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADM1031_REG_CONF1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_adm1031_read_value
	str	w0, [x19, #64]
Lloh14:
	adrp	x8, _ADM1031_REG_CONF2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADM1031_REG_CONF2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_adm1031_read_value
	str	w0, [x19, #68]
	mov	w0, #0
	bl	_ADM1031_REG_STATUS
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	mov	x22, x0
	mov	w0, #1
	bl	_ADM1031_REG_STATUS
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	orr	w8, w22, w0, lsl #8
	str	w8, [x19, #72]
	ldr	x9, [x19, #8]
Lloh17:
	adrp	x22, _adm1030@GOTPAGE
Lloh18:
	ldr	x22, [x22, _adm1030@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:
	mov	w9, #49407
	and	w8, w8, w9
	str	w8, [x19, #72]
LBB0_8:
	mov	w0, #0
	bl	_ADM1031_REG_FAN_DIV
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #80]
	str	w0, [x8]
	mov	w0, #0
	bl	_ADM1031_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #88]
	str	w0, [x8]
	mov	w0, #0
	bl	_ADM1031_REG_FAN_SPEED
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #96]
	str	w0, [x8]
Lloh19:
	adrp	x23, _ADM1031_REG_PWM@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ADM1031_REG_PWM@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_adm1031_read_value
	and	w8, w0, #0xf
	ldr	x9, [x19, #104]
	str	w8, [x9]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #1
	bl	_ADM1031_REG_FAN_DIV
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #80]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_ADM1031_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #88]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_ADM1031_REG_FAN_SPEED
	mov	x1, x0
	mov	x0, x21
	bl	_adm1031_read_value
	ldr	x8, [x19, #96]
	str	w0, [x8, #4]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_adm1031_read_value
	ubfx	w8, w0, #4, #4
	ldr	x9, [x19, #104]
	str	w8, [x9, #4]
LBB0_10:
	ldr	x8, [x25]
	str	x8, [x19, #120]
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting adm1031 update\n"

	.comm	_adm1031,8,3                    ; @adm1031
	.comm	_ADM1031_REG_EXT_TEMP,4,2       ; @ADM1031_REG_EXT_TEMP
	.comm	_ADM1031_REG_CONF1,4,2          ; @ADM1031_REG_CONF1
	.comm	_ADM1031_REG_CONF2,4,2          ; @ADM1031_REG_CONF2
	.comm	_adm1030,8,3                    ; @adm1030
	.comm	_ADM1031_REG_PWM,4,2            ; @ADM1031_REG_PWM
	.no_dead_strip	_adm1031_update_device
.subsections_via_symbols
