	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ms_sensors_ht_read_temperature ## -- Begin function ms_sensors_ht_read_temperature
	.p2align	4, 0x90
_ms_sensors_ht_read_temperature:        ## @ms_sensors_ht_read_temperature
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_ms_sensors_ht_t_conversion_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdi
	movl	(%rax,%rcx,4), %ecx
	movq	_MS_SENSORS_HT_T_CONVERSION_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MS_SENSORS_NO_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r8
	callq	_ms_sensors_convert_and_read
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.1:
	movl	-36(%rbp), %edi
	callq	_ms_sensors_crc_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-36(%rbp), %eax
	sarl	$8, %eax
	imull	$175720, %eax, %eax             ## imm = 0x2AE68
	sarl	$16, %eax
	addl	$-46850, %eax                   ## imm = 0xFFFF48FE
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ms_sensors_ht_t_conversion_time,8,3 ## @ms_sensors_ht_t_conversion_time
	.comm	_MS_SENSORS_HT_T_CONVERSION_START,4,2 ## @MS_SENSORS_HT_T_CONVERSION_START
	.comm	_MS_SENSORS_NO_READ_CMD,4,2     ## @MS_SENSORS_NO_READ_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Temperature read crc check error\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ms_sensors_ht_read_temperature ; -- Begin function ms_sensors_ht_read_temperature
	.p2align	2
_ms_sensors_ht_read_temperature:        ; @ms_sensors_ht_read_temperature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x22, x0, #16
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ms_sensors_ht_t_conversion_time@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ms_sensors_ht_t_conversion_time@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x0, [x20]
	ldr	w3, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _MS_SENSORS_HT_T_CONVERSION_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_SENSORS_HT_T_CONVERSION_START@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MS_SENSORS_NO_READ_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MS_SENSORS_NO_READ_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x4, sp, #12
	bl	_ms_sensors_convert_and_read
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbnz	w21, LBB0_4
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_ms_sensors_crc_valid
	cbz	w0, LBB0_3
; %bb.2:
	mov	w21, #0
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
	mov	w9, #44648
	movk	w9, #2, lsl #16
	mul	w8, w8, w9
	mov	w9, #-46850
	add	w8, w9, w8, asr #16
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ms_sensors_ht_t_conversion_time,8,3 ; @ms_sensors_ht_t_conversion_time
	.comm	_MS_SENSORS_HT_T_CONVERSION_START,4,2 ; @MS_SENSORS_HT_T_CONVERSION_START
	.comm	_MS_SENSORS_NO_READ_CMD,4,2     ; @MS_SENSORS_NO_READ_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Temperature read crc check error\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
