	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_setup                ## -- Begin function qed_iwarp_setup
	.p2align	4, 0x90
_qed_iwarp_setup:                       ## @qed_iwarp_setup
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	8(%rdi), %r15
	movq	_QED_IWARP_TS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	%r15, %rdi
	callq	_QED_IS_BB
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_CHIP_K2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CHIP_BB@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_qed_device_num_ports
	cmpl	$4, %eax
	movq	_qed_iwarp_rcv_wnd_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rbx,8), %rcx
	leaq	4(%rax,%rbx,8), %rax
	cmoveq	%rcx, %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ilog2
	movl	%eax, %ebx
	movq	_QED_IWARP_RCV_WND_SIZE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
	subl	%eax, %ebx
	movl	%r15d, %eax
	movl	%ebx, %ecx
	sarl	%cl, %eax
	movl	%ebx, (%r13)
	movl	%eax, 4(%r13)
	movq	_QED_IWARP_PARAM_CRC_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	_MPA_NEGOTIATION_TYPE_ENHANCED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_QED_IWARP_PARAM_P2P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_MPA_RTR_TYPE_ZERO_SEND@GOTPCREL(%rip), %rax
	movq	_MPA_RTR_TYPE_ZERO_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MPA_RTR_TYPE_ZERO_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%r13)
	movq	(%r12), %rdi
	addq	$20, %rdi
	callq	_spin_lock_init
	movq	(%r12), %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r12), %rdi
	addq	$12, %rdi
	callq	_INIT_LIST_HEAD
	movq	_PROTOCOLID_IWARP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_qed_iwarp_async_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_qed_spq_register_async_cb
	movq	%r12, %rdi
	callq	_qed_ooo_setup
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qed_iwarp_ll2_start            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_IWARP_TS_EN,4,2            ## @QED_IWARP_TS_EN
	.comm	_CHIP_BB,4,2                    ## @CHIP_BB
	.comm	_CHIP_K2,4,2                    ## @CHIP_K2
	.comm	_qed_iwarp_rcv_wnd_size,8,3     ## @qed_iwarp_rcv_wnd_size
	.comm	_QED_IWARP_RCV_WND_SIZE_MIN,4,2 ## @QED_IWARP_RCV_WND_SIZE_MIN
	.comm	_QED_IWARP_PARAM_CRC_NEEDED,4,2 ## @QED_IWARP_PARAM_CRC_NEEDED
	.comm	_MPA_NEGOTIATION_TYPE_ENHANCED,4,2 ## @MPA_NEGOTIATION_TYPE_ENHANCED
	.comm	_QED_IWARP_PARAM_P2P,4,2        ## @QED_IWARP_PARAM_P2P
	.comm	_MPA_RTR_TYPE_ZERO_SEND,4,2     ## @MPA_RTR_TYPE_ZERO_SEND
	.comm	_MPA_RTR_TYPE_ZERO_WRITE,4,2    ## @MPA_RTR_TYPE_ZERO_WRITE
	.comm	_MPA_RTR_TYPE_ZERO_READ,4,2     ## @MPA_RTR_TYPE_ZERO_READ
	.comm	_PROTOCOLID_IWARP,4,2           ## @PROTOCOLID_IWARP
	.comm	_qed_iwarp_async_event,4,2      ## @qed_iwarp_async_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iwarp_setup                ; -- Begin function qed_iwarp_setup
	.p2align	2
_qed_iwarp_setup:                       ; @qed_iwarp_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldp	x23, x21, [x0]
Lloh0:
	adrp	x8, _QED_IWARP_TS_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_IWARP_TS_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x23, #36]
	mov	x0, x21
	bl	_QED_IS_BB
Lloh3:
	adrp	x8, _CHIP_BB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHIP_BB@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CHIP_K2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHIP_K2@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w22, [x8]
	mov	x0, x21
	bl	_qed_device_num_ports
