	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada8k_pcie_probe
_armada8k_pcie_probe:                   ## @armada8k_pcie_probe
	.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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r12, 16(%rax)
	movq	_dw_pcie_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r15, 16(%r14)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, %r13
	movq	%rax, 8(%r14)
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	cmpq	%r13, %rax
	jne	LBB0_7
## %bb.6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_7:
	movq	8(%r14), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_pci_remap_cfg_resource
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_dev_err
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_8:
	movq	8(%r14), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_9
LBB0_11:
	movq	%r14, %rdi
	callq	_armada8k_pcie_setup_phys
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_armada8k_add_pcie_port
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_armada8k_pcie_disable_phys
LBB0_15:
	movq	8(%r14), %rdi
	callq	_clk_disable_unprepare
LBB0_16:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_17
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dw_pcie_ops,4,2                ## @dw_pcie_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"ctrl"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't remap regs base %p\n"

	.no_dead_strip	_armada8k_pcie_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armada8k_pcie_probe
_armada8k_pcie_probe:                   ; @armada8k_pcie_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _dw_pcie_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dw_pcie_ops@GOTPAGEOFF]
	stp	x8, x20, [x0, #8]
	str	x0, [x19, #16]
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.7:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	mov	x22, x0
	str	x0, [x19, #8]
Lloh9:
	adrp	x23, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EPROBE_DEFER@GOTPAGEOFF]
	ldr	w8, [x23]
	neg	w0, w8
	bl	_ERR_PTR
	cmp	x0, x22
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x23]
	neg	w22, w8
	b	LBB0_17
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_pci_remap_cfg_resource
	str	x0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
	ldr	x0, [x21]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_16
LBB0_12:
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_16
	b	LBB0_10
LBB0_13:
	mov	x0, x19
	bl	_armada8k_pcie_setup_phys
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x20
	bl	_armada8k_add_pcie_port
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.15:
	mov	x0, x19
	bl	_armada8k_pcie_disable_phys
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_17:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dw_pcie_ops,4,2                ; @dw_pcie_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"ctrl"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't remap regs base %p\n"

	.no_dead_strip	_armada8k_pcie_probe
.subsections_via_symbols
