	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_pwre               ## -- Begin function pt_pkt_read_pwre
	.p2align	4, 0x90
_pt_pkt_read_pwre:                      ## @pt_pkt_read_pwre
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.5:
	movq	_ptps_pwre@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	leaq	(%rsi,%rax,8), %rax
	cmpq	%rax, (%rdx)
	jae	LBB0_7
## %bb.6:
	movq	_pte_eos@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	%rdi, %rbx
	movq	_pt_opcs_pwre@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rsi,%rax,8), %rdi
	movq	_pt_pl_pwre_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pt_pkt_read_value
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_pt_pl_pwre_state_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_pt_pl_pwre_state_shr@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cltq
	movq	%rax, 16(%rbx)
	movq	_pt_pl_pwre_sub_state_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_pt_pl_pwre_sub_state_shr@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cltq
	movq	%rax, 8(%rbx)
	movq	_pt_pl_pwre_hw_mask@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	$1, (%rbx)
LBB0_9:
	movl	(%r15), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_ptps_pwre,4,2                  ## @ptps_pwre
	.comm	_pte_eos,4,2                    ## @pte_eos
	.comm	_pt_opcs_pwre,4,2               ## @pt_opcs_pwre
	.comm	_pt_pl_pwre_size,4,2            ## @pt_pl_pwre_size
	.comm	_pt_pl_pwre_state_mask,4,2      ## @pt_pl_pwre_state_mask
	.comm	_pt_pl_pwre_state_shr,4,2       ## @pt_pl_pwre_state_shr
	.comm	_pt_pl_pwre_sub_state_mask,4,2  ## @pt_pl_pwre_sub_state_mask
	.comm	_pt_pl_pwre_sub_state_shr,4,2   ## @pt_pl_pwre_sub_state_shr
	.comm	_pt_pl_pwre_hw_mask,4,2         ## @pt_pl_pwre_hw_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_pwre               ; -- Begin function pt_pkt_read_pwre
	.p2align	2
_pt_pkt_read_pwre:                      ; @pt_pkt_read_pwre
	.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_5
; %bb.1:
	cbz	x1, LBB0_5
; %bb.2:
	cbz	x2, LBB0_5
; %bb.3:
	ldr	x8, [x2]
Lloh0:
	adrp	x21, _ptps_pwre@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ptps_pwre@GOTPAGEOFF]
	ldrsw	x9, [x21]
	add	x9, x1, x9, lsl #3
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _pte_eos@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pte_eos@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _pte_internal@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	mov	x19, x0
Lloh6:
	adrp	x8, _pt_opcs_pwre@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pt_opcs_pwre@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x0, x1, x8, lsl #3
Lloh9:
	adrp	x8, _pt_pl_pwre_size@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pt_pl_pwre_size@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_pt_pkt_read_value
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh12:
	adrp	x8, _pt_pl_pwre_state_mask@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pt_pl_pwre_state_mask@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh15:
	adrp	x9, _pt_pl_pwre_state_shr@GOTPAGE
Lloh16:
	ldr	x9, [x9, _pt_pl_pwre_state_shr@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh18:
	adrp	x9, _pt_pl_pwre_sub_state_mask@GOTPAGE
Lloh19:
	ldr	x9, [x9, _pt_pl_pwre_sub_state_mask@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh21:
	adrp	x10, _pt_pl_pwre_sub_state_shr@GOTPAGE
Lloh22:
	ldr	x10, [x10, _pt_pl_pwre_sub_state_shr@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	asr	w9, w9, w10
	sxtw	x8, w8
	sxtw	x9, w9
	stp	x9, x8, [x19, #8]
Lloh24:
	adrp	x8, _pt_pl_pwre_hw_mask@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pt_pl_pwre_hw_mask@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	ldr	w0, [x21]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_ptps_pwre,4,2                  ; @ptps_pwre
	.comm	_pte_eos,4,2                    ; @pte_eos
	.comm	_pt_opcs_pwre,4,2               ; @pt_opcs_pwre
	.comm	_pt_pl_pwre_size,4,2            ; @pt_pl_pwre_size
	.comm	_pt_pl_pwre_state_mask,4,2      ; @pt_pl_pwre_state_mask
	.comm	_pt_pl_pwre_state_shr,4,2       ; @pt_pl_pwre_state_shr
	.comm	_pt_pl_pwre_sub_state_mask,4,2  ; @pt_pl_pwre_sub_state_mask
	.comm	_pt_pl_pwre_sub_state_shr,4,2   ; @pt_pl_pwre_sub_state_shr
	.comm	_pt_pl_pwre_hw_mask,4,2         ; @pt_pl_pwre_hw_mask
.subsections_via_symbols
