	.file	"extr_pkeys.c___arch_override_mprotect_pkey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__arch_override_mprotect_pkey
	.type	__arch_override_mprotect_pkey, @function
__arch_override_mprotect_pkey:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edx
	cmp	edx, -1
	je	.L13
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	DWORD PTR PROT_EXEC[rip], esi
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	je	.L14
	call	vma_is_pkey_exec_only@PLT
	test	rax, rax
	jne	.L15
.L4:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	vma_pkey@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	call	execute_only_pkey@PLT
	test	eax, eax
	jle	.L4
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR ARCH_DEFAULT_PKEY[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__arch_override_mprotect_pkey, .-__arch_override_mprotect_pkey
	.comm	PROT_EXEC,4,4
	.comm	ARCH_DEFAULT_PKEY,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_pkeys.c___arch_override_mprotect_pkey.c"
	.text
	.align	2
	.global	__arch_override_mprotect_pkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	__arch_override_mprotect_pkey, %function
__arch_override_mprotect_pkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmn	r2, #1
	beq	.L13
	mov	r0, r2
	bx	lr
.L13:
	ldr	r3, .L16
	push	{r4, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, r1
	beq	.L14
	bl	vma_is_pkey_exec_only
	cmp	r0, #0
	bne	.L15
.L4:
	mov	r0, r4
	pop	{r4, lr}
	b	vma_pkey
.L14:
	ldr	r0, [r0]
	bl	execute_only_pkey
	subs	r2, r0, #0
	ble	.L4
	mov	r0, r2
	pop	{r4, pc}
.L15:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	mov	r0, r2
	pop	{r4, pc}
.L17:
	.align	2
.L16:
	.word	PROT_EXEC
	.word	ARCH_DEFAULT_PKEY
	.size	__arch_override_mprotect_pkey, .-__arch_override_mprotect_pkey
	.comm	PROT_EXEC,4,4
	.comm	ARCH_DEFAULT_PKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
