	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_dvsec_afu_ctrl
_find_dvsec_afu_ctrl:                   ## @find_dvsec_afu_ctrl
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	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_8
## %bb.1:
	movl	%eax, %ebx
	leaq	-64(%rbp), %r14
	movq	_PCI_VENDOR_ID_IBM@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_OCXL_EXT_CAP_ID_DVSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_pci_find_next_ext_capability
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %r15
	movq	_OCXL_DVSEC_VENDOR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	leaq	-72(%rbp), %rdx
	callq	_pci_read_config_word
	movq	_OCXL_DVSEC_ID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movq	-72(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	movq	_OCXL_DVSEC_AFU_CTRL_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_OCXL_DVSEC_AFU_CTRL_AFU_IDX@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	callq	_pci_read_config_byte
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %r14d
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$40, %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
	.comm	_OCXL_DVSEC_AFU_CTRL_ID,8,3     ## @OCXL_DVSEC_AFU_CTRL_ID
	.comm	_OCXL_DVSEC_AFU_CTRL_AFU_IDX,8,3 ## @OCXL_DVSEC_AFU_CTRL_AFU_IDX
	.no_dead_strip	_find_dvsec_afu_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_dvsec_afu_ctrl
_find_dvsec_afu_ctrl:                   ; @find_dvsec_afu_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, 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	x21, x0
	cbz	w0, LBB0_6
; %bb.1:
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]
Lloh8:
	adrp	x26, _OCXL_DVSEC_AFU_CTRL_ID@GOTPAGE
Lloh9:
	ldr	x26, [x26, _OCXL_DVSEC_AFU_CTRL_ID@GOTPAGEOFF]
Lloh10:
	adrp	x27, _OCXL_DVSEC_AFU_CTRL_AFU_IDX@GOTPAGE
Lloh11:
	ldr	x27, [x27, _OCXL_DVSEC_AFU_CTRL_AFU_IDX@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_pci_find_next_ext_capability
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x28, w21
	ldr	x8, [x23]
	add	x1, x8, x28
	add	x2, sp, #24
	mov	x0, x20
	bl	_pci_read_config_word
	ldr	x8, [x24]
	add	x1, x8, x28
	add	x2, sp, #16
	mov	x0, x20
	bl	_pci_read_config_word
	ldr	x8, [sp, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	add	x1, x8, x28
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_read_config_byte
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.ne	LBB0_2
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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
	.comm	_OCXL_DVSEC_AFU_CTRL_ID,8,3     ; @OCXL_DVSEC_AFU_CTRL_ID
	.comm	_OCXL_DVSEC_AFU_CTRL_AFU_IDX,8,3 ; @OCXL_DVSEC_AFU_CTRL_AFU_IDX
	.no_dead_strip	_find_dvsec_afu_ctrl
.subsections_via_symbols
