	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qed_sp_eth_vport_start
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_qed_sp_eth_vport_start
	.p2align	4, 0x90
_qed_sp_eth_vport_start:                ## @qed_sp_eth_vport_start
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	movl	$0, -28(%rbp)
	movl	48(%rsi), %esi
	leaq	-28(%rbp), %rdx
	callq	_qed_fw_vport
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_qed_spq_get_cid
	movl	%eax, -44(%rbp)
	movl	44(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_ETH_RAMROD_VPORT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %r8
	callq	_qed_sp_init_request
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	-40(%rbp), %r15
	movl	-28(%rbp), %eax
	movl	%eax, 96(%r15)
	movl	(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 88(%r15)
	movups	28(%rbx), %xmm0
	movups	%xmm0, 72(%r15)
	movq	_ETH_VPORT_RX_MODE_UCAST_DROP_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	$1, %edx
	callq	_SET_FIELD
	movq	_ETH_VPORT_RX_MODE_MCAST_DROP_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	$1, %edx
	callq	_SET_FIELD
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%r15)
	leaq	16(%r15), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movl	%eax, 48(%r15)
	cmpl	$128, 4(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_ETH_TPA_MAX_AGGS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movl	$-1, 16(%r15)
	movl	(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 20(%r15)
	movl	%ecx, 24(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, 28(%r15)
LBB0_4:
	movl	20(%rbx), %eax
	movl	%eax, 12(%r15)
	xorl	%eax, %eax
	cmpl	$0, 16(%rbx)
	setne	%al
	movl	%eax, (%r15)
	xorl	%eax, %eax
	cmpl	$0, 12(%rbx)
	setne	%al
	movl	%eax, 4(%r15)
	movl	(%r14), %edi
	movl	8(%rbx), %esi
	callq	_qed_concrete_to_sw_fid
	movl	%eax, 8(%r15)
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
LBB0_5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_ETH_RAMROD_VPORT_START,4,2     ## @ETH_RAMROD_VPORT_START
	.comm	_PROTOCOLID_ETH,4,2             ## @PROTOCOLID_ETH
	.comm	_ETH_VPORT_RX_MODE_UCAST_DROP_ALL,4,2 ## @ETH_VPORT_RX_MODE_UCAST_DROP_ALL
	.comm	_ETH_VPORT_RX_MODE_MCAST_DROP_ALL,4,2 ## @ETH_VPORT_RX_MODE_MCAST_DROP_ALL
	.comm	_ETH_TPA_MAX_AGGS_NUM,4,2       ## @ETH_TPA_MAX_AGGS_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_sp_eth_vport_start         ; -- Begin function qed_sp_eth_vport_start
	.p2align	2
_qed_sp_eth_vport_start:                ; @qed_sp_eth_vport_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	stur	xzr, [x29, #-40]
	str	wzr, [sp, #4]
	ldr	w1, [x1, #48]
	add	x2, sp, #4
	bl	_qed_fw_vport
	cbnz	w0, LBB0_5
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x19
	bl	_qed_spq_get_cid
	str	w0, [sp, #52]
	ldr	w8, [x20, #44]
Lloh0:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #44]
Lloh3:
	adrp	x8, _ETH_RAMROD_VPORT_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_RAMROD_VPORT_START@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PROTOCOLID_ETH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROTOCOLID_ETH@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	sub	x1, x29, #40
	add	x4, sp, #8
	mov	x0, x19
	bl	_qed_sp_init_request
	cbnz	w0, LBB0_5
; %bb.2:
	ldur	x21, [x29, #-40]
	ldr	w8, [sp, #4]
	str	w8, [x21, #96]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [x21, #88]
	ldur	q0, [x20, #28]
	stur	q0, [x21, #72]
Lloh9:
	adrp	x8, _ETH_VPORT_RX_MODE_UCAST_DROP_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_VPORT_RX_MODE_UCAST_DROP_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #1
	bl	_SET_FIELD
Lloh12:
	adrp	x8, _ETH_VPORT_RX_MODE_MCAST_DROP_ALL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_VPORT_RX_MODE_MCAST_DROP_ALL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #1
	bl	_SET_FIELD
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x21, #64]
	add	x0, x21, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x20, #24]
	str	w8, [x21, #48]
	ldr	w8, [x20, #4]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _ETH_TPA_MAX_AGGS_NUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_TPA_MAX_AGGS_NUM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #44]
	mov	w8, #-1
	str	w8, [x21, #16]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w8, w8, [x21, #20]
	movi.4s	v0, #1
	stur	q0, [x21, #28]
LBB0_4:
	ldr	w8, [x20, #20]
	str	w8, [x21, #12]
	ldur	d0, [x20, #12]
	cmeq.2s	v0, v0, #0
	movi.2s	v1, #1
	bic.8b	v0, v1, v0
	rev64.2s	v0, v0
	str	d0, [x21]
	ldr	w0, [x19]
	ldr	w1, [x20, #8]
	bl	_qed_concrete_to_sw_fid
	str	w0, [x21, #8]
	ldur	x1, [x29, #-40]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_ETH_RAMROD_VPORT_START,4,2     ; @ETH_RAMROD_VPORT_START
	.comm	_PROTOCOLID_ETH,4,2             ; @PROTOCOLID_ETH
	.comm	_ETH_VPORT_RX_MODE_UCAST_DROP_ALL,4,2 ; @ETH_VPORT_RX_MODE_UCAST_DROP_ALL
	.comm	_ETH_VPORT_RX_MODE_MCAST_DROP_ALL,4,2 ; @ETH_VPORT_RX_MODE_MCAST_DROP_ALL
	.comm	_ETH_TPA_MAX_AGGS_NUM,4,2       ; @ETH_TPA_MAX_AGGS_NUM
.subsections_via_symbols
