	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm63_update_device
_lm63_update_device:                    ## @lm63_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	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	leaq	48(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r13), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r13)
	jne	LBB0_5
LBB0_2:
	testb	$4, 4(%r13)
	je	LBB0_4
## %bb.3:
	movq	_LM63_REG_TACH_COUNT_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	andl	$252, %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	movq	_LM63_REG_TACH_COUNT_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	shll	$8, %eax
	movq	8(%r13), %rcx
	orl	%eax, (%rcx)
	movq	_LM63_REG_TACH_LIMIT_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%r12, %rbx
	movl	%eax, %r12d
	andl	$252, %r12d
	movq	_LM63_REG_TACH_LIMIT_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	shll	$8, %eax
	orl	%r12d, %eax
	movq	%rbx, %r12
	movq	8(%r13), %rcx
	movl	%eax, 4(%rcx)
LBB0_4:
	movq	_LM63_REG_PWM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 16(%r13)
	movq	_LM63_REG_PWM_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, 20(%r13)
	movq	_LM63_REG_LOCAL_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	24(%r13), %rcx
	movl	%eax, (%rcx)
	movq	_LM63_REG_LOCAL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	24(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	_LM63_REG_REMOTE_TEMP_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	shll	$8, %eax
	movq	32(%r13), %rcx
	movl	%eax, (%rcx)
	movq	_LM63_REG_REMOTE_TEMP_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	32(%r13), %rcx
	orl	%eax, (%rcx)
	movq	_LM63_REG_REMOTE_LOW_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	_LM63_REG_REMOTE_LOW_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	orl	%ebx, %eax
	movq	32(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	_LM63_REG_REMOTE_HIGH_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	_LM63_REG_REMOTE_HIGH_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	orl	%ebx, %eax
	movq	32(%r13), %rcx
	movl	%eax, 8(%rcx)
	movq	_LM63_REG_REMOTE_TCRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	24(%r13), %rcx
	movl	%eax, 8(%rcx)
	movq	_LM63_REG_REMOTE_TCRIT_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, 40(%r13)
	movq	_LM63_REG_ALERT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	andl	$127, %eax
	movl	%eax, 44(%r13)
	movq	(%r12), %rax
	movq	%rax, 56(%r13)
	movl	$1, (%r13)
LBB0_5:
	movq	%r14, %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,8,3                         ## @HZ
	.comm	_LM63_REG_TACH_COUNT_LSB,4,2    ## @LM63_REG_TACH_COUNT_LSB
	.comm	_LM63_REG_TACH_COUNT_MSB,4,2    ## @LM63_REG_TACH_COUNT_MSB
	.comm	_LM63_REG_TACH_LIMIT_LSB,4,2    ## @LM63_REG_TACH_LIMIT_LSB
	.comm	_LM63_REG_TACH_LIMIT_MSB,4,2    ## @LM63_REG_TACH_LIMIT_MSB
	.comm	_LM63_REG_PWM_FREQ,4,2          ## @LM63_REG_PWM_FREQ
	.comm	_LM63_REG_PWM_VALUE,4,2         ## @LM63_REG_PWM_VALUE
	.comm	_LM63_REG_LOCAL_TEMP,4,2        ## @LM63_REG_LOCAL_TEMP
	.comm	_LM63_REG_LOCAL_HIGH,4,2        ## @LM63_REG_LOCAL_HIGH
	.comm	_LM63_REG_REMOTE_TEMP_MSB,4,2   ## @LM63_REG_REMOTE_TEMP_MSB
	.comm	_LM63_REG_REMOTE_TEMP_LSB,4,2   ## @LM63_REG_REMOTE_TEMP_LSB
	.comm	_LM63_REG_REMOTE_LOW_MSB,4,2    ## @LM63_REG_REMOTE_LOW_MSB
	.comm	_LM63_REG_REMOTE_LOW_LSB,4,2    ## @LM63_REG_REMOTE_LOW_LSB
	.comm	_LM63_REG_REMOTE_HIGH_MSB,4,2   ## @LM63_REG_REMOTE_HIGH_MSB
	.comm	_LM63_REG_REMOTE_HIGH_LSB,4,2   ## @LM63_REG_REMOTE_HIGH_LSB
	.comm	_LM63_REG_REMOTE_TCRIT,4,2      ## @LM63_REG_REMOTE_TCRIT
	.comm	_LM63_REG_REMOTE_TCRIT_HYST,4,2 ## @LM63_REG_REMOTE_TCRIT_HYST
	.comm	_LM63_REG_ALERT_STATUS,4,2      ## @LM63_REG_ALERT_STATUS
	.no_dead_strip	_lm63_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm63_update_device
_lm63_update_device:                    ; @lm63_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
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	add	x20, x0, #48
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x19, #56]
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_5
LBB0_2:
	ldrb	w8, [x19, #4]
	tbz	w8, #2, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _LM63_REG_TACH_COUNT_LSB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LM63_REG_TACH_COUNT_LSB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0xfc
	ldr	x9, [x19, #8]
	str	w8, [x9]
Lloh8:
	adrp	x8, _LM63_REG_TACH_COUNT_MSB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LM63_REG_TACH_COUNT_MSB@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	orr	w9, w9, w0, lsl #8
	str	w9, [x8]
Lloh11:
	adrp	x8, _LM63_REG_TACH_LIMIT_LSB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LM63_REG_TACH_LIMIT_LSB@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	and	w22, w0, #0xfc
Lloh14:
	adrp	x8, _LM63_REG_TACH_LIMIT_MSB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LM63_REG_TACH_LIMIT_MSB@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	bfi	w22, w0, #8, #24
	ldr	x8, [x19, #8]
	str	w22, [x8, #4]
LBB0_4:
Lloh17:
	adrp	x8, _LM63_REG_PWM_FREQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LM63_REG_PWM_FREQ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #0
	csinc	w8, w0, wzr, ne
	str	w8, [x19, #16]
Lloh20:
	adrp	x8, _LM63_REG_PWM_VALUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LM63_REG_PWM_VALUE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	w0, [x19, #20]
Lloh23:
	adrp	x8, _LM63_REG_LOCAL_TEMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LM63_REG_LOCAL_TEMP@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #24]
	str	w0, [x8]
Lloh26:
	adrp	x8, _LM63_REG_LOCAL_HIGH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LM63_REG_LOCAL_HIGH@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
Lloh29:
	adrp	x8, _LM63_REG_REMOTE_TEMP_MSB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LM63_REG_REMOTE_TEMP_MSB@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	lsl	w8, w0, #8
	ldr	x9, [x19, #32]
	str	w8, [x9]
Lloh32:
	adrp	x8, _LM63_REG_REMOTE_TEMP_LSB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LM63_REG_REMOTE_TEMP_LSB@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
Lloh35:
	adrp	x8, _LM63_REG_REMOTE_LOW_MSB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LM63_REG_REMOTE_LOW_MSB@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh38:
	adrp	x8, _LM63_REG_REMOTE_LOW_LSB@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LM63_REG_REMOTE_LOW_LSB@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #32]
	str	w8, [x9, #4]
Lloh41:
	adrp	x8, _LM63_REG_REMOTE_HIGH_MSB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LM63_REG_REMOTE_HIGH_MSB@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh44:
	adrp	x8, _LM63_REG_REMOTE_HIGH_LSB@GOTPAGE
Lloh45:
	ldr	x8, [x8, _LM63_REG_REMOTE_HIGH_LSB@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	orr	w8, w0, w22, lsl #8
	ldr	x9, [x19, #32]
	str	w8, [x9, #8]
Lloh47:
	adrp	x8, _LM63_REG_REMOTE_TCRIT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _LM63_REG_REMOTE_TCRIT@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
Lloh50:
	adrp	x8, _LM63_REG_REMOTE_TCRIT_HYST@GOTPAGE
Lloh51:
	ldr	x8, [x8, _LM63_REG_REMOTE_TCRIT_HYST@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	str	w0, [x19, #40]
Lloh53:
	adrp	x8, _LM63_REG_ALERT_STATUS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _LM63_REG_ALERT_STATUS@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0x7f
	str	w8, [x19, #44]
	ldr	x8, [x23]
	str	x8, [x19, #56]
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_LM63_REG_TACH_COUNT_LSB,4,2    ; @LM63_REG_TACH_COUNT_LSB
	.comm	_LM63_REG_TACH_COUNT_MSB,4,2    ; @LM63_REG_TACH_COUNT_MSB
	.comm	_LM63_REG_TACH_LIMIT_LSB,4,2    ; @LM63_REG_TACH_LIMIT_LSB
	.comm	_LM63_REG_TACH_LIMIT_MSB,4,2    ; @LM63_REG_TACH_LIMIT_MSB
	.comm	_LM63_REG_PWM_FREQ,4,2          ; @LM63_REG_PWM_FREQ
	.comm	_LM63_REG_PWM_VALUE,4,2         ; @LM63_REG_PWM_VALUE
	.comm	_LM63_REG_LOCAL_TEMP,4,2        ; @LM63_REG_LOCAL_TEMP
	.comm	_LM63_REG_LOCAL_HIGH,4,2        ; @LM63_REG_LOCAL_HIGH
	.comm	_LM63_REG_REMOTE_TEMP_MSB,4,2   ; @LM63_REG_REMOTE_TEMP_MSB
	.comm	_LM63_REG_REMOTE_TEMP_LSB,4,2   ; @LM63_REG_REMOTE_TEMP_LSB
	.comm	_LM63_REG_REMOTE_LOW_MSB,4,2    ; @LM63_REG_REMOTE_LOW_MSB
	.comm	_LM63_REG_REMOTE_LOW_LSB,4,2    ; @LM63_REG_REMOTE_LOW_LSB
	.comm	_LM63_REG_REMOTE_HIGH_MSB,4,2   ; @LM63_REG_REMOTE_HIGH_MSB
	.comm	_LM63_REG_REMOTE_HIGH_LSB,4,2   ; @LM63_REG_REMOTE_HIGH_LSB
	.comm	_LM63_REG_REMOTE_TCRIT,4,2      ; @LM63_REG_REMOTE_TCRIT
	.comm	_LM63_REG_REMOTE_TCRIT_HYST,4,2 ; @LM63_REG_REMOTE_TCRIT_HYST
	.comm	_LM63_REG_ALERT_STATUS,4,2      ; @LM63_REG_ALERT_STATUS
	.no_dead_strip	_lm63_update_device
.subsections_via_symbols