Lloh7:
	adrp	x8, _qed_iwarp_rcv_wnd_size@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qed_iwarp_rcv_wnd_size@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x8, x8, x22, lsl #3
	add	x9, x8, #4
	cmp	w0, #4
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ilog2
	mov	x22, x0
Lloh10:
	adrp	x8, _QED_IWARP_RCV_WND_SIZE_MIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QED_IWARP_RCV_WND_SIZE_MIN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_ilog2
	sub	w8, w22, w0
	asr	w9, w21, w8
	stp	w8, w9, [x23]
Lloh13:
	adrp	x8, _QED_IWARP_PARAM_CRC_NEEDED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QED_IWARP_PARAM_CRC_NEEDED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x23, #32]
Lloh16:
	adrp	x8, _MPA_NEGOTIATION_TYPE_ENHANCED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MPA_NEGOTIATION_TYPE_ENHANCED@GOTPAGEOFF]
Lloh18:
	adrp	x9, _QED_IWARP_PARAM_P2P@GOTPAGE
Lloh19:
	ldr	x9, [x9, _QED_IWARP_PARAM_P2P@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #24]
Lloh22:
	adrp	x8, _MPA_RTR_TYPE_ZERO_SEND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MPA_RTR_TYPE_ZERO_SEND@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _MPA_RTR_TYPE_ZERO_WRITE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MPA_RTR_TYPE_ZERO_WRITE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _MPA_RTR_TYPE_ZERO_READ@GOTPAGE
Lloh29:
	ldr	x10, [x10, _MPA_RTR_TYPE_ZERO_READ@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh30:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [x23, #8]
	ldr	x8, [x20]
	add	x0, x8, #20
	bl	_spin_lock_init
	ldr	x8, [x20]
	add	x0, x8, #16
	bl	_INIT_LIST_HEAD
	ldr	x8, [x20]
	add	x0, x8, #12
	bl	_INIT_LIST_HEAD
Lloh31:
	adrp	x8, _PROTOCOLID_IWARP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PROTOCOLID_IWARP@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _qed_iwarp_async_event@GOTPAGE
Lloh35:
	ldr	x8, [x8, _qed_iwarp_async_event@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_qed_spq_register_async_cb
	mov	x0, x20
	bl	_qed_ooo_setup
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_qed_iwarp_ll2_start
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_IWARP_TS_EN,4,2            ; @QED_IWARP_TS_EN
	.comm	_CHIP_BB,4,2                    ; @CHIP_BB
	.comm	_CHIP_K2,4,2                    ; @CHIP_K2
	.comm	_qed_iwarp_rcv_wnd_size,8,3     ; @qed_iwarp_rcv_wnd_size
	.comm	_QED_IWARP_RCV_WND_SIZE_MIN,4,2 ; @QED_IWARP_RCV_WND_SIZE_MIN
	.comm	_QED_IWARP_PARAM_CRC_NEEDED,4,2 ; @QED_IWARP_PARAM_CRC_NEEDED
	.comm	_MPA_NEGOTIATION_TYPE_ENHANCED,4,2 ; @MPA_NEGOTIATION_TYPE_ENHANCED
	.comm	_QED_IWARP_PARAM_P2P,4,2        ; @QED_IWARP_PARAM_P2P
	.comm	_MPA_RTR_TYPE_ZERO_SEND,4,2     ; @MPA_RTR_TYPE_ZERO_SEND
	.comm	_MPA_RTR_TYPE_ZERO_WRITE,4,2    ; @MPA_RTR_TYPE_ZERO_WRITE
	.comm	_MPA_RTR_TYPE_ZERO_READ,4,2     ; @MPA_RTR_TYPE_ZERO_READ
	.comm	_PROTOCOLID_IWARP,4,2           ; @PROTOCOLID_IWARP
	.comm	_qed_iwarp_async_event,4,2      ; @qed_iwarp_async_event
.subsections_via_symbols
