	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iwarp_modify_fw
_qed_iwarp_modify_fw:                   ## @qed_iwarp_modify_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	8(%r14), %eax
	movl	%eax, -40(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_IWARP_RAMROD_CMD_ID_MODIFY_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r15), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %r8
	callq	_qed_sp_init_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-32(%rbp), %rbx
	movl	4(%rbx), %edi
	movq	_IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_SET_FIELD
	movq	(%r14), %rax
	movq	_QED_IWARP_QP_STATE_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_IWARP_MODIFY_QP_STATE_CLOSING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IWARP_MODIFY_QP_STATE_ERROR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %ebx
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	callq	_DP_VERBOSE
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_IWARP_RAMROD_CMD_ID_MODIFY_QP,4,2 ## @IWARP_RAMROD_CMD_ID_MODIFY_QP
	.comm	_IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN,4,2 ## @IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN
	.comm	_QED_IWARP_QP_STATE_CLOSING,8,3 ## @QED_IWARP_QP_STATE_CLOSING
	.comm	_IWARP_MODIFY_QP_STATE_CLOSING,4,2 ## @IWARP_MODIFY_QP_STATE_CLOSING
	.comm	_IWARP_MODIFY_QP_STATE_ERROR,4,2 ## @IWARP_MODIFY_QP_STATE_ERROR
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QP(0x%x)rc=%d\n"

	.no_dead_strip	_qed_iwarp_modify_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iwarp_modify_fw
_qed_iwarp_modify_fw:                   ; @qed_iwarp_modify_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20, #8]
	str	w8, [sp, #24]
	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, #16]
Lloh3:
	adrp	x8, _IWARP_RAMROD_CMD_ID_MODIFY_QP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWARP_RAMROD_CMD_ID_MODIFY_QP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8]
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x0, x19
	bl	_qed_sp_init_request
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x21, [sp, #8]
	ldr	w0, [x21, #4]
Lloh6:
	adrp	x8, _IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_SET_FIELD
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _QED_IWARP_QP_STATE_CLOSING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QED_IWARP_QP_STATE_CLOSING@GOTPAGEOFF]
Lloh11:
	adrp	x10, _IWARP_MODIFY_QP_STATE_CLOSING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IWARP_MODIFY_QP_STATE_CLOSING@GOTPAGEOFF]
Lloh13:
	adrp	x11, _IWARP_MODIFY_QP_STATE_ERROR@GOTPAGE
Lloh14:
	ldr	x11, [x11, _IWARP_MODIFY_QP_STATE_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	mov	x21, x0
Lloh16:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_DP_VERBOSE
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_IWARP_RAMROD_CMD_ID_MODIFY_QP,4,2 ; @IWARP_RAMROD_CMD_ID_MODIFY_QP
	.comm	_IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN,4,2 ; @IWARP_MODIFY_QP_RAMROD_DATA_STATE_TRANS_EN
	.comm	_QED_IWARP_QP_STATE_CLOSING,8,3 ; @QED_IWARP_QP_STATE_CLOSING
	.comm	_IWARP_MODIFY_QP_STATE_CLOSING,4,2 ; @IWARP_MODIFY_QP_STATE_CLOSING
	.comm	_IWARP_MODIFY_QP_STATE_ERROR,4,2 ; @IWARP_MODIFY_QP_STATE_ERROR
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QP(0x%x)rc=%d\n"

	.no_dead_strip	_qed_iwarp_modify_fw
.subsections_via_symbols
