	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_hw_v2_init_instance
_hns_roce_hw_v2_init_instance:          ## @hns_roce_hw_v2_init_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movq	_HNS_ROCE_STATE_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	callq	*8(%r12)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*(%r12)
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_HNS_ROCE_STATE_NON_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_hns_roce_hw_v2_pci_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_pci_match_id
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	___hns_roce_hw_v2_init_instance
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	%eax, %r15d
	movq	_HNS_ROCE_STATE_NON_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	*8(%r12)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	*(%r12)
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	_HNS_ROCE_STATE_INITED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_STATE_INIT,8,3        ## @HNS_ROCE_STATE_INIT
	.comm	_HNS_ROCE_STATE_NON_INIT,8,3    ## @HNS_ROCE_STATE_NON_INIT
	.comm	_hns_roce_hw_v2_pci_tbl,4,2     ## @hns_roce_hw_v2_pci_tbl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RoCE instance init failed! ret = %d\n"

	.comm	_HNS_ROCE_STATE_INITED,8,3      ## @HNS_ROCE_STATE_INITED
L_.str.1:                               ## @.str.1
	.asciz	"Device is busy in resetting state.\nplease retry later.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_hns_roce_hw_v2_init_instance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_hw_v2_init_instance
_hns_roce_hw_v2_init_instance:          ; @hns_roce_hw_v2_init_instance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldp	x19, x8, [x0, #8]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _HNS_ROCE_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	x8, [x22, #8]
	blr	x8
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _HNS_ROCE_STATE_NON_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_ROCE_STATE_NON_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_5:
Lloh11:
	adrp	x8, _hns_roce_hw_v2_pci_tbl@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hns_roce_hw_v2_pci_tbl@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_pci_match_id
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	___hns_roce_hw_v2_init_instance
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _HNS_ROCE_STATE_NON_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HNS_ROCE_STATE_NON_INIT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x20]
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x8, [x22, #8]
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_3
; %bb.8:
	ldr	x8, [x22]
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_9:
	mov	w21, #0
	b	LBB0_4
LBB0_10:
Lloh19:
	adrp	x8, _HNS_ROCE_STATE_INITED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HNS_ROCE_STATE_INITED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_STATE_INIT,8,3        ; @HNS_ROCE_STATE_INIT
	.comm	_HNS_ROCE_STATE_NON_INIT,8,3    ; @HNS_ROCE_STATE_NON_INIT
	.comm	_hns_roce_hw_v2_pci_tbl,4,2     ; @hns_roce_hw_v2_pci_tbl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RoCE instance init failed! ret = %d\n"

	.comm	_HNS_ROCE_STATE_INITED,8,3      ; @HNS_ROCE_STATE_INITED
l_.str.1:                               ; @.str.1
	.asciz	"Device is busy in resetting state.\nplease retry later.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_hns_roce_hw_v2_init_instance
.subsections_via_symbols
