	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_pcie_probe
_mtk_pcie_probe:                        ## @mtk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$32, %esi
	callq	_devm_pci_alloc_host_bridge
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pci_host_bridge_priv
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	%rbx, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 8(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_mtk_pcie_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	24(%r15), %eax
	movl	%eax, 32(%r14)
	movq	16(%r15), %rax
	movq	%rax, 24(%r14)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_of_irq_parse_and_map_pci@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_pci_common_swizzle@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r15, (%r14)
	movq	%r14, %rdi
	callq	_pci_host_probe
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_mtk_pcie_put_resources
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_of_irq_parse_and_map_pci,4,2   ## @of_irq_parse_and_map_pci
	.comm	_pci_common_swizzle,4,2         ## @pci_common_swizzle
	.no_dead_strip	_mtk_pcie_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_pcie_probe
_mtk_pcie_probe:                        ; @mtk_pcie_probe
	.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	x21, x0
	mov	w1, #32
	bl	_devm_pci_alloc_host_bridge
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_pci_host_bridge_priv
	mov	x19, x0
	str	x21, [x0, #16]
	mov	x0, x21
	bl	_of_device_get_match_data
	str	x0, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_mtk_pcie_setup
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x19, #24]
	str	w8, [x20, #32]
	ldp	x9, x8, [x19, #8]
	str	x8, [x20, #24]
	ldr	w8, [x9]
	str	w8, [x20, #16]
Lloh0:
	adrp	x8, _of_irq_parse_and_map_pci@GOTPAGE
Lloh1:
	ldr	x8, [x8, _of_irq_parse_and_map_pci@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _pci_common_swizzle@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pci_common_swizzle@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	str	x19, [x20]
	mov	x0, x20
	bl	_pci_host_probe
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_list_empty
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_mtk_pcie_put_resources
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_of_irq_parse_and_map_pci,4,2   ; @of_irq_parse_and_map_pci
	.comm	_pci_common_swizzle,4,2         ; @pci_common_swizzle
	.no_dead_strip	_mtk_pcie_probe
.subsections_via_symbols
