	.file	"extr_trace.c_trace_event_buffer_lock_reserve.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	trace_event_buffer_lock_reserve
	.type	trace_event_buffer_lock_reserve, @function
trace_event_buffer_lock_reserve:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rsi]
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR [rbx], rdi
	call	ring_buffer_time_stamp_abs@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR EVENT_FILE_FL_SOFT_DISABLED[rip]
	or	eax, DWORD PTR EVENT_FILE_FL_FILTERED[rip]
	test	DWORD PTR 0[rbp], eax
	jne	.L18
.L3:
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, r15d
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, r12d
	call	__trace_buffer_lock_reserve@PLT
	mov	r8, rax
	test	rax, rax
	je	.L19
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR trace_buffered_event[rip]
	call	this_cpu_read@PLT
	test	rax, rax
	mov	QWORD PTR 8[rsp], rax
	je	.L3
	mov	edi, DWORD PTR trace_buffered_event_cnt[rip]
	call	this_cpu_inc_return@PLT
	mov	r8, QWORD PTR 8[rsp]
	cmp	eax, 1
	je	.L20
	mov	edi, DWORD PTR trace_buffered_event_cnt[rip]
	call	this_cpu_dec@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR EVENT_FILE_FL_TRIGGER_COND[rip], eax
	je	.L1
	mov	rdi, QWORD PTR temp_buffer[rip]
	mov	r8d, r15d
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, r12d
	mov	QWORD PTR [rbx], rdi
	add	rsp, 24
	.cfi_remember_state
	.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
	jmp	__trace_buffer_lock_reserve@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, r8
	mov	ecx, r15d
	mov	rdx, r14
	mov	esi, r12d
	call	trace_event_setup@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [r8]
	mov	QWORD PTR [rax], r13
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	trace_event_buffer_lock_reserve, .-trace_event_buffer_lock_reserve
	.comm	trace_buffered_event_cnt,4,4
	.comm	trace_buffered_event,4,4
	.comm	temp_buffer,8,8
	.comm	EVENT_FILE_FL_TRIGGER_COND,4,4
	.comm	EVENT_FILE_FL_SOFT_DISABLED,4,4
	.comm	EVENT_FILE_FL_FILTERED,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_trace.c_trace_event_buffer_lock_reserve.c"
	.text
	.align	2
	.global	trace_event_buffer_lock_reserve
	.syntax unified
	.arm
	.fpu softvfp
	.type	trace_event_buffer_lock_reserve, %function
trace_event_buffer_lock_reserve:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r6, r1
	ldr	r1, [r1, #4]
	sub	sp, sp, #12
	ldr	r0, [r1]
	mov	r7, r2
	str	r0, [r5]
	mov	r8, r3
	ldr	r9, [sp, #48]
	ldr	r10, [sp, #52]
	bl	ring_buffer_time_stamp_abs
	cmp	r0, #0
	bne	.L3
	ldr	r2, .L21
	ldr	r3, .L21+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r6]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L18
.L3:
	str	r10, [sp]
	mov	r3, r9
	mov	r2, r8
	mov	r1, r7
	ldr	r0, [r5]
	bl	__trace_buffer_lock_reserve
	subs	r4, r0, #0
	beq	.L19
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, .L21+8
	ldr	r0, [r3]
	bl	this_cpu_read
	subs	r4, r0, #0
	beq	.L3
	ldr	fp, .L21+12
	ldr	r0, [fp]
	bl	this_cpu_inc_return
	cmp	r0, #1
	beq	.L20
	ldr	r0, [fp]
	bl	this_cpu_dec
	b	.L3
.L19:
	ldr	r3, .L21+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L1
	ldr	r3, .L21+20
	str	r10, [sp, #48]
	ldr	r0, [r3]
	mov	r2, r8
	mov	r3, r9
	mov	r1, r7
	str	r0, [r5]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	__trace_buffer_lock_reserve
.L20:
	mov	r3, r10
	mov	r2, r9
	mov	r1, r7
	mov	r0, r4
	bl	trace_event_setup
	ldr	r3, [r4]
	str	r8, [r3]
	b	.L1
.L22:
	.align	2
.L21:
	.word	EVENT_FILE_FL_FILTERED
	.word	EVENT_FILE_FL_SOFT_DISABLED
	.word	trace_buffered_event
	.word	trace_buffered_event_cnt
	.word	EVENT_FILE_FL_TRIGGER_COND
	.word	temp_buffer
	.size	trace_event_buffer_lock_reserve, .-trace_event_buffer_lock_reserve
	.comm	trace_buffered_event_cnt,4,4
	.comm	trace_buffered_event,4,4
	.comm	temp_buffer,4,4
	.comm	EVENT_FILE_FL_TRIGGER_COND,4,4
	.comm	EVENT_FILE_FL_SOFT_DISABLED,4,4
	.comm	EVENT_FILE_FL_FILTERED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
