	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpl115_comp_pressure
_mpl115_comp_pressure:                  ## @mpl115_comp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_mpl115_request
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movl	20(%rbx), %edi
	movq	_MPL115_PADC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	24(%rbx), %rax
	movl	20(%rbx), %edi
	movq	_MPL115_TADC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	shrl	$6, %r14d
	movl	%r13d, %eax
	shrl	$6, %eax
	movl	4(%rbx), %ecx
	imull	%eax, %ecx
	sarl	$11, %ecx
	addl	(%rbx), %ecx
	imull	%r14d, %ecx
	movl	8(%rbx), %edx
	shll	$10, %edx
	addl	%ecx, %edx
	imull	12(%rbx), %eax
	sarl	%eax
	addl	%edx, %eax
	sarl	$9, %eax
	movl	%eax, %ecx
	shll	$6, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$-2145384445, %rax, %rcx        ## imm = 0x80200803
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$9, %eax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	addl	$800, %eax                      ## imm = 0x320
	shrl	$4, %eax
	movl	%eax, (%r15)
	andl	$15, %edx
	imull	$62500, %edx, %eax              ## imm = 0xF424
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_3:
	movl	%r14d, %r13d
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPL115_PADC,4,2                ## @MPL115_PADC
	.comm	_MPL115_TADC,4,2                ## @MPL115_TADC
	.no_dead_strip	_mpl115_comp_pressure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpl115_comp_pressure
_mpl115_comp_pressure:                  ; @mpl115_comp_pressure
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x22
	bl	_mpl115_request
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	w0, [x22, #20]
Lloh0:
	adrp	x9, _MPL115_PADC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPL115_PADC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	w0, [x22, #20]
Lloh3:
	adrp	x9, _MPL115_TADC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPL115_TADC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	blr	x8
	mov	x23, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	lsr	w8, w24, #6
	lsr	w9, w23, #6
	ldp	w10, w11, [x22]
	mul	w11, w11, w9
	add	w10, w10, w11, asr #11
	mul	w8, w10, w8
	ldp	w10, w11, [x22, #8]
	add	w8, w8, w10, lsl #10
	mul	w9, w11, w9
	add	w8, w8, w9, asr #1
	asr	w8, w8, #9
	add	w8, w8, w8, lsl #6
	mov	w9, #2051
	movk	w9, #32800, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #9
	add	w8, w9, w8, lsr #31
	add	w9, w8, #800
	lsr	w9, w9, #4
	str	w9, [x21]
	and	w8, w8, #0xf
	mov	w9, #62500
	mul	w8, w8, w9
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
	mov	x23, x0
	b	LBB0_6
LBB0_5:
	mov	x23, x24
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPL115_PADC,4,2                ; @MPL115_PADC
	.comm	_MPL115_TADC,4,2                ; @MPL115_TADC
	.no_dead_strip	_mpl115_comp_pressure
.subsections_via_symbols
