	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc47b397_update_device
_smsc47b397_update_device:              ## @smsc47b397_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
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	24(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%edi, %edi
	callq	_SMSC47B397_REG_TEMP
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_SMSC47B397_REG_FAN_LSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_SMSC47B397_REG_FAN_MSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	shll	$8, %eax
	movq	16(%rbx), %rcx
	orl	%eax, (%rcx)
	movl	$1, %edi
	callq	_SMSC47B397_REG_TEMP
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_SMSC47B397_REG_FAN_LSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_SMSC47B397_REG_FAN_MSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	shll	$8, %eax
	movq	16(%rbx), %rcx
	orl	%eax, 4(%rcx)
	movl	$2, %edi
	callq	_SMSC47B397_REG_TEMP
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_SMSC47B397_REG_FAN_LSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	$2, %edi
	callq	_SMSC47B397_REG_FAN_MSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	shll	$8, %eax
	movq	16(%rbx), %rcx
	orl	%eax, 8(%rcx)
	movl	$3, %edi
	callq	_SMSC47B397_REG_TEMP
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	8(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$3, %edi
	callq	_SMSC47B397_REG_FAN_LSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	movq	16(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$3, %edi
	callq	_SMSC47B397_REG_FAN_MSB
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smsc47b397_read_value
	shll	$8, %eax
	movq	16(%rbx), %rcx
	orl	%eax, 12(%rcx)
	movq	(%r12), %rax
	movq	%rax, 32(%rbx)
	movl	$1, (%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_3:
	movq	%r15, %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,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting device update...\n"

L_.str.1:                               ## @.str.1
	.asciz	"... device update complete\n"

	.no_dead_strip	_smsc47b397_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc47b397_update_device
_smsc47b397_update_device:              ; @smsc47b397_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
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x19, #32]
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_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w0, #0
	bl	_SMSC47B397_REG_TEMP
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	w0, #0
	bl	_SMSC47B397_REG_FAN_LSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8]
	mov	w0, #0
	bl	_SMSC47B397_REG_FAN_MSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8]
	mov	w23, #1
	mov	w0, #1
	bl	_SMSC47B397_REG_TEMP
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_SMSC47B397_REG_FAN_LSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_SMSC47B397_REG_FAN_MSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8, #4]
	mov	w0, #2
	bl	_SMSC47B397_REG_TEMP
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_SMSC47B397_REG_FAN_LSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	mov	w0, #2
	bl	_SMSC47B397_REG_FAN_MSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8, #8]
	mov	w0, #3
	bl	_SMSC47B397_REG_TEMP
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #8]
	str	w0, [x8, #12]
	mov	w0, #3
	bl	_SMSC47B397_REG_FAN_LSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	str	w0, [x8, #12]
	mov	w0, #3
	bl	_SMSC47B397_REG_FAN_MSB
	mov	x1, x0
	mov	x0, x19
	bl	_smsc47b397_read_value
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #12]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8, #12]
	ldr	x8, [x22]
	str	x8, [x19, #32]
	str	w23, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_3:
	mov	x0, x21
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting device update...\n"

l_.str.1:                               ; @.str.1
	.asciz	"... device update complete\n"

	.no_dead_strip	_smsc47b397_update_device
.subsections_via_symbols
