	.file	"extr_machine_routines.c_icache_invalidate_trap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	icache_invalidate_trap, @function
icache_invalidate_trap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	lea	r14d, [rdi+rsi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	current_thread@PLT
	mov	r13, QWORD PTR [rax]
	mov	rbx, rax
	xor	eax, eax
	call	current_task@PLT
	mov	edi, eax
	call	task_has_64Bit_addr@PLT
	test	rax, rax
	je	.L2
	cmp	DWORD PTR MACH_VM_MAX_ADDRESS[rip], r14d
	jl	.L6
.L3:
	cmp	ebp, r14d
	jg	.L8
.L4:
	mov	rax, QWORD PTR cache_trap_recover[rip]
	mov	esi, r12d
	mov	edi, ebp
	mov	QWORD PTR [rbx], rax
	call	CleanPoU_DcacheRegion@PLT
	xor	eax, eax
	call	InvalidatePoU_Icache@PLT
	mov	QWORD PTR [rbx], r13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	DWORD PTR VM_MAX_ADDRESS[rip], r14d
	jge	.L3
.L6:
	mov	ecx, DWORD PTR ARM64_CLINE_SHIFT[rip]
	mov	esi, 1
	mov	rdi, rbx
	sal	esi, cl
	sub	esi, 1
	and	esi, r14d
	call	cache_trap_error@PLT
	cmp	ebp, r14d
	jle	.L4
.L8:
	mov	ecx, DWORD PTR ARM64_CLINE_SHIFT[rip]
	mov	esi, 1
	mov	rdi, rbx
	sal	esi, cl
	sub	esi, 1
	and	esi, ebp
	call	cache_trap_error@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	icache_invalidate_trap, .-icache_invalidate_trap
	.comm	cache_trap_recover,8,8
	.comm	VM_MAX_ADDRESS,4,4
	.comm	MACH_VM_MAX_ADDRESS,4,4
	.comm	ARM64_CLINE_SHIFT,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_machine_routines.c_icache_invalidate_trap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icache_invalidate_trap, %function
icache_invalidate_trap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r0
	bl	current_thread
	mov	r4, r0
	ldr	r8, [r0]
	bl	current_task
	bl	task_has_64Bit_addr
	cmp	r0, #0
	add	r6, r7, r5
	beq	.L2
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, r6
	blt	.L6
.L3:
	cmp	r7, r6
	bgt	.L8
.L4:
	ldr	r3, .L9+4
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r7
	str	r3, [r4]
	bl	CleanPoU_DcacheRegion
	bl	InvalidatePoU_Icache
	str	r8, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, r6
	bge	.L3
.L6:
	mvn	r1, #0
	ldr	r3, .L9+12
	mov	r0, r4
	ldr	r3, [r3]
	bic	r1, r6, r1, lsl r3
	bl	cache_trap_error
	cmp	r7, r6
	ble	.L4
.L8:
	mvn	r1, #0
	ldr	r3, .L9+12
	mov	r0, r4
	ldr	r3, [r3]
	bic	r1, r7, r1, lsl r3
	bl	cache_trap_error
	b	.L4
.L10:
	.align	2
.L9:
	.word	MACH_VM_MAX_ADDRESS
	.word	cache_trap_recover
	.word	VM_MAX_ADDRESS
	.word	ARM64_CLINE_SHIFT
	.size	icache_invalidate_trap, .-icache_invalidate_trap
	.comm	cache_trap_recover,4,4
	.comm	VM_MAX_ADDRESS,4,4
	.comm	MACH_VM_MAX_ADDRESS,4,4
	.comm	ARM64_CLINE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
