	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pci_bus_find_cap_start
___pci_bus_find_cap_start:              ## @__pci_bus_find_cap_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ebx
	movq	_PCI_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	callq	_pci_bus_read_config_word
	movq	_PCI_STATUS_CAP_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -12(%rbp)
	je	LBB0_7
## %bb.1:
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_7
LBB0_4:
	movq	_PCI_CAPABILITY_LIST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_PCI_CB_CAPABILITY_LIST@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_STATUS,4,2                 ## @PCI_STATUS
	.comm	_PCI_STATUS_CAP_LIST,4,2        ## @PCI_STATUS_CAP_LIST
	.comm	_PCI_CAPABILITY_LIST,4,2        ## @PCI_CAPABILITY_LIST
	.comm	_PCI_CB_CAPABILITY_LIST,4,2     ## @PCI_CB_CAPABILITY_LIST
	.no_dead_strip	___pci_bus_find_cap_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pci_bus_find_cap_start
___pci_bus_find_cap_start:              ; @__pci_bus_find_cap_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
Lloh0:
	adrp	x8, _PCI_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_pci_bus_read_config_word
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _PCI_STATUS_CAP_LIST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_STATUS_CAP_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	cmp	w19, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w19, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w19, #128
	b.ne	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _PCI_CAPABILITY_LIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_CAPABILITY_LIST@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _PCI_CB_CAPABILITY_LIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_CB_CAPABILITY_LIST@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_STATUS,4,2                 ; @PCI_STATUS
	.comm	_PCI_STATUS_CAP_LIST,4,2        ; @PCI_STATUS_CAP_LIST
	.comm	_PCI_CAPABILITY_LIST,4,2        ; @PCI_CAPABILITY_LIST
	.comm	_PCI_CB_CAPABILITY_LIST,4,2     ; @PCI_CB_CAPABILITY_LIST
	.no_dead_strip	___pci_bus_find_cap_start
.subsections_via_symbols
