	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_dvsec
_find_dvsec:                            ## @find_dvsec
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_OCXL_EXT_CAP_ID_DVSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_pci_find_next_ext_capability
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	movslq	%r12d, %r12
	movq	_PCI_VENDOR_ID_IBM@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_OCXL_EXT_CAP_ID_DVSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pci_find_next_ext_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %r14
	movq	_OCXL_DVSEC_VENDOR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	leaq	-56(%rbp), %rdx
	callq	_pci_read_config_word
	movq	_OCXL_DVSEC_ID_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	callq	_pci_read_config_word
	movq	-56(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, -48(%rbp)
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %r14d
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCXL_EXT_CAP_ID_DVSEC,4,2      ## @OCXL_EXT_CAP_ID_DVSEC
	.comm	_OCXL_DVSEC_VENDOR_OFFSET,8,3   ## @OCXL_DVSEC_VENDOR_OFFSET
	.comm	_OCXL_DVSEC_ID_OFFSET,8,3       ## @OCXL_DVSEC_ID_OFFSET
	.comm	_PCI_VENDOR_ID_IBM,8,3          ## @PCI_VENDOR_ID_IBM
	.no_dead_strip	_find_dvsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_dvsec
_find_dvsec:                            ; @find_dvsec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _OCXL_EXT_CAP_ID_DVSEC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OCXL_EXT_CAP_ID_DVSEC@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_pci_find_next_ext_capability
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.1:
	sxtw	x21, w21
Lloh2:
	adrp	x23, _OCXL_DVSEC_VENDOR_OFFSET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OCXL_DVSEC_VENDOR_OFFSET@GOTPAGEOFF]
Lloh4:
	adrp	x24, _OCXL_DVSEC_ID_OFFSET@GOTPAGE
Lloh5:
	ldr	x24, [x24, _OCXL_DVSEC_ID_OFFSET@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PCI_VENDOR_ID_IBM@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PCI_VENDOR_ID_IBM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x26, w20
	ldr	x8, [x23]
	add	x1, x8, x26
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	x8, [x24]
	add	x1, x8, x26
	mov	x2, sp
	mov	x0, x19
	bl	_pci_read_config_word
	ldp	x10, x8, [sp]
	ldr	x9, [x25]
	cmp	x8, x9
	ccmp	x10, x21, #0, eq
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_find_next_ext_capability
	mov	x20, x0
	cbnz	w0, LBB0_2
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_OCXL_EXT_CAP_ID_DVSEC,4,2      ; @OCXL_EXT_CAP_ID_DVSEC
	.comm	_OCXL_DVSEC_VENDOR_OFFSET,8,3   ; @OCXL_DVSEC_VENDOR_OFFSET
	.comm	_OCXL_DVSEC_ID_OFFSET,8,3       ; @OCXL_DVSEC_ID_OFFSET
	.comm	_PCI_VENDOR_ID_IBM,8,3          ; @PCI_VENDOR_ID_IBM
	.no_dead_strip	_find_dvsec
.subsections_via_symbols
