	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emc6w201_update_device
_emc6w201_update_device:                ## @emc6w201_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, %r15
	movq	40(%rax), %r12
	leaq	4(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	jne	LBB0_7
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_input@GOTPCREL(%rip), %r14
	movq	_max@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_EMC6W201_REG_IN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read8
	movq	32(%r15), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_EMC6W201_REG_IN_LOW
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read8
	movq	32(%r15), %rcx
	movq	_min@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_EMC6W201_REG_IN_HIGH
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read8
	movq	32(%r15), %rcx
	movq	(%r13), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$6, %rbx
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_EMC6W201_REG_TEMP
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read8
	movq	24(%r15), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_EMC6W201_REG_TEMP_LOW
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read8
	movq	24(%r15), %rcx
	movq	_min@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	%ebx, %edi
	callq	_EMC6W201_REG_TEMP_HIGH
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read8
	movq	24(%r15), %rcx
	movq	(%r13), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$6, %rbx
	jne	LBB0_5
## %bb.6:
	xorl	%edi, %edi
	callq	_EMC6W201_REG_FAN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	%r14, %rbx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	callq	_EMC6W201_REG_FAN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	_min@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx)
	movl	$1, %edi
	callq	_EMC6W201_REG_FAN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, %edi
	callq	_EMC6W201_REG_FAN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 8(%rcx)
	movl	$2, %edi
	callq	_EMC6W201_REG_FAN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 16(%rcx)
	movl	$2, %edi
	callq	_EMC6W201_REG_FAN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 16(%rcx)
	movl	$3, %edi
	callq	_EMC6W201_REG_FAN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 24(%rcx)
	movl	$3, %edi
	callq	_EMC6W201_REG_FAN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 24(%rcx)
	movl	$4, %edi
	callq	_EMC6W201_REG_FAN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 32(%rcx)
	movl	$4, %edi
	callq	_EMC6W201_REG_FAN_MIN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_emc6w201_read16
	movq	16(%r15), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 32(%rcx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$1, (%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %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,8,3                         ## @HZ
	.comm	_input,8,3                      ## @input
	.comm	_min,8,3                        ## @min
	.comm	_max,8,3                        ## @max
	.no_dead_strip	_emc6w201_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emc6w201_update_device
_emc6w201_update_device:                ; @emc6w201_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, #40]
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
LBB0_2:
	mov	x22, #0
Lloh5:
	adrp	x25, _input@GOTPAGE
Lloh6:
	ldr	x25, [x25, _input@GOTPAGEOFF]
Lloh7:
	adrp	x24, _min@GOTPAGE
Lloh8:
	ldr	x24, [x24, _min@GOTPAGEOFF]
Lloh9:
	adrp	x26, _max@GOTPAGE
Lloh10:
	ldr	x26, [x26, _max@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_EMC6W201_REG_IN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read8
	ldr	x8, [x19, #32]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	lsl	x27, x22, #3
	str	x0, [x8, x27]
	mov	x0, x22
	bl	_EMC6W201_REG_IN_LOW
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read8
	ldr	x8, [x19, #32]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, x27]
	mov	x0, x22
	bl	_EMC6W201_REG_IN_HIGH
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read8
	ldr	x8, [x19, #32]
	ldr	x9, [x26]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, x27]
	add	x22, x22, #1
	cmp	x22, #6
	b.ne	LBB0_3
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_EMC6W201_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read8
	ldr	x8, [x19, #24]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	lsl	x27, x22, #3
	str	x0, [x8, x27]
	mov	x0, x22
	bl	_EMC6W201_REG_TEMP_LOW
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read8
	ldr	x8, [x19, #24]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, x27]
	mov	x0, x22
	bl	_EMC6W201_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read8
	ldr	x8, [x19, #24]
	ldr	x9, [x26]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, x27]
	add	x22, x22, #1
	cmp	x22, #6
	b.ne	LBB0_5
; %bb.6:
	mov	w0, #0
	bl	_EMC6W201_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8]
	mov	w0, #0
	bl	_EMC6W201_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8]
	mov	w22, #1
	mov	w0, #1
	bl	_EMC6W201_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #8]
	mov	w0, #1
	bl	_EMC6W201_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #8]
	mov	w0, #2
	bl	_EMC6W201_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #16]
	mov	w0, #2
	bl	_EMC6W201_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #16]
	mov	w0, #3
	bl	_EMC6W201_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #24]
	mov	w0, #3
	bl	_EMC6W201_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #24]
	mov	w0, #4
	bl	_EMC6W201_REG_FAN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x25]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #32]
	mov	w0, #4
	bl	_EMC6W201_REG_FAN_MIN
	mov	x1, x0
	mov	x0, x21
	bl	_emc6w201_read16
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x0, [x8, #32]
	ldr	x8, [x23]
	str	x8, [x19, #8]
	str	w22, [x19]
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_input,8,3                      ; @input
	.comm	_min,8,3                        ; @min
	.comm	_max,8,3                        ; @max
	.no_dead_strip	_emc6w201_update_device
.subsections_via_symbols
