	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_set_vf_spoofchk ## -- Begin function efx_siena_sriov_set_vf_spoofchk
	.p2align	4, 0x90
_efx_siena_sriov_set_vf_spoofchk:       ## @efx_siena_sriov_set_vf_spoofchk
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movslq	%esi, %rbx
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpq	$0, (%r12,%rbx)
	je	LBB0_3
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.5:
	movq	_VF_TX_FILTER_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_VF_TX_FILTER_ON@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%rbx)
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VF_TX_FILTER_ON,4,2            ## @VF_TX_FILTER_ON
	.comm	_VF_TX_FILTER_OFF,4,2           ## @VF_TX_FILTER_OFF
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_set_vf_spoofchk ; -- Begin function efx_siena_sriov_set_vf_spoofchk
	.p2align	2
_efx_siena_sriov_set_vf_spoofchk:       ; @efx_siena_sriov_set_vf_spoofchk
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
	add	x20, x23, w1, sxtw #4
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	mov	w20, #0
Lloh6:
	adrp	x8, _VF_TX_FILTER_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VF_TX_FILTER_ON@GOTPAGEOFF]
Lloh8:
	adrp	x9, _VF_TX_FILTER_OFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VF_TX_FILTER_OFF@GOTPAGEOFF]
	sxtw	x10, w22
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	add	x9, x23, x10, lsl #4
	str	w8, [x9, #12]
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VF_TX_FILTER_ON,4,2            ; @VF_TX_FILTER_ON
	.comm	_VF_TX_FILTER_OFF,4,2           ; @VF_TX_FILTER_OFF
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
