	.file	"extr_core.c_perf_mmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	perf_mmap, @function
perf_mmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR [rdi]
	call	current_user@PLT
	cmp	DWORD PTR 0[rbp], -1
	mov	QWORD PTR [rsp], rax
	je	.L84
.L2:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR VM_SHARED[rip], eax
	je	.L82
	mov	r13, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	sub	rsi, QWORD PTR 16[rbx]
	test	r13, r13
	je	.L85
	cmp	QWORD PTR 48[rbp], 0
	mov	QWORD PTR 8[rsp], rsi
	je	.L82
	lea	r12, 16[rbp]
	mov	r13, QWORD PTR PAGE_SIZE[rip]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	r15d, DWORD PTR EINVAL[rip]
	mov	r10, QWORD PTR 48[rbp]
	neg	r15d
	test	r10, r10
	je	.L8
	mov	rax, QWORD PTR 56[r10]
	mov	QWORD PTR 16[rsp], r10
	mov	edi, DWORD PTR 4[rax]
	call	READ_ONCE@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	r14, rax
	mov	rax, QWORD PTR 56[r10]
	mov	edi, DWORD PTR [rax]
	call	READ_ONCE@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rdi, r10
	call	perf_data_size@PLT
	add	rax, QWORD PTR PAGE_SIZE[rip]
	cmp	rax, r14
	ja	.L8
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	rax, QWORD PTR 24[rbx]
	mov	r10, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	sal	rax, cl
	cmp	rax, r14
	je	.L86
.L8:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR VM_DONTCOPY[rip]
	or	eax, DWORD PTR VM_DONTEXPAND[rip]
	or	eax, DWORD PTR VM_DONTDUMP[rip]
	or	DWORD PTR [rbx], eax
	lea	rax, perf_mmap_vmops[rip]
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdi, rbp
	call	rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L85:
	mov	rcx, QWORD PTR PAGE_SIZE[rip]
	mov	rax, rsi
	xor	edx, edx
	div	rcx
	mov	r14, rax
	mov	QWORD PTR 8[rsp], rax
	mov	r15, rax
	sub	r14, 1
	je	.L7
	mov	rdi, r14
	mov	QWORD PTR 16[rsp], rsi
	call	is_power_of_2@PLT
	test	eax, eax
	je	.L82
	mov	rcx, QWORD PTR PAGE_SIZE[rip]
	mov	rsi, QWORD PTR 16[rsp]
.L7:
	imul	rcx, r15
	cmp	rcx, rsi
	je	.L15
.L82:
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L84:
	.cfi_restore_state
	cmp	QWORD PTR 40[rbp], 0
	je	.L2
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 56[rbp]
	lea	r12, 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	WARN_ON_ONCE@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L88:
	cmp	QWORD PTR 16[r10], r14
	jne	.L87
	lea	rdi, 40[r10]
	call	atomic_inc_not_zero@PLT
	test	eax, eax
	jne	.L79
	mov	rdi, r12
	call	mutex_unlock@PLT
.L16:
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	r10, QWORD PTR 48[rbp]
	test	r10, r10
	jne	.L88
	mov	r13, r15
	xor	r15d, r15d
.L13:
	mov	eax, DWORD PTR PAGE_SHIFT[rip]
	mov	QWORD PTR 24[rsp], r10
	lea	ecx, -10[rax]
	mov	eax, DWORD PTR sysctl_perf_event_mlock[rip]
	sar	eax, cl
	cdqe
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	call	num_online_cpus@PLT
	imul	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	QWORD PTR 16[rsp], rax
	call	atomic_long_read@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	r10, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rsp], 0
	add	rdx, rax
	cmp	QWORD PTR 16[rsp], rdx
	jb	.L89
.L21:
	mov	edi, DWORD PTR RLIMIT_MEMLOCK[rip]
	mov	QWORD PTR 24[rsp], r10
	call	rlimit@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	rdi, QWORD PTR 32[rbx]
	shr	rax, cl
	mov	QWORD PTR 16[rsp], rax
	call	atomic64_read@PLT
	add	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 16[rsp], rax
	mov	r10, QWORD PTR 24[rsp]
	jb	.L90
