	.file	"extr_protection_keys.c_test_pkey_syscalls_on_non_allocated_pkey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"trying get/set/free to non-allocated pkey: %2d\n"
	.text
	.p2align 4
	.globl	test_pkey_syscalls_on_non_allocated_pkey
	.type	test_pkey_syscalls_on_non_allocated_pkey, @function
test_pkey_syscalls_on_non_allocated_pkey:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR NR_PKEYS[rip], 1
	jle	.L7
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	ebp, ebx
	je	.L3
	mov	esi, ebx
	mov	rdi, r13
	call	dprintf1@PLT
	mov	edi, ebx
	call	sys_pkey_free@PLT
	mov	edi, eax
	call	pkey_assert@PLT
	mov	edi, ebx
	call	sys_pkey_free@PLT
	mov	edi, eax
	call	pkey_assert@PLT
	mov	edx, DWORD PTR PROT_READ[rip]
	mov	rdi, r12
	mov	ecx, ebx
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	call	sys_mprotect_pkey@PLT
	mov	edi, eax
	call	pkey_assert@PLT
.L3:
	add	ebx, 1
	cmp	DWORD PTR NR_PKEYS[rip], ebx
	jg	.L4
	add	rsp, 8
	.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
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	test_pkey_syscalls_on_non_allocated_pkey, .-test_pkey_syscalls_on_non_allocated_pkey
	.comm	PROT_READ,4,4
	.comm	PAGE_SIZE,4,4
	.comm	NR_PKEYS,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_protection_keys.c_test_pkey_syscalls_on_non_allocated_pkey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"trying get/set/free to non-allocated pkey: %2d\012\000"
	.text
	.align	2
	.global	test_pkey_syscalls_on_non_allocated_pkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_pkey_syscalls_on_non_allocated_pkey, %function
test_pkey_syscalls_on_non_allocated_pkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L8
	ldr	r3, [r6]
	cmp	r3, #1
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r7, r0
	mov	r5, r1
	mov	r4, #1
	ldr	r10, .L8+4
	ldr	r9, .L8+8
	ldr	r8, .L8+12
.L4:
	cmp	r5, r4
	beq	.L3
	mov	r1, r4
	mov	r0, r10
	bl	dprintf1
	mov	r0, r4
	bl	sys_pkey_free
	bl	pkey_assert
	mov	r0, r4
	bl	sys_pkey_free
	bl	pkey_assert
	mov	r3, r4
	ldr	r2, [r9]
	ldr	r1, [r8]
	mov	r0, r7
	bl	sys_mprotect_pkey
	bl	pkey_assert
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	NR_PKEYS
	.word	.LC0
	.word	PROT_READ
	.word	PAGE_SIZE
	.size	test_pkey_syscalls_on_non_allocated_pkey, .-test_pkey_syscalls_on_non_allocated_pkey
	.comm	PROT_READ,4,4
	.comm	PAGE_SIZE,4,4
	.comm	NR_PKEYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
