	.file	"extr_pci_sun4v.c_iommu_batch_flush.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"iommu_batch_flush: IOMMU map of [%08lx:%08llx:%lx:%lx:%lx] failed with status %ld\n"
	.text
	.p2align 4
	.type	iommu_batch_flush, @function
iommu_batch_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 32[rdi]
	mov	r12, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR [rdi]
	mov	rbp, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rdi
	mov	rax, QWORD PTR [rax]
	mov	r15, QWORD PTR 24[rdi]
	mov	r13, QWORD PTR [rax]
	test	r12, r12
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbp, rbx
	lea	r15, [r15+rbx*4]
	sub	r12, rbx
	je	.L2
.L5:
	mov	rdi, r15
	call	__pa@PLT
	xor	edi, edi
	mov	rsi, rbp
	mov	ebx, eax
	call	HV_PCI_TSBID@PLT
	mov	r8d, ebx
	mov	rdi, r13
	mov	rcx, r14
	mov	esi, eax
	mov	rdx, r12
	call	pci_sun4v_iommu_map@PLT
	mov	rdi, rax
	mov	rbx, rax
	shr	rdi, 63
	call	unlikely@PLT
	test	rax, rax
	je	.L3
	xor	eax, eax
	call	printk_ratelimit@PLT
	mov	r10, -1
	test	rax, rax
	je	.L1
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], r10
	call	__pa@PLT
	mov	rsi, rbp
	xor	edi, edi
	mov	DWORD PTR [rsp], eax
	call	HV_PCI_TSBID@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8, r14
	mov	rcx, r12
	push	rbx
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR 16[rsp]
	mov	edx, eax
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	call	printk@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	mov	r10, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR [rsp]
	xor	r10d, r10d
	mov	QWORD PTR 8[rax], rbp
	mov	QWORD PTR 16[rax], 0
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rax, r10
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iommu_batch_flush, .-iommu_batch_flush
	.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_pci_sun4v.c_iommu_batch_flush.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iommu_batch_flush: IOMMU map of [%08lx:%08llx:%lx:%"
	.ascii	"lx:%lx] failed with status %ld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iommu_batch_flush, %function
iommu_batch_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r0, #16]
	ldr	r5, [r0, #8]
	ldr	r3, [r3]
	cmp	r5, #0
	mov	r10, r0
	ldr	r8, [r3]
	ldr	r9, [r0]
	ldr	r6, [r0, #4]
	ldr	r7, [r0, #12]
	sub	sp, sp, #16
	bne	.L5
	b	.L2
.L3:
	subs	r5, r5, r4
	add	r6, r6, r4
	add	r7, r7, r4, lsl #2
	beq	.L2
.L5:
	mov	r1, r6
	mov	r0, #0
	bl	HV_PCI_TSBID
	mov	r4, r0
	mov	r0, r7
	bl	__pa
	mov	r1, r4
	mov	r3, r9
	mov	r2, r5
	str	r0, [sp]
	mov	r0, r8
	bl	pci_sun4v_iommu_map
	mov	r4, r0
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	beq	.L3
	bl	printk_ratelimit
	cmp	r0, #0
	mvneq	r0, #0
	beq	.L1
	mov	r1, r6
	mov	r0, #0
	bl	HV_PCI_TSBID
	mov	r6, r0
	mov	r0, r7
	bl	__pa
	mov	r2, r6
	stmib	sp, {r0, r4}
	mov	r3, r5
	mov	r1, r8
	str	r9, [sp]
	ldr	r0, .L13
	bl	printk
	mvn	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, #0
	str	r6, [r10, #4]
	str	r0, [r10, #8]
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	iommu_batch_flush, .-iommu_batch_flush
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
