	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_host_pci_probe
_bcma_host_pci_probe:                   ## @bcma_host_pci_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ENOMEM@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	leaq	16(%r15), %rdi
	callq	_dev_name
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	cmovneq	%rcx, %rax
LBB0_4:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	%r15, %rdi
	callq	_pci_set_master
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_pci_read_config_dword
	movl	-36(%rbp), %edx
	testl	$65280, %edx                    ## imm = 0xFF00
	je	LBB0_7
## %bb.6:
	andl	$-65281, %edx                   ## imm = 0xFFFF00FF
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_pci_write_config_dword
LBB0_7:
	movq	%r15, %rdi
	callq	_pci_is_pcie
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_bcma_err
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	$-1, %rdx
	callq	_pci_iomap
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	%r15, 8(%r14)
	movq	_BCMA_HOSTTYPE_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_bcma_host_pci_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movl	4(%r15), %eax
	movl	%eax, 20(%r14)
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_bcma_bus_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_pci_iounmap
LBB0_13:
	movq	%r15, %rdi
	callq	_pci_release_regions
LBB0_14:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI card detected, report problems.\n"

	.comm	_BCMA_HOSTTYPE_PCI,4,2          ## @BCMA_HOSTTYPE_PCI
	.comm	_bcma_host_pci_ops,4,2          ## @bcma_host_pci_ops
	.no_dead_strip	_bcma_host_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_host_pci_probe
_bcma_host_pci_probe:                   ; @bcma_host_pci_probe
	.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, x0
Lloh0:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_pci_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.2:
	add	x0, x19, #16
	bl	_dev_name
	mov	x1, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x1, x1, x8, eq
LBB0_4:
	mov	x0, x19
	bl	_pci_request_regions
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.5:
	mov	x0, x19
	bl	_pci_set_master
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #64
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	tst	w8, #0xff00
	b.eq	LBB0_7
; %bb.6:
	and	w2, w8, #0xffff00ff
	mov	x0, x19
	mov	w1, #64
	bl	_pci_write_config_dword
LBB0_7:
	mov	x0, x19
	bl	_pci_is_pcie
	cbnz	w0, LBB0_9
; %bb.8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_bcma_err
LBB0_9:
	ldr	w21, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	x2, #-1
	bl	_pci_iomap
	str	w0, [x20]
	cbz	w0, LBB0_13
; %bb.10:
	str	x19, [x20, #8]
Lloh7:
	adrp	x8, _BCMA_HOSTTYPE_PCI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BCMA_HOSTTYPE_PCI@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh10:
	adrp	x8, _bcma_host_pci_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bcma_host_pci_ops@GOTPAGEOFF]
	str	x8, [x20, #24]
	ldr	d0, [x19]
	str	d0, [x20, #16]
	mov	x0, x20
	bl	_bcma_bus_register
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.11:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pci_iounmap
	b	LBB0_14
LBB0_12:
	neg	w21, w21
	b	LBB0_17
LBB0_13:
	neg	w21, w21
LBB0_14:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_15:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_16:
	mov	x0, x20
	bl	_kfree
LBB0_17:
	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
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI card detected, report problems.\n"

	.comm	_BCMA_HOSTTYPE_PCI,4,2          ; @BCMA_HOSTTYPE_PCI
	.comm	_bcma_host_pci_ops,4,2          ; @bcma_host_pci_ops
	.no_dead_strip	_bcma_host_pci_probe
.subsections_via_symbols
