	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_sp_ll2_rx_queue_start
_qed_sp_ll2_rx_queue_start:             ## @qed_sp_ll2_rx_queue_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	%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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r13d
	movq	$0, -48(%rbp)
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	36(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -68(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_CORE_RAMROD_RX_QUEUE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %r8
	callq	_qed_sp_init_request
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %r15
	movq	%r14, %rdi
	callq	_qed_int_get_sp_sb_id
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, 80(%r15)
	leaq	40(%rbx), %r12
	movl	48(%rbx), %eax
	movl	%eax, 72(%r15)
	movl	$1, (%r15)
	movq	16(%rbx), %rdi
	callq	_cpu_to_le16
	movq	%rax, 64(%r15)
	movl	56(%r15), %edi
	movl	44(%rbx), %esi
	callq	_DMA_REGPAIR_LE
	movq	%r12, %rdi
	callq	_qed_chain_get_page_cnt
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, 48(%r15)
	movl	40(%r15), %r13d
	movq	%r12, %rdi
	callq	_qed_chain_get_pbl_phys
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_DMA_REGPAIR_LE
	movl	12(%rbx), %eax
	movl	%eax, 36(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 32(%r15)
	movq	_QED_MF_UFP_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movslq	(%rbx), %rax
	movq	_QED_LL2_TYPE_FCOE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movl	$1, 4(%r15)
LBB0_4:
	movl	32(%rbx), %eax
	movl	%eax, 28(%r15)
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	setne	%al
	movl	%eax, 8(%r15)
	movq	_QED_MF_LL2_NON_UNICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_8
## %bb.5:
	cmpl	$0, 8(%r15)
	je	LBB0_8
## %bb.6:
	movq	_QED_LL2_TYPE_ROCE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_8
## %bb.7:
	movq	_QED_LL2_TYPE_IWARP@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %edx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	movl	%eax, 12(%r15)
	movl	%eax, 16(%r15)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 20(%r15)
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_CORE_RAMROD_RX_QUEUE_START,4,2 ## @CORE_RAMROD_RX_QUEUE_START
	.comm	_PROTOCOLID_CORE,4,2            ## @PROTOCOLID_CORE
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ## @QED_MF_UFP_SPECIFIC
	.comm	_QED_LL2_TYPE_FCOE,8,3          ## @QED_LL2_TYPE_FCOE
	.comm	_QED_MF_LL2_NON_UNICAST,4,2     ## @QED_MF_LL2_NON_UNICAST
	.comm	_QED_LL2_TYPE_ROCE,4,2          ## @QED_LL2_TYPE_ROCE
	.comm	_QED_LL2_TYPE_IWARP,4,2         ## @QED_LL2_TYPE_IWARP
	.no_dead_strip	_qed_sp_ll2_rx_queue_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_ll2_rx_queue_start
_qed_sp_ll2_rx_queue_start:             ; @qed_sp_ll2_rx_queue_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w24, [x1]
	str	xzr, [sp, #24]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20, #36]
	str	w8, [sp, #16]
	ldr	w8, [x19, #8]
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, #8]
Lloh3:
	adrp	x8, _CORE_RAMROD_RX_QUEUE_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CORE_RAMROD_RX_QUEUE_START@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PROTOCOLID_CORE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PROTOCOLID_CORE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #24
	add	x4, sp, #8
	mov	x0, x19
	bl	_qed_sp_init_request
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	x25, [sp, #24]
	mov	x0, x19
	bl	_qed_int_get_sp_sb_id
	bl	_cpu_to_le16
	str	x0, [x25, #80]
	add	x22, x20, #40
	ldr	w8, [x20, #48]
	str	w8, [x25, #72]
	mov	w8, #1
	str	w8, [x25]
	ldr	x0, [x20, #16]
	bl	_cpu_to_le16
	str	x0, [x25, #64]
	ldr	w0, [x25, #56]
	ldr	w1, [x20, #44]
	bl	_DMA_REGPAIR_LE
	mov	x0, x22
	bl	_qed_chain_get_page_cnt
	bl	_cpu_to_le16
	str	x0, [x25, #48]
	ldr	w23, [x25, #40]
	mov	x0, x22
	bl	_qed_chain_get_pbl_phys
	mov	x1, x0
	mov	x0, x23
	bl	_DMA_REGPAIR_LE
	ldr	d0, [x20, #8]
	str	d0, [x25, #32]
Lloh9:
	adrp	x8, _QED_MF_UFP_SPECIFIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MF_UFP_SPECIFIC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
	ldrsw	x8, [x20]
Lloh12:
	adrp	x9, _QED_LL2_TYPE_FCOE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QED_LL2_TYPE_FCOE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x25, #4]
LBB0_4:
	ldr	w8, [x20, #32]
	str	w8, [x25, #28]
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x25, #8]
Lloh15:
	adrp	x8, _QED_MF_LL2_NON_UNICAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QED_MF_LL2_NON_UNICAST@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_9
; %bb.6:
Lloh18:
	adrp	x8, _QED_LL2_TYPE_ROCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QED_LL2_TYPE_ROCE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _QED_LL2_TYPE_IWARP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QED_LL2_TYPE_IWARP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	stp	w8, w8, [x25, #12]
	str	w21, [x25, #24]
	ldr	w8, [x20, #4]
	str	w8, [x25, #20]
	ldr	x1, [sp, #24]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
LBB0_11:
	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
	ldp	x26, x25, [sp, #32]             ; 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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_CORE_RAMROD_RX_QUEUE_START,4,2 ; @CORE_RAMROD_RX_QUEUE_START
	.comm	_PROTOCOLID_CORE,4,2            ; @PROTOCOLID_CORE
	.comm	_QED_MF_UFP_SPECIFIC,4,2        ; @QED_MF_UFP_SPECIFIC
	.comm	_QED_LL2_TYPE_FCOE,8,3          ; @QED_LL2_TYPE_FCOE
	.comm	_QED_MF_LL2_NON_UNICAST,4,2     ; @QED_MF_LL2_NON_UNICAST
	.comm	_QED_LL2_TYPE_ROCE,4,2          ; @QED_LL2_TYPE_ROCE
	.comm	_QED_LL2_TYPE_IWARP,4,2         ; @QED_LL2_TYPE_IWARP
	.no_dead_strip	_qed_sp_ll2_rx_queue_start
.subsections_via_symbols
