	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_probe          ## -- Begin function efx_siena_sriov_probe
	.p2align	4, 0x90
_efx_siena_sriov_probe:                 ## @efx_siena_sriov_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_max_vfs@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	leaq	20(%rdi), %rdx
	leaq	-20(%rbp), %rcx
	xorl	%esi, %esi
	callq	_efx_siena_sriov_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_info
	jmp	LBB0_4
LBB0_3:
	movl	-20(%rbp), %eax
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	cmovbl	%eax, %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	8(%rbx), %rax
	movq	_EFX_EXTRA_CHANNEL_IOV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_efx_siena_sriov_channel_type@GOTPCREL(%rip), %rdx
	movq	%rdx, (%rax,%rcx,8)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_vfs,4,2                    ## @max_vfs
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no SR-IOV VFs probed\n"

	.comm	_efx_siena_sriov_channel_type,4,2 ## @efx_siena_sriov_channel_type
	.comm	_EFX_EXTRA_CHANNEL_IOV,8,3      ## @EFX_EXTRA_CHANNEL_IOV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_probe          ; -- Begin function efx_siena_sriov_probe
	.p2align	2
_efx_siena_sriov_probe:                 ; @efx_siena_sriov_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _max_vfs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _max_vfs@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x2, x0, #20
	add	x3, sp, #12
	mov	w1, #0
	bl	_efx_siena_sriov_cmd
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _probe@GOTPAGE
Lloh3:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_info
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	cmp	w8, w9
	csel	w9, w8, w9, lo
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	str	w8, [x19]
Lloh7:
	adrp	x8, _EFX_EXTRA_CHANNEL_IOV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFX_EXTRA_CHANNEL_IOV@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x10, _efx_siena_sriov_channel_type@GOTPAGE
Lloh11:
	ldr	x10, [x10, _efx_siena_sriov_channel_type@GOTPAGEOFF]
	str	x10, [x9, x8, lsl #3]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_max_vfs,4,2                    ; @max_vfs
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no SR-IOV VFs probed\n"

	.comm	_efx_siena_sriov_channel_type,4,2 ; @efx_siena_sriov_channel_type
	.comm	_EFX_EXTRA_CHANNEL_IOV,8,3      ; @EFX_EXTRA_CHANNEL_IOV
.subsections_via_symbols
