	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc654_update_client
_tc654_update_client:                   ## @tc654_update_client
	.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, %r12
	movq	48(%rax), %r15
	leaq	36(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_TC654_UPDATE_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%r12), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%edi, %edi
	callq	_TC654_REG_RPM
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	8(%r12), %rax
	movl	%ebx, (%rax)
	movl	$1, %edi
	callq	_TC654_REG_RPM
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	8(%r12), %rax
	movl	%ebx, 4(%rax)
	xorl	%edi, %edi
	callq	_TC654_REG_FAN_FAULT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	16(%r12), %rax
	movl	%ebx, (%rax)
	movl	$1, %edi
	callq	_TC654_REG_FAN_FAULT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movq	16(%r12), %rax
	movl	%ebx, 4(%rax)
	movq	_TC654_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movl	%ebx, 24(%r12)
	movq	_TC654_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movl	%ebx, 28(%r12)
	movq	_TC654_REG_DUTY_CYCLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	andl	$15, %ebx
	movl	%ebx, 32(%r12)
	movq	(%r13), %rax
	movq	%rax, 40(%r12)
	movl	$1, (%r12)
	jmp	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TC654_UPDATE_INTERVAL,8,3      ## @TC654_UPDATE_INTERVAL
	.comm	_TC654_REG_CONFIG,4,2           ## @TC654_REG_CONFIG
	.comm	_TC654_REG_STATUS,4,2           ## @TC654_REG_STATUS
	.comm	_TC654_REG_DUTY_CYCLE,4,2       ## @TC654_REG_DUTY_CYCLE
	.no_dead_strip	_tc654_update_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc654_update_client
_tc654_update_client:                   ; @tc654_update_client
	.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	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #48]
	add	x19, x0, #36
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x20, #40]
Lloh2:
	adrp	x9, _TC654_UPDATE_INTERVAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TC654_UPDATE_INTERVAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_before
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	bl	_likely
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
LBB0_3:
	mov	w0, #0
	bl	_TC654_REG_RPM
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	x8, [x20, #8]
	str	w22, [x8]
	mov	w0, #1
	bl	_TC654_REG_RPM
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.5:
	ldr	x8, [x20, #8]
	str	w22, [x8, #4]
	mov	w0, #0
	bl	_TC654_REG_FAN_FAULT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	x8, [x20, #16]
	str	w22, [x8]
	mov	w0, #1
	bl	_TC654_REG_FAN_FAULT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	x8, [x20, #16]
	str	w22, [x8, #4]
Lloh5:
	adrp	x8, _TC654_REG_CONFIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TC654_REG_CONFIG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.8:
	str	w22, [x20, #24]
Lloh8:
	adrp	x8, _TC654_REG_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TC654_REG_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	str	w22, [x20, #28]
Lloh11:
	adrp	x8, _TC654_REG_DUTY_CYCLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TC654_REG_DUTY_CYCLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.10:
	and	w8, w22, #0xf
	str	w8, [x20, #32]
	ldr	x8, [x23]
	str	x8, [x20, #40]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TC654_UPDATE_INTERVAL,8,3      ; @TC654_UPDATE_INTERVAL
	.comm	_TC654_REG_CONFIG,4,2           ; @TC654_REG_CONFIG
	.comm	_TC654_REG_STATUS,4,2           ; @TC654_REG_STATUS
	.comm	_TC654_REG_DUTY_CYCLE,4,2       ; @TC654_REG_DUTY_CYCLE
	.no_dead_strip	_tc654_update_client
.subsections_via_symbols
