	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_init_roce_client_instance
_hclge_init_roce_client_instance:       ## @hclge_init_roce_client_instance
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_hnae3_dev_roce_supported
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.2:
	cmpl	$0, 16(%r15)
	je	LBB0_14
## %bb.3:
	movq	%r14, %rdi
	callq	_hclge_init_roce_base_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movl	12(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	_HCLGE_STATE_ROCE_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_HCLGE_STATE_RST_HANDLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	12(%r15), %eax
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_hclge_config_rocee_ras_interrupt
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	_HCLGE_STATE_ROCE_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_clear_bit
	movq	_HCLGE_STATE_RST_HANDLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_HCLGE_WAIT_RESET_DONE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_msleep
	movq	_HCLGE_STATE_RST_HANDLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
LBB0_13:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_hnae3_set_client_init_flag
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_ROCE_REGISTERED,4,2 ## @HCLGE_STATE_ROCE_REGISTERED
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ## @HCLGE_STATE_RST_HANDLING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail(%d) to enable roce ras interrupts\n"

	.comm	_HCLGE_WAIT_RESET_DONE,4,2      ## @HCLGE_WAIT_RESET_DONE
	.no_dead_strip	_hclge_init_roce_client_instance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_init_roce_client_instance
_hclge_init_roce_client_instance:       ; @hclge_init_roce_client_instance
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_hnae3_dev_roce_supported
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x24, [x20]
	cbz	x24, LBB0_9
; %bb.2:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_hclge_init_roce_base_info
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w27, [x20, #12]
	ldr	x8, [x24]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh0:
	adrp	x26, _HCLGE_STATE_ROCE_REGISTERED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HCLGE_STATE_ROCE_REGISTERED@GOTPAGEOFF]
	ldr	w0, [x26]
	add	x21, x20, #8
	mov	x1, x21
	bl	_set_bit
Lloh2:
	adrp	x25, _HCLGE_STATE_RST_HANDLING@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HCLGE_STATE_RST_HANDLING@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x20, #12]
	cmp	w27, w8
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x20
	mov	w1, #1
	bl	_hclge_config_rocee_ras_interrupt
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.8:
	ldr	x0, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_12
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.13:
Lloh9:
	adrp	x23, _HCLGE_WAIT_RESET_DONE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _HCLGE_WAIT_RESET_DONE@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_msleep
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_14
LBB0_15:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	b	LBB0_10
LBB0_16:
	mov	x0, x24
	mov	x1, x23
	mov	w2, #1
	bl	_hnae3_set_client_init_flag
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_ROCE_REGISTERED,4,2 ; @HCLGE_STATE_ROCE_REGISTERED
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ; @HCLGE_STATE_RST_HANDLING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail(%d) to enable roce ras interrupts\n"

	.comm	_HCLGE_WAIT_RESET_DONE,4,2      ; @HCLGE_WAIT_RESET_DONE
	.no_dead_strip	_hclge_init_roce_client_instance
.subsections_via_symbols
