	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_siena_sriov_cmd
_efx_siena_sriov_cmd:                   ## @efx_siena_sriov_cmd
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_inbuf@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_MC_CMD_SRIOV_IN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_MCDI_DECLARE_BUF
	movq	_outbuf@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_MC_CMD_SRIOV_OUT_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	callq	_MCDI_DECLARE_BUF
	movl	(%r15), %edi
	movq	_SRIOV_IN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ebx, %ebx
	setne	%dl
	callq	_MCDI_SET_DWORD
	movl	(%r15), %edi
	movq	_SRIOV_IN_VI_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EFX_VI_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MCDI_SET_DWORD
	movl	(%r15), %edi
	movq	_SRIOV_IN_VF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_MCDI_SET_DWORD
	movq	_MC_CMD_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	_MC_CMD_SRIOV_IN_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rbx
	movl	(%r14), %r8d
	movq	(%r13), %r9
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	callq	_efx_mcdi_rpc_quiet
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rax
	cmpq	(%r13), %rax
	jae	LBB0_4
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movl	(%rbx), %edi
	movq	_SRIOV_OUT_VF_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MCDI_DWORD
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_SRIOV_OUT_VI_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MCDI_DWORD
	movq	_EFX_VI_SCALE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_6
## %bb.5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	%r12, %rbx
	movl	%eax, (%r12)
LBB0_8:
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	%r15, %rbx
	movl	%r14d, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_inbuf,4,2                      ## @inbuf
	.comm	_MC_CMD_SRIOV_IN_LEN,8,3        ## @MC_CMD_SRIOV_IN_LEN
	.comm	_outbuf,4,2                     ## @outbuf
	.comm	_MC_CMD_SRIOV_OUT_LEN,8,3       ## @MC_CMD_SRIOV_OUT_LEN
	.comm	_SRIOV_IN_ENABLE,4,2            ## @SRIOV_IN_ENABLE
	.comm	_SRIOV_IN_VI_BASE,4,2           ## @SRIOV_IN_VI_BASE
	.comm	_EFX_VI_BASE,4,2                ## @EFX_VI_BASE
	.comm	_SRIOV_IN_VF_COUNT,4,2          ## @SRIOV_IN_VF_COUNT
	.comm	_MC_CMD_SRIOV,4,2               ## @MC_CMD_SRIOV
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SRIOV_OUT_VF_TOTAL,4,2         ## @SRIOV_OUT_VF_TOTAL
	.comm	_SRIOV_OUT_VI_SCALE,4,2         ## @SRIOV_OUT_VI_SCALE
	.comm	_EFX_VI_SCALE_MAX,4,2           ## @EFX_VI_SCALE_MAX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_efx_siena_sriov_cmd
.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_cmd
_efx_siena_sriov_cmd:                   ; @efx_siena_sriov_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _inbuf@GOTPAGE
Lloh1:
	ldr	x25, [x25, _inbuf@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x26, _MC_CMD_SRIOV_IN_LEN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MC_CMD_SRIOV_IN_LEN@GOTPAGEOFF]
	ldr	x1, [x26]
	bl	_MCDI_DECLARE_BUF
Lloh4:
	adrp	x23, _outbuf@GOTPAGE
Lloh5:
	ldr	x23, [x23, _outbuf@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh6:
	adrp	x24, _MC_CMD_SRIOV_OUT_LEN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MC_CMD_SRIOV_OUT_LEN@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_MCDI_DECLARE_BUF
	ldr	w0, [x25]
Lloh8:
	adrp	x8, _SRIOV_IN_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SRIOV_IN_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cmp	w22, #0
	cset	w2, ne
	bl	_MCDI_SET_DWORD
	ldr	w0, [x25]
Lloh11:
	adrp	x8, _SRIOV_IN_VI_BASE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SRIOV_IN_VI_BASE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _EFX_VI_BASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFX_VI_BASE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_MCDI_SET_DWORD
	ldr	w0, [x25]
Lloh17:
	adrp	x8, _SRIOV_IN_VF_COUNT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SRIOV_IN_VF_COUNT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_MCDI_SET_DWORD
Lloh20:
	adrp	x8, _MC_CMD_SRIOV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MC_CMD_SRIOV@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x25]
	ldr	x3, [x26]
	ldr	w4, [x23]
	ldr	x5, [x24]
	add	x6, sp, #8
	mov	x0, x21
	bl	_efx_mcdi_rpc_quiet
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.2:
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x23]
Lloh25:
	adrp	x8, _SRIOV_OUT_VF_TOTAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SRIOV_OUT_VF_TOTAL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_MCDI_DWORD
	mov	x21, x0
	ldr	w0, [x23]
Lloh28:
	adrp	x8, _SRIOV_OUT_VI_SCALE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SRIOV_OUT_VI_SCALE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_MCDI_DWORD
Lloh31:
	adrp	x8, _EFX_VI_SCALE_MAX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EFX_VI_SCALE_MAX@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_7
; %bb.4:
Lloh34:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #96
	ret
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	str	w0, [x20]
LBB0_9:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.10:
	str	w21, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_inbuf,4,2                      ; @inbuf
	.comm	_MC_CMD_SRIOV_IN_LEN,8,3        ; @MC_CMD_SRIOV_IN_LEN
	.comm	_outbuf,4,2                     ; @outbuf
	.comm	_MC_CMD_SRIOV_OUT_LEN,8,3       ; @MC_CMD_SRIOV_OUT_LEN
	.comm	_SRIOV_IN_ENABLE,4,2            ; @SRIOV_IN_ENABLE
	.comm	_SRIOV_IN_VI_BASE,4,2           ; @SRIOV_IN_VI_BASE
	.comm	_EFX_VI_BASE,4,2                ; @EFX_VI_BASE
	.comm	_SRIOV_IN_VF_COUNT,4,2          ; @SRIOV_IN_VF_COUNT
	.comm	_MC_CMD_SRIOV,4,2               ; @MC_CMD_SRIOV
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SRIOV_OUT_VF_TOTAL,4,2         ; @SRIOV_OUT_VF_TOTAL
	.comm	_SRIOV_OUT_VI_SCALE,4,2         ; @SRIOV_OUT_VI_SCALE
	.comm	_EFX_VI_SCALE_MAX,4,2           ; @EFX_VI_SCALE_MAX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_efx_siena_sriov_cmd
.subsections_via_symbols
