	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_qry_decode_psb              ## -- Begin function pt_qry_decode_psb
	.p2align	4, 0x90
_pt_qry_decode_psb:                     ## @pt_qry_decode_psb
	.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_1
## %bb.2:
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	leaq	24(%rdi), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pt_pkt_read_psb
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	leaq	28(%r15), %rdi
	movq	%r12, %rsi
	callq	_pt_tcal_update_psb
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%ebx, %eax
	shlq	$2, %rax
	addq	%rax, 16(%r15)
	movq	%r15, %rdi
	callq	_pt_qry_read_psb_header
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movq	%r14, 16(%r15)
	leaq	8(%r15), %rdi
	movq	_evb_psbend@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pt_evq_clear
	movq	_pt_decode_psb@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movl	%r12d, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_evb_psbend,4,2                 ## @evb_psbend
	.comm	_pt_decode_psb,4,2              ## @pt_decode_psb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_qry_decode_psb              ; -- Begin function pt_qry_decode_psb
	.p2align	2
_pt_qry_decode_psb:                     ; @pt_qry_decode_psb
	.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:
	mov	x19, x0
	ldr	x21, [x0, #16]
	add	x22, x0, #24
	mov	x0, x21
	mov	x1, x22
	bl	_pt_pkt_read_psb
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
	add	x0, x19, #28
	mov	x1, x22
	bl	_pt_tcal_update_psb
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	add	x8, x8, w20, uxtw #2
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_pt_qry_read_psb_header
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w20, #0
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_6:
	mov	x20, x0
	b	LBB0_8
LBB0_7:
	mov	x20, x0
	str	x21, [x19, #16]
	add	x0, x19, #8
Lloh3:
	adrp	x8, _evb_psbend@GOTPAGE
Lloh4:
	ldr	x8, [x8, _evb_psbend@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pt_evq_clear
Lloh6:
	adrp	x8, _pt_decode_psb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pt_decode_psb@GOTPAGEOFF]
	str	x8, [x19]
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_evb_psbend,4,2                 ; @evb_psbend
	.comm	_pt_decode_psb,4,2              ; @pt_decode_psb
.subsections_via_symbols