.L22:
	test	r10, r10
	je	.L91
	xor	edi, edi
	mov	QWORD PTR 16[rsp], r10
	call	WARN_ON@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	rcx, r14
	mov	rsi, rbp
	mov	r9d, DWORD PTR VM_WRITE[rip]
	mov	rdx, QWORD PTR 24[rbx]
	and	r9d, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 24[rbp]
	mov	rdi, r10
	cmovne	r9d, DWORD PTR RING_BUFFER_WRITABLE[rip]
	call	rb_alloc_aux@PLT
	mov	r10, QWORD PTR 16[rsp]
	test	eax, eax
	mov	r15d, eax
	jne	.L80
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 32[r10], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L86:
	mov	rdi, r10
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 8[rsp], r10
	call	rb_has_aux@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR [r10], rax
	jne	.L8
.L9:
	mov	rcx, QWORD PTR 24[rsp]
	mov	rax, rcx
	cmp	rcx, rsi
	jne	.L8
	xor	edx, edx
	div	r13
	mov	rdx, QWORD PTR PAGE_SIZE[rip]
	imul	rdx, rax
	mov	r13, rax
	mov	r14, rax
	cmp	rdx, rcx
	jne	.L8
	mov	rdi, r10
	mov	QWORD PTR 8[rsp], r10
	call	rb_has_aux@PLT
	mov	r10, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L10
	cmp	QWORD PTR 8[r10], r13
	jne	.L8
.L10:
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], r10
	call	is_power_of_2@PLT
	test	eax, eax
	je	.L8
	mov	r10, QWORD PTR 8[rsp]
	lea	rdi, 40[r10]
	call	atomic_inc_not_zero@PLT
	test	eax, eax
	je	.L8
	mov	r10, QWORD PTR 8[rsp]
	mov	rdi, r10
	call	rb_has_aux@PLT
	mov	r10, QWORD PTR 8[rsp]
	lea	rdi, 48[r10]
	test	rax, rax
	je	.L11
	call	atomic_inc@PLT
	xor	r13d, r13d
	mov	QWORD PTR 8[rsp], 0
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r13
	xor	r15d, r15d
	call	atomic_long_add@PLT
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 8[rsp]
	call	atomic64_add@PLT
	lea	rdi, 20[rbp]
	call	atomic_inc@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L79:
	mov	QWORD PTR 8[rsp], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L87:
	mov	r8d, DWORD PTR EINVAL[rip]
	test	r8d, r8d
	je	.L79
.L81:
	neg	r8d
	mov	r15d, r8d
	jmp	.L8
.L90:
	xor	eax, eax
	mov	QWORD PTR 16[rsp], r10
	call	perf_paranoid_tracepoint_raw@PLT
	mov	r10, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L22
	mov	edi, DWORD PTR CAP_IPC_LOCK[rip]
	call	capable@PLT
	mov	r10, QWORD PTR 16[rsp]
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR EPERM[rip]
	mov	r15d, eax
	neg	r15d
	test	eax, eax
	je	.L12
	test	r10, r10
	je	.L8
.L80:
	add	r10, 40
.L29:
	mov	rdi, r10
	call	atomic_dec@PLT
	jmp	.L8
.L89:
	mov	rdi, QWORD PTR [rsp]
	mov	QWORD PTR 8[rsp], r10
	mov	QWORD PTR 24[rsp], rdx
	call	atomic_long_read@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	r10, QWORD PTR 8[rsp]
	cmp	rax, rcx
	jnb	.L37
	mov	rdx, QWORD PTR 24[rsp]
	sub	rdx, rcx
	mov	QWORD PTR 8[rsp], rdx
	sub	r13, rdx
	jmp	.L21
.L91:
	cmp	QWORD PTR 48[rbp], 0
	je	.L92
	mov	edi, 1
	call	WARN_ON@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR VM_WRITE[rip], eax
	jne	.L31
.L35:
	xor	ecx, ecx
.L32:
	xor	esi, esi
	cmp	QWORD PTR 32[rbp], 0
	mov	edx, DWORD PTR 0[rbp]
	je	.L27
	mov	esi, DWORD PTR 28[rbp]
