	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_hns_roce_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ib_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_alloc_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hns_roce_hw_v2_get_cfg
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_hns_roce_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	8(%rbx), %rdi
	callq	_dev_err
	movl	4(%rbx), %edi
	callq	_kfree
LBB0_9:
	movq	%rbx, %rdi
	callq	_ib_dealloc_device
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_hns_roce_dev,4,2               ## @hns_roce_dev
	.comm	_ib_dev,4,2                     ## @ib_dev
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get Configuration failed!\n"

L_.str.1:                               ## @.str.1
	.asciz	"RoCE Engine init failed!\n"

	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
Lloh0:
	adrp	x8, _hns_roce_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hns_roce_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ib_dev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_dev@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ib_alloc_device
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
	stp	x8, x8, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_hns_roce_hw_v2_get_cfg
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_hns_roce_init
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_dev_err
	ldr	w0, [x19, #4]
	bl	_kfree
LBB0_9:
	mov	x0, x19
	bl	_ib_dealloc_device
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	str	x19, [x21]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_hns_roce_dev,4,2               ; @hns_roce_dev
	.comm	_ib_dev,4,2                     ; @ib_dev
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get Configuration failed!\n"

l_.str.1:                               ; @.str.1
	.asciz	"RoCE Engine init failed!\n"

	.no_dead_strip	___hns_roce_hw_v2_init_instance
.subsections_via_symbols
