	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_clear_hem
_hns_roce_v2_clear_hem:                 ## @hns_roce_v2_clear_hem
	.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
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	(%rsi), %esi
	callq	_hns_roce_check_whether_mhop
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	(%rbx), %edx
	leal	-128(%rdx), %ecx
	cmpl	$6, %ecx
	ja	LBB0_8
## %bb.2:
	movq	_HNS_ROCE_CMD_DESTROY_QPC_BT0@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_HNS_ROCE_CMD_DESTROY_SRQC_BT0@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_warn
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_HNS_ROCE_CMD_DESTROY_MPT_BT0@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_HNS_ROCE_CMD_DESTROY_CQC_BT0@GOTPCREL(%rip), %rax
LBB0_6:
	movl	%r13d, %ebx
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_hns_roce_alloc_cmd_mailbox
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	addl	%r15d, %r13d
	movl	(%r12), %edx
	movq	_HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	callq	_hns_roce_cmd_mbox
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hns_roce_free_cmd_mailbox
	movl	%ebx, %eax
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_HNS_ROCE_CMD_DESTROY_QPC_BT0,4,2 ## @HNS_ROCE_CMD_DESTROY_QPC_BT0
	.comm	_HNS_ROCE_CMD_DESTROY_MPT_BT0,4,2 ## @HNS_ROCE_CMD_DESTROY_MPT_BT0
	.comm	_HNS_ROCE_CMD_DESTROY_CQC_BT0,4,2 ## @HNS_ROCE_CMD_DESTROY_CQC_BT0
	.comm	_HNS_ROCE_CMD_DESTROY_SRQC_BT0,4,2 ## @HNS_ROCE_CMD_DESTROY_SRQC_BT0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Table %d not to be destroyed by mailbox!\n"

	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ## @HNS_ROCE_CMD_TIMEOUT_MSECS
	.no_dead_strip	_hns_roce_v2_clear_hem
.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_clear_hem
_hns_roce_v2_clear_hem:                 ; @hns_roce_v2_clear_hem
	.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	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w1, [x1]
	bl	_hns_roce_check_whether_mhop
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w2, [x23]
	sub	w9, w2, #128
	cmp	w9, #6
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _HNS_ROCE_CMD_DESTROY_QPC_BT0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_CMD_DESTROY_QPC_BT0@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh4:
	adrp	x8, _HNS_ROCE_CMD_DESTROY_SRQC_BT0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HNS_ROCE_CMD_DESTROY_SRQC_BT0@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ret
LBB0_7:
Lloh8:
	adrp	x8, _HNS_ROCE_CMD_DESTROY_MPT_BT0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HNS_ROCE_CMD_DESTROY_MPT_BT0@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _HNS_ROCE_CMD_DESTROY_CQC_BT0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HNS_ROCE_CMD_DESTROY_CQC_BT0@GOTPAGEOFF]
LBB0_9:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_hns_roce_alloc_cmd_mailbox
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x22
	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	_PTR_ERR
LBB0_11:
	add	w5, w23, w21
	ldr	w2, [x22]
Lloh12:
	adrp	x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNS_ROCE_CMD_TIMEOUT_MSECS@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	mov	w4, #0
	bl	_hns_roce_cmd_mbox
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_hns_roce_free_cmd_mailbox
	mov	x0, x20
	b	LBB0_6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_HNS_ROCE_CMD_DESTROY_QPC_BT0,4,2 ; @HNS_ROCE_CMD_DESTROY_QPC_BT0
	.comm	_HNS_ROCE_CMD_DESTROY_MPT_BT0,4,2 ; @HNS_ROCE_CMD_DESTROY_MPT_BT0
	.comm	_HNS_ROCE_CMD_DESTROY_CQC_BT0,4,2 ; @HNS_ROCE_CMD_DESTROY_CQC_BT0
	.comm	_HNS_ROCE_CMD_DESTROY_SRQC_BT0,4,2 ; @HNS_ROCE_CMD_DESTROY_SRQC_BT0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Table %d not to be destroyed by mailbox!\n"

	.comm	_HNS_ROCE_CMD_TIMEOUT_MSECS,4,2 ; @HNS_ROCE_CMD_TIMEOUT_MSECS
	.no_dead_strip	_hns_roce_v2_clear_hem
.subsections_via_symbols
