	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_vfdi_init_evq
_efx_vfdi_init_evq:                     ## @efx_vfdi_init_evq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %r12
	movl	(%rax), %r15d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r13d
	movl	%r15d, %esi
	callq	_abs_index
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_EFX_BUFTBL_EVQ_BASE
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_bad_vf_index
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EFX_MAX_VF_EVQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_bad_buf_count
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	movq	_VFDI_RC_EINVAL@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	8(%rbx), %r8d
	movl	%r13d, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %r9d
	callq	_netif_err
LBB0_6:
	movl	(%r14), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movq	%r13, %r14
	movl	%r14d, %ecx
	callq	_efx_siena_sriov_bufs
	movq	_FRF_CZ_TIMER_Q_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRF_CZ_HOST_NOTIFY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FRF_CZ_TIMER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_FFE_CZ_TIMER_MODE_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_EFX_POPULATE_OWORD_3
	movq	_FR_BZ_TIMER_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_efx_writeo_table
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_FRF_AZ_EVQ_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FRF_AZ_EVQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	___ffs
	movq	_FRF_AZ_EVQ_BUF_BASE_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_EFX_POPULATE_OWORD_3
	movq	_FR_BZ_EVQ_PTR_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	movl	%r13d, %ecx
	callq	_efx_writeo_table
	movq	%r14, %r12
	movq	_VFDI_RC_SUCCESS@GOTPCREL(%rip), %r14
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	leal	(,%r12,4), %edx
	callq	_memcpy
	movl	%r12d, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_MAX_VF_EVQ_SIZE,4,2        ## @EFX_MAX_VF_EVQ_SIZE
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Invalid INIT_EVQ from %s: evq %d bufs %d\n"

	.comm	_VFDI_RC_EINVAL,4,2             ## @VFDI_RC_EINVAL
	.comm	_FRF_CZ_TIMER_Q_EN,4,2          ## @FRF_CZ_TIMER_Q_EN
	.comm	_FRF_CZ_HOST_NOTIFY_MODE,4,2    ## @FRF_CZ_HOST_NOTIFY_MODE
	.comm	_FRF_CZ_TIMER_MODE,4,2          ## @FRF_CZ_TIMER_MODE
	.comm	_FFE_CZ_TIMER_MODE_DIS,4,2      ## @FFE_CZ_TIMER_MODE_DIS
	.comm	_FR_BZ_TIMER_TBL,4,2            ## @FR_BZ_TIMER_TBL
	.comm	_FRF_AZ_EVQ_EN,4,2              ## @FRF_AZ_EVQ_EN
	.comm	_FRF_AZ_EVQ_SIZE,4,2            ## @FRF_AZ_EVQ_SIZE
	.comm	_FRF_AZ_EVQ_BUF_BASE_ID,4,2     ## @FRF_AZ_EVQ_BUF_BASE_ID
	.comm	_FR_BZ_EVQ_PTR_TBL,4,2          ## @FR_BZ_EVQ_PTR_TBL
	.comm	_VFDI_RC_SUCCESS,4,2            ## @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_init_evq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_vfdi_init_evq
