	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dra7xx_pcie_init_irq_domain
_dra7xx_pcie_init_irq_domain:           ## @dra7xx_pcie_init_irq_domain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_dw_pcie_from_pp
	movq	(%rax), %r14
	movq	%rax, %rdi
	callq	_to_dra7xx_pcie
	movq	%rax, %r12
	movq	(%r14), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_of_get_next_child
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_PCI_NUM_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_intx_domain_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpl	$0, (%r12)
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No PCIe Intc node found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCI_NUM_INTX,4,2               ## @PCI_NUM_INTX
	.comm	_intx_domain_ops,4,2            ## @intx_domain_ops
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get a INTx IRQ domain\n"

	.no_dead_strip	_dra7xx_pcie_init_irq_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dra7xx_pcie_init_irq_domain
_dra7xx_pcie_init_irq_domain:           ; @dra7xx_pcie_init_irq_domain
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_to_dw_pcie_from_pp
	ldr	x19, [x0]
	bl	_to_dra7xx_pcie
	mov	x21, x0
	ldr	x0, [x19]
	mov	x1, #0
	bl	_of_get_next_child
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _PCI_NUM_INTX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_NUM_INTX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, _intx_domain_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _intx_domain_ops@GOTPAGEOFF]
	mov	x3, x20
	bl	_irq_domain_add_linear
	str	w0, [x21]
	mov	x0, x22
	bl	_of_node_put
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PCIe Intc node found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCI_NUM_INTX,4,2               ; @PCI_NUM_INTX
	.comm	_intx_domain_ops,4,2            ; @intx_domain_ops
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get a INTx IRQ domain\n"

	.no_dead_strip	_dra7xx_pcie_init_irq_domain
.subsections_via_symbols
