	.file	"extr_trace.c_tracing_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tracing_open, @function
tracing_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r14, QWORD PTR [rdi]
	mov	rdi, r14
	call	tracing_check_open_get_tr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR FMODE_WRITE[rip], eax
	je	.L3
	mov	edx, DWORD PTR 4[r13]
	test	DWORD PTR O_TRUNC[rip], edx
	jne	.L20
.L3:
	test	DWORD PTR FMODE_READ[rip], eax
	jne	.L21
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	xor	edx, edx
	mov	rsi, r13
	call	__tracing_open@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR TRACE_ITER_LATENCY_FMT[rip], eax
	je	.L1
	mov	eax, DWORD PTR TRACE_FILE_LAT_FMT[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	tracing_get_cpu@PLT
	cmp	DWORD PTR RING_BUFFER_ALL_CPUS[rip], eax
	lea	rdi, 16[r14]
	mov	esi, eax
	je	.L23
	call	tracing_reset_cpu@PLT
	mov	eax, DWORD PTR 0[r13]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L1
	mov	rdi, r14
	call	trace_array_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L23:
	.cfi_restore_state
	call	tracing_reset_online_cpus@PLT
	mov	eax, DWORD PTR 0[r13]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tracing_open, .-tracing_open
	.comm	TRACE_ITER_LATENCY_FMT,4,4
	.comm	TRACE_FILE_LAT_FMT,4,4
	.comm	RING_BUFFER_ALL_CPUS,4,4
	.comm	O_TRUNC,4,4
	.comm	FMODE_WRITE,4,4
	.comm	FMODE_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_trace.c_tracing_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tracing_open, %function
tracing_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	mov	r6, r0
	mov	r0, r7
	mov	r4, r1
	bl	tracing_check_open_get_tr
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, .L24
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L3
	ldr	r2, .L24+4
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L20
.L3:
	ldr	r2, .L24+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L21
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r1, r4
	mov	r2, #0
	mov	r0, r6
	bl	__tracing_open
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L24+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L1
	ldr	r2, .L24+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r5, r0
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L20:
	mov	r0, r6
	bl	tracing_get_cpu
	mov	r1, r0
	ldr	r3, .L24+20
	add	r0, r7, #12
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L23
	bl	tracing_reset_cpu
	ldr	r3, [r4]
	b	.L3
.L22:
	mov	r0, r4
	bl	PTR_ERR
	subs	r5, r0, #0
	bge	.L1
	mov	r0, r7
	bl	trace_array_put
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	bl	tracing_reset_online_cpus
	ldr	r3, [r4]
	b	.L3
.L25:
	.align	2
.L24:
	.word	FMODE_WRITE
	.word	O_TRUNC
	.word	FMODE_READ
	.word	TRACE_ITER_LATENCY_FMT
	.word	TRACE_FILE_LAT_FMT
	.word	RING_BUFFER_ALL_CPUS
	.size	tracing_open, .-tracing_open
	.comm	TRACE_ITER_LATENCY_FMT,4,4
	.comm	TRACE_FILE_LAT_FMT,4,4
	.comm	RING_BUFFER_ALL_CPUS,4,4
	.comm	O_TRUNC,4,4
	.comm	FMODE_WRITE,4,4
	.comm	FMODE_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
