	.file	"extr_hotplug-memory.c_pseries_remove_lmb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pseries_remove_lmb, @function
pseries_remove_lmb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	shr	r14, cl
	mov	rdi, r14
	call	pfn_valid@PLT
	test	eax, eax
	je	.L6
	mov	rdi, r14
	call	pfn_to_page@PLT
	mov	edi, eax
	call	page_zone@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	edx, ebp
	mov	rsi, r14
	mov	rdi, rax
	shr	edx, cl
	call	__remove_pages@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r13
	call	lmb_remove@PLT
	mov	rdi, r13
	call	__va@PLT
	mov	esi, ebp
	mov	rdi, rax
	add	rsi, rax
	call	remove_section_mapping@PLT
	mov	r12d, eax
	xor	eax, eax
	call	vm_unmap_aliases@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r13
	mov	r12d, eax
	call	lmb_remove@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pseries_remove_lmb, .-pseries_remove_lmb
	.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_hotplug-memory.c_pseries_remove_lmb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pseries_remove_lmb, %function
pseries_remove_lmb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L8
	mov	r6, r0
	ldr	r5, [r8]
	mov	r7, r1
	lsr	r5, r0, r5
	mov	r0, r5
	bl	pfn_valid
	subs	r4, r0, #0
	beq	.L6
	mov	r0, r5
	bl	pfn_to_page
	bl	page_zone
	ldr	r2, [r8]
	mov	r1, r5
	lsr	r2, r7, r2
	bl	__remove_pages
	subs	r4, r0, #0
	beq	.L7
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r1, r7
	mov	r0, r6
	bl	lmb_remove
	mov	r0, r6
	bl	__va
	add	r1, r7, r0
	bl	remove_section_mapping
	mov	r4, r0
	bl	vm_unmap_aliases
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, r7
	mov	r0, r6
	bl	lmb_remove
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	PAGE_SHIFT
	.size	pseries_remove_lmb, .-pseries_remove_lmb
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
