	.file	"extr_gasket_core.c_gasket_mm_unmap_region.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gasket_mm_unmap_region
	.type	gasket_mm_unmap_region, @function
gasket_mm_unmap_region:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdx], 0
	jne	.L8
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	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	rbp, rdx
	mov	rdx, rsp
	mov	r12, rsi
	call	gasket_mm_vma_bar_offset@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR [rsp]
	mov	rdx, QWORD PTR 8[r12]
	lea	rcx, 16[rsp]
	mov	rdi, rbp
	sub	rdx, QWORD PTR [r12]
	lea	r8, 8[rsp]
	call	gasket_mm_get_mapping_addrs@PLT
	test	eax, eax
	jne	.L10
	mov	r13d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	call	DIV_ROUND_UP@PLT
	imul	eax, DWORD PTR PAGE_SIZE[rip]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r12
	add	rsi, QWORD PTR [r12]
	mov	edx, eax
	call	zap_vma_ptes@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gasket_mm_unmap_region, .-gasket_mm_unmap_region
	.comm	PAGE_SIZE,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_gasket_core.c_gasket_mm_unmap_region.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gasket_mm_unmap_region
	.syntax unified
	.arm
	.fpu softvfp
	.type	gasket_mm_unmap_region, %function
gasket_mm_unmap_region:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r4, [r2]
	ldr	r3, .L12
	sub	sp, sp, #28
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r5, r2
	add	r2, sp, #8
	mov	r6, r1
	bl	gasket_mm_vma_bar_offset
	subs	r4, r0, #0
	bne	.L1
	ldr	r1, [r6, #4]
	ldr	r2, [r6]
	add	r3, sp, #12
	sub	r2, r1, r2
	str	r3, [sp]
	mov	r0, r5
	ldr	r1, [sp, #8]
	add	r3, sp, #16
	bl	gasket_mm_get_mapping_addrs
	cmp	r0, #0
	moveq	r4, #1
	beq	.L1
	ldr	r7, .L12+4
	ldr	r5, [r6]
	ldr	r3, [sp, #12]
	ldr	r1, [r7]
	ldr	r0, [sp, #16]
	add	r5, r5, r3
	bl	DIV_ROUND_UP
	ldr	r2, [r7]
	mov	r1, r5
	mul	r2, r0, r2
	mov	r0, r6
	bl	zap_vma_ptes
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	PAGE_SIZE
	.size	gasket_mm_unmap_region, .-gasket_mm_unmap_region
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
