	.file	"extr_vm_map.c_virt_memory_guard_ast.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	virt_memory_guard_ast
	.type	virt_memory_guard_ast, @function
virt_memory_guard_ast:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	xor	edi, edi
	cmp	QWORD PTR kernel_task[rip], rbx
	setne	dil
	call	assert@PLT
	xor	eax, eax
	call	current_task@PLT
	xor	edi, edi
	cmp	rbx, rax
	sete	dil
	call	assert@PLT
	mov	edi, DWORD PTR [rbx]
	test	DWORD PTR TASK_EXC_GUARD_VM_DELIVER[rip], edi
	jne	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR TASK_EXC_GUARD_VM_DELIVER[rip]
	mov	rdx, rbx
	not	esi
	and	esi, edi
	call	OSCompareAndSwap@PLT
	mov	edi, DWORD PTR [rbx]
	test	rax, rax
	jne	.L9
	test	DWORD PTR TASK_EXC_GUARD_VM_DELIVER[rip], edi
	je	.L1
.L2:
	test	DWORD PTR TASK_EXC_GUARD_VM_ONCE[rip], edi
	jne	.L8
.L9:
	test	DWORD PTR TASK_EXC_GUARD_VM_CORPSE[rip], edi
	je	.L6
	test	DWORD PTR TASK_EXC_GUARD_VM_FATAL[rip], edi
	je	.L20
.L6:
	mov	edi, DWORD PTR EXC_GUARD[rip]
	mov	edx, r12d
	mov	esi, ebp
	call	task_exception_notify@PLT
.L10:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR TASK_EXC_GUARD_VM_FATAL[rip], eax
	jne	.L21
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	xor	eax, eax
	call	current_task@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rdi, rax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	task_bsdtask_kill@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	edx, edx
	mov	esi, r12d
	mov	edi, ebp
	call	task_violated_guard@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	virt_memory_guard_ast, .-virt_memory_guard_ast
	.comm	kernel_task,8,8
	.comm	TASK_EXC_GUARD_VM_ONCE,4,4
	.comm	TASK_EXC_GUARD_VM_FATAL,4,4
	.comm	TASK_EXC_GUARD_VM_DELIVER,4,4
	.comm	TASK_EXC_GUARD_VM_CORPSE,4,4
	.comm	EXC_GUARD,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_vm_map.c_virt_memory_guard_ast.c"
	.text
	.align	2
	.global	virt_memory_guard_ast
	.syntax unified
	.arm
	.fpu softvfp
	.type	virt_memory_guard_ast, %function
virt_memory_guard_ast:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	ldr	r0, [r3]
	mov	r6, r1
	subs	r0, r0, r4
	movne	r0, #1
	mov	r7, r2
	bl	assert
	bl	current_task
	sub	r0, r4, r0
	clz	r0, r0
	ldr	r5, .L21+4
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4]
	ldr	r3, [r5]
	tst	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r8, .L21+8
	b	.L2
.L8:
	ldr	r1, [r5]
	mov	r2, r4
	bic	r1, r0, r1
	bl	OSCompareAndSwap
	cmp	r0, #0
	ldr	r0, [r4]
	bne	.L9
	ldr	r3, [r5]
	tst	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r8]
	tst	r0, r3
	bne	.L8
.L9:
	ldr	r3, .L21+12
	ldr	r5, .L21+16
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L6
	ldr	r2, [r5]
	ands	r2, r0, r2
	beq	.L20
.L6:
	ldr	r3, .L21+20
	mov	r2, r7
	mov	r1, r6
	ldr	r0, [r3]
	bl	task_exception_notify
.L10:
	ldr	r2, [r4]
	ldr	r3, [r5]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	current_task
	pop	{r4, r5, r6, r7, r8, lr}
	b	task_bsdtask_kill
.L20:
	mov	r1, r7
	mov	r0, r6
	bl	task_violated_guard
	b	.L10
.L22:
	.align	2
.L21:
	.word	kernel_task
	.word	TASK_EXC_GUARD_VM_DELIVER
	.word	TASK_EXC_GUARD_VM_ONCE
	.word	TASK_EXC_GUARD_VM_CORPSE
	.word	TASK_EXC_GUARD_VM_FATAL
	.word	EXC_GUARD
	.size	virt_memory_guard_ast, .-virt_memory_guard_ast
	.comm	kernel_task,4,4
	.comm	TASK_EXC_GUARD_VM_ONCE,4,4
	.comm	TASK_EXC_GUARD_VM_FATAL,4,4
	.comm	TASK_EXC_GUARD_VM_DELIVER,4,4
	.comm	TASK_EXC_GUARD_VM_CORPSE,4,4
	.comm	EXC_GUARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
