	.file	"extr_event.c_perf_event__synthesize_extra_kmaps.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Not enough memory synthesizing mmap event for extra kernel maps\n"
	.text
	.p2align 4
	.globl	perf_event__synthesize_extra_kmaps
	.type	perf_event__synthesize_extra_kmaps, @function
perf_event__synthesize_extra_kmaps:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	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
	lea	rbp, 8[rdx]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdx]
	mov	QWORD PTR 8[rsp], rdi
	lea	edi, 48[rax]
	call	zalloc@PLT
	test	rax, rax
	je	.L18
	mov	rdi, rbp
	mov	r12, rax
	call	maps__first@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	__map__is_extra_kernel_map@PLT
	test	eax, eax
	je	.L10
	mov	rdi, rbp
	call	map__kmap@PLT
	mov	edi, DWORD PTR [rax]
	mov	r15, rax
	call	strlen@PLT
	mov	esi, 4
	lea	rdi, 1[rax]
	call	PERF_ALIGN@PLT
	movsx	rdx, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, r12
	cdqe
	lea	r13, 44[rdx+rax]
	mov	rdx, r13
	call	memset@PLT
	mov	eax, DWORD PTR PERF_RECORD_MMAP[rip]
	mov	rdi, rbx
	mov	DWORD PTR 40[r12], eax
	call	machine__is_host@PLT
	mov	rcx, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR [r15]
	mov	QWORD PTR 32[r12], r13
	test	rax, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR PERF_RECORD_MISC_KERNEL[rip]
	cmove	edi, DWORD PTR PERF_RECORD_MISC_GUEST_KERNEL[rip]
	mov	QWORD PTR 24[r12], rax
	sub	rcx, rax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR [r12], edi
	mov	edx, DWORD PTR PATH_MAX[rip]
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	QWORD PTR 16[r12], rcx
	mov	DWORD PTR 4[r12], eax
	call	strlcpy@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	ecx, r14d
	mov	rdx, rbx
	mov	rsi, r12
	call	perf_tool__process_synth_event@PLT
	test	rax, rax
	jne	.L19
.L10:
	mov	rdi, rbp
	call	map__next@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L6
.L4:
	xor	r13d, r13d
.L9:
	mov	rdi, r12
	call	free@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L19:
	.cfi_restore_state
	mov	r13d, -1
	jmp	.L9
.L18:
	lea	rdi, .LC0[rip]
	mov	r13d, -1
	call	pr_debug@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	perf_event__synthesize_extra_kmaps, .-perf_event__synthesize_extra_kmaps
	.comm	PERF_RECORD_MMAP,4,4
	.comm	PERF_RECORD_MISC_KERNEL,4,4
	.comm	PERF_RECORD_MISC_GUEST_KERNEL,4,4
	.comm	PATH_MAX,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_event.c_perf_event__synthesize_extra_kmaps.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Not enough memory synthesizing mmap event for extra"
	.ascii	" kernel maps\012\000"
	.text
	.align	2
	.global	perf_event__synthesize_extra_kmaps
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_event__synthesize_extra_kmaps, %function
perf_event__synthesize_extra_kmaps:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	ldr	r3, [r4], #8
	mov	r8, r0
	add	r0, r3, #28
	mov	r7, r2
	mov	r9, r1
	bl	zalloc
	subs	r5, r0, #0
	beq	.L18
	mov	r0, r4
	bl	maps__first
	subs	r4, r0, #0
	beq	.L4
	ldr	fp, .L20
.L6:
	mov	r0, r4
	bl	__map__is_extra_kernel_map
	cmp	r0, #0
	beq	.L10
	mov	r0, r4
	bl	map__kmap
	mov	r10, r0
	ldr	r0, [r0]
	bl	strlen
	mov	r1, #4
	add	r0, r0, #1
	bl	PERF_ALIGN
	ldr	r6, [r7]
	mov	r1, #0
	add	r6, r6, #24
	add	r6, r6, r0
	mov	r2, r6
	mov	r0, r5
	bl	memset
	ldr	r3, [fp]
	mov	r0, r7
	str	r3, [r5, #24]
	bl	machine__is_host
	cmp	r0, #0
	ldrne	r3, .L20+4
	ldreq	r3, .L20+8
	ldr	ip, [r4]
	ldr	r0, [r3]
	ldmib	r4, {r2, r3}
	sub	r3, r3, r2
	ldr	r1, [r10]
	ldr	lr, [r7, #4]
	str	r3, [r5, #12]
	ldr	r3, .L20+12
	str	r0, [r5]
	str	r2, [r5, #16]
	str	ip, [r5, #8]
	ldr	r2, [r3]
	str	lr, [r5, #4]
	str	r6, [r5, #20]
	bl	strlcpy
	mov	r3, r9
	mov	r2, r7
	mov	r1, r5
	mov	r0, r8
	bl	perf_tool__process_synth_event
	cmp	r0, #0
	bne	.L19
.L10:
	mov	r0, r4
	bl	map__next
	subs	r4, r0, #0
	bne	.L6
.L4:
	mov	r4, #0
.L9:
	mov	r0, r5
	bl	free
.L1:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mvn	r4, #0
	b	.L9
.L18:
	ldr	r0, .L20+16
	bl	pr_debug
	mvn	r4, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	PERF_RECORD_MMAP
	.word	PERF_RECORD_MISC_KERNEL
	.word	PERF_RECORD_MISC_GUEST_KERNEL
	.word	PATH_MAX
	.word	.LC0
	.size	perf_event__synthesize_extra_kmaps, .-perf_event__synthesize_extra_kmaps
	.comm	PERF_RECORD_MMAP,4,4
	.comm	PERF_RECORD_MISC_KERNEL,4,4
	.comm	PERF_RECORD_MISC_GUEST_KERNEL,4,4
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
