	.file	"extr_hugetlbpage.c_set_huge_pte_at.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	set_huge_pte_at
	.type	set_huge_pte_at, @function
set_huge_pte_at:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdx]
	call	pte_present@PLT
	test	rax, rax
	jne	.L8
.L2:
	mov	edi, r12d
	call	pte_val@PLT
	mov	edi, DWORD PTR _PAGE_HPTEFLAGS[rip]
	not	edi
	and	edi, eax
	call	__pte@PLT
	mov	DWORD PTR [rbx], eax
	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
	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	rsi, rbp
	mov	rdi, r13
	call	get_slice_psize@PLT
	mov	edi, eax
	call	mmu_psize_to_shift@PLT
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	call	size_to_hstate@PLT
	mov	r8d, 1
	mov	rdx, rbx
	mov	rdi, r13
	mov	rsi, QWORD PTR [rax]
	mov	rcx, -1
	and	rsi, rbp
	call	pte_update@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	set_huge_pte_at, .-set_huge_pte_at
	.comm	_PAGE_HPTEFLAGS,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_hugetlbpage.c_set_huge_pte_at.c"
	.text
	.align	2
	.global	set_huge_pte_at
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_huge_pte_at, %function
set_huge_pte_at:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	sub	sp, sp, #8
	ldr	r0, [r2]
	mov	r4, r2
	mov	r6, r1
	mov	r5, r3
	bl	pte_present
	cmp	r0, #0
	bne	.L8
.L2:
	mov	r0, r5
	bl	pte_val
	ldr	r3, .L9
	ldr	r3, [r3]
	bic	r0, r0, r3
	bl	__pte
	str	r0, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, r6
	mov	r0, r7
	bl	get_slice_psize
	bl	mmu_psize_to_shift
	mov	r8, #1
	lsl	r0, r8, r0
	bl	size_to_hstate
	ldr	r1, [r0]
	mvn	r3, #0
	mov	r0, r7
	mov	r2, r4
	and	r1, r1, r6
	str	r8, [sp]
	bl	pte_update
	b	.L2
.L10:
	.align	2
.L9:
	.word	_PAGE_HPTEFLAGS
	.size	set_huge_pte_at, .-set_huge_pte_at
	.comm	_PAGE_HPTEFLAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
