	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1021_update_device
_adm1021_update_device:                 ## @adm1021_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	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	56(%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	64(%rbx), %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, (%rbx)
	jne	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%edi, %edi
	callq	_ADM1021_REG_TEMP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_ADM1021_REG_TOS_R
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_ADM1021_REG_THYST_R
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, %edi
	callq	_ADM1021_REG_TEMP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_ADM1021_REG_TOS_R
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_ADM1021_REG_THYST_R
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_ADM1021_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	andl	$124, %eax
	movl	%eax, 32(%rbx)
	movq	40(%rbx), %rax
	movq	_adm1023@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ADM1023_REG_REM_TEMP_PREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	sarl	$5, %eax
	imull	$125, %eax, %eax
	movq	8(%rbx), %rcx
	addl	%eax, 4(%rcx)
	movq	_ADM1023_REG_REM_TOS_PREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	sarl	$5, %eax
	imull	$125, %eax, %eax
	movq	16(%rbx), %rcx
	addl	%eax, 4(%rcx)
	movq	_ADM1023_REG_REM_THYST_PREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	sarl	$5, %eax
	imull	$125, %eax, %eax
	movq	24(%rbx), %rcx
	addl	%eax, 4(%rcx)
	movq	_ADM1023_REG_REM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, 48(%rbx)
	movq	_ADM1023_REG_REM_OFFSET_PREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, 52(%rbx)
LBB0_4:
	movq	(%r12), %rax
	movq	%rax, 64(%rbx)
	movl	$1, (%rbx)
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %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 adm1021 update\n"

	.comm	_ADM1021_REG_STATUS,4,2         ## @ADM1021_REG_STATUS
	.comm	_adm1023,8,3                    ## @adm1023
	.comm	_ADM1023_REG_REM_TEMP_PREC,4,2  ## @ADM1023_REG_REM_TEMP_PREC
	.comm	_ADM1023_REG_REM_TOS_PREC,4,2   ## @ADM1023_REG_REM_TOS_PREC
	.comm	_ADM1023_REG_REM_THYST_PREC,4,2 ## @ADM1023_REG_REM_THYST_PREC
	.comm	_ADM1023_REG_REM_OFFSET,4,2     ## @ADM1023_REG_REM_OFFSET
	.comm	_ADM1023_REG_REM_OFFSET_PREC,4,2 ## @ADM1023_REG_REM_OFFSET_PREC
	.no_dead_strip	_adm1021_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1021_update_device
_adm1021_update_device:                 ; @adm1021_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	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	add	x20, x0, #56
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #64]
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_5
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	w0, #0
	bl	_ADM1021_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	w24, #1000
	mul	w8, w0, w24
	ldr	x9, [x19, #8]
	str	w8, [x9]
	mov	w0, #0
	bl	_ADM1021_REG_TOS_R
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mul	w8, w0, w24
	ldr	x9, [x19, #16]
	str	w8, [x9]
	mov	w0, #0
	bl	_ADM1021_REG_THYST_R
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mul	w8, w0, w24
	ldr	x9, [x19, #24]
	str	w8, [x9]
	mov	w23, #1
	mov	w0, #1
	bl	_ADM1021_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mul	w8, w0, w24
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
	mov	w0, #1
	bl	_ADM1021_REG_TOS_R
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mul	w8, w0, w24
	ldr	x9, [x19, #16]
	str	w8, [x9, #4]
	mov	w0, #1
	bl	_ADM1021_REG_THYST_R
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mul	w8, w0, w24
	ldr	x9, [x19, #24]
	str	w8, [x9, #4]
Lloh7:
	adrp	x8, _ADM1021_REG_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADM1021_REG_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0x7c
	str	w8, [x19, #32]
	ldr	x8, [x19, #40]
Lloh10:
	adrp	x9, _adm1023@GOTPAGE
Lloh11:
	ldr	x9, [x9, _adm1023@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _ADM1023_REG_REM_TEMP_PREC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADM1023_REG_REM_TEMP_PREC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	asr	w8, w0, #5
	mov	w24, #125
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #4]
	madd	w8, w8, w24, w10
	str	w8, [x9, #4]
Lloh16:
	adrp	x8, _ADM1023_REG_REM_TOS_PREC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADM1023_REG_REM_TOS_PREC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	asr	w8, w0, #5
	ldr	x9, [x19, #16]
	ldr	w10, [x9, #4]
	madd	w8, w8, w24, w10
	str	w8, [x9, #4]
Lloh19:
	adrp	x8, _ADM1023_REG_REM_THYST_PREC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADM1023_REG_REM_THYST_PREC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	asr	w8, w0, #5
	ldr	x9, [x19, #24]
	ldr	w10, [x9, #4]
	madd	w8, w8, w24, w10
	str	w8, [x9, #4]
Lloh22:
	adrp	x8, _ADM1023_REG_REM_OFFSET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ADM1023_REG_REM_OFFSET@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	w0, [x19, #48]
Lloh25:
	adrp	x8, _ADM1023_REG_REM_OFFSET_PREC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ADM1023_REG_REM_OFFSET_PREC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	w0, [x19, #52]
LBB0_4:
	ldr	x8, [x22]
	str	x8, [x19, #64]
	str	w23, [x19]
LBB0_5:
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting adm1021 update\n"

	.comm	_ADM1021_REG_STATUS,4,2         ; @ADM1021_REG_STATUS
	.comm	_adm1023,8,3                    ; @adm1023
	.comm	_ADM1023_REG_REM_TEMP_PREC,4,2  ; @ADM1023_REG_REM_TEMP_PREC
	.comm	_ADM1023_REG_REM_TOS_PREC,4,2   ; @ADM1023_REG_REM_TOS_PREC
	.comm	_ADM1023_REG_REM_THYST_PREC,4,2 ; @ADM1023_REG_REM_THYST_PREC
	.comm	_ADM1023_REG_REM_OFFSET,4,2     ; @ADM1023_REG_REM_OFFSET
	.comm	_ADM1023_REG_REM_OFFSET_PREC,4,2 ; @ADM1023_REG_REM_OFFSET_PREC
	.no_dead_strip	_adm1021_update_device
.subsections_via_symbols
