	.file	"extr_ftrace.c_update_ftrace_function.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_ftrace_function, @function
update_ftrace_function:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	rdi, ftrace_lock[rip]
	lea	rbx, ftrace_list_end[rip]
	call	lockdep_is_held@PLT
	mov	rdi, QWORD PTR ftrace_ops_list[rip]
	mov	esi, eax
	call	rcu_dereference_protected@PLT
	mov	QWORD PTR set_function_trace_op[rip], rax
	cmp	rax, rbx
	je	.L10
	lea	rdi, ftrace_lock[rip]
	call	lockdep_is_held@PLT
	mov	esi, eax
	mov	rax, QWORD PTR ftrace_ops_list[rip]
	mov	rdi, QWORD PTR [rax]
	call	rcu_dereference_protected@PLT
	cmp	rbx, rax
	je	.L11
	mov	QWORD PTR set_function_trace_op[rip], rbx
	mov	rbx, QWORD PTR ftrace_ops_list_func[rip]
.L3:
	xor	eax, eax
	call	update_function_graph_func@PLT
	cmp	QWORD PTR ftrace_trace_function[rip], rbx
	je	.L1
	mov	rax, QWORD PTR ftrace_ops_list_func[rip]
	cmp	rax, rbx
	je	.L8
	mov	edi, DWORD PTR ftrace_sync[rip]
	mov	QWORD PTR ftrace_trace_function[rip], rax
	call	schedule_on_each_cpu@PLT
	mov	rax, QWORD PTR set_function_trace_op[rip]
	mov	QWORD PTR function_trace_op[rip], rax
	xor	eax, eax
	call	smp_wmb@PLT
	mov	edi, DWORD PTR ftrace_sync_ipi[rip]
	mov	edx, 1
	xor	esi, esi
	call	smp_call_function@PLT
.L8:
	mov	QWORD PTR ftrace_trace_function[rip], rbx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rbx, QWORD PTR ftrace_stub[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR ftrace_ops_list[rip]
	call	ftrace_ops_get_list_func@PLT
	mov	rbx, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	update_ftrace_function, .-update_ftrace_function
	.comm	set_function_trace_op,8,8
	.comm	function_trace_op,8,8
	.comm	ftrace_trace_function,8,8
	.comm	ftrace_sync_ipi,4,4
	.comm	ftrace_sync,4,4
	.comm	ftrace_stub,8,8
	.comm	ftrace_ops_list_func,8,8
	.comm	ftrace_ops_list,8,8
	.comm	ftrace_lock,4,4
	.comm	ftrace_list_end,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_ftrace.c_update_ftrace_function.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ftrace_function, %function
update_ftrace_function:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L12
	ldr	r0, .L12+4
	ldr	r4, [r5]
	bl	lockdep_is_held
	mov	r1, r0
	mov	r0, r4
	bl	rcu_dereference_protected
	ldr	r4, .L12+8
	ldr	r6, .L12+12
	cmp	r0, r4
	str	r0, [r6]
	beq	.L10
	ldr	r3, [r5]
	ldr	r0, .L12+4
	ldr	r7, [r3]
	bl	lockdep_is_held
	mov	r1, r0
	mov	r0, r7
	bl	rcu_dereference_protected
	cmp	r4, r0
	beq	.L11
	ldr	r3, .L12+16
	str	r4, [r6]
	ldr	r4, [r3]
.L3:
	ldr	r5, .L12+20
	bl	update_function_graph_func
	ldr	r3, [r5]
	cmp	r3, r4
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L8
	ldr	r2, .L12+24
	str	r3, [r5]
	ldr	r0, [r2]
	bl	schedule_on_each_cpu
	ldr	r2, [r6]
	ldr	r3, .L12+28
	str	r2, [r3]
	bl	smp_wmb
	ldr	r3, .L12+32
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [r3]
	bl	smp_call_function
.L8:
	str	r4, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+36
	ldr	r4, [r3]
	b	.L3
.L11:
	ldr	r0, [r5]
	bl	ftrace_ops_get_list_func
	mov	r4, r0
	b	.L3
.L13:
	.align	2
.L12:
	.word	ftrace_ops_list
	.word	ftrace_lock
	.word	ftrace_list_end
	.word	set_function_trace_op
	.word	ftrace_ops_list_func
	.word	ftrace_trace_function
	.word	ftrace_sync
	.word	function_trace_op
	.word	ftrace_sync_ipi
	.word	ftrace_stub
	.size	update_ftrace_function, .-update_ftrace_function
	.comm	set_function_trace_op,4,4
	.comm	function_trace_op,4,4
	.comm	ftrace_trace_function,4,4
	.comm	ftrace_sync_ipi,4,4
	.comm	ftrace_sync,4,4
	.comm	ftrace_stub,4,4
	.comm	ftrace_ops_list_func,4,4
	.comm	ftrace_ops_list,4,4
	.comm	ftrace_lock,4,4
	.comm	ftrace_list_end,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
