	.file	"extr_perf_event.c_can_go_on_limited_pmc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	can_go_on_limited_pmc, @function
can_go_on_limited_pmc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbx
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_EVENT_ALTERNATIVES[rip]
	mov	rdx, rsp
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	and	rax, -4096
	sub	rdx, rax
	and	rcx, -16
	mov	rax, rdx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L19
	cmp	QWORD PTR 24[rdi], 0
	mov	r13, rsp
	jne	.L7
.L5:
	cmp	QWORD PTR 16[rdi], 0
	jne	.L7
	cmp	QWORD PTR 8[rdi], 0
	jne	.L7
	cmp	QWORD PTR [rdi], 0
	jne	.L7
	mov	rax, QWORD PTR ppmu[rip]
	mov	edi, r12d
	call	[QWORD PTR 8[rax]]
	mov	r8, rax
	mov	eax, 1
	test	r8, r8
	jne	.L1
	mov	rax, QWORD PTR ppmu[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR PPMU_LIMITED_PMC_OK[rip]
	or	esi, DWORD PTR PPMU_LIMITED_PMC_REQD[rip]
	mov	rdx, r13
	mov	edi, r12d
	or	esi, ebx
	call	rax
	test	eax, eax
	setg	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	cmp	QWORD PTR 24[rdi], 0
	mov	r13, rsp
	je	.L5
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	can_go_on_limited_pmc, .-can_go_on_limited_pmc
	.comm	ppmu,8,8
	.comm	PPMU_LIMITED_PMC_REQD,4,4
	.comm	PPMU_LIMITED_PMC_OK,4,4
	.comm	MAX_EVENT_ALTERNATIVES,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_perf_event.c_can_go_on_limited_pmc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_go_on_limited_pmc, %function
can_go_on_limited_pmc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	ip, [r0, #12]
	ldr	r3, [r3]
	cmp	ip, #0
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L13+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bne	.L4
	ldr	r3, [r0, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L4
	ldr	r7, .L13+8
	mov	r0, r1
	ldr	r3, [r7]
	mov	r5, r1
	ldr	r3, [r3, #4]
	mov	r4, r2
	blx	r3
	cmp	r0, #0
	movne	r0, #1
	bne	.L1
	ldr	r3, [r7]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	mov	r6, sp
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	ldr	r0, [r2]
	ldr	r1, [r1]
	mov	r2, r6
	orr	r1, r1, r0
	orr	r1, r1, r4
	mov	r0, r5
	blx	r3
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	b	.L1
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	MAX_EVENT_ALTERNATIVES
	.word	.LC0
	.word	ppmu
	.word	PPMU_LIMITED_PMC_REQD
	.word	PPMU_LIMITED_PMC_OK
	.size	can_go_on_limited_pmc, .-can_go_on_limited_pmc
	.comm	ppmu,4,4
	.comm	PPMU_LIMITED_PMC_REQD,4,4
	.comm	PPMU_LIMITED_PMC_OK,4,4
	.comm	MAX_EVENT_ALTERNATIVES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
