	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_eq_cons_index_v2
_set_eq_cons_index_v2:                  ## @set_eq_cons_index_v2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	32(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	(%rdi), %rax
	movq	_HNS_ROCE_AEQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_HNS_ROCE_EQ_DB_CMD_AEQ_ARMED@GOTPCREL(%rip), %rax
	movq	_HNS_ROCE_EQ_DB_CMD_AEQ@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_HNS_ROCE_V2_EQ_DB_TAG_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V2_EQ_DB_TAG_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rbx), %ecx
	xorl	%edi, %edi
	callq	_roce_set_field
	movq	_HNS_ROCE_EQ_DB_CMD_CEQ_ARMED@GOTPCREL(%rip), %rax
	movq	_HNS_ROCE_EQ_DB_CMD_CEQ@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	_HNS_ROCE_V2_EQ_DB_CMD_M@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_HNS_ROCE_V2_EQ_DB_CMD_S@GOTPCREL(%rip), %r8
	movq	8(%rbx), %rdi
	movq	_HNS_ROCE_V2_EQ_ALWAYS_ARMED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	movl	(%r8), %edx
	cmovneq	%rax, %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	callq	_roce_set_field
	movq	_HNS_ROCE_V2_EQ_DB_PARA_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V2_EQ_DB_PARA_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HNS_ROCE_V2_CONS_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	20(%rbx), %ecx
	xorl	%edi, %edi
	callq	_roce_set_field
	movl	24(%rbx), %edx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_hns_roce_write64
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_AEQ,8,3               ## @HNS_ROCE_AEQ
	.comm	_HNS_ROCE_V2_EQ_DB_CMD_M,4,2    ## @HNS_ROCE_V2_EQ_DB_CMD_M
	.comm	_HNS_ROCE_V2_EQ_DB_CMD_S,4,2    ## @HNS_ROCE_V2_EQ_DB_CMD_S
	.comm	_HNS_ROCE_V2_EQ_ALWAYS_ARMED,8,3 ## @HNS_ROCE_V2_EQ_ALWAYS_ARMED
	.comm	_HNS_ROCE_EQ_DB_CMD_AEQ,4,2     ## @HNS_ROCE_EQ_DB_CMD_AEQ
	.comm	_HNS_ROCE_EQ_DB_CMD_AEQ_ARMED,4,2 ## @HNS_ROCE_EQ_DB_CMD_AEQ_ARMED
	.comm	_HNS_ROCE_V2_EQ_DB_TAG_M,4,2    ## @HNS_ROCE_V2_EQ_DB_TAG_M
	.comm	_HNS_ROCE_V2_EQ_DB_TAG_S,4,2    ## @HNS_ROCE_V2_EQ_DB_TAG_S
	.comm	_HNS_ROCE_EQ_DB_CMD_CEQ,4,2     ## @HNS_ROCE_EQ_DB_CMD_CEQ
	.comm	_HNS_ROCE_EQ_DB_CMD_CEQ_ARMED,4,2 ## @HNS_ROCE_EQ_DB_CMD_CEQ_ARMED
	.comm	_HNS_ROCE_V2_EQ_DB_PARA_M,4,2   ## @HNS_ROCE_V2_EQ_DB_PARA_M
	.comm	_HNS_ROCE_V2_EQ_DB_PARA_S,4,2   ## @HNS_ROCE_V2_EQ_DB_PARA_S
	.comm	_HNS_ROCE_V2_CONS_IDX_M,4,2     ## @HNS_ROCE_V2_CONS_IDX_M
	.no_dead_strip	_set_eq_cons_index_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_eq_cons_index_v2
_set_eq_cons_index_v2:                  ; @set_eq_cons_index_v2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0, #32]
	stp	xzr, xzr, [sp, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _HNS_ROCE_AEQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HNS_ROCE_AEQ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HNS_ROCE_EQ_DB_CMD_AEQ_ARMED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MED@GOTPAGE
Lloh27:
	ldr	x11, [x11, _HNS_ROCE_V2_EQ_ALWAYS_ARMED@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	mov	x0, #0
	bl	_roce_set_field
Lloh29:
	adrp	x8, _HNS_ROCE_V2_EQ_DB_PARA_M@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HNS_ROCE_V2_EQ_DB_PARA_M@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _HNS_ROCE_V2_EQ_DB_PARA_S@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HNS_ROCE_V2_EQ_DB_PARA_S@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	ldr	w8, [x20, #20]
Lloh35:
	adrp	x9, _HNS_ROCE_V2_CONS_IDX_M@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HNS_ROCE_V2_CONS_IDX_M@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	and	w3, w9, w8
	mov	x0, #0
	bl	_roce_set_field
	ldr	w2, [x20, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_hns_roce_write64
	ldr	x8, [sp, #24]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_AEQ,8,3               ; @HNS_ROCE_AEQ
	.comm	_HNS_ROCE_V2_EQ_DB_CMD_M,4,2    ; @HNS_ROCE_V2_EQ_DB_CMD_M
	.comm	_HNS_ROCE_V2_EQ_DB_CMD_S,4,2    ; @HNS_ROCE_V2_EQ_DB_CMD_S
	.comm	_HNS_ROCE_V2_EQ_ALWAYS_ARMED,8,3 ; @HNS_ROCE_V2_EQ_ALWAYS_ARMED
	.comm	_HNS_ROCE_EQ_DB_CMD_AEQ,4,2     ; @HNS_ROCE_EQ_DB_CMD_AEQ
	.comm	_HNS_ROCE_EQ_DB_CMD_AEQ_ARMED,4,2 ; @HNS_ROCE_EQ_DB_CMD_AEQ_ARMED
	.comm	_HNS_ROCE_V2_EQ_DB_TAG_M,4,2    ; @HNS_ROCE_V2_EQ_DB_TAG_M
	.comm	_HNS_ROCE_V2_EQ_DB_TAG_S,4,2    ; @HNS_ROCE_V2_EQ_DB_TAG_S
	.comm	_HNS_ROCE_EQ_DB_CMD_CEQ,4,2     ; @HNS_ROCE_EQ_DB_CMD_CEQ
	.comm	_HNS_ROCE_EQ_DB_CMD_CEQ_ARMED,4,2 ; @HNS_ROCE_EQ_DB_CMD_CEQ_ARMED
	.comm	_HNS_ROCE_V2_EQ_DB_PARA_M,4,2   ; @HNS_ROCE_V2_EQ_DB_PARA_M
	.comm	_HNS_ROCE_V2_EQ_DB_PARA_S,4,2   ; @HNS_ROCE_V2_EQ_DB_PARA_S
	.comm	_HNS_ROCE_V2_CONS_IDX_M,4,2     ; @HNS_ROCE_V2_CONS_IDX_M
	.no_dead_strip	_set_eq_cons_index_v2
.subsections_via_symbols
