	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_rdma_start_fw
_qed_rdma_start_fw:                     ## @qed_rdma_start_fw
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_DP_VERBOSE
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	12(%r12), %eax
	movl	%eax, -60(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_RDMA_RAMROD_FUNC_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movl	16(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_qed_sp_init_request
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	callq	_QED_IS_IWARP_PERSONALITY
	movq	-48(%rbp), %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	addq	$32, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_qed_iwarp_init_fw_ramrod
	movq	-48(%rbp), %r15
	addq	$32, %r15
LBB0_3:
	movq	_QED_RDMA_CNQ_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_RESC_START
	movq	%rax, 24(%r15)
	movq	(%r14), %rax
	movq	%rax, 8(%r15)
	movq	8(%r14), %rax
	movq	_QED_RDMA_CQ_MODE_16_BITS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 16(%r15)
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	movl	$24, %r13d
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_qed_rdma_get_sb_id
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_qed_get_igu_sb_id
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%r15, %r14
	movq	(%r15), %r15
	movq	%rax, (%r15,%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	8(%r12), %ecx
	movl	%ecx, -8(%r15,%r13)
	movl	4(%rax,%rbx,8), %ecx
	movl	%ecx, -12(%r15,%r13)
	movl	-16(%r15,%r13), %edi
	movl	(%rax,%rbx,8), %esi
	callq	_DMA_REGPAIR_LE
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	addq	%rbx, %rdi
	callq	_cpu_to_le16
	movq	%rax, -24(%r15,%r13)
	movq	%r14, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incq	%rbx
	addq	$32, %r13
	cmpq	(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting FW\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_FUNC_INIT,4,2      ## @RDMA_RAMROD_FUNC_INIT
	.comm	_QED_RDMA_CNQ_RAM,4,2           ## @QED_RDMA_CNQ_RAM
	.comm	_QED_RDMA_CQ_MODE_16_BITS,8,3   ## @QED_RDMA_CQ_MODE_16_BITS
	.no_dead_strip	_qed_rdma_start_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_rdma_start_fw
_qed_rdma_start_fw:                     ; @qed_rdma_start_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	x8, [x9]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19, #12]
Lloh5:
	adrp	x9, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
Lloh8:
	adrp	x8, _RDMA_RAMROD_FUNC_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RDMA_RAMROD_FUNC_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8, #16]
	mov	x1, sp
	add	x4, sp, #8
	mov	x0, x19
	bl	_qed_sp_init_request
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_QED_IS_IWARP_PERSONALITY
	ldr	x22, [sp]
	cbz	x0, LBB0_3
; %bb.2:
	add	x1, x22, #32
	mov	x0, x19
	bl	_qed_iwarp_init_fw_ramrod
	ldr	x8, [sp]
	add	x22, x8, #32
LBB0_3:
Lloh11:
	adrp	x8, _QED_RDMA_CNQ_RAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_RDMA_CNQ_RAM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RESC_START
	str	x0, [x22, #24]
	ldr	x8, [x20]
	str	x8, [x22, #8]
Lloh14:
	adrp	x8, _QED_RDMA_CQ_MODE_16_BITS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QED_RDMA_CQ_MODE_16_BITS@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh16:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, eq
	str	w8, [x22, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x23, #0
	mov	x21, #0
	mov	w24, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rdma_get_sb_id
	mov	x1, x0
	mov	x0, x19
	bl	_qed_get_igu_sb_id
	bl	_cpu_to_le16
	ldr	x8, [x22]
	add	x25, x8, x23
	str	x0, [x25, #24]
	ldr	x8, [x20, #16]
	ldr	w9, [x19, #8]
	str	w9, [x25, #16]
	add	x8, x8, x24
	ldr	w9, [x8]
	str	w9, [x25, #12]
	ldr	w0, [x25, #8]
	ldur	w1, [x8, #-4]
	bl	_DMA_REGPAIR_LE
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x0, x21, x8
	bl	_cpu_to_le16
	str	x0, [x25]
	add	x21, x21, #1
	ldr	x8, [x20]
	add	x23, x23, #32
	add	x24, x24, #8
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	x1, [sp]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting FW\n"

	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_RDMA_RAMROD_FUNC_INIT,4,2      ; @RDMA_RAMROD_FUNC_INIT
	.comm	_QED_RDMA_CNQ_RAM,4,2           ; @QED_RDMA_CNQ_RAM
	.comm	_QED_RDMA_CQ_MODE_16_BITS,8,3   ; @QED_RDMA_CQ_MODE_16_BITS
	.no_dead_strip	_qed_rdma_start_fw
.subsections_via_symbols
