	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_sriov_cmd
_efx_sriov_cmd:                         ## @efx_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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MC_CMD_SRIOV_IN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_MC_CMD_SRIOV_OUT_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_SRIOV_IN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	movq	%rbx, %rdi
	callq	_MCDI_SET_DWORD
	movq	_SRIOV_IN_VI_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EFX_VI_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_MCDI_SET_DWORD
	movq	_SRIOV_IN_VF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_MCDI_SET_DWORD
	movq	_MC_CMD_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MC_CMD_SRIOV_IN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r9d
	subq	$8, %rsp
	leaq	-72(%rbp), %rax
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movq	%r12, %r8
	pushq	%rax
	callq	_efx_mcdi_rpc
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movslq	(%r15), %rax
	cmpq	%rax, -72(%rbp)
	jae	LBB0_4
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_SRIOV_OUT_VF_TOTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MCDI_DWORD
	movl	%eax, %r14d
	movq	_SRIOV_OUT_VI_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	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:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movl	%eax, (%rbx)
LBB0_8:
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:
	movq	%r13, %rbx
	movl	%r14d, (%r13)
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_CMD_SRIOV_IN_LEN,4,2        ## @MC_CMD_SRIOV_IN_LEN
	.comm	_MC_CMD_SRIOV_OUT_LEN,4,2       ## @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_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_sriov_cmd
_efx_sriov_cmd:                         ; @efx_sriov_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _MC_CMD_SRIOV_IN_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MC_CMD_SRIOV_IN_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x24, _MC_CMD_SRIOV_OUT_LEN@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MC_CMD_SRIOV_OUT_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh11:
	adrp	x8, _SRIOV_IN_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SRIOV_IN_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, #0
	cset	w2, ne
	mov	x0, x23
	mov	x1, x8
	bl	_MCDI_SET_DWORD
Lloh14:
	adrp	x8, _SRIOV_IN_VI_BASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SRIOV_IN_VI_BASE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _EFX_VI_BASE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFX_VI_BASE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_MCDI_SET_DWORD
Lloh20:
	adrp	x8, _SRIOV_IN_VF_COUNT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SRIOV_IN_VF_COUNT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x23
	bl	_MCDI_SET_DWORD
Lloh23:
	adrp	x8, _MC_CMD_SRIOV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MC_CMD_SRIOV@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w3, [x25]
	ldr	w5, [x24]
	sub	x6, x29, #80
	mov	x0, x22
	mov	x2, x23
	mov	x4, x21
	bl	_efx_mcdi_rpc
	cbnz	w0, LBB0_6
; %bb.1:
	ldur	x8, [x29, #-80]
	ldrsw	x9, [x24]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.2:
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh28:
	adrp	x8, _SRIOV_OUT_VF_TOTAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SRIOV_OUT_VF_TOTAL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MCDI_DWORD
	mov	x22, x0
Lloh31:
	adrp	x8, _SRIOV_OUT_VI_SCALE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SRIOV_OUT_VI_SCALE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MCDI_DWORD
Lloh34:
	adrp	x8, _EFX_VI_SCALE_MAX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EFX_VI_SCALE_MAX@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_8
; %bb.4:
Lloh37:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.7:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	str	w0, [x20]
LBB0_10:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.11:
	str	w22, [x19]
	b	LBB0_6
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_CMD_SRIOV_IN_LEN,4,2        ; @MC_CMD_SRIOV_IN_LEN
	.comm	_MC_CMD_SRIOV_OUT_LEN,4,2       ; @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_sriov_cmd
.subsections_via_symbols
