	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ms_sensors_read_temp_and_pressure ## -- Begin function ms_sensors_read_temp_and_pressure
	.p2align	4, 0x90
_ms_sensors_read_temp_and_pressure:     ## @ms_sensors_read_temp_and_pressure
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_ms_sensors_tp_conversion_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rsi
	movl	(%rax,%rsi,4), %ebx
	movl	20(%r14), %edi
	movq	_MS_SENSORS_TP_T_CONVERSION_START@GOTPCREL(%rip), %rax
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movq	_MS_SENSORS_TP_ADC_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-48(%rbp), %r8
	movl	%ebx, %ecx
	callq	_ms_sensors_convert_and_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_2:
	movl	20(%r14), %edi
	movq	_MS_SENSORS_TP_P_CONVERSION_START@GOTPCREL(%rip), %rax
	movq	8(%r14), %rsi
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	movl	(%r15), %edx
	leaq	-44(%rbp), %r8
	movl	%ebx, %ecx
	callq	_ms_sensors_convert_and_read
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.3:
	movl	-48(%rbp), %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	20(%rdi), %ecx
	shll	$8, %ecx
	subl	%ecx, %eax
	movl	24(%rdi), %esi
	imull	%eax, %esi
	xorl	%r12d, %r12d
	movl	$0, %edx
	movl	$0, %ecx
	testl	%esi, %esi
	jns	LBB0_5
## %bb.4:
	sarl	$23, %esi
	imull	%esi, %esi
	imull	$61, %esi, %ecx
	shrl	$4, %ecx
	leal	(%rsi,%rsi,8), %edx
	leal	(%rdx,%rdx,2), %edx
	addl	%esi, %edx
	addl	%esi, %edx
	shrl	$4, %edx
LBB0_5:
	movl	4(%rdi), %esi
	movl	8(%rdi), %r8d
	movl	16(%rdi), %ebx
	imull	%eax, %ebx
	shll	$16, %esi
	subl	%edx, %esi
	imull	12(%rdi), %eax
	sarl	$7, %eax
	addl	%esi, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$0, (%rdx)
	imull	-44(%rbp), %eax
	sarl	$6, %ebx
	sarl	$21, %eax
	shll	$17, %r8d
	subl	%r8d, %ecx
	subl	%ebx, %ecx
	addl	%eax, %ecx
	sarl	$15, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ms_sensors_tp_conversion_time,8,3 ## @ms_sensors_tp_conversion_time
	.comm	_MS_SENSORS_TP_T_CONVERSION_START,8,3 ## @MS_SENSORS_TP_T_CONVERSION_START
	.comm	_MS_SENSORS_TP_ADC_READ,4,2     ## @MS_SENSORS_TP_ADC_READ
	.comm	_MS_SENSORS_TP_P_CONVERSION_START,8,3 ## @MS_SENSORS_TP_P_CONVERSION_START
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ms_sensors_read_temp_and_pressure ; -- Begin function ms_sensors_read_temp_and_pressure
	.p2align	2
_ms_sensors_read_temp_and_pressure:     ; @ms_sensors_read_temp_and_pressure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x25, [x0]
	add	x21, x0, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ms_sensors_tp_conversion_time@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ms_sensors_tp_conversion_time@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x23, #8]
	ldr	w24, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _MS_SENSORS_TP_T_CONVERSION_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_SENSORS_TP_T_CONVERSION_START@GOTPAGEOFF]
	ldr	w0, [x23, #20]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x9, lsl #1
Lloh6:
	adrp	x26, _MS_SENSORS_TP_ADC_READ@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MS_SENSORS_TP_ADC_READ@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x4, sp, #12
	mov	x3, x24
	bl	_ms_sensors_convert_and_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_7
LBB0_2:
	ldr	w0, [x23, #20]
Lloh8:
	adrp	x8, _MS_SENSORS_TP_P_CONVERSION_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MS_SENSORS_TP_P_CONVERSION_START@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x23, #8]
	add	x1, x8, x9, lsl #1
	ldr	w2, [x26]
	add	x4, sp, #8
	mov	x3, x24
	bl	_ms_sensors_convert_and_read
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w22, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	ldp	w9, w10, [x25, #20]
	sub	w8, w8, w9, lsl #8
	mul	w9, w8, w10
	tbnz	w9, #31, LBB0_5
; %bb.4:
	mov	w10, #0
	mov	w9, #0
	b	LBB0_6
LBB0_5:
	asr	w9, w9, #23
	mul	w10, w9, w9
	mov	w9, #61
	mul	w9, w10, w9
	lsr	w9, w9, #4
	mov	w11, #29
	mul	w10, w10, w11
	lsr	w10, w10, #4
LBB0_6:
	mov	w22, #0
	ldp	w12, w11, [x25, #12]
	mul	w11, w11, w8
	mul	w8, w12, w8
	ldp	w13, w12, [x25, #4]
	lsl	w13, w13, #16
	sub	w10, w13, w10
	add	w8, w10, w8, asr #7
	str	wzr, [x20]
	ldr	w10, [sp, #8]
	mul	w8, w8, w10
	sub	w9, w9, w12, lsl #17
	sub	w9, w9, w11, asr #6
	add	w8, w9, w8, asr #21
	asr	w8, w8, #15
	str	w8, [x19]
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ms_sensors_tp_conversion_time,8,3 ; @ms_sensors_tp_conversion_time
	.comm	_MS_SENSORS_TP_T_CONVERSION_START,8,3 ; @MS_SENSORS_TP_T_CONVERSION_START
	.comm	_MS_SENSORS_TP_ADC_READ,4,2     ; @MS_SENSORS_TP_ADC_READ
	.comm	_MS_SENSORS_TP_P_CONVERSION_START,8,3 ; @MS_SENSORS_TP_P_CONVERSION_START
.subsections_via_symbols