.L27:
	mov	rdi, r14
	call	rb_alloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L93
	lea	r10, 40[rax]
	mov	esi, 1
	mov	rdi, r10
	mov	QWORD PTR 16[rsp], r10
	call	atomic_set@PLT
	xor	eax, eax
	call	get_current_user@PLT
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR 44[r14], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[r14], rax
	call	ring_buffer_attach@PLT
	mov	rdi, rbp
	call	perf_event_init_userpage@PLT
	mov	rdi, rbp
	call	perf_event_update_userpage@PLT
	test	r15d, r15d
	mov	r10, QWORD PTR 16[rsp]
	jne	.L29
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L92:
	xor	edi, edi
	call	WARN_ON@PLT
	mov	eax, DWORD PTR VM_WRITE[rip]
	test	DWORD PTR [rbx], eax
	je	.L35
.L31:
	mov	ecx, DWORD PTR RING_BUFFER_WRITABLE[rip]
	jmp	.L32
.L37:
	mov	QWORD PTR 8[rsp], r13
	xor	r13d, r13d
	jmp	.L21
.L93:
	mov	r8d, DWORD PTR ENOMEM[rip]
	test	r8d, r8d
	jne	.L81
	jmp	.L12
.L11:
	mov	esi, 1
	mov	QWORD PTR 16[rsp], r10
	call	atomic_set@PLT
	mov	QWORD PTR 8[rsp], r13
	mov	r10, QWORD PTR 16[rsp]
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	perf_mmap, .-perf_mmap
	.comm	sysctl_perf_event_mlock,4,4
	.comm	perf_mmap_vmops,4,4
	.comm	VM_WRITE,4,4
	.comm	VM_SHARED,4,4
	.comm	VM_DONTEXPAND,4,4
	.comm	VM_DONTDUMP,4,4
	.comm	VM_DONTCOPY,4,4
	.comm	RLIMIT_MEMLOCK,4,4
	.comm	RING_BUFFER_WRITABLE,4,4
	.comm	PAGE_SIZE,8,8
	.comm	PAGE_SHIFT,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_IPC_LOCK,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_core.c_perf_mmap.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_mmap, %function
perf_mmap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r6, [r0]
	mov	r4, r1
	bl	current_user
	ldr	r3, [r6]
	mov	r8, r0
	cmn	r3, #1
	beq	.L85
