	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_roce_init_hw               ## -- Begin function qed_roce_init_hw
	.p2align	4, 0x90
_qed_roce_init_hw:                      ## @qed_roce_init_hw
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PRS_REG_ROCE_DEST_QP_MAX_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_qed_wr
	movq	_PRS_REG_SEARCH_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_PRS_REG_LIGHT_L2_ETHERTYPE_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qed_rd
	movl	(%r12), %edx
	orl	$1, %eax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %ecx
	callq	_qed_wr
	movq	_PROTOCOLID_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qed_cxt_get_proto_cid_start
	testb	$1, %al
	jne	LBB0_1
## %bb.2:
	movq	_QED_MSG_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_DP_VERBOSE
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRS_REG_ROCE_DEST_QP_MAX_PF,4,2 ## @PRS_REG_ROCE_DEST_QP_MAX_PF
	.comm	_PRS_REG_SEARCH_ROCE,4,2        ## @PRS_REG_SEARCH_ROCE
	.comm	_PRS_REG_LIGHT_L2_ETHERTYPE_EN,4,2 ## @PRS_REG_LIGHT_L2_ETHERTYPE_EN
	.comm	_PROTOCOLID_ROCE,4,2            ## @PROTOCOLID_ROCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The first RoCE's cid should be even\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MSG_RDMA,4,2               ## @QED_MSG_RDMA
L_.str.1:                               ## @.str.1
	.asciz	"Initializing HW - Done\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_roce_init_hw               ; -- Begin function qed_roce_init_hw
	.p2align	2
_qed_roce_init_hw:                      ; @qed_roce_init_hw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _PRS_REG_ROCE_DEST_QP_MAX_PF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRS_REG_ROCE_DEST_QP_MAX_PF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_qed_wr
Lloh3:
	adrp	x8, _PRS_REG_SEARCH_ROCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRS_REG_SEARCH_ROCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh6:
	adrp	x21, _PRS_REG_LIGHT_L2_ETHERTYPE_EN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PRS_REG_LIGHT_L2_ETHERTYPE_EN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rd
	ldr	w2, [x21]
	orr	w3, w0, #0x1
	mov	x0, x19
	mov	x1, x20
	bl	_qed_wr
Lloh8:
	adrp	x8, _PROTOCOLID_ROCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PROTOCOLID_ROCE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qed_cxt_get_proto_cid_start
	tbnz	w0, #0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _QED_MSG_RDMA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QED_MSG_RDMA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PRS_REG_ROCE_DEST_QP_MAX_PF,4,2 ; @PRS_REG_ROCE_DEST_QP_MAX_PF
	.comm	_PRS_REG_SEARCH_ROCE,4,2        ; @PRS_REG_SEARCH_ROCE
	.comm	_PRS_REG_LIGHT_L2_ETHERTYPE_EN,4,2 ; @PRS_REG_LIGHT_L2_ETHERTYPE_EN
	.comm	_PROTOCOLID_ROCE,4,2            ; @PROTOCOLID_ROCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The first RoCE's cid should be even\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MSG_RDMA,4,2               ; @QED_MSG_RDMA
l_.str.1:                               ; @.str.1
	.asciz	"Initializing HW - Done\n"

.subsections_via_symbols
