	.file	"extr_hwpmc_soft.c_pmc_soft_initialize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pmc_soft_initialize
	.type	pmc_soft_initialize, @function
pmc_soft_initialize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12d, DWORD PTR M_ZERO[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, DWORD PTR M_PMC[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	or	r12d, DWORD PTR M_WAITOK[rip]
	mov	rbx, rdi
	call	pmc_cpu_max@PLT
	mov	edx, r12d
	mov	esi, ebp
	lea	edi, 0[0+rax*8]
	call	malloc@PLT
	mov	edx, DWORD PTR SOFT_CAPS[rip]
	mov	esi, DWORD PTR soft_allocate_pmc[rip]
	mov	DWORD PTR soft_pcpu[rip], eax
	mov	rax, QWORD PTR PMC_CLASS_INDEX_SOFT[rip]
	mov	rcx, QWORD PTR SOFT_NPMCS[rip]
	lea	rax, [rax+rax*4]
	sal	rax, 4
	add	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR 76[rax], edx
	mov	edx, DWORD PTR PMC_CLASS_SOFT[rip]
	mov	QWORD PTR 64[rax], rcx
	mov	DWORD PTR 72[rax], edx
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 52[rax], esi
	mov	esi, DWORD PTR soft_config_pmc[rip]
	mov	DWORD PTR 56[rax], edx
	add	edx, ecx
	mov	DWORD PTR 48[rax], esi
	mov	esi, DWORD PTR soft_describe[rip]
	mov	DWORD PTR [rax], 64
	mov	DWORD PTR 44[rax], esi
	mov	esi, DWORD PTR soft_get_config[rip]
	mov	QWORD PTR 32[rax], 0
	mov	DWORD PTR 40[rax], esi
	mov	esi, DWORD PTR soft_pcpu_init[rip]
	mov	DWORD PTR 28[rax], esi
	mov	esi, DWORD PTR soft_pcpu_fini[rip]
	mov	DWORD PTR 24[rax], esi
	mov	esi, DWORD PTR soft_read_pmc[rip]
	mov	DWORD PTR 20[rax], esi
	mov	esi, DWORD PTR soft_write_pmc[rip]
	mov	DWORD PTR 16[rax], esi
	mov	esi, DWORD PTR soft_release_pmc[rip]
	mov	DWORD PTR 12[rax], esi
	mov	esi, DWORD PTR soft_start_pmc[rip]
	mov	DWORD PTR 8[rax], esi
	mov	esi, DWORD PTR soft_stop_pmc[rip]
	mov	DWORD PTR 4[rax], esi
	mov	DWORD PTR [rbx], edx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pmc_soft_initialize, .-pmc_soft_initialize
	.comm	soft_write_pmc,4,4
	.comm	soft_stop_pmc,4,4
	.comm	soft_start_pmc,4,4
	.comm	soft_release_pmc,4,4
	.comm	soft_read_pmc,4,4
	.comm	soft_pcpu_init,4,4
	.comm	soft_pcpu_fini,4,4
	.comm	soft_pcpu,4,4
	.comm	soft_get_config,4,4
	.comm	soft_describe,4,4
	.comm	soft_config_pmc,4,4
	.comm	soft_allocate_pmc,4,4
	.comm	SOFT_NPMCS,8,8
	.comm	SOFT_CAPS,4,4
	.comm	PMC_CLASS_SOFT,4,4
	.comm	PMC_CLASS_INDEX_SOFT,8,8
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_PMC,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_hwpmc_soft.c_pmc_soft_initialize.c"
	.text
	.align	2
	.global	pmc_soft_initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmc_soft_initialize, %function
pmc_soft_initialize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	pmc_cpu_max
	ldr	r2, .L4
	ldr	r3, .L4+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+8
	orr	r2, r1, r2
	lsl	r0, r0, #2
	ldr	r1, [r3]
	bl	malloc
	mov	r5, #64
	mov	r7, #0
	ldr	r3, .L4+12
	ldr	ip, .L4+16
	ldr	r1, .L4+20
	ldr	r2, [r3]
	ldr	lr, [ip]
	ldr	r3, .L4+24
	ldr	ip, [r1]
	ldr	r1, [r4, #4]
	add	r2, r2, r2, lsl #4
	str	r0, [r3]
	add	r3, r1, r2, lsl #2
	str	lr, [r3, #64]
	ldr	r0, .L4+28
	ldr	lr, .L4+32
	ldr	r0, [r0]
	ldr	r6, [lr]
	str	ip, [r3, #60]
	ldr	lr, .L4+36
	ldr	ip, [r4]
	ldr	lr, [lr]
	str	r0, [r3, #56]
	str	ip, [r3, #52]
	str	r5, [r1, r2, lsl #2]
	ldr	r1, .L4+40
	ldr	r2, .L4+44
	ldr	r5, [r1]
	ldr	r1, [r2]
	ldr	r2, .L4+48
	str	lr, [r3, #44]
	ldr	lr, [r2]
	ldr	r2, .L4+52
	str	r6, [r3, #48]
	ldr	r6, [r2]
	ldr	r2, .L4+56
	str	r5, [r3, #40]
	str	r1, [r3, #36]
	ldr	r5, [r2]
	ldr	r1, .L4+60
	ldr	r2, .L4+64
	str	lr, [r3, #28]
	ldr	r2, [r2]
	ldr	lr, [r1]
	ldr	r1, .L4+68
	str	r2, [r3, #16]
	ldr	r1, [r1]
	ldr	r2, .L4+72
	str	r7, [r3, #32]
	str	r6, [r3, #24]
	str	r5, [r3, #20]
	str	lr, [r3, #12]
	str	r1, [r3, #8]
	ldr	r1, [r2]
	add	r2, r0, ip
	str	r1, [r3, #4]
	str	r2, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	M_ZERO
	.word	M_WAITOK
	.word	M_PMC
	.word	PMC_CLASS_INDEX_SOFT
	.word	SOFT_CAPS
	.word	PMC_CLASS_SOFT
	.word	soft_pcpu
	.word	SOFT_NPMCS
	.word	soft_allocate_pmc
	.word	soft_config_pmc
	.word	soft_describe
	.word	soft_get_config
	.word	soft_pcpu_init
	.word	soft_pcpu_fini
	.word	soft_read_pmc
	.word	soft_release_pmc
	.word	soft_write_pmc
	.word	soft_start_pmc
	.word	soft_stop_pmc
	.size	pmc_soft_initialize, .-pmc_soft_initialize
	.comm	soft_write_pmc,4,4
	.comm	soft_stop_pmc,4,4
	.comm	soft_start_pmc,4,4
	.comm	soft_release_pmc,4,4
	.comm	soft_read_pmc,4,4
	.comm	soft_pcpu_init,4,4
	.comm	soft_pcpu_fini,4,4
	.comm	soft_pcpu,4,4
	.comm	soft_get_config,4,4
	.comm	soft_describe,4,4
	.comm	soft_config_pmc,4,4
	.comm	soft_allocate_pmc,4,4
	.comm	SOFT_NPMCS,4,4
	.comm	SOFT_CAPS,4,4
	.comm	PMC_CLASS_SOFT,4,4
	.comm	PMC_CLASS_INDEX_SOFT,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_PMC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
