	.file	"extr_pci-ioda-tce.c_pnv_pci_ioda2_table_do_free_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pnv_pci_ioda2_table_do_free_pages, @function
pnv_pci_ioda2_table_do_free_pages:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, QWORD PTR TCE_PCI_READ[rip]
	or	rdi, QWORD PTR TCE_PCI_WRITE[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	not	rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	and	r12, rdi
	test	edx, edx
	je	.L2
	test	rsi, rsi
	je	.L2
	lea	r13, [r12+rsi*4]
	mov	r14, r12
	lea	ebp, -1[rdx]
.L4:
	mov	edi, DWORD PTR [r14]
	call	be64_to_cpu@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR TCE_PCI_READ[rip]
	or	rax, QWORD PTR TCE_PCI_WRITE[rip]
	test	rax, rdi
	je	.L3
	call	__va@PLT
	mov	edx, ebp
	mov	rsi, rbx
	mov	rdi, rax
	call	pnv_pci_ioda2_table_do_free_pages
.L3:
	add	r14, 4
	cmp	r14, r13
	jne	.L4
.L2:
	lea	rdi, 0[0+rbx*8]
	call	get_order@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	free_pages@PLT
	.cfi_endproc
.LFE0:
	.size	pnv_pci_ioda2_table_do_free_pages, .-pnv_pci_ioda2_table_do_free_pages
	.comm	TCE_PCI_WRITE,8,8
	.comm	TCE_PCI_READ,8,8
	.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-ioda-tce.c_pnv_pci_ioda2_table_do_free_pages.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pnv_pci_ioda2_table_do_free_pages, %function
pnv_pci_ioda2_table_do_free_pages:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, .L17
	ldr	r8, .L17+4
	ldr	r3, [r10]
	ldr	r7, [r8]
	cmp	r2, #0
	orr	r3, r3, r7
	mov	r5, r1
	bic	r7, r0, r3
	beq	.L2
	cmp	r1, #0
	beq	.L2
	mov	r4, r7
	sub	r6, r2, #1
	add	r9, r7, r1, lsl #2
.L4:
	ldr	r0, [r4]
	bl	be64_to_cpu
	ldr	r3, [r10]
	ldr	r2, [r8]
	add	r4, r4, #4
	orr	r3, r3, r2
	tst	r3, r0
	beq	.L3
	bl	__va
	mov	r2, r6
	mov	r1, r5
	bl	pnv_pci_ioda2_table_do_free_pages
.L3:
	cmp	r4, r9
	bne	.L4
.L2:
	lsl	r0, r5, #3
	bl	get_order
	mov	r1, r0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free_pages
.L18:
	.align	2
.L17:
	.word	TCE_PCI_READ
	.word	TCE_PCI_WRITE
	.size	pnv_pci_ioda2_table_do_free_pages, .-pnv_pci_ioda2_table_do_free_pages
	.comm	TCE_PCI_WRITE,4,4
	.comm	TCE_PCI_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
