	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada8k_add_pcie_port
_armada8k_add_pcie_port:                ## @armada8k_add_pcie_port
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_armada8k_pcie_host_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_armada8k_pcie_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%rbx), %r15d
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_dw_pcie_host_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_armada8k_pcie_host_ops,4,2     ## @armada8k_pcie_host_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get irq for port\n"

	.comm	_armada8k_pcie_irq_handler,4,2  ## @armada8k_pcie_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"armada8k-pcie"

L_.str.2:                               ## @.str.2
	.asciz	"failed to request irq %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to initialize host: %d\n"

	.no_dead_strip	_armada8k_add_pcie_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada8k_add_pcie_port
_armada8k_add_pcie_port:                ; @armada8k_add_pcie_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _armada8k_pcie_host_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _armada8k_pcie_host_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	x0, x1
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh2:
	adrp	x8, _armada8k_pcie_irq_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _armada8k_pcie_irq_handler@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x5, x21
	bl	_devm_request_irq
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w21, [x20]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_dw_pcie_host_init
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_armada8k_pcie_host_ops,4,2     ; @armada8k_pcie_host_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get irq for port\n"

	.comm	_armada8k_pcie_irq_handler,4,2  ; @armada8k_pcie_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"armada8k-pcie"

l_.str.2:                               ; @.str.2
	.asciz	"failed to request irq %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to initialize host: %d\n"

	.no_dead_strip	_armada8k_add_pcie_port
.subsections_via_symbols
