	.file	"extr_callchain.c_perf_callchain_kernel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	perf_callchain_kernel
	.type	perf_callchain_kernel, @function
perf_callchain_kernel:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rsi]
	mov	r14, QWORD PTR [rsi]
	mov	rbx, QWORD PTR 8[rax]
	call	perf_instruction_pointer@PLT
	mov	rdi, r13
	mov	rsi, rax
	call	perf_callchain_store@PLT
	mov	rdx, QWORD PTR STACK_FRAME_OVERHEAD[rip]
	mov	esi, DWORD PTR current[rip]
	mov	rdi, rbx
	call	validate_sp@PLT
	test	eax, eax
	je	.L1
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdx, QWORD PTR STACK_FRAME_LR_SAVE[rip]
	mov	r12, QWORD PTR [rax+rdx*8]
	cmp	rbp, 1
	jne	.L8
	cmp	r14, r12
	jne	.L21
.L6:
	xor	r12d, r12d
.L8:
	add	rbp, 1
.L4:
	mov	rsi, r12
	mov	rdi, r13
	call	perf_callchain_store@PLT
	mov	rsi, r15
	mov	rdi, rbx
	call	valid_next_sp@PLT
	test	eax, eax
	je	.L1
.L9:
	mov	rdx, QWORD PTR STACK_INT_FRAME_SIZE[rip]
	mov	rax, rbx
	mov	r15, rbx
	mov	rbx, QWORD PTR [rbx]
	add	rdx, rax
	cmp	rdx, rbx
	je	.L22
.L3:
	test	rbp, rbp
	jne	.L23
	mov	r12, r14
.L5:
	mov	rdi, r12
	call	kernel_text_address@PLT
	test	eax, eax
	jne	.L8
	jmp	.L6
.L21:
	cmp	rbp, 1
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdx, QWORD PTR STACK_FRAME_MARKER[rip]
	mov	rcx, QWORD PTR STACK_FRAME_REGS_MARKER[rip]
	cmp	QWORD PTR [rax+rdx*8], rcx
	jne	.L3
	mov	esi, DWORD PTR PERF_CONTEXT_KERNEL[rip]
	add	rax, QWORD PTR STACK_FRAME_OVERHEAD[rip]
	mov	rdi, r13
	xor	ebp, ebp
	mov	r12, QWORD PTR 16[rax]
	mov	r14, QWORD PTR [rax]
	call	perf_callchain_store_context@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	perf_callchain_kernel, .-perf_callchain_kernel
	.comm	current,4,4
	.comm	STACK_INT_FRAME_SIZE,8,8
	.comm	STACK_FRAME_REGS_MARKER,8,8
	.comm	STACK_FRAME_OVERHEAD,8,8
	.comm	STACK_FRAME_MARKER,8,8
	.comm	STACK_FRAME_LR_SAVE,8,8
	.comm	PERF_CONTEXT_KERNEL,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_callchain.c_perf_callchain_kernel.c"
	.text
	.align	2
	.global	perf_callchain_kernel
	.syntax unified
	.arm
	.fpu softvfp
	.type	perf_callchain_kernel, %function
perf_callchain_kernel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1, #4]
	sub	sp, sp, #12
	mov	r6, r0
	mov	r0, r1
	ldr	r4, [r3, #4]
	ldr	r7, [r1]
	bl	perf_instruction_pointer
	mov	r1, r0
	mov	r0, r6
	bl	perf_callchain_store
	ldr	r3, .L19
	ldr	r2, .L19+4
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	validate_sp
	cmp	r0, #0
	beq	.L1
	mov	r5, #0
	ldr	r8, .L19+8
	ldr	r9, .L19+12
	ldr	fp, .L19+16
	b	.L8
.L18:
	ldr	r3, [r9]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r5, #1
	cmpeq	r7, r3
	bne	.L16
.L6:
	mov	r3, #0
.L7:
	add	r5, r5, #1
.L4:
	mov	r1, r3
	mov	r0, r6
	bl	perf_callchain_store
	mov	r1, r10
	mov	r0, r4
	bl	valid_next_sp
	cmp	r0, #0
	beq	.L1
.L8:
	mov	r2, r4
	ldr	r3, [r8]
	mov	r10, r4
	ldr	r4, [r4]
	add	r3, r2, r3
	cmp	r3, r4
	beq	.L17
.L3:
	cmp	r5, #0
	bne	.L18
	mov	r3, r7
.L5:
	mov	r0, r3
	str	r3, [sp, #4]
	bl	kernel_text_address
	cmp	r0, #0
	ldr	r3, [sp, #4]
	bne	.L7
	b	.L6
.L16:
	cmp	r5, #1
	bne	.L7
	b	.L5
.L17:
	ldr	r1, [fp]
	ldr	r3, .L19+20
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L3
	ldr	r3, .L19+4
	mov	r0, r6
	ldr	ip, [r3]
	ldr	r3, .L19+24
	ldr	r7, [r2, ip]
	ldr	r1, [r3]
	add	r3, r2, ip
	ldr	r3, [r3, #8]
	mov	r5, #0
	str	r3, [sp, #4]
	bl	perf_callchain_store_context
	ldr	r3, [sp, #4]
	b	.L4
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	current
	.word	STACK_FRAME_OVERHEAD
	.word	STACK_INT_FRAME_SIZE
	.word	STACK_FRAME_LR_SAVE
	.word	STACK_FRAME_MARKER
	.word	STACK_FRAME_REGS_MARKER
	.word	PERF_CONTEXT_KERNEL
	.size	perf_callchain_kernel, .-perf_callchain_kernel
	.comm	current,4,4
	.comm	STACK_INT_FRAME_SIZE,4,4
	.comm	STACK_FRAME_REGS_MARKER,4,4
	.comm	STACK_FRAME_OVERHEAD,4,4
	.comm	STACK_FRAME_MARKER,4,4
	.comm	STACK_FRAME_LR_SAVE,4,4
	.comm	PERF_CONTEXT_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
