	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_init_hem
_hns_roce_init_hem:                     ## @hns_roce_init_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	192(%rdi), %r13
	movq	_HEM_TYPE_MTT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	40(%rdi), %ecx
	movq	168(%rdi), %r8
	movq	%rdi, %rsi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_53
LBB0_2:
	movq	_HEM_TYPE_CQE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hns_roce_check_whether_mhop
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	4(%rbx), %rsi
	movl	(%r14), %edx
	movl	40(%rbx), %ecx
	movq	160(%rbx), %r8
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_52
LBB0_5:
	leaq	8(%rbx), %r15
	movq	_HEM_TYPE_MTPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	44(%rbx), %ecx
	movq	152(%rbx), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_50
LBB0_7:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	20(%rbx), %r12
	movq	_HEM_TYPE_QPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	48(%rbx), %ecx
	movq	128(%rbx), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_49
LBB0_9:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%rbx), %r12
	movq	_HEM_TYPE_IRRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	56(%rbx), %ecx
	imull	52(%rbx), %ecx
	movq	128(%rbx), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_11:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	60(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.12:
	leaq	28(%rbx), %rsi
	movq	_HEM_TYPE_TRRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	64(%rbx), %ecx
	movq	128(%rbx), %r8
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_47
LBB0_14:
	leaq	176(%rbx), %r12
	movq	_HEM_TYPE_CQC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	68(%rbx), %ecx
	movq	144(%rbx), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_16:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	72(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.17:
	leaq	180(%rbx), %rsi
	movq	_HEM_TYPE_SRQC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	136(%rbx), %r8
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_19:
	movq	96(%rbx), %r8
	testq	%r8, %r8
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:
	leaq	12(%rbx), %rsi
	movq	_HEM_TYPE_SRQWQE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	40(%rbx), %ecx
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_22:
	movq	104(%rbx), %r8
	testq	%r8, %r8
	je	LBB0_25
## %bb.23:
	leaq	16(%rbx), %rsi
	movq	_HEM_TYPE_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	76(%rbx), %ecx
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_25:
	movl	80(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.26:
	leaq	32(%rbx), %rsi
	movq	_HEM_TYPE_SCCC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	128(%rbx), %r8
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_38
LBB0_28:
	movl	84(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_31
## %bb.29:
	leaq	184(%rbx), %rsi
	movq	_HEM_TYPE_QPC_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	120(%rbx), %r8
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %r15d
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_36
LBB0_31:
	movl	88(%rbx), %ecx
	xorl	%r12d, %r12d
	testl	%ecx, %ecx
	je	LBB0_53
## %bb.32:
	leaq	188(%rbx), %rsi
	movq	_HEM_TYPE_CQC_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	112(%rbx), %r8
	movq	%rbx, %rdi
	movl	$1, %r9d
	callq	_hns_roce_init_hem_table
	testl	%eax, %eax
	je	LBB0_53
## %bb.33:
	movl	%eax, %r15d
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	cmpl	$0, 84(%rbx)
	je	LBB0_35
## %bb.34:
	leaq	184(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_35:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_36:
	cmpl	$0, 80(%rbx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	leaq	32(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_38:
	cmpq	$0, 104(%rbx)
	je	LBB0_40
## %bb.39:
	leaq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_40:
	cmpq	$0, 96(%rbx)
	je	LBB0_42
## %bb.41:
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_42:
	cmpl	$0, 72(%rbx)
	je	LBB0_44
## %bb.43:
	leaq	180(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_44:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_hns_roce_cleanup_hem_table
LBB0_45:
	cmpl	$0, 60(%rbx)
	je	LBB0_47
## %bb.46:
	leaq	28(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_47:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_hns_roce_cleanup_hem_table
LBB0_48:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hns_roce_cleanup_hem_table
LBB0_49:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_hns_roce_cleanup_hem_table
	movl	%r15d, %r12d
LBB0_50:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hns_roce_check_whether_mhop
	testq	%rax, %rax
	je	LBB0_52
## %bb.51:
	leaq	4(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_hns_roce_cleanup_hem_table
LBB0_52:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_hns_roce_cleanup_hem_table
LBB0_53:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEM_TYPE_MTT,4,2               ## @HEM_TYPE_MTT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init MTT context memory, aborting.\n"

	.comm	_HEM_TYPE_CQE,4,2               ## @HEM_TYPE_CQE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init MTT CQE context memory, aborting.\n"

	.comm	_HEM_TYPE_MTPT,4,2              ## @HEM_TYPE_MTPT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init MTPT context memory, aborting.\n"

	.comm	_HEM_TYPE_QPC,4,2               ## @HEM_TYPE_QPC
L_.str.3:                               ## @.str.3
	.asciz	"Failed to init QP context memory, aborting.\n"

	.comm	_HEM_TYPE_IRRL,4,2              ## @HEM_TYPE_IRRL
L_.str.4:                               ## @.str.4
	.asciz	"Failed to init irrl_table memory, aborting.\n"

	.comm	_HEM_TYPE_TRRL,4,2              ## @HEM_TYPE_TRRL
L_.str.5:                               ## @.str.5
	.asciz	"Failed to init trrl_table memory, aborting.\n"

	.comm	_HEM_TYPE_CQC,4,2               ## @HEM_TYPE_CQC
L_.str.6:                               ## @.str.6
	.asciz	"Failed to init CQ context memory, aborting.\n"

	.comm	_HEM_TYPE_SRQC,4,2              ## @HEM_TYPE_SRQC
L_.str.7:                               ## @.str.7
	.asciz	"Failed to init SRQ context memory, aborting.\n"

	.comm	_HEM_TYPE_SRQWQE,4,2            ## @HEM_TYPE_SRQWQE
L_.str.8:                               ## @.str.8
	.asciz	"Failed to init MTT srqwqe memory, aborting.\n"

	.comm	_HEM_TYPE_IDX,4,2               ## @HEM_TYPE_IDX
L_.str.9:                               ## @.str.9
	.asciz	"Failed to init MTT idx memory, aborting.\n"

	.comm	_HEM_TYPE_SCCC,4,2              ## @HEM_TYPE_SCCC
L_.str.10:                              ## @.str.10
	.asciz	"Failed to init SCC context memory, aborting.\n"

	.comm	_HEM_TYPE_QPC_TIMER,4,2         ## @HEM_TYPE_QPC_TIMER
L_.str.11:                              ## @.str.11
	.asciz	"Failed to init QPC timer memory, aborting.\n"

	.comm	_HEM_TYPE_CQC_TIMER,4,2         ## @HEM_TYPE_CQC_TIMER
L_.str.12:                              ## @.str.12
	.asciz	"Failed to init CQC timer memory, aborting.\n"

	.no_dead_strip	_hns_roce_init_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_init_hem
_hns_roce_init_hem:                     ; @hns_roce_init_hem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x23, [x0, #192]
Lloh0:
	adrp	x8, _HEM_TYPE_MTT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEM_TYPE_MTT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w3, [x0, #40]
	ldr	x4, [x0, #168]
	mov	x1, x0
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_52
LBB0_2:
Lloh5:
	adrp	x26, _HEM_TYPE_CQE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _HEM_TYPE_CQE@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_hns_roce_check_whether_mhop
	cbz	x0, LBB0_5
; %bb.3:
	add	x1, x19, #4
	ldr	w2, [x26]
	ldr	w3, [x19, #40]
	ldr	x4, [x19, #160]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_5
; %bb.4:
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_51
LBB0_5:
	add	x20, x19, #8
Lloh9:
	adrp	x8, _HEM_TYPE_MTPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HEM_TYPE_MTPT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w3, [x19, #44]
	ldr	x4, [x19, #152]
	mov	x0, x19
	mov	x1, x20
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_7
; %bb.6:
	mov	x24, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_49
LBB0_7:
	add	x21, x19, #20
Lloh14:
	adrp	x8, _HEM_TYPE_QPC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HEM_TYPE_QPC@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x19, #48]
	ldr	x4, [x19, #128]
	mov	x0, x19
	mov	x1, x21
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_9
; %bb.8:
	mov	x24, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_48
LBB0_9:
Lloh19:
	adrp	x8, _HEM_TYPE_IRRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HEM_TYPE_IRRL@GOTPAGEOFF]
	add	x22, x19, #24
Lloh21:
	ldr	w2, [x8]
	ldp	w8, w9, [x19, #52]
	mul	w3, w9, w8
	ldr	x4, [x19, #128]
	mov	x0, x19
	mov	x1, x22
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_11
; %bb.10:
	mov	x24, x0
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_47
LBB0_11:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_14
; %bb.12:
	add	x1, x19, #28
Lloh24:
	adrp	x9, _HEM_TYPE_TRRL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HEM_TYPE_TRRL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x9]
	ldr	w9, [x19, #64]
	mul	w3, w9, w8
	ldr	x4, [x19, #128]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_46
LBB0_14:
	add	x25, x19, #176
Lloh29:
	adrp	x8, _HEM_TYPE_CQC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HEM_TYPE_CQC@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	w3, [x19, #68]
	ldr	x4, [x19, #144]
	mov	x0, x19
	mov	x1, x25
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_16
; %bb.15:
	mov	x24, x0
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_44
LBB0_16:
	ldr	w3, [x19, #72]
	cbz	w3, LBB0_19
; %bb.17:
	add	x1, x19, #180
Lloh34:
	adrp	x8, _HEM_TYPE_SRQC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HEM_TYPE_SRQC@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	ldr	x4, [x19, #136]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_19
; %bb.18:
	mov	x24, x0
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_43
LBB0_19:
	ldr	x4, [x19, #96]
	cbz	x4, LBB0_22
; %bb.20:
	add	x1, x19, #12
Lloh39:
	adrp	x8, _HEM_TYPE_SRQWQE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HEM_TYPE_SRQWQE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	ldr	w3, [x19, #40]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_22
; %bb.21:
	mov	x24, x0
Lloh42:
	adrp	x1, l_.str.8@PAGE
Lloh43:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_41
LBB0_22:
	ldr	x4, [x19, #104]
	cbz	x4, LBB0_25
; %bb.23:
	add	x1, x19, #16
Lloh44:
	adrp	x8, _HEM_TYPE_IDX@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HEM_TYPE_IDX@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	ldr	w3, [x19, #76]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_25
; %bb.24:
	mov	x24, x0
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_39
LBB0_25:
	ldr	w3, [x19, #80]
	cbz	w3, LBB0_28
; %bb.26:
	add	x1, x19, #32
Lloh49:
	adrp	x8, _HEM_TYPE_SCCC@GOTPAGE
Lloh50:
	ldr	x8, [x8, _HEM_TYPE_SCCC@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	ldr	x4, [x19, #128]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_28
; %bb.27:
	mov	x24, x0
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_37
LBB0_28:
	ldr	w3, [x19, #84]
	cbz	w3, LBB0_31
; %bb.29:
	add	x1, x19, #184
Lloh54:
	adrp	x8, _HEM_TYPE_QPC_TIMER@GOTPAGE
Lloh55:
	ldr	x8, [x8, _HEM_TYPE_QPC_TIMER@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	ldr	x4, [x19, #120]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	cbz	w0, LBB0_31
; %bb.30:
	mov	x24, x0
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_35
LBB0_31:
	ldr	w3, [x19, #88]
	cbz	w3, LBB0_53
; %bb.32:
	add	x1, x19, #188
Lloh59:
	adrp	x8, _HEM_TYPE_CQC_TIMER@GOTPAGE
Lloh60:
	ldr	x8, [x8, _HEM_TYPE_CQC_TIMER@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	ldr	x4, [x19, #112]
	mov	x0, x19
	mov	w5, #1
	bl	_hns_roce_init_hem_table
	mov	x24, x0
	cbz	w0, LBB0_52
; %bb.33:
Lloh62:
	adrp	x1, l_.str.12@PAGE
Lloh63:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	ldr	w8, [x19, #84]
	cbz	w8, LBB0_35
; %bb.34:
	add	x1, x19, #184
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_35:
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_37
; %bb.36:
	add	x1, x19, #32
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_37:
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_39
; %bb.38:
	add	x1, x19, #16
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_39:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_41
; %bb.40:
	add	x1, x19, #12
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_41:
	ldr	w8, [x19, #72]
	cbz	w8, LBB0_43
; %bb.42:
	add	x1, x19, #180
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_43:
	mov	x0, x19
	mov	x1, x25
	bl	_hns_roce_cleanup_hem_table
LBB0_44:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_46
; %bb.45:
	add	x1, x19, #28
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_46:
	mov	x0, x19
	mov	x1, x22
	bl	_hns_roce_cleanup_hem_table
LBB0_47:
	mov	x0, x19
	mov	x1, x21
	bl	_hns_roce_cleanup_hem_table
LBB0_48:
	mov	x0, x19
	mov	x1, x20
	bl	_hns_roce_cleanup_hem_table
LBB0_49:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_hns_roce_check_whether_mhop
	cbz	x0, LBB0_51
; %bb.50:
	add	x1, x19, #4
	mov	x0, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_51:
	mov	x0, x19
	mov	x1, x19
	bl	_hns_roce_cleanup_hem_table
LBB0_52:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_53:
	mov	w24, #0
	b	LBB0_52
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_HEM_TYPE_MTT,4,2               ; @HEM_TYPE_MTT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init MTT context memory, aborting.\n"

	.comm	_HEM_TYPE_CQE,4,2               ; @HEM_TYPE_CQE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init MTT CQE context memory, aborting.\n"

	.comm	_HEM_TYPE_MTPT,4,2              ; @HEM_TYPE_MTPT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init MTPT context memory, aborting.\n"

	.comm	_HEM_TYPE_QPC,4,2               ; @HEM_TYPE_QPC
l_.str.3:                               ; @.str.3
	.asciz	"Failed to init QP context memory, aborting.\n"

	.comm	_HEM_TYPE_IRRL,4,2              ; @HEM_TYPE_IRRL
l_.str.4:                               ; @.str.4
	.asciz	"Failed to init irrl_table memory, aborting.\n"

	.comm	_HEM_TYPE_TRRL,4,2              ; @HEM_TYPE_TRRL
l_.str.5:                               ; @.str.5
	.asciz	"Failed to init trrl_table memory, aborting.\n"

	.comm	_HEM_TYPE_CQC,4,2               ; @HEM_TYPE_CQC
l_.str.6:                               ; @.str.6
	.asciz	"Failed to init CQ context memory, aborting.\n"

	.comm	_HEM_TYPE_SRQC,4,2              ; @HEM_TYPE_SRQC
l_.str.7:                               ; @.str.7
	.asciz	"Failed to init SRQ context memory, aborting.\n"

	.comm	_HEM_TYPE_SRQWQE,4,2            ; @HEM_TYPE_SRQWQE
l_.str.8:                               ; @.str.8
	.asciz	"Failed to init MTT srqwqe memory, aborting.\n"

	.comm	_HEM_TYPE_IDX,4,2               ; @HEM_TYPE_IDX
l_.str.9:                               ; @.str.9
	.asciz	"Failed to init MTT idx memory, aborting.\n"

	.comm	_HEM_TYPE_SCCC,4,2              ; @HEM_TYPE_SCCC
l_.str.10:                              ; @.str.10
	.asciz	"Failed to init SCC context memory, aborting.\n"

	.comm	_HEM_TYPE_QPC_TIMER,4,2         ; @HEM_TYPE_QPC_TIMER
l_.str.11:                              ; @.str.11
	.asciz	"Failed to init QPC timer memory, aborting.\n"

	.comm	_HEM_TYPE_CQC_TIMER,4,2         ; @HEM_TYPE_CQC_TIMER
l_.str.12:                              ; @.str.12
	.asciz	"Failed to init CQC timer memory, aborting.\n"

	.no_dead_strip	_hns_roce_init_hem
.subsections_via_symbols
