	.file	"extr_mca_drv.c_mca_page_isolate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mca_page_isolate, @function
mca_page_isolate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	ia64_phys_addr_valid@PLT
	test	eax, eax
	jne	.L2
.L13:
	mov	eax, DWORD PTR ISOLATE_NONE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rdi, rbx
	shr	rdi, cl
	call	pfn_valid@PLT
	test	eax, eax
	je	.L13
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	shr	rbx, cl
	mov	rdi, rbx
	call	pfn_to_page@PLT
	mov	ecx, DWORD PTR num_page_isolate[rip]
	mov	rbx, rax
	test	ecx, ecx
	jle	.L5
	mov	rax, QWORD PTR page_isolate[rip]
	lea	edx, -1[rcx]
	lea	rdx, 8[rax+rdx*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	rax, 8
	cmp	rax, rdx
	je	.L5
.L7:
	cmp	QWORD PTR [rax], rbx
	jne	.L6
.L14:
	mov	eax, DWORD PTR ISOLATE_OK[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	DWORD PTR MAX_PAGE_ISOLATE[rip], ecx
	je	.L10
	mov	rdi, rbx
	call	PageSlab@PLT
	test	rax, rax
	je	.L9
.L10:
	mov	eax, DWORD PTR ISOLATE_NG[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbx
	call	PageReserved@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, rbx
	call	get_page@PLT
	mov	rdi, rbx
	call	SetPageReserved@PLT
	movsx	rax, DWORD PTR num_page_isolate[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR num_page_isolate[rip], edx
	mov	rdx, QWORD PTR page_isolate[rip]
	mov	QWORD PTR [rdx+rax*8], rbx
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	mca_page_isolate, .-mca_page_isolate
	.comm	page_isolate,8,8
	.comm	num_page_isolate,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	MAX_PAGE_ISOLATE,4,4
	.comm	ISOLATE_OK,4,4
	.comm	ISOLATE_NONE,4,4
	.comm	ISOLATE_NG,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_mca_drv.c_mca_page_isolate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mca_page_isolate, %function
mca_page_isolate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	ia64_phys_addr_valid
	cmp	r0, #0
	bne	.L2
.L13:
	ldr	r3, .L15
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, .L15+4
	ldr	r0, [r5]
	lsr	r0, r4, r0
	bl	pfn_valid
	cmp	r0, #0
	beq	.L13
	ldr	r0, [r5]
	ldr	r5, .L15+8
	lsr	r0, r4, r0
	bl	pfn_to_page
	ldr	ip, [r5]
	mov	r4, r0
	cmp	ip, #0
	ble	.L5
	ldr	r2, .L15+12
	mov	r3, #0
	ldr	r2, [r2]
	sub	r2, r2, #4
	b	.L7
.L6:
	cmp	r3, ip
	beq	.L5
.L7:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	cmp	r1, r4
	bne	.L6
	ldr	r3, .L15+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r3, ip
	beq	.L10
	mov	r0, r4
	bl	PageSlab
	cmp	r0, #0
	beq	.L9
.L10:
	ldr	r3, .L15+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r4
	bl	PageReserved
	cmp	r0, #0
	bne	.L10
	mov	r0, r4
	bl	get_page
	mov	r0, r4
	bl	SetPageReserved
	ldr	r2, .L15+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r0, .L15+16
	add	r1, r3, #1
	ldr	r0, [r0]
	str	r1, [r5]
	str	r4, [r2, r3, lsl #2]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	ISOLATE_NONE
	.word	PAGE_SHIFT
	.word	num_page_isolate
	.word	page_isolate
	.word	ISOLATE_OK
	.word	MAX_PAGE_ISOLATE
	.word	ISOLATE_NG
	.size	mca_page_isolate, .-mca_page_isolate
	.comm	page_isolate,4,4
	.comm	num_page_isolate,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	MAX_PAGE_ISOLATE,4,4
	.comm	ISOLATE_OK,4,4
	.comm	ISOLATE_NONE,4,4
	.comm	ISOLATE_NG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
