	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_sriov_pci_cfg_info
_bnx2x_sriov_pci_cfg_info:              ## @bnx2x_sriov_pci_cfg_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%eax, (%r15)
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_DP
	movslq	%ebx, %rbx
	movq	_PCI_SRIOV_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	32(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_TOTAL_VF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	28(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_INITIAL_VF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	24(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_VF_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	20(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_VF_STRIDE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	16(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_SRIOV_SUP_PGSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	12(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	movq	_PCI_SRIOV_CAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	8(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_dword
	movq	_PCI_SRIOV_FUNC_LINK@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	addq	$4, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_pci_read_config_byte
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find SRIOV capability in device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
L_.str.1:                               ## @.str.1
	.asciz	"sriov ext pos %d\n"

	.comm	_PCI_SRIOV_CTRL,8,3             ## @PCI_SRIOV_CTRL
	.comm	_PCI_SRIOV_TOTAL_VF,8,3         ## @PCI_SRIOV_TOTAL_VF
	.comm	_PCI_SRIOV_INITIAL_VF,8,3       ## @PCI_SRIOV_INITIAL_VF
	.comm	_PCI_SRIOV_VF_OFFSET,8,3        ## @PCI_SRIOV_VF_OFFSET
	.comm	_PCI_SRIOV_VF_STRIDE,8,3        ## @PCI_SRIOV_VF_STRIDE
	.comm	_PCI_SRIOV_SUP_PGSIZE,8,3       ## @PCI_SRIOV_SUP_PGSIZE
	.comm	_PCI_SRIOV_CAP,8,3              ## @PCI_SRIOV_CAP
	.comm	_PCI_SRIOV_FUNC_LINK,8,3        ## @PCI_SRIOV_FUNC_LINK
	.no_dead_strip	_bnx2x_sriov_pci_cfg_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_sriov_pci_cfg_info
_bnx2x_sriov_pci_cfg_info:              ; @bnx2x_sriov_pci_cfg_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_find_ext_capability
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x21, x20
	str	w0, [x21], #4
Lloh3:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_DP
	sxtw	x22, w22
Lloh8:
	adrp	x8, _PCI_SRIOV_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_SRIOV_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #32
	mov	x0, x19
	bl	_pci_read_config_word
Lloh11:
	adrp	x8, _PCI_SRIOV_TOTAL_VF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_SRIOV_TOTAL_VF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #28
	mov	x0, x19
	bl	_pci_read_config_word
Lloh14:
	adrp	x8, _PCI_SRIOV_INITIAL_VF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_SRIOV_INITIAL_VF@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #24
	mov	x0, x19
	bl	_pci_read_config_word
Lloh17:
	adrp	x8, _PCI_SRIOV_VF_OFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCI_SRIOV_VF_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #20
	mov	x0, x19
	bl	_pci_read_config_word
Lloh20:
	adrp	x8, _PCI_SRIOV_VF_STRIDE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCI_SRIOV_VF_STRIDE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #16
	mov	x0, x19
	bl	_pci_read_config_word
Lloh23:
	adrp	x8, _PCI_SRIOV_SUP_PGSIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCI_SRIOV_SUP_PGSIZE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #12
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh26:
	adrp	x8, _PCI_SRIOV_CAP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PCI_SRIOV_CAP@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, x22
	add	x2, x20, #8
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh29:
	adrp	x8, _PCI_SRIOV_FUNC_LINK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCI_SRIOV_FUNC_LINK@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x19
	mov	x2, x21
	bl	_pci_read_config_byte
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find SRIOV capability in device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
l_.str.1:                               ; @.str.1
	.asciz	"sriov ext pos %d\n"

	.comm	_PCI_SRIOV_CTRL,8,3             ; @PCI_SRIOV_CTRL
	.comm	_PCI_SRIOV_TOTAL_VF,8,3         ; @PCI_SRIOV_TOTAL_VF
	.comm	_PCI_SRIOV_INITIAL_VF,8,3       ; @PCI_SRIOV_INITIAL_VF
	.comm	_PCI_SRIOV_VF_OFFSET,8,3        ; @PCI_SRIOV_VF_OFFSET
	.comm	_PCI_SRIOV_VF_STRIDE,8,3        ; @PCI_SRIOV_VF_STRIDE
	.comm	_PCI_SRIOV_SUP_PGSIZE,8,3       ; @PCI_SRIOV_SUP_PGSIZE
	.comm	_PCI_SRIOV_CAP,8,3              ; @PCI_SRIOV_CAP
	.comm	_PCI_SRIOV_FUNC_LINK,8,3        ; @PCI_SRIOV_FUNC_LINK
	.no_dead_strip	_bnx2x_sriov_pci_cfg_info
.subsections_via_symbols
