	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_pci_probe
_velocity_pci_probe:                    ## @velocity_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_chip_info_table@GOTPCREL(%rip), %rax
	movq	(%rsi), %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	callq	_pci_enable_device
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_VELOCITY_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_request_regions
	leaq	4(%r14), %rdi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r14), %esi
	movq	_BUS_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_velocity_probe
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pci_release_regions
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	%r14, %rdi
	callq	_pci_disable_device
	jmp	LBB0_8
LBB0_5:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_chip_info_table,8,3            ## @chip_info_table
	.comm	_VELOCITY_NAME,4,2              ## @VELOCITY_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No PCI resources.\n"

	.comm	_BUS_PCI,4,2                    ## @BUS_PCI
	.no_dead_strip	_velocity_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_pci_probe
_velocity_pci_probe:                    ; @velocity_pci_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	x19, x0
Lloh0:
	adrp	x8, _chip_info_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chip_info_table@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x22, [x1]
	bl	_pci_enable_device
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _VELOCITY_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VELOCITY_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	mov	x20, x0
	add	x0, x19, #4
	tbnz	w20, #31, LBB0_5
; %bb.2:
	add	x2, x21, x22, lsl #2
	ldr	w1, [x19]
Lloh6:
	adrp	x8, _BUS_PCI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUS_PCI@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_velocity_probe
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_pci_release_regions
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_7:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_chip_info_table,8,3            ; @chip_info_table
	.comm	_VELOCITY_NAME,4,2              ; @VELOCITY_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PCI resources.\n"

	.comm	_BUS_PCI,4,2                    ; @BUS_PCI
	.no_dead_strip	_velocity_pci_probe
.subsections_via_symbols
