	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_ef10_sriov_set_vf_mac      ## -- Begin function efx_ef10_sriov_set_vf_mac
	.p2align	4, 0x90
_efx_ef10_sriov_set_vf_mac:             ## @efx_ef10_sriov_set_vf_mac
	.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	8(%rdi), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.3:
	movl	%esi, %r14d
	movq	%rdi, %r12
	cmpl	%esi, (%rdi)
	jle	LBB0_4
## %bb.5:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	8(,%rax,8), %r15
	addq	%r13, %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	callq	_efx_device_detach_sync
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_efx_net_stop
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_down_write
	movq	(%r15), %rdi
	movq	16(%rdi), %rax
	callq	*8(%rax)
	movq	(%r15), %rdi
	movq	_EVB_PORT_ID_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_efx_ef10_vadaptor_free
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_up_write
	jmp	LBB0_22
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_EVB_PORT_ID_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_efx_ef10_evb_port_assign
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %r15
	addq	%r13, %r15
	movq	(%r13,%rax,8), %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_is_zero_ether_addr
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%rax, %r15
	callq	_ether_addr_copy
	movl	16(%r13,%rbx,8), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_efx_ef10_evb_port_assign
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.18:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.19:
	movq	_EVB_PORT_ID_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_efx_ef10_vadaptor_alloc
	movq	(%r15), %rdi
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r14d
	addq	$8, %rdi
	callq	_up_write
	movl	%r14d, %ebx
	jmp	LBB0_22
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%r13,%rax,8), %esi
	movq	(%r15), %rdx
	movq	%r12, %rdi
	callq	_efx_ef10_vport_del_vf_mac
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_11
LBB0_12:
	movl	16(%r13,%rbx,8), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_efx_ef10_vport_add_mac
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_eth_zero_addr
LBB0_14:
	movq	(%r15), %rdi
	callq	_eth_zero_addr
	jmp	LBB0_22
LBB0_15:
	movq	%rbx, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_ether_addr_copy
	jmp	LBB0_17
LBB0_21:
	movq	16(%rdi), %rax
	callq	*(%rax)
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_up_write
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_efx_net_open
	movq	(%r15), %rdi
	callq	_efx_device_attach_if_not_resetting
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EVB_PORT_ID_ASSIGNED,4,2       ## @EVB_PORT_ID_ASSIGNED
	.comm	_EVB_PORT_ID_NULL,4,2           ## @EVB_PORT_ID_NULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_ef10_sriov_set_vf_mac      ; -- Begin function efx_ef10_sriov_set_vf_mac
	.p2align	2
_efx_ef10_sriov_set_vf_mac:             ; @efx_ef10_sriov_set_vf_mac
	.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
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	cbz	x24, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_6
; %bb.2:
	mov	x21, x2
	mov	w8, #24
	smaddl	x23, w19, w8, x24
	ldr	x0, [x23, #8]!
	cbz	x0, LBB0_9
; %bb.3:
	bl	_efx_device_detach_sync
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_efx_net_stop
	ldr	x8, [x23]
	add	x0, x8, #8
	bl	_down_write
	ldr	x0, [x23]
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #8]
	blr	x8
	ldr	x0, [x23]
Lloh0:
	adrp	x8, _EVB_PORT_ID_ASSIGNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVB_PORT_ID_ASSIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_efx_ef10_vadaptor_free
	cbz	w0, LBB0_9
; %bb.4:
	mov	x22, x0
	ldr	x8, [x23]
	add	x0, x8, #8
	bl	_up_write
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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_9:
Lloh7:
	adrp	x8, _EVB_PORT_ID_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVB_PORT_ID_NULL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_efx_ef10_evb_port_assign
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.10:
	sxtw	x26, w19
	mov	w8, #24
	madd	x25, x26, x8, x24
	ldr	x0, [x25]
	bl	_is_zero_ether_addr
	cbz	w0, LBB0_16
LBB0_11:
	mov	x0, x21
	bl	_is_zero_ether_addr
	cbz	w0, LBB0_17
LBB0_12:
	ldr	x0, [x25]
	mov	x1, x21
	bl	_ether_addr_copy
	mov	w8, #24
	madd	x8, x26, x8, x24
	ldr	w1, [x8, #16]
	mov	x0, x20
	mov	x2, x19
	bl	_efx_ef10_evb_port_assign
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.13:
	ldr	x0, [x23]
	cbz	x0, LBB0_22
; %bb.14:
Lloh10:
	adrp	x8, _EVB_PORT_ID_ASSIGNED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVB_PORT_ID_ASSIGNED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_efx_ef10_vadaptor_alloc
	mov	x22, x0
	ldr	x0, [x23]
	cbz	w22, LBB0_23
; %bb.15:
	add	x0, x0, #8
	bl	_up_write
	b	LBB0_8
LBB0_16:
	mov	w8, #24
	madd	x8, x26, x8, x24
	ldr	w1, [x8, #16]
	ldr	x2, [x25]
	mov	x0, x20
	bl	_efx_ef10_vport_del_vf_mac
	mov	x22, x0
	cbnz	w0, LBB0_8
	b	LBB0_11
LBB0_17:
	mov	w8, #24
	madd	x8, x26, x8, x24
	ldr	w1, [x8, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_efx_ef10_vport_add_mac
	cbz	w0, LBB0_20
; %bb.18:
	mov	x22, x0
	ldr	x0, [x25]
	bl	_eth_zero_addr
LBB0_19:
	ldr	x0, [x25]
	bl	_eth_zero_addr
	b	LBB0_8
LBB0_20:
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.21:
	ldr	x8, [x8]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_ether_addr_copy
	b	LBB0_12
LBB0_22:
	mov	w22, #0
	b	LBB0_8
LBB0_23:
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	blr	x8
	ldr	x8, [x23]
	add	x0, x8, #8
	bl	_up_write
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_efx_net_open
	ldr	x0, [x23]
	bl	_efx_device_attach_if_not_resetting
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EVB_PORT_ID_ASSIGNED,4,2       ; @EVB_PORT_ID_ASSIGNED
	.comm	_EVB_PORT_ID_NULL,4,2           ; @EVB_PORT_ID_NULL
.subsections_via_symbols
