	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_find_psb
_pt_find_psb:                           ## @pt_find_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.2:
	movq	(%rsi), %r8
	movq	8(%rsi), %rcx
	movq	_pt_psb_hi@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, (%rdi)
	setne	%al
	leaq	(%rdi,%rax,8), %rbx
	leaq	(%rdi,%rax,8), %rdi
	addq	$8, %rdi
	cmpq	%rcx, %rdi
	jae	LBB0_8
## %bb.3:
	movq	_pt_psb_lo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, -8(%rdi)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, (%rdi)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	addq	$16, %rdi
	cmpq	%rcx, %rdi
	jb	LBB0_4
LBB0_7:
	addq	$-8, %rdi
	movq	%rdi, %rbx
LBB0_8:
	movq	_ptps_psb@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	subq	%rax, %rbx
	cmpq	%r8, %rbx
	jb	LBB0_14
## %bb.10:
	movq	(%rbx), %rax
	movq	_pt_opc_psb@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	movq	_pt_ext_psb@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	callq	_pt_pkt_read_psb
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovnsq	%rbx, %rax
	jmp	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pt_psb_hi,8,3                  ## @pt_psb_hi
	.comm	_pt_psb_lo,8,3                  ## @pt_psb_lo
	.comm	_ptps_psb,4,2                   ## @ptps_psb
	.comm	_pt_opc_psb,8,3                 ## @pt_opc_psb
	.comm	_pt_ext_psb,8,3                 ## @pt_ext_psb
	.no_dead_strip	_pt_find_psb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_find_psb
_pt_find_psb:                           ; @pt_find_psb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	mov	x0, #0
	cbz	x8, LBB0_13
; %bb.1:
	cbz	x1, LBB0_13
; %bb.2:
	ldp	x9, x10, [x1]
	ldr	x12, [x8]
Lloh0:
	adrp	x11, _pt_psb_hi@GOTPAGE
Lloh1:
	ldr	x11, [x11, _pt_psb_hi@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x12, x11
	cset	w12, ne
	add	x8, x8, w12, uxtw #3
	add	x12, x8, #8
	cmp	x12, x10
	b.hs	LBB0_8
; %bb.3:
Lloh3:
	adrp	x13, _pt_psb_lo@GOTPAGE
Lloh4:
	ldr	x13, [x13, _pt_psb_lo@GOTPAGEOFF]
Lloh5:
	ldr	x13, [x13]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x14, [x12, #-8]
	cmp	x14, x11
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x12]
	cmp	x14, x13
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #16
	add	x12, x12, #16
	cmp	x12, x10
	b.lo	LBB0_4
LBB0_7:
	sub	x8, x12, #8
LBB0_8:
Lloh6:
	adrp	x10, _ptps_psb@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ptps_psb@GOTPAGEOFF]
Lloh8:
	ldrsw	x10, [x10]
	sub	x19, x8, x10, lsl #3
	cmp	x19, x9
	b.lo	LBB0_12
; %bb.9:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _pt_opc_psb@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pt_opc_psb@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _pt_ext_psb@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pt_ext_psb@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_pt_pkt_read_psb
	cmp	w0, #0
	csel	x0, xzr, x19, lt
	b	LBB0_13
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pt_psb_hi,8,3                  ; @pt_psb_hi
	.comm	_pt_psb_lo,8,3                  ; @pt_psb_lo
	.comm	_ptps_psb,4,2                   ; @ptps_psb
	.comm	_pt_opc_psb,8,3                 ; @pt_opc_psb
	.comm	_pt_ext_psb,8,3                 ; @pt_ext_psb
	.no_dead_strip	_pt_find_psb
.subsections_via_symbols
