	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_destroy_eqc
_hns_roce_v2_destroy_eqc:               ## @hns_roce_v2_destroy_eqc
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_HNS_ROCE_V2_EQN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%esi, %ecx
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	_HNS_ROCE_CMD_DESTROY_CEQC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HNS_ROCE_CMD_DESTROY_AEQC@GOTPCREL(%rip), %rax
LBB0_3:
	movq	8(%rdi), %r14
	movl	(%rax), %r9d
	movq	_HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_hns_roce_cmd_mbox
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_V2_EQN_M,4,2          ## @HNS_ROCE_V2_EQN_M
	.comm	_HNS_ROCE_CMD_DESTROY_CEQC,4,2  ## @HNS_ROCE_CMD_DESTROY_CEQC
	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ## @HNS_ROCE_CMD_TIMEOUT_MSECS
	.comm	_HNS_ROCE_CMD_DESTROY_AEQC,4,2  ## @HNS_ROCE_CMD_DESTROY_AEQC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[mailbox cmd] destroy eqc(%d) failed.\n"

	.no_dead_strip	_hns_roce_v2_destroy_eqc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v2_destroy_eqc
_hns_roce_v2_destroy_eqc:               ; @hns_roce_v2_destroy_eqc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HNS_ROCE_V2_EQN_M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNS_ROCE_V2_EQN_M@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w3, w9, w1
Lloh3:
	adrp	x9, _HNS_ROCE_CMD_DESTROY_CEQC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HNS_ROCE_CMD_DESTROY_CEQC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _HNS_ROCE_CMD_DESTROY_AEQC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HNS_ROCE_CMD_DESTROY_AEQC@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x9, x10, gt
	ldr	w5, [x8]
Lloh7:
	adrp	x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGEOFF]
Lloh9:
	ldr	w6, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_hns_roce_cmd_mbox
	cbz	w0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_V2_EQN_M,4,2          ; @HNS_ROCE_V2_EQN_M
	.comm	_HNS_ROCE_CMD_DESTROY_CEQC,4,2  ; @HNS_ROCE_CMD_DESTROY_CEQC
	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ; @HNS_ROCE_CMD_TIMEOUT_MSECS
	.comm	_HNS_ROCE_CMD_DESTROY_AEQC,4,2  ; @HNS_ROCE_CMD_DESTROY_AEQC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[mailbox cmd] destroy eqc(%d) failed.\n"

	.no_dead_strip	_hns_roce_v2_destroy_eqc
.subsections_via_symbols
