	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_dpm_read_sensor
_pp_dpm_read_sensor:                    ## @pp_dpm_read_sensor
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	%rdi, %rbx
	cmpl	$0, 32(%rdi)
	je	LBB0_3
## %bb.4:
	movl	%esi, %r12d
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	28(%rbx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	movq	%rcx, %r15
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_12
LBB0_8:
	movl	24(%rbx), %eax
	jmp	LBB0_7
LBB0_9:
	movl	20(%rbx), %eax
	jmp	LBB0_7
LBB0_10:
	movl	16(%rbx), %eax
LBB0_7:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pp_dpm_read_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_dpm_read_sensor
_pp_dpm_read_sensor:                    ; @pp_dpm_read_sensor
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x22, x1
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	w0, #0
	ldr	w8, [x19, #28]
	str	w8, [x20]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	mov	x21, x3
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_7
LBB0_9:
	mov	w0, #0
	ldr	w8, [x19, #24]
	str	w8, [x20]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	ldr	w8, [x19, #20]
	str	w8, [x20]
	b	LBB0_7
LBB0_11:
	mov	w0, #0
	ldr	w8, [x19, #16]
	str	w8, [x20]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pp_dpm_read_sensor
.subsections_via_symbols
