	.file	"extr_chip.c_init_early_variables.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_early_variables, @function
init_early_variables:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR CM_VAU[rip]
	mov	DWORD PTR 24[rdi], eax
	mov	eax, DWORD PTR CM_GLOBAL_CREDITS[rip]
	mov	DWORD PTR [rdi], eax
	call	is_ax@PLT
	test	rax, rax
	je	.L2
	sub	DWORD PTR 0[rbp], 1
.L2:
	mov	edi, DWORD PTR hfi1_cu[rip]
	call	cu_to_vcu@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	DWORD PTR 28[rbp], eax
	call	vau_to_au@PLT
	mov	rdi, rbp
	mov	r8d, eax
	mov	eax, 17408
	cdq
	idiv	r8d
	mov	edx, DWORD PTR 0[rbp]
	cmp	eax, edx
	cmovg	eax, edx
	mov	DWORD PTR 4[rbp], eax
	call	write_uninitialized_csrs_and_memories@PLT
	mov	edi, DWORD PTR PKEY_CHECK[rip]
	call	HFI1_CAP_IS_KSET@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[rbp]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	set_partition_keys@PLT
	cmp	DWORD PTR 8[rbp], ebx
	jg	.L5
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	init_sc2vl_tables@PLT
	.cfi_endproc
.LFE0:
	.size	init_early_variables, .-init_early_variables
	.comm	hfi1_cu,4,4
	.comm	PKEY_CHECK,4,4
	.comm	CM_VAU,4,4
	.comm	CM_GLOBAL_CREDITS,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_chip.c_init_early_variables.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_early_variables, %function
init_early_variables:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	str	r2, [r0, #16]
	str	r3, [r0]
	mov	r4, r0
	bl	is_ax
	cmp	r0, #0
	ldrne	r3, [r4]
	subne	r3, r3, #1
	strne	r3, [r4]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	bl	cu_to_vcu
	mov	r3, r0
	ldr	r0, [r4, #16]
	str	r3, [r4, #20]
	bl	vau_to_au
	mov	r1, r0
	mov	r0, #17408
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r3, [r4]
	mov	r0, r4
	cmp	r3, r2
	movge	r3, r2
	str	r3, [r4, #4]
	bl	write_uninitialized_csrs_and_memories
	ldr	r3, .L15+12
	ldr	r0, [r3]
	bl	HFI1_CAP_IS_KSET
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
.L5:
	ldr	r0, [r4, #12]
	add	r0, r0, r5, lsl #2
	bl	set_partition_keys
	ldr	r3, [r4, #8]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	init_sc2vl_tables
.L16:
	.align	2
.L15:
	.word	CM_VAU
	.word	CM_GLOBAL_CREDITS
	.word	hfi1_cu
	.word	PKEY_CHECK
	.size	init_early_variables, .-init_early_variables
	.comm	hfi1_cu,4,4
	.comm	PKEY_CHECK,4,4
	.comm	CM_VAU,4,4
	.comm	CM_GLOBAL_CREDITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
