	.file	"extr_kern_memorystatus.c_memorystatus_get_proccnt_upto_priority.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	memorystatus_get_proccnt_upto_priority
	.type	memorystatus_get_proccnt_upto_priority, @function
memorystatus_get_proccnt_upto_priority:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR MEMSTAT_BUCKET_COUNT[rip], rdi
	mov	rax, QWORD PTR JETSAM_PRIORITY_IDLE[rip]
	jle	.L4
	cmp	rax, rdi
	jg	.L5
	mov	rdx, QWORD PTR memstat_bucket[rip]
	xor	r8d, r8d
	lea	rax, [rdx+rax*8]
	lea	rdx, 8[rdx+rdi*8]
	.p2align 4,,10
	.p2align 3
.L3:
	add	r8d, DWORD PTR [rax]
	add	rax, 8
	cmp	rax, rdx
	jne	.L3
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xor	r8d, r8d
	mov	eax, r8d
	ret
.L4:
	mov	r8d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	memorystatus_get_proccnt_upto_priority, .-memorystatus_get_proccnt_upto_priority
	.comm	memstat_bucket,8,8
	.comm	MEMSTAT_BUCKET_COUNT,8,8
	.comm	JETSAM_PRIORITY_IDLE,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_kern_memorystatus.c_memorystatus_get_proccnt_upto_priority.c"
	.text
	.align	2
	.global	memorystatus_get_proccnt_upto_priority
	.syntax unified
	.arm
	.fpu softvfp
	.type	memorystatus_get_proccnt_upto_priority, %function
memorystatus_get_proccnt_upto_priority:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r1, .L9
	ldr	r3, .L9+4
	ldr	r1, [r1]
	mov	r2, r0
	cmp	r1, r0
	ldr	r3, [r3]
	ble	.L4
	cmp	r3, r2
	mov	r0, #0
	bxgt	lr
	ldr	r1, .L9+8
	ldr	r1, [r1]
	add	r3, r1, r3, lsl #2
	sub	r3, r3, #4
	add	r1, r1, r2, lsl #2
.L3:
	ldr	r2, [r3, #4]!
	cmp	r3, r1
	add	r0, r0, r2
	bne	.L3
	bx	lr
.L4:
	mvn	r0, #0
	bx	lr
.L10:
	.align	2
.L9:
	.word	MEMSTAT_BUCKET_COUNT
	.word	JETSAM_PRIORITY_IDLE
	.word	memstat_bucket
	.size	memorystatus_get_proccnt_upto_priority, .-memorystatus_get_proccnt_upto_priority
	.comm	memstat_bucket,4,4
	.comm	MEMSTAT_BUCKET_COUNT,4,4
	.comm	JETSAM_PRIORITY_IDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
