	.file	"extr_huge_memory.c_shrink_huge_zero_page_scan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	shrink_huge_zero_page_scan, @function
shrink_huge_zero_page_scan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	mov	esi, 1
	lea	rdi, huge_zero_refcount[rip]
	call	atomic_cmpxchg@PLT
	mov	r8d, eax
	xor	eax, eax
	cmp	r8d, 1
	je	.L7
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, huge_zero_page[rip]
	call	xchg@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	compound_order@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	__free_pages@PLT
	mov	rax, QWORD PTR HPAGE_PMD_NR[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	shrink_huge_zero_page_scan, .-shrink_huge_zero_page_scan
	.comm	huge_zero_refcount,4,4
	.comm	huge_zero_page,4,4
	.comm	HPAGE_PMD_NR,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_huge_memory.c_shrink_huge_zero_page_scan.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shrink_huge_zero_page_scan, %function
shrink_huge_zero_page_scan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	mov	r1, #1
	push	{r4, lr}
	ldr	r0, .L7
	bl	atomic_cmpxchg
	cmp	r0, #1
	beq	.L6
	mov	r0, #0
	pop	{r4, pc}
.L6:
	mov	r1, #0
	ldr	r0, .L7+4
	bl	xchg
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r4
	bl	compound_order
	mov	r1, r0
	mov	r0, r4
	bl	__free_pages
	ldr	r3, .L7+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	huge_zero_refcount
	.word	huge_zero_page
	.word	HPAGE_PMD_NR
	.size	shrink_huge_zero_page_scan, .-shrink_huge_zero_page_scan
	.comm	huge_zero_refcount,4,4
	.comm	huge_zero_page,4,4
	.comm	HPAGE_PMD_NR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
