	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_sriov_alloc_vf_vswitching
_efx_ef10_sriov_alloc_vf_vswitching:    ## @efx_ef10_sriov_alloc_vf_vswitching
	.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, %r14
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rax,%r13), %edi
	callq	_eth_random_addr
	movq	(%r12), %rax
	movq	$0, 8(%rax,%r13)
	movq	_EFX_EF10_NO_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax,%r13)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_efx_ef10_sriov_assign_vf_vport
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	addq	$24, %r13
	jmp	LBB0_3
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_efx_ef10_sriov_free_vf_vports
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, (%r12)
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFX_EF10_NO_VLAN,4,2           ## @EFX_EF10_NO_VLAN
	.no_dead_strip	_efx_ef10_sriov_alloc_vf_vswitching
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_sriov_alloc_vf_vswitching
_efx_ef10_sriov_alloc_vf_vswitching:    ; @efx_ef10_sriov_alloc_vf_vswitching
	.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
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x22]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w0, [x0, #16]
	bl	_eth_random_addr
	ldr	x8, [x22]
	str	xzr, [x8, #8]
Lloh3:
	adrp	x23, _EFX_EF10_NO_VLAN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EFX_EF10_NO_VLAN@GOTPAGEOFF]
	ldr	w9, [x23]
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_efx_ef10_sriov_assign_vf_vport
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x24, #0
	mov	w20, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	x20, x8
	b.hs	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	add	x8, x8, x24
	ldr	w0, [x8, #40]
	bl	_eth_random_addr
	ldr	x8, [x22]
	add	x8, x8, x24
	str	xzr, [x8, #32]
	ldr	w9, [x23]
	str	w9, [x8, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_efx_ef10_sriov_assign_vf_vport
	add	x24, x24, #24
	add	x20, x20, #1
	cbz	w0, LBB0_4
; %bb.6:
	mov	x21, x0
LBB0_7:
	mov	x0, x19
	bl	_efx_ef10_sriov_free_vf_vports
	ldr	x0, [x22]
	bl	_kfree
	str	xzr, [x22]
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFX_EF10_NO_VLAN,4,2           ; @EFX_EF10_NO_VLAN
	.no_dead_strip	_efx_ef10_sriov_alloc_vf_vswitching
.subsections_via_symbols
