	.file	"extr_builtin-report.c_perf_evsel__add_hist_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	perf_evsel__add_hist_entry, @function
perf_evsel__add_hist_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	xor	edx, edx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR sort__has_parent[rip]
	or	rax, QWORD PTR symbol_conf[rip]
	mov	QWORD PTR [rsp], 0
	je	.L2
	cmp	QWORD PTR 8[rbx], 0
	jne	.L18
.L2:
	mov	ecx, DWORD PTR [rbx]
	mov	rsi, r14
	mov	rdi, rbp
	call	__hists__add_entry@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	mov	r12, rax
	neg	r13d
	test	rax, rax
	je	.L1
	cmp	QWORD PTR symbol_conf[rip], 0
	jne	.L5
.L8:
	mov	rdi, QWORD PTR [r12]
	xor	r13d, r13d
	test	rdi, rdi
	je	.L7
	cmp	DWORD PTR use_browser[rip], 1
	je	.L19
.L7:
	mov	eax, DWORD PTR [rbx]
	add	DWORD PTR 0[rbp], eax
	mov	rdi, rbp
	mov	esi, DWORD PTR PERF_RECORD_SAMPLE[rip]
	call	hists__inc_nr_events@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rax]
	mov	edx, DWORD PTR [rbx]
	lea	rsi, callchain_cursor[rip]
	call	callchain_append@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, DWORD PTR 4[rsi]
	mov	rdi, rcx
	mov	r8, rsp
	mov	rcx, rbx
	mov	rsi, rbp
	call	machine__resolve_callchain@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR [rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	QWORD PTR sort__has_sym[rip], 0
	je	.L7
	call	symbol__annotation@PLT
	xor	edi, edi
	test	rbp, rbp
	mov	r13, rax
	setne	dil
	call	assert@PLT
	cmp	QWORD PTR 0[r13], 0
	je	.L9
.L10:
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR [r14]
	mov	rdi, r12
	call	hist_entry__inc_addr_samples@PLT
	mov	r13d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR [r12]
	mov	r13d, DWORD PTR ENOMEM[rip]
	call	symbol__alloc_hist@PLT
	neg	r13d
	test	rax, rax
	jns	.L10
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	perf_evsel__add_hist_entry, .-perf_evsel__add_hist_entry
	.comm	use_browser,4,4
	.comm	symbol_conf,8,8
	.comm	sort__has_sym,8,8
	.comm	sort__has_parent,8,8
	.comm	callchain_cursor,4,4
	.comm	PERF_RECORD_SAMPLE,4,4
	.comm	ENOMEM,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-report.c_perf_evsel__add_hist_entry.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_evsel__add_hist_entry, %function
perf_evsel__add_hist_entry:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, #0
	ldr	ip, .L24
	ldr	r7, .L24+4
	ldr	ip, [ip]
	ldr	lr, [r7]
	mov	r5, r2
	ldr	r2, .L24+8
	sub	sp, sp, #20
	orrs	ip, ip, lr
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r4, r0
	mov	r6, r1
	str	r8, [sp, #8]
	bne	.L20
	mov	r2, ip
.L2:
	mov	r1, r6
	mov	r0, r4
	ldr	r3, [r5]
	bl	__hists__add_entry
	subs	r8, r0, #0
	beq	.L21
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L5
.L8:
	ldr	r0, [r8]
	cmp	r0, #0
	beq	.L14
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L22
.L14:
	mov	r9, #0
.L7:
	ldr	r1, [r5]
	ldr	r3, [r4]
	ldr	r2, .L24+16
	add	r3, r3, r1
	mov	r0, r4
	ldr	r1, [r2]
	str	r3, [r4]
	bl	hists__inc_nr_events
.L1:
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L20:
	ldr	r2, [r5, #4]
	cmp	r2, r8
	beq	.L2
	add	r2, sp, #8
	str	r2, [sp]
	mov	r0, r3
	ldr	r2, [r1, #4]
	mov	r3, r5
	mov	r1, r4
	bl	machine__resolve_callchain
	subs	r9, r0, #0
	bne	.L1
	ldr	r2, [sp, #8]
	b	.L2
.L5:
	ldr	r2, [r5]
	ldr	r1, .L24+20
	ldr	r0, [r8, #4]
	bl	callchain_append
	subs	r9, r0, #0
	beq	.L8
	b	.L1
.L22:
	ldr	r3, .L24+24
	ldr	r9, [r3]
	cmp	r9, #0
	beq	.L7
	bl	symbol__annotation
	mov	r7, r0
	subs	r0, r4, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L9
.L10:
	mov	r0, r8
	ldr	r2, [r6]
	ldr	r1, [r4, #4]
	bl	hist_entry__inc_addr_samples
	mov	r9, r0
	b	.L7
.L21:
	ldr	r3, .L24+28
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L9:
	ldr	r3, .L24+28
	ldr	r0, [r8]
	ldr	r9, [r3]
	bl	symbol__alloc_hist
	cmp	r0, #0
	rsblt	r9, r9, #0
	bge	.L10
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	sort__has_parent
	.word	symbol_conf
	.word	.LC0
	.word	use_browser
	.word	PERF_RECORD_SAMPLE
	.word	callchain_cursor
	.word	sort__has_sym
	.word	ENOMEM
	.size	perf_evsel__add_hist_entry, .-perf_evsel__add_hist_entry
	.comm	use_browser,4,4
	.comm	symbol_conf,4,4
	.comm	sort__has_sym,4,4
	.comm	sort__has_parent,4,4
	.comm	callchain_cursor,4,4
	.comm	PERF_RECORD_SAMPLE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
