	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_bus_check_dev
_pci_bus_check_dev:                     ## @pci_bus_check_dev
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$1, %ebx
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_pci_bus_read_dev_vendor_id
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %edi
	callq	_msleep
	incl	%ebx
	cmpl	$51, %ebx
	jne	LBB0_1
## %bb.3:
	xorl	%r15d, %r15d
	movl	$50, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %r15d
	cmpl	$1, %ebx
	je	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	callq	_pci_domain_nr
	movl	%eax, %r13d
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_PCI_SLOT
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_PCI_FUNC
	movl	-48(%rbp), %r10d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%eax, %r8d
	movl	%ebx, %r9d
	pushq	%r10
	pushq	$20
	callq	_pr_debug
	addq	$16, %rsp
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci %04x:%02x:%02x.%d id reading try %d times with interval %d ms to get %08x\n"

	.no_dead_strip	_pci_bus_check_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_bus_check_dev
_pci_bus_check_dev:                     ; @pci_bus_check_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x22, x0
	mov	w19, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x20
	mov	w3, #0
	bl	_pci_bus_read_dev_vendor_id
	cbnz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #20
	bl	_msleep
	add	w19, w19, #1
	cmp	w19, #51
	b.ne	LBB0_1
; %bb.3:
	mov	w21, #0
	mov	w19, #50
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	cmp	w19, #1
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_pci_domain_nr
	mov	x23, x0
	ldr	w22, [x22]
	mov	x0, x20
	bl	_PCI_SLOT
	mov	x24, x0
	mov	x0, x20
	bl	_PCI_FUNC
	mov	x4, x0
	ldr	w7, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x5, x19
	mov	w6, #20
	bl	_pr_debug
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci %04x:%02x:%02x.%d id reading try %d times with interval %d ms to get %08x\n"

	.no_dead_strip	_pci_bus_check_dev
.subsections_via_symbols