_efx_vfdi_init_evq:                     ; @efx_vfdi_init_evq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldp	x28, x22, [x0, #16]
	ldp	w21, w19, [x28]
	mov	x1, x21
	bl	_abs_index
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_EFX_BUFTBL_EVQ_BASE
	mov	x24, x0
	mov	x0, x22
	mov	x1, x21
	bl	_bad_vf_index
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EFX_MAX_VF_EVQ_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_MAX_VF_EVQ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bad_buf_count
	cbz	x0, LBB0_6
LBB0_2:
	bl	_net_ratelimit
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _hw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x22]
	ldr	w4, [x20, #8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x5, x21
	mov	x6, x19
	bl	_netif_err
LBB0_4:
Lloh8:
	adrp	x8, _VFDI_RC_EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VFDI_RC_EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	w2, [x28, #8]
	mov	x0, x22
	mov	x1, x24
	mov	x3, x19
	bl	_efx_siena_sriov_bufs
Lloh10:
	adrp	x8, _FRF_CZ_TIMER_Q_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FRF_CZ_TIMER_Q_EN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _FRF_CZ_HOST_NOTIFY_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FRF_CZ_HOST_NOTIFY_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x8, _FRF_CZ_TIMER_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FRF_CZ_TIMER_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
Lloh19:
	adrp	x8, _FFE_CZ_TIMER_MODE_DIS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FFE_CZ_TIMER_MODE_DIS@GOTPAGEOFF]
Lloh21:
	ldr	w6, [x8]
	mov	w2, #1
	mov	w4, #0
	bl	_EFX_POPULATE_OWORD_3
Lloh22:
	adrp	x8, _FR_BZ_TIMER_TBL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FR_BZ_TIMER_TBL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x22
	mov	x3, x23
	bl	_efx_writeo_table
	ldr	w25, [sp, #12]
Lloh25:
	adrp	x8, _FRF_AZ_EVQ_EN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FRF_AZ_EVQ_EN@GOTPAGEOFF]
Lloh27:
	ldr	w26, [x8]
Lloh28:
	adrp	x8, _FRF_AZ_EVQ_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FRF_AZ_EVQ_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w27, [x8]
	mov	x0, x19
	bl	___ffs
	mov	x4, x0
Lloh31:
	adrp	x8, _FRF_AZ_EVQ_BUF_BASE_ID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FRF_AZ_EVQ_BUF_BASE_ID@GOTPAGEOFF]
Lloh33:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x26
	mov	w2, #1
	mov	x3, x27
	mov	x6, x24
	bl	_EFX_POPULATE_OWORD_3
Lloh34:
	adrp	x8, _FR_BZ_EVQ_PTR_TBL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FR_BZ_EVQ_PTR_TBL@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x22
	mov	x3, x23
	bl	_efx_writeo_table
	cbnz	w21, LBB0_8
; %bb.7:
	ldr	w0, [x20, #4]
	ldr	w1, [x28, #8]
	lsl	w2, w19, #2
	bl	_memcpy
	str	w19, [x20]
LBB0_8:
Lloh37:
	adrp	x8, _VFDI_RC_SUCCESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VFDI_RC_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_MAX_VF_EVQ_SIZE,4,2        ; @EFX_MAX_VF_EVQ_SIZE
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Invalid INIT_EVQ from %s: evq %d bufs %d\n"

	.comm	_VFDI_RC_EINVAL,4,2             ; @VFDI_RC_EINVAL
	.comm	_FRF_CZ_TIMER_Q_EN,4,2          ; @FRF_CZ_TIMER_Q_EN
	.comm	_FRF_CZ_HOST_NOTIFY_MODE,4,2    ; @FRF_CZ_HOST_NOTIFY_MODE
	.comm	_FRF_CZ_TIMER_MODE,4,2          ; @FRF_CZ_TIMER_MODE
	.comm	_FFE_CZ_TIMER_MODE_DIS,4,2      ; @FFE_CZ_TIMER_MODE_DIS
	.comm	_FR_BZ_TIMER_TBL,4,2            ; @FR_BZ_TIMER_TBL
	.comm	_FRF_AZ_EVQ_EN,4,2              ; @FRF_AZ_EVQ_EN
	.comm	_FRF_AZ_EVQ_SIZE,4,2            ; @FRF_AZ_EVQ_SIZE
	.comm	_FRF_AZ_EVQ_BUF_BASE_ID,4,2     ; @FRF_AZ_EVQ_BUF_BASE_ID
	.comm	_FR_BZ_EVQ_PTR_TBL,4,2          ; @FR_BZ_EVQ_PTR_TBL
	.comm	_VFDI_RC_SUCCESS,4,2            ; @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_init_evq
.subsections_via_symbols
