	.file	"extr_snic_trc.c_snic_trc_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to Allocate Trace Buffer Size. %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Trace Facility not enabled.\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Trace Facility Enabled.\n Trace Buffer SZ %lu Pages.\n"
	.text
	.p2align 4
	.globl	snic_trc_init
	.type	snic_trc_init, @function
snic_trc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12d, DWORD PTR snic_trace_max_pages[rip]
	imul	r12d, DWORD PTR PAGE_SIZE[rip]
	mov	rbx, QWORD PTR snic_glob[rip]
	mov	edi, r12d
	call	vzalloc@PLT
	test	rax, rax
	je	.L6
	mov	QWORD PTR 32[rbx], rax
	lea	rdi, 24[rbx]
	call	spin_lock_init@PLT
	xor	eax, eax
	call	snic_trc_debugfs_init@PLT
	mov	eax, r12d
	mov	QWORD PTR 8[rbx], 0
	lea	rdi, .LC2[rip]
	cdq
	mov	QWORD PTR 16[rbx], 0
	idiv	DWORD PTR SNIC_TRC_ENTRY_SZ[rip]
	mov	DWORD PTR 4[rbx], 1
	mov	DWORD PTR [rbx], eax
	mov	eax, r12d
	cdq
	idiv	DWORD PTR PAGE_SIZE[rip]
	mov	esi, eax
	call	SNIC_INFO@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	SNIC_ERR@PLT
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	SNIC_ERR@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	snic_trc_init, .-snic_trc_init
	.comm	snic_trace_max_pages,4,4
	.comm	snic_glob,8,8
	.comm	SNIC_TRC_ENTRY_SZ,4,4
	.comm	PAGE_SIZE,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_snic_trc.c_snic_trc_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to Allocate Trace Buffer Size. %d\012\000"
	.align	2
.LC1:
	.ascii	"Trace Facility not enabled.\012\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"Trace Facility Enabled.\012 Trace Buffer SZ %lu Pag"
	.ascii	"es.\012\000"
	.text
	.align	2
	.global	snic_trc_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	snic_trc_init, %function
snic_trc_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L7
	ldr	r7, .L7+4
	ldr	r5, [r3]
	ldr	r2, [r7]
	ldr	r3, .L7+8
	mul	r5, r2, r5
	mov	r0, r5
	ldr	r4, [r3]
	bl	vzalloc
	cmp	r0, #0
	beq	.L6
	str	r0, [r4, #20]
	add	r0, r4, #16
	bl	spin_lock_init
	bl	snic_trc_debugfs_init
	ldr	r3, .L7+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	__aeabi_idiv
	mov	r6, #0
	mov	r3, #1
	ldr	r1, [r7]
	str	r0, [r4]
	str	r3, [r4, #4]
	mov	r0, r5
	str	r6, [r4, #8]
	str	r6, [r4, #12]
	bl	__aeabi_idiv
	mov	r1, r0
	ldr	r0, .L7+16
	bl	SNIC_INFO
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, r5
	ldr	r0, .L7+20
	bl	SNIC_ERR
	ldr	r0, .L7+24
	bl	SNIC_ERR
	ldr	r3, .L7+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	snic_trace_max_pages
	.word	PAGE_SIZE
	.word	snic_glob
	.word	SNIC_TRC_ENTRY_SZ
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	ENOMEM
	.size	snic_trc_init, .-snic_trc_init
	.comm	snic_trace_max_pages,4,4
	.comm	snic_glob,4,4
	.comm	SNIC_TRC_ENTRY_SZ,4,4
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
