	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_qry_decode_ptw              ## -- Begin function pt_qry_decode_ptw
	.p2align	4, 0x90
_pt_qry_decode_ptw:                     ## @pt_qry_decode_ptw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	(%rdi), %esi
	leaq	20(%rdi), %rdx
	leaq	-48(%rbp), %rdi
	callq	_pt_pkt_read_ptw
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	-32(%rbp), %edi
	callq	_pt_ptw_size
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	leaq	16(%r14), %rdi
	cmpq	$0, -40(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_evb_fup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pt_evq_enqueue
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_1
LBB0_4:
	movl	%r15d, %ebx
	jmp	LBB0_10
LBB0_7:
	callq	_pt_evq_standalone
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movl	$1, (%rax)
	movq	%rax, 8(%r14)
LBB0_9:
	movq	_ptev_ptwrite@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movl	%r15d, 8(%rax)
	movl	-48(%rbp), %ecx
	movl	%ecx, 4(%rax)
	addl	%ebx, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_evb_fup,4,2                    ## @evb_fup
	.comm	_ptev_ptwrite,4,2               ## @ptev_ptwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_qry_decode_ptw              ; -- Begin function pt_qry_decode_ptw
	.p2align	2
_pt_qry_decode_ptw:                     ; @pt_qry_decode_ptw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_9
; %bb.1:
	mov	x19, x0
	mov	x2, x0
	ldr	w1, [x2], #20
	add	x0, sp, #8
	bl	_pt_pkt_read_ptw
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w0, [sp, #24]
	bl	_pt_ptw_size
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x8, [sp, #16]
	add	x0, x19, #16
	cbz	x8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _evb_fup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _evb_fup@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pt_evq_enqueue
	cbnz	x0, LBB0_8
	b	LBB0_9
LBB0_5:
	mov	x20, x21
	b	LBB0_10
LBB0_6:
	bl	_pt_evq_standalone
	cbz	x0, LBB0_9
; %bb.7:
	mov	w8, #1
	str	w8, [x0]
	str	x0, [x19, #8]
LBB0_8:
Lloh3:
	adrp	x8, _ptev_ptwrite@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ptev_ptwrite@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w20, w8, [x0, #8]
	ldr	w8, [sp, #8]
	str	w8, [x0, #4]
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	mov	w20, #0
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _pte_internal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_evb_fup,4,2                    ; @evb_fup
	.comm	_ptev_ptwrite,4,2               ; @ptev_ptwrite
.subsections_via_symbols
