	.file	"extr_pci-ftpci100.c_faraday_pci_setup_cascaded_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"missing child interrupt-controller node\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed to get parent IRQ\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"failed to create Gemini PCI IRQ domain\n"
	.text
	.p2align 4
	.type	faraday_pci_setup_cascaded_irq, @function
faraday_pci_setup_cascaded_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR [rax]
	call	of_get_next_child@PLT
	test	rax, rax
	je	.L12
	xor	esi, esi
	mov	rdi, rax
	mov	rbp, rax
	call	of_irq_get@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L13
	mov	esi, DWORD PTR PCI_NUM_INTX[rip]
	mov	rcx, rbx
	lea	rdx, faraday_pci_irqdomain_ops[rip]
	mov	rdi, rbp
	call	irq_domain_add_linear@PLT
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	of_node_put@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L14
	mov	esi, DWORD PTR faraday_pci_irq_handler[rip]
	mov	rdx, rbx
	mov	edi, r12d
	xor	ebp, ebp
	call	irq_set_chained_handler_and_data@PLT
.L6:
	mov	edi, DWORD PTR [rbx]
	mov	esi, ebp
	add	ebp, 1
	call	irq_create_mapping@PLT
	cmp	ebp, 4
	jne	.L6
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
.L9:
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	call	of_node_put@PLT
	test	r12d, r12d
	je	.L9
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	faraday_pci_setup_cascaded_irq, .-faraday_pci_setup_cascaded_irq
	.comm	faraday_pci_irqdomain_ops,4,4
	.comm	faraday_pci_irq_handler,4,4
	.comm	PCI_NUM_INTX,4,4
	.comm	EINVAL,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_pci-ftpci100.c_faraday_pci_setup_cascaded_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"missing child interrupt-controller node\012\000"
	.align	2
.LC1:
	.ascii	"failed to get parent IRQ\012\000"
	.align	2
.LC2:
	.ascii	"failed to create Gemini PCI IRQ domain\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	faraday_pci_setup_cascaded_irq, %function
faraday_pci_setup_cascaded_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	mov	r1, #0
	mov	r4, r0
	ldr	r0, [r3]
	bl	of_get_next_child
	subs	r6, r0, #0
	beq	.L12
	mov	r1, #0
	bl	of_irq_get
	subs	r5, r0, #0
	ble	.L13
	ldr	r2, .L15
	mov	r3, r4
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L15+4
	bl	irq_domain_add_linear
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4]
	bl	of_node_put
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L15+8
	mov	r0, r5
	mov	r2, r4
	ldr	r1, [r3]
	bl	irq_set_chained_handler_and_data
	mov	r5, #0
.L6:
	mov	r1, r5
	ldr	r0, [r4]
	add	r5, r5, #1
	bl	irq_create_mapping
	cmp	r5, #4
	bne	.L6
	mov	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, [r4, #4]
	ldr	r1, .L15+12
	bl	dev_err
.L9:
	ldr	r3, .L15+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r1, .L15+20
	ldr	r0, [r4, #4]
	bl	dev_err
	mov	r0, r6
	bl	of_node_put
	cmp	r5, #0
	beq	.L9
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, [r4, #4]
	ldr	r1, .L15+24
	bl	dev_err
	ldr	r3, .L15+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	PCI_NUM_INTX
	.word	faraday_pci_irqdomain_ops
	.word	faraday_pci_irq_handler
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.word	.LC0
	.size	faraday_pci_setup_cascaded_irq, .-faraday_pci_setup_cascaded_irq
	.comm	faraday_pci_irqdomain_ops,4,4
	.comm	faraday_pci_irq_handler,4,4
	.comm	PCI_NUM_INTX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
