	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emc2103_update_device
_emc2103_update_device:                 ## @emc2103_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	_dev_get_drvdata
	movq	%rax, %r13
	movq	64(%rax), %r15
	leaq	8(%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	16(%r13), %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, (%r13)
	jne	LBB0_6
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r13)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_REG_TEMP_MAX@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REG_TEMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx), %esi
	movq	56(%r13), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_read_temp_from_i2c
	movq	_REG_TEMP_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx), %esi
	movq	48(%r13), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_read_u8_from_i2c
	movq	(%r12), %rax
	movl	(%rax,%rbx), %esi
	movq	40(%r13), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_read_u8_from_i2c
	incq	%r14
	movslq	4(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	_REG_TEMP_MIN_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	36(%r13), %rdx
	movq	%r15, %rdi
	callq	_read_u8_from_i2c
	movq	_REG_TEMP_MAX_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%r13), %rdx
	movq	%r15, %rdi
	callq	_read_u8_from_i2c
	leaq	28(%r13), %rsi
	movq	_REG_FAN_TACH_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_REG_FAN_TACH_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_read_fan_from_i2c
	movq	%r13, %rsi
	addq	$24, %rsi
	movq	_REG_FAN_TARGET_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_REG_FAN_TARGET_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_read_fan_from_i2c
	movq	%r15, %rdi
	callq	_read_fan_config_from_i2c
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	movl	$1, (%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r13, %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
	.comm	_REG_TEMP,8,3                   ## @REG_TEMP
	.comm	_REG_TEMP_MIN,8,3               ## @REG_TEMP_MIN
	.comm	_REG_TEMP_MAX,8,3               ## @REG_TEMP_MAX
	.comm	_REG_TEMP_MIN_ALARM,4,2         ## @REG_TEMP_MIN_ALARM
	.comm	_REG_TEMP_MAX_ALARM,4,2         ## @REG_TEMP_MAX_ALARM
	.comm	_REG_FAN_TACH_HI,4,2            ## @REG_FAN_TACH_HI
	.comm	_REG_FAN_TACH_LO,4,2            ## @REG_FAN_TACH_LO
	.comm	_REG_FAN_TARGET_HI,4,2          ## @REG_FAN_TARGET_HI
	.comm	_REG_FAN_TARGET_LO,4,2          ## @REG_FAN_TARGET_LO
	.no_dead_strip	_emc2103_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emc2103_update_device
_emc2103_update_device:                 ; @emc2103_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	_dev_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #64]
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #16]
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_6
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _REG_TEMP@GOTPAGE
Lloh6:
	ldr	x25, [x25, _REG_TEMP@GOTPAGEOFF]
Lloh7:
	adrp	x26, _REG_TEMP_MIN@GOTPAGE
Lloh8:
	ldr	x26, [x26, _REG_TEMP_MIN@GOTPAGEOFF]
Lloh9:
	adrp	x27, _REG_TEMP_MAX@GOTPAGE
Lloh10:
	ldr	x27, [x27, _REG_TEMP_MAX@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w1, [x8, x23]
	ldr	x8, [x19, #56]
	add	x2, x8, x23
	mov	x0, x21
	bl	_read_temp_from_i2c
	ldr	x8, [x26]
	ldr	w1, [x8, x23]
	ldr	x8, [x19, #48]
	add	x2, x8, x23
	mov	x0, x21
	bl	_read_u8_from_i2c
	ldr	x8, [x27]
	ldr	w1, [x8, x23]
	ldr	x8, [x19, #40]
	add	x2, x8, x23
	mov	x0, x21
	bl	_read_u8_from_i2c
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
Lloh11:
	adrp	x8, _REG_TEMP_MIN_ALARM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_TEMP_MIN_ALARM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, x19, #36
	mov	x0, x21
	bl	_read_u8_from_i2c
Lloh14:
	adrp	x8, _REG_TEMP_MAX_ALARM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_TEMP_MAX_ALARM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, x19, #32
	mov	x0, x21
	bl	_read_u8_from_i2c
	add	x1, x19, #28
Lloh17:
	adrp	x8, _REG_FAN_TACH_HI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_FAN_TACH_HI@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _REG_FAN_TACH_LO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REG_FAN_TACH_LO@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_read_fan_from_i2c
	add	x1, x19, #24
Lloh23:
	adrp	x8, _REG_FAN_TARGET_HI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_FAN_TARGET_HI@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _REG_FAN_TARGET_LO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_FAN_TARGET_LO@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_read_fan_from_i2c
	mov	x0, x21
	bl	_read_fan_config_from_i2c
	ldr	x8, [x22]
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_REG_TEMP,8,3                   ; @REG_TEMP
	.comm	_REG_TEMP_MIN,8,3               ; @REG_TEMP_MIN
	.comm	_REG_TEMP_MAX,8,3               ; @REG_TEMP_MAX
	.comm	_REG_TEMP_MIN_ALARM,4,2         ; @REG_TEMP_MIN_ALARM
	.comm	_REG_TEMP_MAX_ALARM,4,2         ; @REG_TEMP_MAX_ALARM
	.comm	_REG_FAN_TACH_HI,4,2            ; @REG_FAN_TACH_HI
	.comm	_REG_FAN_TACH_LO,4,2            ; @REG_FAN_TACH_LO
	.comm	_REG_FAN_TARGET_HI,4,2          ; @REG_FAN_TARGET_HI
	.comm	_REG_FAN_TARGET_LO,4,2          ; @REG_FAN_TARGET_LO
	.no_dead_strip	_emc2103_update_device
.subsections_via_symbols
