	.file	"extr_cache.c_init_cache_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	init_cache_level
	.type	init_cache_level, @function
init_cache_level:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_cpu_cacheinfo@PLT
	mov	edi, 34
	mov	r13, rax
	call	test_facility@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	r13, r13
	je	.L1
	mov	edi, DWORD PTR EXTRACT_TOPOLOGY[rip]
	xor	edx, edx
	xor	esi, esi
	xor	ebp, ebp
	xor	ebx, ebx
	call	ecag@PLT
	mov	r12d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	eax, DWORD PTR CACHE_TYPE_SEPARATE[rip]
	sete	al
	add	ebx, 1
	cmp	DWORD PTR CACHE_MAX_LEVEL[rip], ebx
	movzx	eax, al
	lea	ebp, 1[rbp+rax]
	jbe	.L5
.L7:
	mov	esi, ebx
	mov	rdi, r12
	call	get_cache_type@PLT
	cmp	eax, DWORD PTR CACHE_TYPE_NOCACHE[rip]
	jne	.L13
.L5:
	mov	DWORD PTR 0[r13], ebx
	xor	eax, eax
	mov	DWORD PTR 4[r13], ebp
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	init_cache_level, .-init_cache_level
	.comm	EXTRACT_TOPOLOGY,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	CACHE_TYPE_SEPARATE,4,4
	.comm	CACHE_TYPE_NOCACHE,4,4
	.comm	CACHE_MAX_LEVEL,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_cache.c_init_cache_level.c"
	.text
	.align	2
	.global	init_cache_level
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_cache_level, %function
init_cache_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	get_cpu_cacheinfo
	mov	r6, r0
	mov	r0, #34
	bl	test_facility
	cmp	r0, #0
	beq	.L12
	cmp	r6, #0
	beq	.L13
	mov	r2, #0
	ldr	r3, .L15
	mov	r1, r2
	ldr	r0, [r3]
	bl	ecag
	mov	r9, #0
	mov	r5, r0
	mov	r4, r9
	ldr	r10, .L15+4
	ldr	r8, .L15+8
	ldr	r7, .L15+12
	b	.L7
.L14:
	ldr	r2, [r8]
	ldr	r3, [r7]
	cmp	r0, r2
	moveq	r0, #2
	movne	r0, #1
	add	r4, r4, #1
	cmp	r3, r4
	add	r9, r9, r0
	bls	.L5
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	get_cache_type
	ldr	r3, [r10]
	cmp	r0, r3
	bne	.L14
.L5:
	mov	r0, #0
	stm	r6, {r4, r9}
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	EXTRACT_TOPOLOGY
	.word	CACHE_TYPE_NOCACHE
	.word	CACHE_TYPE_SEPARATE
	.word	CACHE_MAX_LEVEL
	.word	EINVAL
	.word	EOPNOTSUPP
	.size	init_cache_level, .-init_cache_level
	.comm	EXTRACT_TOPOLOGY,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	CACHE_TYPE_SEPARATE,4,4
	.comm	CACHE_TYPE_NOCACHE,4,4
	.comm	CACHE_MAX_LEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
