	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_reset          ## -- Begin function efx_siena_sriov_reset
	.p2align	4, 0x90
_efx_siena_sriov_reset:                 ## @efx_siena_sriov_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_efx_siena_sriov_usrev
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_efx_siena_sriov_cmd
	movq	_EFX_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_efx_nic_alloc_buffer
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.3:
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r13, %rdi
	movq	%r14, %rsi
	callq	_efx_siena_sriov_reset_vf
	incq	%rbx
	movl	(%r12), %eax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_efx_nic_free_buffer
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_PAGE_SIZE,4,2              ## @EFX_PAGE_SIZE
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_reset          ; -- Begin function efx_siena_sriov_reset
	.p2align	2
_efx_siena_sriov_reset:                 ; @efx_siena_sriov_reset
	.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, x0
	ldr	x20, [x0, #8]
	bl	_ASSERT_RTNL
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_efx_siena_sriov_usrev
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_efx_siena_sriov_cmd
Lloh0:
	adrp	x8, _EFX_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_efx_nic_alloc_buffer
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x21
	add	x1, sp, #8
	bl	_efx_siena_sriov_reset_vf
	add	x22, x22, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_4
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_efx_nic_free_buffer
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_PAGE_SIZE,4,2              ; @EFX_PAGE_SIZE
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
.subsections_via_symbols
