	.file	"extr_shmem.c_shmem_zero_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dev/zero"
	.text
	.p2align 4
	.globl	shmem_zero_setup
	.type	shmem_zero_setup, @function
shmem_zero_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR [rdi]
	sub	esi, DWORD PTR 4[rdi]
	lea	rdi, .LC0[rip]
	call	shmem_kernel_file_setup@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L3
	call	fput@PLT
.L3:
	lea	rax, shmem_vm_ops[rip]
	mov	QWORD PTR 24[rbp], r12
	mov	edi, DWORD PTR CONFIG_TRANSPARENT_HUGE_PAGECACHE[rip]
	mov	QWORD PTR 16[rbp], rax
	call	IS_ENABLED@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR HPAGE_PMD_MASK[rip]
	mov	edx, eax
	not	edx
	add	edx, DWORD PTR 4[rbp]
	and	edx, eax
	and	eax, DWORD PTR 0[rbp]
	cmp	edx, eax
	jl	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, rbp
	call	khugepaged_enter@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	shmem_zero_setup, .-shmem_zero_setup
	.comm	shmem_vm_ops,4,4
	.comm	HPAGE_PMD_MASK,4,4
	.comm	CONFIG_TRANSPARENT_HUGE_PAGECACHE,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_shmem.c_shmem_zero_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dev/zero\000"
	.text
	.align	2
	.global	shmem_zero_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	shmem_zero_setup, %function
shmem_zero_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldm	r0, {r1, r3}
	ldr	r2, [r0, #8]
	sub	r1, r1, r3
	mov	r4, r0
	ldr	r0, .L16
	bl	shmem_kernel_file_setup
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L3
	bl	fput
.L3:
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	str	r5, [r4, #16]
	ldr	r0, [r3]
	str	r2, [r4, #12]
	bl	IS_ENABLED
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L16+12
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, [r4]
	mvn	r2, r3
	add	r2, r2, r0
	and	r2, r2, r3
	and	r3, r3, r1
	cmp	r2, r3
	blt	.L15
.L1:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L15:
	mov	r0, r4
	ldr	r1, [r4, #8]
	bl	khugepaged_enter
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	shmem_vm_ops
	.word	CONFIG_TRANSPARENT_HUGE_PAGECACHE
	.word	HPAGE_PMD_MASK
	.size	shmem_zero_setup, .-shmem_zero_setup
	.comm	shmem_vm_ops,4,4
	.comm	HPAGE_PMD_MASK,4,4
	.comm	CONFIG_TRANSPARENT_HUGE_PAGECACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