.L2:
	ldr	r3, .L95
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L83
	ldr	r5, [r4, #12]
	ldr	r9, [r4, #4]
	ldr	r3, [r4, #8]
	cmp	r5, #0
	sub	r9, r9, r3
	beq	.L86
	ldr	r3, [r6, #32]
	cmp	r3, #0
	beq	.L83
	ldr	r3, .L95+4
	add	r10, r6, #8
	ldr	r2, [r3]
	mov	r0, r10
	str	r2, [sp, #12]
	bl	mutex_lock
	ldr	r3, .L95+8
	ldr	r7, [r6, #32]
	ldr	r5, [r3]
	cmp	r7, #0
	rsb	r5, r5, #0
	beq	.L8
	ldr	r3, [r7, #32]
	ldr	r0, [r3, #4]
	bl	READ_ONCE
	ldr	r2, [r7, #32]
	mov	fp, r0
	ldr	r0, [r2]
	bl	READ_ONCE
	mov	r2, r0
	mov	r0, r7
	str	r2, [sp, #16]
	bl	perf_data_size
	ldr	r3, .L95+4
	ldr	r2, [r3]
	add	r0, r0, r2
	cmp	r0, fp
	bhi	.L8
	ldr	r2, .L95+12
	ldr	r0, [r4, #12]
	ldr	r1, [r2]
	cmp	fp, r0, lsl r1
	beq	.L87
.L8:
	mov	r0, r10
	bl	mutex_unlock
	ldr	r3, .L95+16
	ldr	r1, .L95+20
	ldr	r2, .L95+24
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, [r6, #4]
	orr	r3, r3, r2
	ldr	r2, [r4]
	ldr	r7, [r1]
	orr	r3, r2, r3
	ldr	r2, .L95+28
	cmp	r7, #0
	str	r3, [r4]
	str	r2, [r4, #20]
	beq	.L1
	mov	r0, r6
	ldr	r1, [r4, #16]
	blx	r7
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L86:
	ldr	r7, .L95+4
	mov	r0, r9
	ldr	r10, [r7]
	mov	r1, r10
	bl	__aeabi_uidiv
	subs	fp, r0, #1
	str	r0, [sp, #12]
	beq	.L7
	mov	r0, fp
	bl	is_power_of_2
	cmp	r0, #0
	beq	.L83
	ldr	r10, [r7]
.L7:
	ldr	r3, [sp, #12]
	mul	r3, r10, r3
	cmp	r3, r9
	beq	.L15
.L83:
	ldr	r3, .L95+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L85:
	ldr	r3, [r6, #28]
	cmp	r3, #0
	beq	.L2
	b	.L83
.L15:
	ldr	r3, [r6, #36]
	add	r10, r6, #8
	ldr	r0, [r3]
	bl	WARN_ON_ONCE
	b	.L16
.L89:
	ldr	r3, [r7, #8]
	cmp	r3, fp
	bne	.L88
	bl	atomic_inc_not_zero
	cmp	r0, #0
	bne	.L80
	mov	r0, r10
	bl	mutex_unlock
.L16:
	mov	r0, r10
	bl	mutex_lock
	ldr	r7, [r6, #32]
	cmp	r7, #0
	add	r0, r7, #20
	bne	.L89
	ldr	r3, [sp, #12]
	ldr	r2, .L95+12
	str	r3, [sp, #20]
.L13:
	ldr	r1, .L95+32
	ldr	r3, [r2]
	ldr	r9, [r1]
	sub	r3, r3, #10
	str	r2, [sp, #16]
	asr	r9, r9, r3
	bl	num_online_cpus
	mov	r3, r0
	mov	r0, r8
	mul	r9, r3, r9
	bl	atomic_long_read
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	add	r3, r0, r3
	cmp	r9, r3
	movcs	r9, #0
	bcc	.L90
.L21:
	ldr	r3, .L95+36
	str	r2, [sp, #12]
	ldr	r0, [r3]
	bl	rlimit
	mov	r3, r0
	ldr	r2, [sp, #12]
	ldr	r0, [r4, #16]
	ldr	r2, [r2]
	lsr	r3, r3, r2
	str	r3, [sp, #12]
	bl	atomic64_read
	ldr	r3, [sp, #12]
	add	r0, r0, r9
	cmp	r3, r0
	bcc	.L91
.L22:
	cmp	r7, #0
	beq	.L92
	mov	r0, #0
	bl	WARN_ON
	ldr	r3, .L95+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	ands	r3, r3, r2
	ldrne	r3, .L95+44
	ldrne	r3, [r3]
.L34:
	str	r3, [sp, #4]
	ldr	r2, [r6, #16]
	mov	r3, fp
	str	r2, [sp]
	mov	r1, r6
	mov	r0, r7
	ldr	r2, [r4, #12]
	bl	rb_alloc_aux
	subs	r5, r0, #0
	bne	.L81
	ldr	r5, [sp, #20]
	str	r9, [r7, #16]
	b	.L12
.L87:
	mov	r0, r7
	str	r2, [sp, #20]
	bl	rb_has_aux
	cmp	r0, #0
	ldr	r2, [sp, #20]
	beq	.L9
	ldr	r1, [r7]
	ldr	r3, [r4, #12]
	cmp	r1, r3
	bne	.L8
.L9:
	ldr	r3, [sp, #16]
	str	r2, [sp, #20]
	cmp	r3, r9
	bne	.L8
	mov	r0, r3
	ldr	r1, [sp, #12]
	mov	r9, r3
	bl	__aeabi_uidiv
	ldr	r3, .L95+4
	mov	fp, r0
	ldr	r3, [r3]
	ldr	r2, [sp, #20]
	mul	r3, r0, r3
	cmp	r3, r9
	bne	.L8
	mov	r0, r7
	str	r2, [sp, #12]
	bl	rb_has_aux
	cmp	r0, #0
	ldr	r2, [sp, #12]
	beq	.L10
	ldr	r3, [r7, #4]
	cmp	r3, fp
	bne	.L8
.L10:
	mov	r0, fp
	str	r2, [sp, #12]
	bl	is_power_of_2
	cmp	r0, #0
	beq	.L8
	add	r0, r7, #20
	bl	atomic_inc_not_zero
	cmp	r0, #0
	beq	.L8
	mov	r0, r7
	bl	rb_has_aux
	cmp	r0, #0
	ldr	r2, [sp, #12]
	add	r0, r7, #28
	beq	.L11
	mov	r5, #0
	bl	atomic_inc
	mov	r9, r5
.L12:
	mov	r1, r8
	mov	r0, r5
	bl	atomic_long_add
	ldr	r1, [r4, #16]
	mov	r0, r9
	bl	atomic64_add
	add	r0, r6, #12
	bl	atomic_inc
	mov	r5, #0
	b	.L8
.L80:
	mov	r9, #0
	b	.L12
.L88:
	ldr	r3, .L95+8
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L80
.L82:
	rsb	r5, r5, #0
	b	.L8
.L91:
	bl	perf_paranoid_tracepoint_raw
	cmp	r0, #0
	beq	.L22
	ldr	r3, .L95+48
	ldr	r0, [r3]
	bl	capable
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L95+52
	ldr	r5, [r3]
	cmp	r5, #0
	rsb	r5, r5, #0
	beq	.L40
	cmp	r7, #0
	beq	.L8
.L81:
	add	r7, r7, #20
.L29:
	mov	r0, r7
	bl	atomic_dec
	b	.L8
.L90:
	mov	r0, r8
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	bl	atomic_long_read
	cmp	r0, r9
	movcs	r3, #0
	ldrcc	r3, [sp, #16]
	ldrcs	r9, [sp, #20]
	subcc	r9, r3, r9
	ldrcc	r3, [sp, #20]
	ldr	r2, [sp, #12]
	subcc	r3, r3, r9
	str	r3, [sp, #20]
	b	.L21
.L92:
	ldr	r3, [r6, #32]
	cmp	r3, #0
	beq	.L93
	mov	r0, #1
	bl	WARN_ON
	ldr	r3, .L95+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L31
.L35:
	mov	r3, #0
.L32:
	ldr	r1, [r6, #24]
	mov	r0, fp
	cmp	r1, #0
	ldrne	r1, [r6, #20]
	ldr	r2, [r6]
	bl	rb_alloc
	subs	fp, r0, #0
	beq	.L94
	add	r7, fp, #20
	mov	r1, #1
	mov	r0, r7
	bl	atomic_set
	bl	get_current_user
	mov	r1, fp
	str	r0, [fp, #24]
	str	r9, [fp, #12]
	mov	r0, r6
	bl	ring_buffer_attach
	mov	r0, r6
	bl	perf_event_init_userpage
	mov	r0, r6
	bl	perf_event_update_userpage
	cmp	r5, #0
	bne	.L29
.L40:
	ldr	r5, [sp, #20]
	b	.L12
.L93:
	mov	r0, r7
	bl	WARN_ON
	ldr	r2, .L95+40
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r2, r3
	beq	.L35
.L31:
	ldr	r3, .L95+44
	ldr	r3, [r3]
	b	.L32
.L94:
	ldr	r3, .L95+56
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L82
	b	.L40
.L11:
	mov	r1, #1
	str	r2, [sp, #16]
	bl	atomic_set
	ldr	r2, [sp, #16]
	str	fp, [sp, #20]
	str	fp, [sp, #12]
	b	.L13
.L96:
	.align	2
.L95:
	.word	VM_SHARED
	.word	PAGE_SIZE
	.word	EINVAL
	.word	PAGE_SHIFT
	.word	VM_DONTCOPY
	.word	VM_DONTEXPAND
	.word	VM_DONTDUMP
	.word	perf_mmap_vmops
	.word	sysctl_perf_event_mlock
	.word	RLIMIT_MEMLOCK
	.word	VM_WRITE
	.word	RING_BUFFER_WRITABLE
	.word	CAP_IPC_LOCK
	.word	EPERM
	.word	ENOMEM
	.size	perf_mmap, .-perf_mmap
	.comm	sysctl_perf_event_mlock,4,4
	.comm	perf_mmap_vmops,4,4
	.comm	VM_WRITE,4,4
	.comm	VM_SHARED,4,4
	.comm	VM_DONTEXPAND,4,4
	.comm	VM_DONTDUMP,4,4
	.comm	VM_DONTCOPY,4,4
	.comm	RLIMIT_MEMLOCK,4,4
	.comm	RING_BUFFER_WRITABLE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_IPC_LOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
