	.file	"extr_pt_query_decoder.c_pt_qry_decode_pip.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pt_qry_decode_pip
	.type	pt_qry_decode_pip, @function
pt_qry_decode_pip:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L11
	mov	rbx, rdi
	lea	rdx, 16[rdi]
	mov	rdi, rsp
	mov	esi, DWORD PTR [rbx]
	call	pt_pkt_read_pip@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	lea	rbp, 4[rbx]
	mov	edx, DWORD PTR ptev_async_branch[rip]
	mov	esi, DWORD PTR evb_tip[rip]
	mov	rdi, rbp
	call	pt_evq_find@PLT
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR evb_tip[rip]
	mov	rdi, rbp
	call	pt_evq_enqueue@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR ptev_async_paging[rip]
	mov	DWORD PTR 16[rdi], eax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rdi], eax
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR [rdi], eax
.L6:
	mov	rsi, rbx
	call	pt_qry_event_time@PLT
	test	eax, eax
	js	.L9
	add	DWORD PTR [rbx], r12d
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	r12d, DWORD PTR pte_internal[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	pt_evq_standalone@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR ptev_paging[rip]
	mov	DWORD PTR 16[rdi], eax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 8[rdi], rax
	mov	QWORD PTR 8[rbx], rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR pte_nomem[rip]
	neg	r12d
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pt_qry_decode_pip, .-pt_qry_decode_pip
	.comm	ptev_paging,4,4
	.comm	ptev_async_paging,4,4
	.comm	ptev_async_branch,4,4
	.comm	pte_nomem,4,4
	.comm	pte_internal,4,4
	.comm	evb_tip,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pt_query_decoder.c_pt_qry_decode_pip.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pt_qry_decode_pip
	.syntax unified
	.arm
	.fpu softvfp
	.type	pt_qry_decode_pip, %function
pt_qry_decode_pip:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #20
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L11
	mov	r2, r5
	add	r0, sp, #4
	ldr	r1, [r2], #12
	bl	pt_pkt_read_pip
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L16+4
	ldr	r7, .L16+8
	add	r6, r5, #4
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r7]
	bl	pt_evq_find
	cmp	r0, #0
	beq	.L13
	mov	r0, r6
	ldr	r1, [r7]
	bl	pt_evq_enqueue
	cmp	r0, #0
	beq	.L14
	ldr	r3, .L16+12
	ldr	r2, [sp, #8]
	ldr	r1, [r3]
	ldr	r3, [sp, #4]
	str	r1, [r0, #16]
	str	r2, [r0, #4]
	str	r3, [r0]
.L6:
	mov	r1, r5
	bl	pt_qry_event_time
	cmp	r0, #0
	ldrge	r0, [r5]
	movlt	r4, r0
	addge	r4, r0, r4
	strge	r4, [r5]
	movge	r4, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r3, .L16+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L13:
	mov	r0, r6
	bl	pt_evq_standalone
	cmp	r0, #0
	beq	.L11
	ldr	r3, .L16+20
	ldr	r2, [sp, #8]
	ldr	r1, [r3]
	ldr	r3, [sp, #4]
	str	r1, [r0, #16]
	str	r2, [r0, #12]
	str	r3, [r0, #8]
	str	r0, [r5, #8]
	b	.L6
.L14:
	ldr	r3, .L16+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	ptev_async_branch
	.word	evb_tip
	.word	ptev_async_paging
	.word	pte_internal
	.word	ptev_paging
	.word	pte_nomem
	.size	pt_qry_decode_pip, .-pt_qry_decode_pip
	.comm	ptev_paging,4,4
	.comm	ptev_async_paging,4,4
	.comm	ptev_async_branch,4,4
	.comm	pte_nomem,4,4
	.comm	pte_internal,4,4
	.comm	evb_tip,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
