	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_psb                ## -- Begin function pt_pkt_read_psb
	.p2align	4, 0x90
_pt_pkt_read_psb:                       ## @pt_pkt_read_psb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	_ptps_psb@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdi,%rax,4), %rcx
	cmpq	%rcx, (%rsi)
	jae	LBB0_6
## %bb.3:
	movq	_pte_eos@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movq	_pt_psb_repeat_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.7:
	movq	_pt_opcs_psb@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rdi,%rcx,4), %rdx
	movq	_pt_psb_hi@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_pt_psb_lo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx,%rcx,8), %rsi
	cmpq	%rsi, %r9
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rcx,%rcx), %rsi
	movslq	4(%rdx,%rsi,4), %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpl	%ecx, %r8d
	jne	LBB0_8
	jmp	LBB0_11
LBB0_12:
	movq	_pte_bad_packet@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_ptps_psb,4,2                   ## @ptps_psb
	.comm	_pte_eos,4,2                    ## @pte_eos
	.comm	_pt_opcs_psb,4,2                ## @pt_opcs_psb
	.comm	_pt_psb_repeat_count,4,2        ## @pt_psb_repeat_count
	.comm	_pt_psb_hi,8,3                  ## @pt_psb_hi
	.comm	_pte_bad_packet,4,2             ## @pte_bad_packet
	.comm	_pt_psb_lo,8,3                  ## @pt_psb_lo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_psb                ; -- Begin function pt_pkt_read_psb
	.p2align	2
_pt_pkt_read_psb:                       ; @pt_pkt_read_psb
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x1, LBB0_4
; %bb.2:
	mov	x8, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _ptps_psb@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ptps_psb@GOTPAGEOFF]
Lloh2:
	ldrsw	x0, [x10]
	add	x10, x8, x0, lsl #2
	cmp	x9, x10
	b.hs	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _pte_eos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_eos@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _pte_internal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
Lloh7:
	adrp	x9, _pt_psb_repeat_count@GOTPAGE
Lloh8:
	ldr	x9, [x9, _pt_psb_repeat_count@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.7:
Lloh10:
	adrp	x10, _pt_opcs_psb@GOTPAGE
Lloh11:
	ldr	x10, [x10, _pt_opcs_psb@GOTPAGEOFF]
Lloh12:
	ldrsw	x10, [x10]
	add	x8, x8, x10, lsl #2
Lloh13:
	adrp	x10, _pt_psb_hi@GOTPAGE
Lloh14:
	ldr	x10, [x10, _pt_psb_hi@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _pt_psb_lo@GOTPAGE
Lloh17:
	ldr	x11, [x11, _pt_psb_lo@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x8]
	cmp	x10, x12
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x12, [x8, #4]
	cmp	x11, x12
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #8
	subs	w9, w9, #1
	b.ne	LBB0_8
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_12:
Lloh19:
	adrp	x8, _pte_bad_packet@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pte_bad_packet@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_ptps_psb,4,2                   ; @ptps_psb
	.comm	_pte_eos,4,2                    ; @pte_eos
	.comm	_pt_opcs_psb,4,2                ; @pt_opcs_psb
	.comm	_pt_psb_repeat_count,4,2        ; @pt_psb_repeat_count
	.comm	_pt_psb_hi,8,3                  ; @pt_psb_hi
	.comm	_pte_bad_packet,4,2             ; @pte_bad_packet
	.comm	_pt_psb_lo,8,3                  ; @pt_psb_lo
.subsections_via_symbols
