	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ef10_sriov_assign_vf_vport
_efx_ef10_sriov_assign_vf_vport:        ## @efx_ef10_sriov_assign_vf_vport
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, %r14d
	movq	_EVB_PORT_ID_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shlq	$4, %r14
	movl	12(%r13,%r14), %ecx
	leaq	(%r14,%r13), %r12
	addq	$4, %r12
	movq	%r15, %rdi
	movq	%r12, %r8
	callq	_efx_ef10_vport_alloc
	movl	%ebx, %ecx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movl	8(%r13,%r14), %edx
	movq	%r15, %rdi
	callq	_efx_ef10_vport_add_mac
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	(%r14,%r13), %rax
	addq	$8, %rax
	movl	(%rax), %edi
	callq	_eth_zero_addr
	jmp	LBB0_7
LBB0_5:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_efx_ef10_evb_port_assign
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	$1, (%r13,%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EVB_PORT_ID_ASSIGNED,4,2       ## @EVB_PORT_ID_ASSIGNED
	.comm	_MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL,4,2 ## @MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL
	.no_dead_strip	_efx_ef10_sriov_assign_vf_vport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ef10_sriov_assign_vf_vport
_efx_ef10_sriov_assign_vf_vport:        ; @efx_ef10_sriov_assign_vf_vport
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	cmp	x23, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_2:
	mov	w24, w19
Lloh3:
	adrp	x8, _EVB_PORT_ID_ASSIGNED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVB_PORT_ID_ASSIGNED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x25, x23, x24, lsl #4
	ldr	w3, [x25, #12]
	add	x22, x25, #4
	mov	x0, x20
	mov	x4, x22
	bl	_efx_ef10_vport_alloc
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w1, [x22]
	ldr	w2, [x25, #8]!
	mov	x0, x20
	bl	_efx_ef10_vport_add_mac
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	ldr	w0, [x25]
	bl	_eth_zero_addr
	b	LBB0_7
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x19
	bl	_efx_ef10_evb_port_assign
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	lsl	x8, x24, #4
	mov	w9, #1
	str	w9, [x23, x8]
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EVB_PORT_ID_ASSIGNED,4,2       ; @EVB_PORT_ID_ASSIGNED
	.comm	_MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL,4,2 ; @MC_CMD_VPORT_ALLOC_IN_VPORT_TYPE_NORMAL
	.no_dead_strip	_efx_ef10_sriov_assign_vf_vport
.subsections_via_symbols
