	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_sp_vf_start
_qed_sp_vf_start:                       ## @qed_sp_vf_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_qed_spq_get_cid
	movl	%eax, -48(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -52(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_COMMON_RAMROD_VF_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %r8
	callq	_qed_sp_init_request
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	-40(%rbp), %rbx
	movl	20(%r14), %edi
	movq	_PXP_CONCRETE_FID_VFID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GET_FIELD
	movl	%eax, 24(%rbx)
	movl	16(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 20(%rbx)
	movl	(%r15), %edx
	cmpl	$129, %edx
	je	LBB0_2
## %bb.3:
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.4:
	movq	_PERSONALITY_RDMA_AND_ETH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_PERSONALITY_ETH@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%r14), %r9
	movq	_ETH_HSI_VER_MINOR@GOTPCREL(%rip), %r12
	movq	(%r12), %r10
	cmpq	%r10, %r9
	jle	LBB0_8
## %bb.6:
	movq	_ETH_HSI_VER_NO_PKT_LEN_TUNN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	je	LBB0_8
## %bb.7:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	_ETH_HSI_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r8
	callq	_DP_VERBOSE
	addq	$16, %rsp
	movq	(%r12), %r9
LBB0_8:
	movq	_ETH_HSI_VER_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %rdx
	movq	_ETH_VER_KEY@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movq	(%rbx), %rcx
	movq	%r9, (%rcx,%rsi,8)
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qed_sp_destroy_request
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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	_COMMON_RAMROD_VF_START,4,2     ## @COMMON_RAMROD_VF_START
	.comm	_PROTOCOLID_COMMON,4,2          ## @PROTOCOLID_COMMON
	.comm	_PXP_CONCRETE_FID_VFID,4,2      ## @PXP_CONCRETE_FID_VFID
	.comm	_PERSONALITY_ETH,4,2            ## @PERSONALITY_ETH
	.comm	_PERSONALITY_RDMA_AND_ETH,4,2   ## @PERSONALITY_RDMA_AND_ETH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown VF personality %d\n"

	.comm	_ETH_HSI_VER_MINOR,8,3          ## @ETH_HSI_VER_MINOR
	.comm	_ETH_HSI_VER_NO_PKT_LEN_TUNN,8,3 ## @ETH_HSI_VER_NO_PKT_LEN_TUNN
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
L_.str.1:                               ## @.str.1
	.asciz	"VF [%d] - Requested fp hsi %02x.%02x which is slightly newer than PF's %02x.%02x; Configuring PFs version\n"

	.comm	_ETH_HSI_VER_MAJOR,4,2          ## @ETH_HSI_VER_MAJOR
	.comm	_ETH_VER_KEY,8,3                ## @ETH_VER_KEY
L_.str.2:                               ## @.str.2
	.asciz	"VF[%d] - Starting using HSI %02x.%02x\n"

	.no_dead_strip	_qed_sp_vf_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_sp_vf_start
_qed_sp_vf_start:                       ; @qed_sp_vf_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x19
	bl	_qed_spq_get_cid
	str	w0, [sp, #32]
	ldr	w8, [x20, #16]
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, #24]
Lloh3:
	adrp	x8, _COMMON_RAMROD_VF_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMMON_RAMROD_VF_START@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PROTOCOLID_COMMON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROTOCOLID_COMMON@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #40
	add	x4, sp, #24
	mov	x0, x19
	bl	_qed_sp_init_request
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x21, [sp, #40]
	ldr	w0, [x20, #20]
Lloh9:
	adrp	x8, _PXP_CONCRETE_FID_VFID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PXP_CONCRETE_FID_VFID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_GET_FIELD
	str	w0, [x21, #24]
	ldr	w0, [x20, #16]
	bl	_cpu_to_le16
	str	w0, [x21, #20]
	ldr	w2, [x19]
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.3:
Lloh12:
	adrp	x8, _PERSONALITY_RDMA_AND_ETH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PERSONALITY_RDMA_AND_ETH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _PERSONALITY_ETH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PERSONALITY_ETH@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x5, [x20, #8]
Lloh16:
	adrp	x24, _ETH_HSI_VER_MINOR@GOTPAGE
Lloh17:
	ldr	x24, [x24, _ETH_HSI_VER_MINOR@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh18:
	adrp	x22, _ETH_HSI_VER_MAJOR@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ETH_HSI_VER_MAJOR@GOTPAGEOFF]
Lloh20:
	adrp	x23, _QED_MSG_IOV@GOTPAGE
Lloh21:
	ldr	x23, [x23, _QED_MSG_IOV@GOTPAGEOFF]
	cmp	x5, x8
	b.le	LBB0_8
; %bb.6:
Lloh22:
	adrp	x9, _ETH_HSI_VER_NO_PKT_LEN_TUNN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ETH_HSI_VER_NO_PKT_LEN_TUNN@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x5, x9
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x23]
	ldr	w3, [x20]
	ldr	w4, [x22]
	stp	x4, x8, [sp]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_DP_VERBOSE
	ldr	x5, [x24]
LBB0_8:
	ldr	w8, [x22]
	ldr	x9, [x21, #8]
Lloh27:
	adrp	x10, _ETH_VER_KEY@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ETH_VER_KEY@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldr	x8, [x21]
	str	x5, [x8, x10, lsl #3]
	ldr	w1, [x23]
	ldr	w3, [x20]
	ldr	w4, [x22]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_qed_sp_destroy_request
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ldp	x24, x23, [sp, #48]             ; 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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_COMMON_RAMROD_VF_START,4,2     ; @COMMON_RAMROD_VF_START
	.comm	_PROTOCOLID_COMMON,4,2          ; @PROTOCOLID_COMMON
	.comm	_PXP_CONCRETE_FID_VFID,4,2      ; @PXP_CONCRETE_FID_VFID
	.comm	_PERSONALITY_ETH,4,2            ; @PERSONALITY_ETH
	.comm	_PERSONALITY_RDMA_AND_ETH,4,2   ; @PERSONALITY_RDMA_AND_ETH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown VF personality %d\n"

	.comm	_ETH_HSI_VER_MINOR,8,3          ; @ETH_HSI_VER_MINOR
	.comm	_ETH_HSI_VER_NO_PKT_LEN_TUNN,8,3 ; @ETH_HSI_VER_NO_PKT_LEN_TUNN
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
l_.str.1:                               ; @.str.1
	.asciz	"VF [%d] - Requested fp hsi %02x.%02x which is slightly newer than PF's %02x.%02x; Configuring PFs version\n"

	.comm	_ETH_HSI_VER_MAJOR,4,2          ; @ETH_HSI_VER_MAJOR
	.comm	_ETH_VER_KEY,8,3                ; @ETH_VER_KEY
l_.str.2:                               ; @.str.2
	.asciz	"VF[%d] - Starting using HSI %02x.%02x\n"

	.no_dead_strip	_qed_sp_vf_start
.subsections_via_symbols
