	.file	"extr_exynos-iommu.c_sysmmu_tlb_invalidate_flpdcache.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sysmmu_tlb_invalidate_flpdcache, @function
sysmmu_tlb_invalidate_flpdcache:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR 16[rbx], 0
	jne	.L13
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r13, QWORD PTR [rbx]
	mov	esi, 3
	mov	edi, 3
	call	MAKE_MMU_VER@PLT
	cmp	r13, rax
	jl	.L3
	mov	edi, DWORD PTR 12[rbx]
	call	clk_enable@PLT
	mov	rdi, rbx
	call	sysmmu_block@PLT
	test	rax, rax
	jne	.L14
.L5:
	mov	edi, DWORD PTR 12[rbx]
	call	clk_disable@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r13, QWORD PTR [rbx]
	xor	esi, esi
	mov	edi, 5
	call	MAKE_MMU_VER@PLT
	cmp	r13, rax
	jl	.L6
	mov	rdi, rbx
	call	__sysmmu_tlb_invalidate@PLT
.L7:
	mov	rdi, rbx
	call	sysmmu_unblock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, 1
	mov	esi, r12d
	mov	rdi, rbx
	call	__sysmmu_tlb_invalidate_entry@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sysmmu_tlb_invalidate_flpdcache, .-sysmmu_tlb_invalidate_flpdcache
	.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_exynos-iommu.c_sysmmu_tlb_invalidate_flpdcache.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysmmu_tlb_invalidate_flpdcache, %function
sysmmu_tlb_invalidate_flpdcache:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r6, r0, #4
	mov	r5, r1
	mov	r0, r6
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L13
.L3:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L13:
	mov	r1, #3
	mov	r0, r1
	ldr	r7, [r4]
	bl	MAKE_MMU_VER
	cmp	r7, r0
	blt	.L3
	ldr	r0, [r4, #8]
	bl	clk_enable
	mov	r0, r4
	bl	sysmmu_block
	cmp	r0, #0
	bne	.L14
.L5:
	ldr	r0, [r4, #8]
	bl	clk_disable
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L14:
	mov	r1, #0
	mov	r0, #5
	ldr	r7, [r4]
	bl	MAKE_MMU_VER
	cmp	r7, r0
	blt	.L6
	mov	r0, r4
	bl	__sysmmu_tlb_invalidate
.L7:
	mov	r0, r4
	bl	sysmmu_unblock
	b	.L5
.L6:
	mov	r1, r5
	mov	r2, #1
	mov	r0, r4
	bl	__sysmmu_tlb_invalidate_entry
	b	.L7
	.size	sysmmu_tlb_invalidate_flpdcache, .-sysmmu_tlb_invalidate_flpdcache
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
