	.file	"extr_tee_shm.c_tee_shm_op_mmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tee_shm_op_mmap, @function
tee_shm_op_mmap:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, rdi
	mov	rdi, rsi
	mov	rax, QWORD PTR [r8]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR TEE_SHM_REGISTER[rip], edx
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, QWORD PTR 8[rsi]
	mov	r9, QWORD PTR [rdi]
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edx, DWORD PTR 4[rax]
	sub	r9, rsi
	mov	r8d, DWORD PTR 16[rdi]
	sar	edx, cl
	mov	rcx, r9
	jmp	remap_pfn_range@PLT
	.cfi_endproc
.LFE0:
	.size	tee_shm_op_mmap, .-tee_shm_op_mmap
	.comm	TEE_SHM_REGISTER,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EINVAL,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_tee_shm.c_tee_shm_op_mmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tee_shm_op_mmap, %function
tee_shm_op_mmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, .L8
	ldr	ip, [r3]
	ldr	r2, [r2]
	tst	ip, r2
	beq	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	mov	r0, r1
	str	lr, [sp, #-4]!
	ldr	r2, .L8+8
	ldr	lr, [r3, #4]
	ldr	r1, [r1, #4]
	ldr	r2, [r2]
	ldr	r3, [r0]
	ldr	ip, [r0, #8]
	sub	sp, sp, #12
	asr	r2, lr, r2
	sub	r3, r3, r1
	str	ip, [sp]
	bl	remap_pfn_range
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L9:
	.align	2
.L8:
	.word	TEE_SHM_REGISTER
	.word	EINVAL
	.word	PAGE_SHIFT
	.size	tee_shm_op_mmap, .-tee_shm_op_mmap
	.comm	TEE_SHM_REGISTER,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
