	.file	"extr_mp_x86.c_add_deterministic_cache.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unexpected cache type %d\n"
.LC1:
	.string	"unexpected cache level %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"WARNING: multiple entries for L%u data cache\n"
	.section	.rodata.str1.1
.LC3:
	.string	"%u => %u\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"WARNING: L%u data cache covers more APIC IDs than a package (%u > %u)\n"
	.align 8
.LC5:
	.string	"WARNING: L%u data cache covers fewer APIC IDs than a core (%u < %u)\n"
	.text
	.p2align 4
	.type	add_deterministic_cache, @function
add_deterministic_cache:
.LFB0:
	.cfi_startproc
	endbr64
	xor	eax, eax
	test	edi, edi
	je	.L16
	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
	cmp	edi, 3
	jg	.L21
	cmp	edi, 2
	je	.L19
	mov	ebp, esi
	test	esi, esi
	je	.L5
	cmp	DWORD PTR MAX_CACHE_LEVELS[rip], esi
	jl	.L5
	movsx	rax, esi
	mov	r13, QWORD PTR caches[rip]
	mov	r12d, edx
	lea	rbx, -8[0+rax*8]
	add	r13, rbx
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jne	.L22
.L7:
	mov	edi, r12d
	call	mask_width@PLT
	mov	ecx, DWORD PTR pkg_id_shift[rip]
	mov	DWORD PTR 4[r13], eax
	mov	rax, QWORD PTR caches[rip]
	add	rax, rbx
	mov	edx, DWORD PTR 4[rax]
	mov	DWORD PTR [rax], 1
	cmp	edx, ecx
	jg	.L23
.L8:
	mov	ecx, DWORD PTR core_id_shift[rip]
	cmp	ecx, edx
	jg	.L24
.L19:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L16:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	esi, ebp
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rax, QWORD PTR caches[rip]
	mov	edx, DWORD PTR core_id_shift[rip]
	mov	DWORD PTR 4[rax+rbx], edx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, ebp
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edx, DWORD PTR pkg_id_shift[rip]
	mov	rax, QWORD PTR caches[rip]
	mov	DWORD PTR 4[rax+rbx], edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, r12d
	call	mask_width@PLT
	lea	rdi, .LC3[rip]
	mov	edx, eax
	mov	rax, QWORD PTR caches[rip]
	mov	esi, DWORD PTR 4[rax+rbx]
	xor	eax, eax
	call	printf@PLT
	mov	r13, QWORD PTR caches[rip]
	add	r13, rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, edi
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	printf@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L21:
	.cfi_restore_state
	mov	esi, edi
	lea	rdi, .LC0[rip]
	call	printf@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
	.cfi_endproc
.LFE0:
	.size	add_deterministic_cache, .-add_deterministic_cache
	.comm	pkg_id_shift,4,4
	.comm	core_id_shift,4,4
	.comm	caches,8,8
	.comm	MAX_CACHE_LEVELS,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_mp_x86.c_add_deterministic_cache.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unexpected cache type %d\012\000"
	.align	2
.LC1:
	.ascii	"unexpected cache level %d\012\000"
	.align	2
.LC2:
	.ascii	"WARNING: multiple entries for L%u data cache\012\000"
	.align	2
.LC3:
	.ascii	"%u => %u\012\000"
	.align	2
.LC4:
	.ascii	"WARNING: L%u data cache covers more APIC IDs than a"
	.ascii	" package (%u > %u)\012\000"
	.align	2
.LC5:
	.ascii	"WARNING: L%u data cache covers fewer APIC IDs than "
	.ascii	"a core (%u < %u)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_deterministic_cache, %function
add_deterministic_cache:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	bxeq	lr
	cmp	r0, #3
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bgt	.L23
	cmp	r0, #2
	beq	.L21
	cmp	r1, #0
	mov	r4, r1
	beq	.L5
	ldr	r3, .L27
	ldr	r3, [r3]
	cmp	r3, r1
	blt	.L5
	ldr	r8, .L27+4
	sub	r7, r1, #-536870911
	ldr	r3, [r8]
	mov	r5, r2
	ldr	r2, [r3, r7, lsl #3]
	lsl	r9, r7, #3
	cmp	r2, #0
	add	r6, r3, r7, lsl #3
	bne	.L24
.L7:
	mov	r0, r5
	bl	mask_width
	mov	ip, #1
	ldr	r1, [r8]
	ldr	r5, .L27+8
	str	r0, [r6, #4]
	add	r3, r1, r9
	ldr	r2, [r3, #4]
	ldr	r3, [r5]
	str	ip, [r1, r7, lsl #3]
	cmp	r2, r3
	bgt	.L25
.L8:
	ldr	r5, .L27+12
	ldr	r3, [r5]
	cmp	r3, r2
	bgt	.L26
.L21:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	mov	r1, r4
	ldr	r0, .L27+16
	bl	printf
	ldr	r3, [r8]
	ldr	r2, [r5]
	add	r9, r3, r9
	str	r2, [r9, #4]
	b	.L21
.L25:
	mov	r1, r4
	ldr	r0, .L27+20
	bl	printf
	ldr	r3, [r8]
	ldr	r2, [r5]
	add	r3, r3, r9
	str	r2, [r3, #4]
	b	.L8
.L24:
	ldr	r0, .L27+24
	bl	printf
	ldr	r3, [r8]
	mov	r0, r5
	add	r3, r3, r9
	ldr	r6, [r3, #4]
	bl	mask_width
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L27+28
	bl	printf
	ldr	r3, [r8]
	add	r6, r3, r9
	b	.L7
.L5:
	mov	r1, r0
	ldr	r0, .L27+32
	bl	printf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	mov	r1, r0
	ldr	r0, .L27+36
	bl	printf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	.align	2
.L27:
	.word	MAX_CACHE_LEVELS
	.word	caches
	.word	pkg_id_shift
	.word	core_id_shift
	.word	.LC5
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.size	add_deterministic_cache, .-add_deterministic_cache
	.comm	pkg_id_shift,4,4
	.comm	core_id_shift,4,4
	.comm	caches,4,4
	.comm	MAX_CACHE_LEVELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
