	.file	"extr_pt_query_decoder.c_pt_qry_decode_pwrx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pt_qry_decode_pwrx
	.type	pt_qry_decode_pwrx, @function
pt_qry_decode_pwrx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L10
	mov	rbx, rdi
	lea	rdx, 20[rdi]
	mov	rdi, rsp
	mov	esi, DWORD PTR [rbx]
	call	pt_pkt_read_pwrx@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	lea	rdi, 16[rbx]
	call	pt_evq_standalone@PLT
	test	rax, rax
	je	.L10
	mov	edx, DWORD PTR ptev_pwrx[rip]
	cmp	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR 28[rsp]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR 24[rsp]
	mov	DWORD PTR 12[rax], edx
	je	.L5
	mov	DWORD PTR [rax], 1
.L5:
	cmp	QWORD PTR 8[rsp], 0
	je	.L6
	mov	DWORD PTR 4[rax], 1
.L6:
	cmp	QWORD PTR [rsp], 0
	je	.L7
	mov	DWORD PTR 8[rax], 1
.L7:
	mov	QWORD PTR 8[rbx], rax
	add	DWORD PTR [rbx], r12d
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR pte_internal[rip]
	neg	r12d
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pt_qry_decode_pwrx, .-pt_qry_decode_pwrx
	.comm	ptev_pwrx,4,4
	.comm	pte_internal,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_pwrx.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pt_qry_decode_pwrx
	.syntax unified
	.arm
	.fpu softvfp
	.type	pt_qry_decode_pwrx, %function
pt_qry_decode_pwrx:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L22
	sub	sp, sp, #28
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L19
	mov	r2, r4
	mov	r0, sp
	ldr	r1, [r2], #12
	bl	pt_pkt_read_pwrx
	subs	r5, r0, #0
	blt	.L1
	add	r0, r4, #8
	bl	pt_evq_standalone
	cmp	r0, #0
	beq	.L19
	ldr	r3, [sp, #8]
	ldr	r2, .L22+4
	cmp	r3, #0
	ldr	r3, [sp, #12]
	ldr	r1, [r2]
	ldr	r2, [sp, #16]
	str	r3, [r0, #12]
	movne	r3, #1
	strne	r3, [r0]
	ldr	r3, [sp, #4]
	str	r1, [r0, #20]
	cmp	r3, #0
	movne	r3, #1
	strne	r3, [r0, #4]
	ldr	r3, [sp]
	str	r2, [r0, #16]
	cmp	r3, #0
	movne	r3, #1
	strne	r3, [r0, #8]
	ldr	r3, [r4]
	str	r0, [r4, #4]
	add	r3, r3, r5
	mov	r5, #0
	str	r3, [r4]
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L19:
	ldr	r3, .L22+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	ptev_pwrx
	.word	pte_internal
	.size	pt_qry_decode_pwrx, .-pt_qry_decode_pwrx
	.comm	ptev_pwrx,4,4
	.comm	pte_internal,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
