	.file	"extr_plpar_pcibus.c_plpar_pcibus_get_dma_tag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	plpar_pcibus_get_dma_tag, @function
plpar_pcibus_get_dma_tag:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	call	device_get_parent@PLT
	mov	rbp, rax
.L2:
	mov	rdi, rbp
	call	device_get_parent@PLT
	mov	rdi, rbp
	cmp	rax, r12
	jne	.L3
	call	device_get_ivars@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14d, DWORD PTR BUS_SPACE_MAXSIZE[rip]
	mov	r15d, DWORD PTR BUS_SPACE_UNRESTRICTED[rip]
	mov	rdi, r12
	mov	r13d, DWORD PTR BUS_SPACE_MAXADDR[rip]
	call	bus_get_dma_tag@PLT
	push	rbx
	.cfi_def_cfa_offset 72
	xor	r9d, r9d
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 80
	mov	r8d, r13d
	mov	ecx, r13d
	mov	edi, eax
	push	0
	.cfi_def_cfa_offset 88
	mov	esi, 1
	push	0
	.cfi_def_cfa_offset 96
	push	r14
	.cfi_def_cfa_offset 104
	push	r15
	.cfi_def_cfa_offset 112
	push	r14
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	bus_dma_tag_create@PLT
	mov	rdx, QWORD PTR [rbx]
	add	rsp, 64
	.cfi_def_cfa_offset 64
	mov	rsi, rbp
	mov	rdi, r12
	call	phyp_iommu_set_dma_tag@PLT
	mov	rax, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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	plpar_pcibus_get_dma_tag, .-plpar_pcibus_get_dma_tag
	.comm	BUS_SPACE_UNRESTRICTED,4,4
	.comm	BUS_SPACE_MAXSIZE,4,4
	.comm	BUS_SPACE_MAXADDR,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_plpar_pcibus.c_plpar_pcibus_get_dma_tag.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	plpar_pcibus_get_dma_tag, %function
plpar_pcibus_get_dma_tag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r0
	mov	r4, r1
	sub	sp, sp, #44
	b	.L2
.L3:
	bl	device_get_parent
	mov	r4, r0
.L2:
	mov	r0, r4
	bl	device_get_parent
	cmp	r0, r7
	mov	r0, r4
	bne	.L3
	bl	device_get_ivars
	ldr	r5, [r0]
	mov	r6, r0
	cmp	r5, #0
	beq	.L7
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r7
	bl	bus_get_dma_tag
	ldr	r2, .L8
	ldr	r3, .L8+4
	ldr	r1, .L8+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	mov	r2, r5
	str	r5, [sp, #32]
	str	r5, [sp, #28]
	str	r5, [sp, #24]
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r3, [sp]
	str	r1, [sp, #20]
	str	r1, [sp, #12]
	str	ip, [sp, #16]
	mov	r1, #1
	str	r6, [sp, #36]
	bl	bus_dma_tag_create
	mov	r1, r4
	mov	r0, r7
	ldr	r2, [r6]
	bl	phyp_iommu_set_dma_tag
	ldr	r5, [r6]
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	.align	2
.L8:
	.word	BUS_SPACE_UNRESTRICTED
	.word	BUS_SPACE_MAXADDR
	.word	BUS_SPACE_MAXSIZE
	.size	plpar_pcibus_get_dma_tag, .-plpar_pcibus_get_dma_tag
	.comm	BUS_SPACE_UNRESTRICTED,4,4
	.comm	BUS_SPACE_MAXSIZE,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
