	.file	"extr_init.c_kmap_coherent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kmap_coherent
	.type	kmap_coherent, @function
kmap_coherent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	Page_dcache_dirty@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	xor	eax, eax
	call	inc_preempt_count@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	eax, DWORD PTR FIX_N_COLOURS[rip]
	mov	rsi, rbp
	shr	rsi, cl
	lea	ebp, -1[rax]
	xor	eax, eax
	and	ebp, esi
	call	in_interrupt@PLT
	mov	edi, DWORD PTR FIX_CMAP_END[rip]
	test	rax, rax
	mov	eax, 0
	cmovne	eax, DWORD PTR FIX_N_COLOURS[rip]
	xor	r14d, r14d
	sub	edi, ebp
	sub	edi, eax
	call	__fix_to_virt@PLT
	mov	esi, DWORD PTR PAGE_KERNEL[rip]
	mov	rdi, r13
	mov	r12, rax
	call	mk_pte@PLT
	mov	rdi, rax
	call	pte_val@PLT
	mov	rdi, r14
	sar	eax, 6
	movsx	rbp, eax
	call	ENTER_CRITICAL@PLT
	xor	eax, eax
	call	read_c0_entryhi@PLT
	mov	r13, rax
	mov	eax, DWORD PTR PAGE_MASK[rip]
	lea	edi, [rax+rax]
	movsx	rdi, edi
	and	rdi, r12
	call	write_c0_entryhi@PLT
	mov	rdi, rbp
	call	write_c0_entrylo0@PLT
	mov	rdi, rbp
	call	write_c0_entrylo1@PLT
	xor	eax, eax
	call	read_c0_wired@PLT
	mov	ebp, eax
	lea	edi, 1[rax]
	call	write_c0_wired@PLT
	mov	edi, ebp
	call	write_c0_index@PLT
	xor	eax, eax
	call	mtc0_tlbw_hazard@PLT
	xor	eax, eax
	call	tlb_write_indexed@PLT
	xor	eax, eax
	call	tlbw_use_hazard@PLT
	mov	rdi, r13
	call	write_c0_entryhi@PLT
	mov	rdi, r14
	call	EXIT_CRITICAL@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	.cfi_endproc
.LFE0:
	.size	kmap_coherent, .-kmap_coherent
	.comm	kmap_coherent_pte,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	PAGE_MASK,4,4
	.comm	PAGE_KERNEL,4,4
	.comm	NR_CPUS,4,4
	.comm	FIX_N_COLOURS,4,4
	.comm	FIX_CMAP_END,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_init.c_kmap_coherent.c"
	.text
	.align	2
	.global	kmap_coherent
	.syntax unified
	.arm
	.fpu softvfp
	.type	kmap_coherent, %function
kmap_coherent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r0
	ldr	r7, .L6
	bl	Page_dcache_dirty
	bl	BUG_ON
	bl	inc_preempt_count
	ldr	r3, .L6+4
	ldr	r4, [r7]
	ldr	r0, [r3]
	sub	r4, r4, #1
	and	r4, r4, r6, lsr r0
	bl	in_interrupt
	ldr	r3, .L6+8
	cmp	r0, #0
	ldr	r1, [r3]
	ldrne	r0, [r7]
	sub	r4, r1, r4
	sub	r0, r4, r0
	bl	__fix_to_virt
	ldr	r3, .L6+12
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	mk_pte
	bl	pte_val
	mov	r7, #0
	mov	r5, r0
	mov	r0, r7
	bl	ENTER_CRITICAL
	bl	read_c0_entryhi
	ldr	r3, .L6+16
	mov	r6, r0
	ldr	r0, [r3]
	asr	r5, r5, #6
	and	r0, r4, r0, lsl #1
	bl	write_c0_entryhi
	mov	r0, r5
	bl	write_c0_entrylo0
	mov	r0, r5
	bl	write_c0_entrylo1
	bl	read_c0_wired
	mov	r5, r0
	add	r0, r0, #1
	bl	write_c0_wired
	mov	r0, r5
	bl	write_c0_index
	bl	mtc0_tlbw_hazard
	bl	tlb_write_indexed
	bl	tlbw_use_hazard
	mov	r0, r6
	bl	write_c0_entryhi
	mov	r0, r7
	bl	EXIT_CRITICAL
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	FIX_N_COLOURS
	.word	PAGE_SHIFT
	.word	FIX_CMAP_END
	.word	PAGE_KERNEL
	.word	PAGE_MASK
	.size	kmap_coherent, .-kmap_coherent
	.comm	kmap_coherent_pte,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	PAGE_KERNEL,4,4
	.comm	NR_CPUS,4,4
	.comm	FIX_N_COLOURS,4,4
	.comm	FIX_CMAP_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
