	.file	"extr_memory-failure.c_soft_offline_huge_page.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"soft offline: %#lx hugepage already poisoned\n"
	.align 8
.LC1:
	.string	"soft offline: %#lx: migration failed %d, type %lx\n"
	.text
	.p2align 4
	.type	soft_offline_huge_page, @function
soft_offline_huge_page:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	page_to_pfn@PLT
	mov	rdi, rbx
	mov	r13, rax
	call	compound_head@PLT
	mov	edi, DWORD PTR pagelist[rip]
	mov	rbp, rax
	call	LIST_HEAD@PLT
	mov	rdi, rbp
	call	lock_page@PLT
	mov	rdi, rbp
	call	PageHWPoison@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L7
	call	unlock_page@PLT
	lea	rdi, 4[rbp]
	lea	rsi, pagelist[rip]
	call	list_add@PLT
	mov	r8d, DWORD PTR MIGRATE_SYNC[rip]
	mov	edx, DWORD PTR MPOL_MF_MOVE_ALL[rip]
	xor	ecx, ecx
	mov	esi, DWORD PTR new_page[rip]
	lea	rdi, pagelist[rip]
	call	migrate_huge_pages@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	call	set_page_hwpoison_huge_page@PLT
	mov	rdi, rbp
	call	dequeue_hwpoisoned_huge_page@PLT
	mov	rdi, rbp
	call	compound_trans_order@PLT
	mov	edi, 1
	lea	rsi, num_poisoned_pages[rip]
	mov	ecx, eax
	sal	edi, cl
	call	atomic_long_add@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, DWORD PTR [rbx]
	mov	edx, eax
	mov	rsi, r13
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	pr_info@PLT
	test	r12d, r12d
	jle	.L1
	mov	r12d, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	unlock_page@PLT
	mov	rdi, rbp
	call	put_page@PLT
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_info@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	soft_offline_huge_page, .-soft_offline_huge_page
	.comm	pagelist,4,4
	.comm	num_poisoned_pages,4,4
	.comm	new_page,4,4
	.comm	MPOL_MF_MOVE_ALL,4,4
	.comm	MIGRATE_SYNC,4,4
	.comm	EIO,4,4
	.comm	EBUSY,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_memory-failure.c_soft_offline_huge_page.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"soft offline: %#lx hugepage already poisoned\012\000"
	.align	2
.LC1:
	.ascii	"soft offline: %#lx: migration failed %d, type %lx\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	soft_offline_huge_page, %function
soft_offline_huge_page:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r6, r0
	bl	page_to_pfn
	mov	r7, r0
	mov	r0, r6
	bl	compound_head
	mov	r4, r0
	ldr	r8, .L9
	ldr	r0, [r8]
	bl	LIST_HEAD
	mov	r0, r4
	bl	lock_page
	mov	r0, r4
	bl	PageHWPoison
	subs	r5, r0, #0
	mov	r0, r4
	bne	.L7
	bl	unlock_page
	mov	r1, r8
	add	r0, r4, #4
	bl	list_add
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	ip, [r3]
	ldr	r1, .L9+12
	str	ip, [sp]
	mov	r3, r5
	mov	r0, r8
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	migrate_huge_pages
	subs	r5, r0, #0
	bne	.L8
	mov	r0, r4
	bl	set_page_hwpoison_huge_page
	mov	r0, r4
	bl	dequeue_hwpoisoned_huge_page
	mov	r0, r4
	bl	compound_trans_order
	mov	r3, #1
	ldr	r1, .L9+16
	lsl	r0, r3, r0
	bl	atomic_long_add
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, r7
	mov	r2, r5
	ldr	r3, [r6]
	ldr	r0, .L9+20
	bl	pr_info
	cmp	r5, #0
	ble	.L1
	ldr	r3, .L9+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	unlock_page
	mov	r0, r4
	bl	put_page
	mov	r1, r7
	ldr	r0, .L9+28
	bl	pr_info
	ldr	r3, .L9+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	pagelist
	.word	MIGRATE_SYNC
	.word	MPOL_MF_MOVE_ALL
	.word	new_page
	.word	num_poisoned_pages
	.word	.LC1
	.word	EIO
	.word	.LC0
	.word	EBUSY
	.size	soft_offline_huge_page, .-soft_offline_huge_page
	.comm	pagelist,4,4
	.comm	num_poisoned_pages,4,4
	.comm	new_page,4,4
	.comm	MPOL_MF_MOVE_ALL,4,4
	.comm	MIGRATE_SYNC,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
