	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thmc50_update_device
_thmc50_update_device:                  ## @thmc50_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, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$33, %rcx
	addl	%edx, %ecx
	movq	(%r14), %rdx
	movq	_thmc50@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	cmpq	(%rsi), %rdx
	cmovel	%eax, %r15d
	addl	%ecx, %r15d
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movslq	%r15d, %rsi
	addq	16(%r14), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 8(%r14)
	jne	LBB0_7
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpq	$0, 72(%r14)
	setne	%r15b
	movq	_THMC50_REG_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, %r12
	movq	_THMC50_REG_CONF_PROGRAMMED@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	leaq	8(,%r15,4), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	movl	(%rax,%r15), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	40(%r14), %rcx
	movq	%rax, (%rcx,%r15,2)
	addq	$4, %r15
	cmpq	%r15, %r13
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_THMC50_REG_TEMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	64(%r14), %rcx
	movq	%rax, (%rcx,%r15,2)
	movq	_THMC50_REG_TEMP_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	56(%r14), %rcx
	movq	%rax, (%rcx,%r15,2)
	movq	_THMC50_REG_TEMP_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	48(%r14), %rcx
	movq	%rax, (%rcx,%r15,2)
	movq	_THMC50_REG_TEMP_CRITICAL@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_THMC50_REG_TEMP_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_THMC50_REG_ANALOG_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 32(%r14)
	movq	_THMC50_REG_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	%rax, 24(%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movl	$1, 8(%r14)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_thmc50,8,3                     ## @thmc50
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_THMC50_REG_CONF,4,2            ## @THMC50_REG_CONF
	.comm	_THMC50_REG_CONF_PROGRAMMED,4,2 ## @THMC50_REG_CONF_PROGRAMMED
	.comm	_THMC50_REG_TEMP,8,3            ## @THMC50_REG_TEMP
	.comm	_THMC50_REG_TEMP_MAX,8,3        ## @THMC50_REG_TEMP_MAX
	.comm	_THMC50_REG_TEMP_MIN,8,3        ## @THMC50_REG_TEMP_MIN
	.comm	_THMC50_REG_TEMP_CRITICAL,8,3   ## @THMC50_REG_TEMP_CRITICAL
	.comm	_THMC50_REG_TEMP_DEFAULT,8,3    ## @THMC50_REG_TEMP_DEFAULT
	.comm	_THMC50_REG_ANALOG_OUT,4,2      ## @THMC50_REG_ANALOG_OUT
	.comm	_THMC50_REG_INTR,4,2            ## @THMC50_REG_INTR
	.no_dead_strip	_thmc50_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thmc50_update_device
_thmc50_update_device:                  ; @thmc50_update_device
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x9, x8, x9
	ldr	x10, [x0]
Lloh3:
	adrp	x11, _thmc50@GOTPAGE
Lloh4:
	ldr	x11, [x11, _thmc50@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	lsr	x10, x9, #63
	asr	x9, x9, #33
	csel	w8, w8, wzr, eq
	add	w9, w9, w10
	add	w22, w8, w9
	add	x21, x0, #12
	mov	x0, x21
	bl	_mutex_lock
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	ldr	x8, [x19, #16]
	add	x1, x8, w22, sxtw
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_5
LBB0_2:
	ldr	x24, [x19, #72]
Lloh9:
	adrp	x8, _THMC50_REG_CONF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THMC50_REG_CONF@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
Lloh12:
	adrp	x8, _THMC50_REG_CONF_PROGRAMMED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _THMC50_REG_CONF_PROGRAMMED@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x25, _THMC50_REG_TEMP@GOTPAGE
Lloh16:
	ldr	x25, [x25, _THMC50_REG_TEMP@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #64]
	str	x0, [x8]
Lloh17:
	adrp	x26, _THMC50_REG_TEMP_MAX@GOTPAGE
Lloh18:
	ldr	x26, [x26, _THMC50_REG_TEMP_MAX@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #56]
	str	x0, [x8]
Lloh19:
	adrp	x27, _THMC50_REG_TEMP_MIN@GOTPAGE
Lloh20:
	ldr	x27, [x27, _THMC50_REG_TEMP_MIN@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ands	w22, w23, w22
	ldr	x8, [x19, #48]
Lloh21:
	adrp	x9, _THMC50_REG_TEMP_DEFAULT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _THMC50_REG_TEMP_DEFAULT@GOTPAGEOFF]
	str	x0, [x8]
Lloh23:
	adrp	x23, _THMC50_REG_TEMP_CRITICAL@GOTPAGE
Lloh24:
	ldr	x23, [x23, _THMC50_REG_TEMP_CRITICAL@GOTPAGEOFF]
	csel	x28, x9, x23, eq
	ldr	x8, [x28]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #40]
	str	x0, [x8]
	ldr	x8, [x25]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #64]
	str	x0, [x8, #8]
	ldr	x8, [x26]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #56]
	str	x0, [x8, #8]
	ldr	x8, [x27]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #48]
	str	x0, [x8, #8]
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #40]
	str	x0, [x8, #8]
	cbz	x24, LBB0_4
; %bb.3:
	ldr	x8, [x25]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #64]
	str	x0, [x8, #16]
	ldr	x8, [x26]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #56]
	str	x0, [x8, #16]
	ldr	x8, [x27]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #48]
	str	x0, [x8, #16]
	cmp	w22, #0
Lloh25:
	adrp	x8, _THMC50_REG_TEMP_DEFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _THMC50_REG_TEMP_DEFAULT@GOTPAGEOFF]
	csel	x8, x8, x23, eq
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x19, #40]
	str	x0, [x8, #16]
LBB0_4:
Lloh27:
	adrp	x8, _THMC50_REG_ANALOG_OUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _THMC50_REG_ANALOG_OUT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	str	x0, [x19, #32]
Lloh30:
	adrp	x8, _THMC50_REG_INTR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _THMC50_REG_INTR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
Lloh33:
	adrp	x8, _jiffies@GOTPAGE
Lloh34:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	stp	x8, x0, [x19, #16]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_thmc50,8,3                     ; @thmc50
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_THMC50_REG_CONF,4,2            ; @THMC50_REG_CONF
	.comm	_THMC50_REG_CONF_PROGRAMMED,4,2 ; @THMC50_REG_CONF_PROGRAMMED
	.comm	_THMC50_REG_TEMP,8,3            ; @THMC50_REG_TEMP
	.comm	_THMC50_REG_TEMP_MAX,8,3        ; @THMC50_REG_TEMP_MAX
	.comm	_THMC50_REG_TEMP_MIN,8,3        ; @THMC50_REG_TEMP_MIN
	.comm	_THMC50_REG_TEMP_CRITICAL,8,3   ; @THMC50_REG_TEMP_CRITICAL
	.comm	_THMC50_REG_TEMP_DEFAULT,8,3    ; @THMC50_REG_TEMP_DEFAULT
	.comm	_THMC50_REG_ANALOG_OUT,4,2      ; @THMC50_REG_ANALOG_OUT
	.comm	_THMC50_REG_INTR,4,2            ; @THMC50_REG_INTR
	.no_dead_strip	_thmc50_update_device
.subsections_via_symbols
