	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_cxl_vsec
_find_cxl_vsec:                         ## @find_cxl_vsec
	.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
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	_PCI_EXT_CAP_ID_VNDR@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	movq	_CXL_PCI_VSEC_ID@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_find_next_ext_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %esi
	addl	$4, %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movq	-48(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_1
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_VNDR,4,2        ## @PCI_EXT_CAP_ID_VNDR
	.comm	_CXL_PCI_VSEC_ID,8,3            ## @CXL_PCI_VSEC_ID
	.no_dead_strip	_find_cxl_vsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_cxl_vsec
_find_cxl_vsec:                         ; @find_cxl_vsec
	.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
	mov	w20, #0
Lloh0:
	adrp	x21, _PCI_EXT_CAP_ID_VNDR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_EXT_CAP_ID_VNDR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _CXL_PCI_VSEC_ID@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CXL_PCI_VSEC_ID@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_find_next_ext_capability
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w1, w20, #4
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_1
LBB0_3:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_VNDR,4,2        ; @PCI_EXT_CAP_ID_VNDR
	.comm	_CXL_PCI_VSEC_ID,8,3            ; @CXL_PCI_VSEC_ID
	.no_dead_strip	_find_cxl_vsec
.subsections_via_symbols
