	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_bcma_probe
_iproc_pcie_bcma_probe:                 ## @iproc_pcie_bcma_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_devm_pci_alloc_host_bridge
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_pci_host_bridge_priv
	movq	%rax, %rbx
	movq	%r14, 56(%rax)
	movq	_IPROC_PCIE_PAXB_BCMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 44(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	8(%r15), %eax
	movl	%eax, 40(%rbx)
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	%rcx, 32(%rbx)
	movq	(%rax), %rax
	movq	_SZ_128M@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	-1(%rax,%rcx), %rax
	movq	%rax, 24(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_resources@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_pci_add_resource
	movq	_iproc_pcie_bcma_map_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_iproc_pcie_setup
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_resources@GOTPCREL(%rip), %rdi
	callq	_pci_free_resource_list
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bcma_set_drvdata
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resources,4,2                  ## @resources
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPROC_PCIE_PAXB_BCMA,4,2       ## @IPROC_PCIE_PAXB_BCMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no controller registers\n"

	.comm	_SZ_128M,8,3                    ## @SZ_128M
L_.str.1:                               ## @.str.1
	.asciz	"PCIe MEM space"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_iproc_pcie_bcma_map_irq,4,2    ## @iproc_pcie_bcma_map_irq
L_.str.2:                               ## @.str.2
	.asciz	"PCIe controller setup failed\n"

	.no_dead_strip	_iproc_pcie_bcma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_pcie_bcma_probe
_iproc_pcie_bcma_probe:                 ; @iproc_pcie_bcma_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	x20, x0
	add	x19, x0, #16
Lloh0:
	adrp	x8, _resources@GOTPAGE
Lloh1:
	ldr	x8, [x8, _resources@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	mov	x0, x19
	mov	w1, #64
	bl	_devm_pci_alloc_host_bridge
	cbz	x0, LBB0_5
; %bb.1:
	bl	_pci_host_bridge_priv
	str	x19, [x0, #56]
Lloh3:
	adrp	x8, _IPROC_PCIE_PAXB_BCMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPROC_PCIE_PAXB_BCMA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	stp	w9, w8, [x0, #44]
	cbz	w9, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w8, [x20, #8]
	str	w8, [x0, #40]
	ldr	x8, [x20]
	ldr	x9, [x8]
	str	x9, [x0, #32]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SZ_128M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SZ_128M@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x9
	sub	x8, x8, #1
	str	x8, [x0, #24]
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x1, x0
	str	x8, [x1, #8]!
Lloh11:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh14:
	adrp	x22, _resources@GOTPAGE
Lloh15:
	ldr	x22, [x22, _resources@GOTPAGEOFF]
	mov	x0, x22
	bl	_pci_add_resource
Lloh16:
	adrp	x8, _iproc_pcie_bcma_map_irq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _iproc_pcie_bcma_map_irq@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x22
	bl	_iproc_pcie_setup
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh21:
	adrp	x0, _resources@GOTPAGE
Lloh22:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	bl	_pci_free_resource_list
	b	LBB0_7
LBB0_4:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_bcma_set_drvdata
LBB0_7:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_resources,4,2                  ; @resources
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPROC_PCIE_PAXB_BCMA,4,2       ; @IPROC_PCIE_PAXB_BCMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no controller registers\n"

	.comm	_SZ_128M,8,3                    ; @SZ_128M
l_.str.1:                               ; @.str.1
	.asciz	"PCIe MEM space"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_iproc_pcie_bcma_map_irq,4,2    ; @iproc_pcie_bcma_map_irq
l_.str.2:                               ; @.str.2
	.asciz	"PCIe controller setup failed\n"

	.no_dead_strip	_iproc_pcie_bcma_probe
.subsections_via_symbols
