	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_init           ## -- Begin function efx_siena_sriov_init
	.p2align	4, 0x90
_efx_siena_sriov_init:                  ## @efx_siena_sriov_init
	.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	32(%rdi), %r14
	movq	40(%rdi), %r15
	movq	_EFX_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	_EFX_VI_BASE@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	_EFX_VI_SCALE_MAX@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$-1, %edi
	shll	%cl, %edi
	notl	%edi
	andl	(%rbx), %edi
	callq	_BUILD_BUG_ON
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_efx_siena_sriov_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$40, %edx
	callq	_efx_nic_alloc_buffer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	(%r14), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movabsq	$171798691841, %rax             ## imm = 0x2800000001
	movq	%rax, (%r13)
	movq	_vf_max_tx_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movl	28(%r12), %eax
	movl	%eax, 32(%r13)
	movl	24(%r12), %eax
	movl	%eax, 28(%r13)
	movq	(%r12), %rax
	incq	%rax
	movq	%rax, 8(%r13)
	movl	20(%r12), %eax
	movl	%eax, 24(%r13)
	movq	%r12, %rdi
	callq	_efx_siena_sriov_vf_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	leaq	24(%r14), %rdi
	callq	_mutex_init
	leaq	12(%r14), %rdi
	movq	_efx_siena_sriov_peer_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_INIT_WORK
	leaq	20(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	callq	_efx_siena_sriov_vfs_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	16(%r13), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_ether_addr_copy
	movq	(%r12), %rax
	movq	%rax, 8(%r12)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_efx_siena_sriov_usrev
	movl	16(%r12), %edi
	movq	(%r12), %rsi
	callq	_pci_enable_sriov
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_efx_siena_sriov_usrev
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	$0, 8(%r12)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r12, %rdi
	callq	_efx_siena_sriov_vfs_fini
	movl	%r13d, %ebx
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cancel_work_sync
	movq	%r12, %rdi
	callq	_efx_siena_sriov_free_local
	movl	8(%r14), %edi
	callq	_kfree
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_efx_nic_free_buffer
LBB0_11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_efx_siena_sriov_cmd
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r12), %r13
	movq	%r12, %rdi
	callq	_efx_vf_size
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movq	%r13, %r8
	movl	%eax, %r9d
	callq	_netif_info
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_MAX_CHANNELS,4,2           ## @EFX_MAX_CHANNELS
	.comm	_EFX_VI_BASE,4,2                ## @EFX_VI_BASE
	.comm	_EFX_VI_SCALE_MAX,4,2           ## @EFX_VI_SCALE_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_vf_max_tx_channels,4,2         ## @vf_max_tx_channels
	.comm	_efx_siena_sriov_peer_work,4,2  ## @efx_siena_sriov_peer_work
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabled SR-IOV for %d VFs, %d VI per VF\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function efx_siena_sriov_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	40                              ; 0x28
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_efx_siena_sriov_init
	.p2align	2
_efx_siena_sriov_init:                  ; @efx_siena_sriov_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x20, x21, [x0, #32]
Lloh0:
	adrp	x8, _EFX_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #1
Lloh3:
	adrp	x22, _EFX_VI_BASE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EFX_VI_BASE@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	cset	w0, ge
	bl	_BUILD_BUG_ON
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _EFX_VI_SCALE_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EFX_VI_SCALE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mov	w10, #-1
	lsl	w9, w10, w9
	bic	w0, w8, w9
	bl	_BUILD_BUG_ON
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_efx_siena_sriov_cmd
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.2:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #40
	bl	_efx_nic_alloc_buffer
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	x24, [x20]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x24]
Lloh13:
	adrp	x8, _vf_max_tx_channels@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vf_max_tx_channels@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	stp	w9, w8, [x24, #32]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x24, #8]
	ldur	d0, [x19, #20]
	str	d0, [x24, #24]
	mov	x0, x19
	bl	_efx_siena_sriov_vf_alloc
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.4:
	add	x0, x20, #24
	bl	_mutex_init
	add	x22, x20, #12
Lloh16:
	adrp	x8, _efx_siena_sriov_peer_work@GOTPAGE
Lloh17:
	ldr	x8, [x8, _efx_siena_sriov_peer_work@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_WORK
	add	x0, x20, #20
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_efx_siena_sriov_vfs_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	bl	_rtnl_lock
	ldr	x8, [x24, #16]
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_ether_addr_copy
	ldr	x8, [x19]
	str	x8, [x19, #8]
	bl	_rtnl_unlock
	mov	x0, x19
	mov	w1, #1
	bl	_efx_siena_sriov_usrev
	ldr	w0, [x19, #16]
	ldr	x1, [x19]
	bl	_pci_enable_sriov
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_efx_siena_sriov_usrev
	bl	_rtnl_lock
	str	xzr, [x19, #8]
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_efx_siena_sriov_vfs_fini
LBB0_7:
	mov	x0, x22
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_efx_siena_sriov_free_local
	ldr	w0, [x20, #8]
	bl	_kfree
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_efx_nic_free_buffer
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_efx_siena_sriov_cmd
	b	LBB0_11
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh19:
	adrp	x8, _probe@GOTPAGE
Lloh20:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	ldr	x22, [x19]
	mov	x0, x19
	bl	_efx_vf_size
	mov	x5, x0
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x22
	bl	_netif_info
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_MAX_CHANNELS,4,2           ; @EFX_MAX_CHANNELS
	.comm	_EFX_VI_BASE,4,2                ; @EFX_VI_BASE
	.comm	_EFX_VI_SCALE_MAX,4,2           ; @EFX_VI_SCALE_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_vf_max_tx_channels,4,2         ; @vf_max_tx_channels
	.comm	_efx_siena_sriov_peer_work,4,2  ; @efx_siena_sriov_peer_work
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabled SR-IOV for %d VFs, %d VI per VF\n"

.subsections_via_symbols
