	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_pcie_config_legacy_irq
_uniphier_pcie_config_legacy_irq:       ## @uniphier_pcie_config_legacy_irq
	.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, %r12
	movq	%rax, %rdi
	callq	_to_uniphier_pcie
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_PCI_NUM_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_uniphier_intx_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	(%r15), %edi
	movq	_uniphier_pcie_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_irq_set_chained_handler_and_data
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_9:
	movl	%ebx, %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	"legacy-interrupt-controller"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get legacy-interrupt-controller node\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get an IRQ entry in legacy-interrupt-controller\n"

	.comm	_PCI_NUM_INTX,4,2               ## @PCI_NUM_INTX
	.comm	_uniphier_intx_domain_ops,4,2   ## @uniphier_intx_domain_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get INTx domain\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_uniphier_pcie_irq_handler,4,2  ## @uniphier_pcie_irq_handler
	.no_dead_strip	_uniphier_pcie_config_legacy_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_pcie_config_legacy_irq
_uniphier_pcie_config_legacy_irq:       ; @uniphier_pcie_config_legacy_irq
	.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
	mov	x21, x0
	bl	_to_uniphier_pcie
	mov	x22, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_get_child_by_name
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	w0, [x20]
	cbz	w0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x8, _PCI_NUM_INTX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_NUM_INTX@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, _uniphier_intx_domain_ops@GOTPAGE
Lloh6:
	ldr	x2, [x2, _uniphier_intx_domain_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x20
	bl	_irq_domain_add_linear
	str	w0, [x22]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _uniphier_pcie_irq_handler@GOTPAGE
Lloh8:
	ldr	x8, [x8, _uniphier_pcie_irq_handler@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_irq_set_chained_handler_and_data
	mov	w20, #0
	b	LBB0_8
LBB0_4:
	ldr	x0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	ldr	x0, [x21]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x0, [x21]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_of_node_put
LBB0_9:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"legacy-interrupt-controller"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get legacy-interrupt-controller node\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get an IRQ entry in legacy-interrupt-controller\n"

	.comm	_PCI_NUM_INTX,4,2               ; @PCI_NUM_INTX
	.comm	_uniphier_intx_domain_ops,4,2   ; @uniphier_intx_domain_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get INTx domain\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_uniphier_pcie_irq_handler,4,2  ; @uniphier_pcie_irq_handler
	.no_dead_strip	_uniphier_pcie_config_legacy_irq
.subsections_via_symbols
