	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_siena_sriov_vf_alloc
_efx_siena_sriov_vf_alloc:              ## @efx_siena_sriov_vf_alloc
	.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, %r15
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_kcalloc
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movl	$20, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r14), %r12
	movq	%r15, 20(%rbx,%r14)
	movl	%r13d, -20(%rbx,%r14)
	movl	$-1, -16(%rbx,%r14)
	movq	_VF_TX_FILTER_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx,%r14)
	movl	$-1, -12(%rbx,%r14)
	leaq	(%rbx,%r14), %rdi
	addq	$8, %rdi
	movq	_efx_siena_sriov_vfdi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	(%rbx,%r14), %rdi
	addq	$4, %rdi
	movq	_efx_siena_sriov_reset_vf_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r12, %rdi
	callq	_init_waitqueue_head
	leaq	(%rbx,%r14), %rdi
	addq	$-4, %rdi
	callq	_mutex_init
	leaq	(%rbx,%r14), %rdi
	addq	$-8, %rdi
	callq	_mutex_init
	incq	%r13
	movl	(%r15), %eax
	cmpq	%rax, %r13
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	addq	$48, %r14
	jmp	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	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	_VF_TX_FILTER_AUTO,4,2          ## @VF_TX_FILTER_AUTO
	.comm	_efx_siena_sriov_vfdi,4,2       ## @efx_siena_sriov_vfdi
	.comm	_efx_siena_sriov_reset_vf_work,4,2 ## @efx_siena_sriov_reset_vf_work
	.no_dead_strip	_efx_siena_sriov_vf_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_siena_sriov_vf_alloc
_efx_siena_sriov_vf_alloc:              ; @efx_siena_sriov_vf_alloc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_kcalloc
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x21, #0
	mov	w22, #40
	mov	w23, #-1
Lloh3:
	adrp	x24, _VF_TX_FILTER_AUTO@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VF_TX_FILTER_AUTO@GOTPAGEOFF]
Lloh5:
	adrp	x25, _efx_siena_sriov_vfdi@GOTPAGE
Lloh6:
	ldr	x25, [x25, _efx_siena_sriov_vfdi@GOTPAGEOFF]
Lloh7:
	adrp	x26, _efx_siena_sriov_reset_vf_work@GOTPAGE
Lloh8:
	ldr	x26, [x26, _efx_siena_sriov_reset_vf_work@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x0, x22
	str	x19, [x27]
	stp	w21, w23, [x27, #-40]
	ldr	w8, [x24]
	stur	w8, [x27, #-8]
	stur	w23, [x27, #-32]
	sub	x0, x27, #12
	ldr	w1, [x25]
	bl	_INIT_WORK
	sub	x0, x27, #16
	ldr	w1, [x26]
	bl	_INIT_WORK
	sub	x0, x27, #20
	bl	_init_waitqueue_head
	sub	x0, x27, #24
	bl	_mutex_init
	sub	x0, x27, #28
	bl	_mutex_init
	add	x21, x21, #1
	ldr	w8, [x19]
	cmp	x21, x8
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	add	x22, x22, #48
	b	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VF_TX_FILTER_AUTO,4,2          ; @VF_TX_FILTER_AUTO
	.comm	_efx_siena_sriov_vfdi,4,2       ; @efx_siena_sriov_vfdi
	.comm	_efx_siena_sriov_reset_vf_work,4,2 ; @efx_siena_sriov_reset_vf_work
	.no_dead_strip	_efx_siena_sriov_vf_alloc
.subsections_via_symbols
