	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_num_non_def_sbs
_bnx2x_get_num_non_def_sbs:             ## @bnx2x_get_num_non_def_sbs
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	movq	_PCI_CAP_ID_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movslq	%r12d, %rsi
	movq	_PCI_MSI_FLAGS@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_word
	movq	_PCI_MSIX_FLAGS_QSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	-36(%rbp), %ebx
	cmpl	$1, %r14d
	sbbl	$-1, %ebx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	incl	%ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CAP_ID_MSIX,4,2            ## @PCI_CAP_ID_MSIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no msix capability found\n"

L_.str.1:                               ## @.str.1
	.asciz	"msix capability found\n"

	.comm	_PCI_MSI_FLAGS,8,3              ## @PCI_MSI_FLAGS
	.comm	_PCI_MSIX_FLAGS_QSIZE,4,2       ## @PCI_MSIX_FLAGS_QSIZE
	.no_dead_strip	_bnx2x_get_num_non_def_sbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_num_non_def_sbs
_bnx2x_get_num_non_def_sbs:             ; @bnx2x_get_num_non_def_sbs
	.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, x2
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _PCI_CAP_ID_MSIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CAP_ID_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_capability
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
Lloh5:
	adrp	x8, _PCI_MSI_FLAGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_MSI_FLAGS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x1, x8, w22, sxtw
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _PCI_MSIX_FLAGS_QSIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCI_MSIX_FLAGS_QSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w19, #0
	cinc	w0, w8, ne
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	add	w0, w21, #1
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CAP_ID_MSIX,4,2            ; @PCI_CAP_ID_MSIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no msix capability found\n"

l_.str.1:                               ; @.str.1
	.asciz	"msix capability found\n"

	.comm	_PCI_MSI_FLAGS,8,3              ; @PCI_MSI_FLAGS
	.comm	_PCI_MSIX_FLAGS_QSIZE,4,2       ; @PCI_MSIX_FLAGS_QSIZE
	.no_dead_strip	_bnx2x_get_num_non_def_sbs
.subsections_via_symbols
