	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc47m1_update_device
_smsc47m1_update_device:                ## @smsc47m1_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	44(%rax), %r14
	movq	%r14, %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	48(%rbx), %rax
	movq	(%rdx), %rdi
	sarl	%ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	callq	_time_after
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	movq	_smsc47m2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r12d, %r12d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	sete	%r12b
	orq	$2, %r12
	xorl	%r15d, %r15d
	movq	_SMSC47M1_REG_FAN_PRELOAD@GOTPCREL(%rip), %r14
	movq	_SMSC47M1_REG_PWM@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SMSC47M1_REG_FAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	(%r14), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_3
## %bb.4:
	movq	_SMSC47M1_REG_FANDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movq	32(%rbx), %rdx
	movl	%ecx, (%rdx)
	sarl	$6, %eax
	movl	%eax, 4(%rdx)
	movq	_SMSC47M1_REG_ALARM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	movl	%eax, %ecx
	sarl	$6, %ecx
	movl	%ecx, 40(%rbx)
	cmpl	$64, %eax
	jb	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$192, %edx
	callq	_smsc47m1_write_value
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	movq	_jiffies@GOTPCREL(%rip), %r15
	jne	LBB0_9
## %bb.7:
	movq	_SMSC47M2_REG_FANDIV3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	shrl	$4, %eax
	andl	$3, %eax
	movq	32(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_SMSC47M2_REG_ALARM6@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_smsc47m1_read_value
	shrl	$4, %eax
	andl	$4, %eax
	orl	40(%rbx), %eax
	movl	%eax, 40(%rbx)
	testb	$4, %al
	je	LBB0_9
## %bb.8:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_smsc47m1_write_value
LBB0_9:
	movq	(%r15), %rax
	movq	%rax, 48(%rbx)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$24, %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	_smsc47m2,8,3                   ## @smsc47m2
	.comm	_SMSC47M1_REG_FAN,8,3           ## @SMSC47M1_REG_FAN
	.comm	_SMSC47M1_REG_FAN_PRELOAD,8,3   ## @SMSC47M1_REG_FAN_PRELOAD
	.comm	_SMSC47M1_REG_PWM,8,3           ## @SMSC47M1_REG_PWM
	.comm	_SMSC47M1_REG_FANDIV,4,2        ## @SMSC47M1_REG_FANDIV
	.comm	_SMSC47M1_REG_ALARM,4,2         ## @SMSC47M1_REG_ALARM
	.comm	_SMSC47M2_REG_FANDIV3,4,2       ## @SMSC47M2_REG_FANDIV3
	.comm	_SMSC47M2_REG_ALARM6,4,2        ## @SMSC47M2_REG_ALARM6
	.no_dead_strip	_smsc47m1_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc47m1_update_device
_smsc47m1_update_device:                ; @smsc47m1_update_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x20, x0, #44
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #48]
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	w21, LBB0_2
; %bb.1:
	cbz	x0, LBB0_10
LBB0_2:
Lloh5:
	adrp	x8, _smsc47m2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _smsc47m2@GOTPAGEOFF]
	ldr	x21, [x19]
Lloh7:
	ldr	x23, [x8]
Lloh8:
	adrp	x24, _SMSC47M1_REG_FAN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SMSC47M1_REG_FAN@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8]
Lloh10:
	adrp	x25, _SMSC47M1_REG_FAN_PRELOAD@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SMSC47M1_REG_FAN_PRELOAD@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8]
Lloh12:
	adrp	x26, _SMSC47M1_REG_PWM@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SMSC47M1_REG_PWM@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8]
	ldr	x8, [x24]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #4]
	ldr	x8, [x25]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	ldr	x8, [x26]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
	cmp	x21, x23
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x24]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #8]
	ldr	x8, [x25]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	ldr	x8, [x26]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
LBB0_4:
Lloh14:
	adrp	x8, _SMSC47M1_REG_FANDIV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMSC47M1_REG_FANDIV@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ubfx	w8, w0, #4, #2
	ldr	x9, [x19, #32]
	asr	w10, w0, #6
	stp	w8, w10, [x9]
Lloh17:
	adrp	x24, _SMSC47M1_REG_ALARM@GOTPAGE
Lloh18:
	ldr	x24, [x24, _SMSC47M1_REG_ALARM@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_smsc47m1_read_value
	asr	w8, w0, #6
	str	w8, [x19, #40]
	cmp	w0, #64
	b.lo	LBB0_6
; %bb.5:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #192
	bl	_smsc47m1_write_value
LBB0_6:
	cmp	x21, x23
	b.ne	LBB0_9
; %bb.7:
Lloh19:
	adrp	x8, _SMSC47M2_REG_FANDIV3@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMSC47M2_REG_FANDIV3@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc47m1_read_value
	ubfx	w8, w0, #4, #2
	ldr	x9, [x19, #32]
	str	w8, [x9, #8]
Lloh22:
	adrp	x21, _SMSC47M2_REG_ALARM6@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SMSC47M2_REG_ALARM6@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc47m1_read_value
	lsr	w8, w0, #4
	and	w8, w8, #0x4
	ldr	w9, [x19, #40]
	orr	w8, w8, w9
	str	w8, [x19, #40]
	tbz	w8, #2, LBB0_9
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #64
	bl	_smsc47m1_write_value
LBB0_9:
	ldr	x8, [x22]
	str	x8, [x19, #48]
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_smsc47m2,8,3                   ; @smsc47m2
	.comm	_SMSC47M1_REG_FAN,8,3           ; @SMSC47M1_REG_FAN
	.comm	_SMSC47M1_REG_FAN_PRELOAD,8,3   ; @SMSC47M1_REG_FAN_PRELOAD
	.comm	_SMSC47M1_REG_PWM,8,3           ; @SMSC47M1_REG_PWM
	.comm	_SMSC47M1_REG_FANDIV,4,2        ; @SMSC47M1_REG_FANDIV
	.comm	_SMSC47M1_REG_ALARM,4,2         ; @SMSC47M1_REG_ALARM
	.comm	_SMSC47M2_REG_FANDIV3,4,2       ; @SMSC47M2_REG_FANDIV3
	.comm	_SMSC47M2_REG_ALARM6,4,2        ; @SMSC47M2_REG_ALARM6
	.no_dead_strip	_smsc47m1_update_device
.subsections_via_symbols
