	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83l785ts_update_device
_w83l785ts_update_device:               ## @w83l785ts_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%rsi, %rsi
	addq	8(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	_W83L785TS_REG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	callq	_w83l785ts_read_value
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	_W83L785TS_REG_TEMP_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movq	8(%rax), %rdx
	movq	%r15, %rdi
	callq	_w83l785ts_read_value
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$1, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updating w83l785ts data.\n"

	.comm	_W83L785TS_REG_TEMP,4,2         ## @W83L785TS_REG_TEMP
	.comm	_W83L785TS_REG_TEMP_OVER,4,2    ## @W83L785TS_REG_TEMP_OVER
	.no_dead_strip	_w83l785ts_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83l785ts_update_device
_w83l785ts_update_device:               ; @w83l785ts_update_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x22]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #1
	bl	_time_after
	cbz	x0, LBB0_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh7:
	adrp	x8, _W83L785TS_REG_TEMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _W83L785TS_REG_TEMP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	x2, [x8]
	mov	x0, x21
	bl	_w83l785ts_read_value
	ldr	x8, [x19, #16]
	str	x0, [x8]
Lloh10:
	adrp	x8, _W83L785TS_REG_TEMP_OVER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _W83L785TS_REG_TEMP_OVER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	x2, [x8, #8]
	mov	x0, x21
	bl	_w83l785ts_read_value
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	x8, [x22]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updating w83l785ts data.\n"

	.comm	_W83L785TS_REG_TEMP,4,2         ; @W83L785TS_REG_TEMP
	.comm	_W83L785TS_REG_TEMP_OVER,4,2    ; @W83L785TS_REG_TEMP_OVER
	.no_dead_strip	_w83l785ts_update_device
.subsections_via_symbols
