	.file	"extr_builtin-sched.c_perf_sched__read_events.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sched:sched_switch"
.LC1:
	.string	"sched:sched_stat_runtime"
.LC2:
	.string	"sched:sched_wakeup"
.LC3:
	.string	"sched:sched_wakeup_new"
.LC4:
	.string	"sched:sched_migrate_task"
.LC5:
	.string	"Error creating perf session"
.LC6:
	.string	"record -R"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"Failed to process events, error %d"
	.text
	.p2align 4
	.type	perf_sched__read_events, @function
perf_sched__read_events:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rcx, .LC3[rip]
	lea	rdx, 12[rdi]
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 112
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR 64[rsp], rcx
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR process_sched_switch_event[rip]
	mov	DWORD PTR 24[rsp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR process_sched_runtime_event[rip]
	mov	DWORD PTR 40[rsp], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR process_sched_wakeup_event[rip]
	mov	DWORD PTR 56[rsp], eax
	mov	DWORD PTR 72[rsp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR process_sched_migrate_task_event[rip]
	mov	DWORD PTR 88[rsp], eax
	mov	eax, DWORD PTR 16[rdi]
	lea	rdi, 4[rsp]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR PERF_DATA_MODE_READ[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR input_name[rip]
	mov	DWORD PTR 12[rsp], eax
	call	perf_session__new@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
	lea	rdi, 8[rbp]
	mov	r12d, -1
	call	symbol__init@PLT
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	call	perf_session__set_tracepoints_handlers@PLT
	test	rax, rax
	je	.L13
.L4:
	mov	rdi, rbp
	call	perf_session__delete@PLT
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 112
	.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
.L13:
	.cfi_restore_state
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	perf_session__has_traces@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	perf_session__process_events@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rdx]
	mov	edx, DWORD PTR 8[rdx]
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR 4[rbx], edx
	mov	rdx, QWORD PTR PERF_RECORD_LOST[rip]
	mov	DWORD PTR 8[rbx], ecx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR [rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC5[rip]
	call	pr_debug@PLT
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	r12d, -1
	call	pr_err@PLT
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	perf_sched__read_events, .-perf_sched__read_events
	.comm	process_sched_wakeup_event,4,4
	.comm	process_sched_switch_event,4,4
	.comm	process_sched_runtime_event,4,4
	.comm	process_sched_migrate_task_event,4,4
	.comm	input_name,4,4
	.comm	PERF_RECORD_LOST,8,8
	.comm	PERF_DATA_MODE_READ,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_builtin-sched.c_perf_sched__read_events.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sched:sched_switch\000"
	.align	2
.LC1:
	.ascii	"sched:sched_stat_runtime\000"
	.align	2
.LC2:
	.ascii	"sched:sched_wakeup\000"
	.align	2
.LC3:
	.ascii	"sched:sched_wakeup_new\000"
	.align	2
.LC4:
	.ascii	"sched:sched_migrate_task\000"
	.align	2
.LC5:
	.ascii	"Error creating perf session\000"
	.align	2
.LC6:
	.ascii	"record -R\000"
	.align	2
.LC7:
	.ascii	"Failed to process events, error %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_sched__read_events, %function
perf_sched__read_events:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	ldr	lr, .L17
	ldr	ip, .L17+4
	ldr	r3, .L17+8
	ldr	r1, .L17+12
	ldr	r0, .L17+16
	ldr	r4, [lr]
	ldr	r3, [r3]
	ldr	lr, [ip]
	ldr	r5, .L17+20
	ldr	ip, .L17+24
	sub	sp, sp, #60
	ldr	r1, [r1]
	ldr	r0, [r0]
	ldr	r5, [r5]
	str	r5, [sp, #52]
	mov	r5,#0
	ldr	ip, [ip]
	str	r3, [sp, #32]
	str	r3, [sp, #40]
	ldr	r3, .L17+28
	ldr	r2, [r6, #16]
	str	r1, [sp, #48]
	str	r0, [sp, #4]
	ldr	r1, .L17+32
	ldr	r0, .L17+36
	str	ip, [sp, #8]
	str	r3, [sp, #12]
	ldr	ip, .L17+40
	ldr	r3, .L17+44
	str	r2, [sp]
	str	r1, [sp, #20]
	add	r2, r6, #12
	mov	r1, #0
	str	r0, [sp, #28]
	mov	r0, sp
	str	r4, [sp, #16]
	str	lr, [sp, #24]
	str	ip, [sp, #36]
	str	r3, [sp, #44]
	bl	perf_session__new
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	add	r0, r4, #4
	bl	symbol__init
	mov	r0, r4
	add	r1, sp, #12
	bl	perf_session__set_tracepoints_handlers
	cmp	r0, #0
	mvnne	r5, #0
	beq	.L14
.L4:
	mov	r0, r4
	bl	perf_session__delete
.L1:
	ldr	r3, .L17+20
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r0, r4
	ldr	r1, .L17+48
	bl	perf_session__has_traces
	subs	r5, r0, #0
	beq	.L4
	mov	r0, r4
	bl	perf_session__process_events
	subs	r5, r0, #0
	bne	.L16
	ldr	r2, [r4]
	ldr	ip, .L17+52
	ldr	r3, [r2]
	ldr	r0, [r2, #4]
	ldr	r1, [r3]
	ldr	r2, [ip]
	stmib	r6, {r0, r1}
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r6]
	b	.L4
.L13:
	ldr	r0, .L17+56
	bl	pr_debug
	mov	r0, r4
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L16:
	mov	r1, r5
	ldr	r0, .L17+60
	bl	pr_err
	mvn	r5, #0
	b	.L4
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	process_sched_switch_event
	.word	process_sched_runtime_event
	.word	process_sched_wakeup_event
	.word	process_sched_migrate_task_event
	.word	PERF_DATA_MODE_READ
	.word	.LC8
	.word	input_name
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	PERF_RECORD_LOST
	.word	.LC5
	.word	.LC7
	.size	perf_sched__read_events, .-perf_sched__read_events
	.comm	process_sched_wakeup_event,4,4
	.comm	process_sched_switch_event,4,4
	.comm	process_sched_runtime_event,4,4
	.comm	process_sched_migrate_task_event,4,4
	.comm	input_name,4,4
	.comm	PERF_RECORD_LOST,4,4
	.comm	PERF_DATA_MODE_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
