	.file	"extr_init_32.c_calc_highpages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	calc_highpages
	.type	calc_highpages, @function
calc_highpages:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR sp_banks[rip]
	mov	rax, QWORD PTR [rsi]
	test	rax, rax
	je	.L1
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	r8, QWORD PTR max_low_pfn[rip]
	add	rsi, 16
	xor	edi, edi
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR -8[rsi]
	add	rax, rdx
	shr	rax, cl
	cmp	r8, rax
	jnb	.L3
	shr	rdx, cl
	add	edi, eax
	cmp	r8, rdx
	cmovnb	rdx, r8
	sub	edi, edx
.L3:
	mov	rax, QWORD PTR [rsi]
	add	rsi, 16
	test	rax, rax
	jne	.L4
	movsx	rax, edi
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	calc_highpages, .-calc_highpages
	.comm	sp_banks,8,8
	.comm	max_low_pfn,8,8
	.comm	PAGE_SHIFT,8,8
	.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_init_32.c_calc_highpages.c"
	.text
	.align	2
	.global	calc_highpages
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_highpages, %function
calc_highpages:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r1, [r2]
	cmp	r1, #0
	beq	.L5
	push	{r4, r5, lr}
	mov	lr, #0
	ldr	r0, .L13+4
	ldr	r3, .L13+8
	ldr	ip, [r0]
	ldr	r4, [r3]
.L4:
	ldr	r3, [r2, #4]
	mov	r0, lr
	lsr	r5, r3, ip
	add	r3, r3, r1
	cmp	r4, r3, lsr ip
	lsr	r3, r3, ip
	add	r3, r3, lr
	bcs	.L3
	cmp	r4, r5
	subcs	lr, r3, r4
	subcc	lr, r3, r5
	mov	r0, lr
.L3:
	ldr	r1, [r2, #8]!
	cmp	r1, #0
	bne	.L4
	pop	{r4, r5, pc}
.L5:
	mov	r0, r1
	bx	lr
.L14:
	.align	2
.L13:
	.word	sp_banks
	.word	PAGE_SHIFT
	.word	max_low_pfn
	.size	calc_highpages, .-calc_highpages
	.comm	sp_banks,4,4
	.comm	max_low_pfn,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
