	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_ip                 ## -- Begin function pt_pkt_read_ip
	.p2align	4, 0x90
_pt_pkt_read_ip:                        ## @pt_pkt_read_ip
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.5:
	movq	%rdi, %r14
	movl	(%r15), %r12d
	movq	_pt_opm_ipc_shr@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movq	_pt_opm_ipc_shr_mask@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_pt_pkt_ip_size
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	addq	$4, %r15
	movl	%ebx, %eax
	leaq	(%r15,%rax,4), %rax
	cmpq	%rax, (%r13)
	jae	LBB0_8
## %bb.7:
	movq	_pte_eos@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_pte_internal@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pt_pkt_read_value
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movl	%r12d, (%r14)
	movq	%rax, 8(%r14)
	incl	%ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pt_opm_ipc_shr,4,2             ## @pt_opm_ipc_shr
	.comm	_pt_opm_ipc_shr_mask,4,2        ## @pt_opm_ipc_shr_mask
	.comm	_pte_eos,4,2                    ## @pte_eos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_ip                 ; -- Begin function pt_pkt_read_ip
	.p2align	2
_pt_pkt_read_ip:                        ; @pt_pkt_read_ip
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x23, x2
	cbz	x2, LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	w8, [x21], #4
Lloh0:
	adrp	x9, _pt_opm_ipc_shr@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pt_opm_ipc_shr@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh3:
	adrp	x9, _pt_opm_ipc_shr_mask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pt_opm_ipc_shr_mask@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w22, w8, w9
	mov	x0, x22
	bl	_pt_pkt_ip_size
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	x8, [x23]
	add	x9, x21, w20, uxtw #2
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _pte_eos@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pte_eos@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _pte_internal@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	w20, LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	bl	_pt_pkt_read_value
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	str	w22, [x19]
	str	x0, [x19, #8]
	add	w20, w20, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pt_opm_ipc_shr,4,2             ; @pt_opm_ipc_shr
	.comm	_pt_opm_ipc_shr_mask,4,2        ; @pt_opm_ipc_shr_mask
	.comm	_pte_eos,4,2                    ; @pte_eos
.subsections_via_symbols
