	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_mode               ## -- Begin function pt_pkt_read_mode
	.p2align	4, 0x90
_pt_pkt_read_mode:                      ## @pt_pkt_read_mode
	.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_3
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.5:
	movq	_ptps_mode@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rsi,%rax,4), %rax
	cmpq	%rax, (%rdx)
	jae	LBB0_7
## %bb.6:
	movq	_pte_eos@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_pt_opcs_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rsi,%rax,4), %esi
	movq	_pt_mom_leaf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_pt_mom_bits@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movl	%eax, (%rdi)
	cmpl	$128, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.10:
	addq	$8, %rdi
	popq	%rbp
	jmp	_pt_pkt_read_mode_exec          ## TAILCALL
LBB0_11:
	addq	$4, %rdi
	popq	%rbp
	jmp	_pt_pkt_read_mode_tsx           ## TAILCALL
LBB0_9:
	movq	_pte_bad_packet@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_ptps_mode,4,2                  ## @ptps_mode
	.comm	_pte_eos,4,2                    ## @pte_eos
	.comm	_pt_opcs_mode,8,3               ## @pt_opcs_mode
	.comm	_pt_mom_leaf,4,2                ## @pt_mom_leaf
	.comm	_pt_mom_bits,4,2                ## @pt_mom_bits
	.comm	_pte_bad_packet,4,2             ## @pte_bad_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_mode               ; -- Begin function pt_pkt_read_mode
	.p2align	2
_pt_pkt_read_mode:                      ; @pt_pkt_read_mode
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x1, LBB0_5
; %bb.2:
	cbz	x2, LBB0_5
; %bb.3:
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _ptps_mode@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ptps_mode@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x9, x1, x9, lsl #2
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _pte_eos@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_eos@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _pte_internal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
Lloh7:
	adrp	x8, _pt_opcs_mode@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pt_opcs_mode@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w9, [x1, x8, lsl #2]
Lloh10:
	adrp	x8, _pt_mom_leaf@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pt_mom_leaf@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh13:
	adrp	x10, _pt_mom_bits@GOTPAGE
Lloh14:
	ldr	x10, [x10, _pt_mom_bits@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w1, w10, w9
	str	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.9:
	add	x0, x0, #8
	b	_pt_pkt_read_mode_exec
LBB0_10:
	add	x0, x0, #4
	b	_pt_pkt_read_mode_tsx
LBB0_11:
Lloh16:
	adrp	x8, _pte_bad_packet@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pte_bad_packet@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_ptps_mode,4,2                  ; @ptps_mode
	.comm	_pte_eos,4,2                    ; @pte_eos
	.comm	_pt_opcs_mode,8,3               ; @pt_opcs_mode
	.comm	_pt_mom_leaf,4,2                ; @pt_mom_leaf
	.comm	_pt_mom_bits,4,2                ; @pt_mom_bits
	.comm	_pte_bad_packet,4,2             ; @pte_bad_packet
.subsections_via_symbols
