	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_ef10_sriov_fini            ## -- Begin function efx_ef10_sriov_fini
	.p2align	4, 0x90
_efx_ef10_sriov_fini:                   ## @efx_ef10_sriov_fini
	.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	%rdi, %r14
	movq	16(%rdi), %r15
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movl	(%r14), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	incq	%rbx
	jmp	LBB0_3
LBB0_10:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_efx_ef10_pci_sriov_disable
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r14), %edx
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
LBB0_7:
	movq	8(%r14), %rdi
	callq	_pci_num_vf
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	8(%r14), %rdi
	callq	_pci_vfs_assigned
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_dbg                      ## TAILCALL
LBB0_9:
	movq	8(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_sriov              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling SRIOV was not successful rc=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SRIOV disabled\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_ef10_sriov_fini            ; -- Begin function efx_ef10_sriov_fini
	.p2align	2
_efx_ef10_sriov_fini:                   ; @efx_ef10_sriov_fini
	.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, #16]
	ldr	x9, [x20]
	cbz	x9, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x21, #0
	ldr	x9, [x9, x21, lsl #3]
	cbz	x9, LBB0_4
LBB0_3:
	ldr	x0, [x9, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x21, #1
	cmp	x21, w8, uxtw
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9, x21, lsl #3]
	cbnz	x9, LBB0_3
	b	LBB0_4
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_efx_ef10_pci_sriov_disable
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	cbz	w0, LBB0_11
; %bb.7:
	str	x0, [sp]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_dbg
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_pci_num_vf
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
	bl	_pci_vfs_assigned
	cbz	w0, LBB0_12
LBB0_10:
	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
LBB0_11:
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	b	_netif_dbg
LBB0_12:
	ldr	x0, [x19, #8]
	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
	b	_pci_disable_sriov
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling SRIOV was not successful rc=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SRIOV disabled\n"

.subsections_via_symbols
