	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_register_device
_hns_roce_register_device:              ## @hns_roce_register_device
	.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
	movq	%rdi, %r12
	movq	104(%rdi), %r14
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	_RDMA_NODE_IB_CA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r12)
	movq	%r14, 88(%r12)
	movl	32(%r12), %eax
	movl	%eax, 56(%r12)
	movq	40(%r12), %rax
	movq	%rax, 80(%r12)
	movq	_IB_USER_VERBS_CMD_GET_CONTEXT@GOTPCREL(%rip), %rax
	movb	(%rax), %sil
	movq	_IB_USER_VERBS_CMD_QUERY_DEVICE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	movl	$1, %edx
	btsq	%rsi, %rax
	movq	_IB_USER_VERBS_CMD_QUERY_PORT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_ALLOC_PD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_DEALLOC_PD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_REG_MR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_DEREG_MR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_CREATE_CQ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_DESTROY_CQ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_CREATE_QP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_MODIFY_QP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_QUERY_QP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	_IB_USER_VERBS_CMD_DESTROY_QP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	%rax, 64(%r12)
	movq	_IB_USER_VERBS_EX_CMD_MODIFY_CQ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	leaq	56(%r12), %r15
	orq	%rdx, 72(%r12)
	movl	36(%r12), %ecx
	movq	_HNS_ROCE_CAP_FLAG_REREG_MR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_IB_USER_VERBS_CMD_REREG_MR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rcx, %rax
	movq	%rax, 64(%r12)
	movq	_hns_roce_dev_mr_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
	movl	36(%r12), %ecx
LBB0_2:
	movq	_HNS_ROCE_CAP_FLAG_MW@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_IB_USER_VERBS_CMD_ALLOC_MW@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_IB_USER_VERBS_CMD_DEALLOC_MW@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	btsq	%rax, %rdx
	orq	%rdx, 64(%r12)
	movq	_hns_roce_dev_mw_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
	movl	36(%r12), %ecx
LBB0_4:
	movq	_HNS_ROCE_CAP_FLAG_FRMR@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_hns_roce_dev_frmr_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
	movl	36(%r12), %ecx
LBB0_6:
	movq	_HNS_ROCE_CAP_FLAG_SRQ@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_IB_USER_VERBS_CMD_CREATE_SRQ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_IB_USER_VERBS_CMD_MODIFY_SRQ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	btsq	%rax, %rdx
	movq	_IB_USER_VERBS_CMD_QUERY_SRQ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rdx
	movq	_IB_USER_VERBS_CMD_DESTROY_SRQ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rdx
	movq	_IB_USER_VERBS_CMD_POST_SRQ_RECV@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %rdx
	orq	%rdx, 64(%r12)
	movq	_hns_roce_dev_srq_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
	movq	48(%r12), %rax
	movq	8(%rax), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
LBB0_8:
	movq	48(%r12), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
	movq	_hns_roce_dev_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_set_device_ops
	movl	32(%r12), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	32(%r12), %eax
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movl	(%rcx,%rbx,4), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%rbx), %edx
	movq	%r15, %rdi
	callq	_ib_device_set_netdev
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	jmp	LBB0_22
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_register_device
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_22
LBB0_17:
	movq	%r12, %rdi
	callq	_hns_roce_setup_mtu_mac
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_19:
	leaq	8(%r12), %rdi
	movq	_hns_roce_netdev_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	callq	_register_netdevice_notifier
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_ib_unregister_device
LBB0_22:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	$1, (%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_NODE_IB_CA,4,2            ## @RDMA_NODE_IB_CA
	.comm	_IB_USER_VERBS_CMD_GET_CONTEXT,8,3 ## @IB_USER_VERBS_CMD_GET_CONTEXT
	.comm	_IB_USER_VERBS_CMD_QUERY_DEVICE,8,3 ## @IB_USER_VERBS_CMD_QUERY_DEVICE
	.comm	_IB_USER_VERBS_CMD_QUERY_PORT,8,3 ## @IB_USER_VERBS_CMD_QUERY_PORT
	.comm	_IB_USER_VERBS_CMD_ALLOC_PD,8,3 ## @IB_USER_VERBS_CMD_ALLOC_PD
	.comm	_IB_USER_VERBS_CMD_DEALLOC_PD,8,3 ## @IB_USER_VERBS_CMD_DEALLOC_PD
	.comm	_IB_USER_VERBS_CMD_REG_MR,8,3   ## @IB_USER_VERBS_CMD_REG_MR
	.comm	_IB_USER_VERBS_CMD_DEREG_MR,8,3 ## @IB_USER_VERBS_CMD_DEREG_MR
	.comm	_IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL,8,3 ## @IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL
	.comm	_IB_USER_VERBS_CMD_CREATE_CQ,8,3 ## @IB_USER_VERBS_CMD_CREATE_CQ
	.comm	_IB_USER_VERBS_CMD_DESTROY_CQ,8,3 ## @IB_USER_VERBS_CMD_DESTROY_CQ
	.comm	_IB_USER_VERBS_CMD_CREATE_QP,8,3 ## @IB_USER_VERBS_CMD_CREATE_QP
	.comm	_IB_USER_VERBS_CMD_MODIFY_QP,8,3 ## @IB_USER_VERBS_CMD_MODIFY_QP
	.comm	_IB_USER_VERBS_CMD_QUERY_QP,8,3 ## @IB_USER_VERBS_CMD_QUERY_QP
	.comm	_IB_USER_VERBS_CMD_DESTROY_QP,8,3 ## @IB_USER_VERBS_CMD_DESTROY_QP
	.comm	_IB_USER_VERBS_EX_CMD_MODIFY_CQ,8,3 ## @IB_USER_VERBS_EX_CMD_MODIFY_CQ
	.comm	_HNS_ROCE_CAP_FLAG_REREG_MR,4,2 ## @HNS_ROCE_CAP_FLAG_REREG_MR
	.comm	_IB_USER_VERBS_CMD_REREG_MR,8,3 ## @IB_USER_VERBS_CMD_REREG_MR
	.comm	_hns_roce_dev_mr_ops,4,2        ## @hns_roce_dev_mr_ops
	.comm	_HNS_ROCE_CAP_FLAG_MW,4,2       ## @HNS_ROCE_CAP_FLAG_MW
	.comm	_IB_USER_VERBS_CMD_ALLOC_MW,8,3 ## @IB_USER_VERBS_CMD_ALLOC_MW
	.comm	_IB_USER_VERBS_CMD_DEALLOC_MW,8,3 ## @IB_USER_VERBS_CMD_DEALLOC_MW
	.comm	_hns_roce_dev_mw_ops,4,2        ## @hns_roce_dev_mw_ops
	.comm	_HNS_ROCE_CAP_FLAG_FRMR,4,2     ## @HNS_ROCE_CAP_FLAG_FRMR
	.comm	_hns_roce_dev_frmr_ops,4,2      ## @hns_roce_dev_frmr_ops
	.comm	_HNS_ROCE_CAP_FLAG_SRQ,4,2      ## @HNS_ROCE_CAP_FLAG_SRQ
	.comm	_IB_USER_VERBS_CMD_CREATE_SRQ,8,3 ## @IB_USER_VERBS_CMD_CREATE_SRQ
	.comm	_IB_USER_VERBS_CMD_MODIFY_SRQ,8,3 ## @IB_USER_VERBS_CMD_MODIFY_SRQ
	.comm	_IB_USER_VERBS_CMD_QUERY_SRQ,8,3 ## @IB_USER_VERBS_CMD_QUERY_SRQ
	.comm	_IB_USER_VERBS_CMD_DESTROY_SRQ,8,3 ## @IB_USER_VERBS_CMD_DESTROY_SRQ
	.comm	_IB_USER_VERBS_CMD_POST_SRQ_RECV,8,3 ## @IB_USER_VERBS_CMD_POST_SRQ_RECV
	.comm	_hns_roce_dev_srq_ops,4,2       ## @hns_roce_dev_srq_ops
	.comm	_hns_roce_dev_ops,4,2           ## @hns_roce_dev_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hns_%d"

L_.str.1:                               ## @.str.1
	.asciz	"ib_register_device failed!\n"

L_.str.2:                               ## @.str.2
	.asciz	"setup_mtu_mac failed!\n"

	.comm	_hns_roce_netdev_event,4,2      ## @hns_roce_netdev_event
L_.str.3:                               ## @.str.3
	.asciz	"register_netdevice_notifier failed!\n"

	.no_dead_strip	_hns_roce_register_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_register_device
_hns_roce_register_device:              ; @hns_roce_register_device
	.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, x0
	ldr	x19, [x0, #104]
	add	x0, x0, #24
	bl	_spin_lock_init
	ldr	w8, [x21, #32]
	mov	x20, x21
	str	w8, [x20, #56]!
Lloh0:
	adrp	x8, _RDMA_NODE_IB_CA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_NODE_IB_CA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh3:
	adrp	x8, _IB_USER_VERBS_CMD_GET_CONTEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_USER_VERBS_CMD_GET_CONTEXT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w10, #1
	lsl	x8, x10, x8
Lloh6:
	adrp	x9, _IB_USER_VERBS_CMD_QUERY_DEVICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_QUERY_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x9, x8
Lloh9:
	adrp	x9, _IB_USER_VERBS_CMD_QUERY_PORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_QUERY_PORT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh12:
	adrp	x9, _IB_USER_VERBS_CMD_ALLOC_PD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_ALLOC_PD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh15:
	adrp	x9, _IB_USER_VERBS_CMD_DEALLOC_PD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_DEALLOC_PD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x9, x10, x9
Lloh18:
	adrp	x11, _IB_USER_VERBS_CMD_REG_MR@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IB_USER_VERBS_CMD_REG_MR@GOTPAGEOFF]
	orr	x8, x8, x9
Lloh20:
	ldr	x9, [x11]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh21:
	adrp	x9, _IB_USER_VERBS_CMD_DEREG_MR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_DEREG_MR@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh24:
	adrp	x9, _IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh27:
	adrp	x9, _IB_USER_VERBS_CMD_CREATE_CQ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_CREATE_CQ@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh30:
	adrp	x9, _IB_USER_VERBS_CMD_DESTROY_CQ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_DESTROY_CQ@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh33:
	adrp	x9, _IB_USER_VERBS_CMD_CREATE_QP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_CREATE_QP@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	lsl	x9, x10, x9
Lloh36:
	adrp	x11, _IB_USER_VERBS_CMD_MODIFY_QP@GOTPAGE
Lloh37:
	ldr	x11, [x11, _IB_USER_VERBS_CMD_MODIFY_QP@GOTPAGEOFF]
	orr	x8, x8, x9
Lloh38:
	ldr	x9, [x11]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh39:
	adrp	x9, _IB_USER_VERBS_CMD_QUERY_QP@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_QUERY_QP@GOTPAGEOFF]
	str	x19, [x20, #32]
Lloh41:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x8, x8, x9
Lloh42:
	adrp	x9, _IB_USER_VERBS_CMD_DESTROY_QP@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IB_USER_VERBS_CMD_DESTROY_QP@GOTPAGEOFF]
	ldur	d0, [x20, #-16]
Lloh44:
	ldr	x9, [x9]
	lsl	x9, x10, x9
	orr	x9, x8, x9
Lloh45:
	adrp	x8, _IB_USER_VERBS_EX_CMD_MODIFY_CQ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IB_USER_VERBS_EX_CMD_MODIFY_CQ@GOTPAGEOFF]
	str	d0, [x20, #24]
Lloh47:
	ldr	x8, [x8]
	lsl	x8, x10, x8
	ldr	x10, [x20, #16]
	orr	x8, x10, x8
	stp	x9, x8, [x20, #8]
	ldur	w8, [x20, #-20]
Lloh48:
	adrp	x10, _HNS_ROCE_CAP_FLAG_REREG_MR@GOTPAGE
Lloh49:
	ldr	x10, [x10, _HNS_ROCE_CAP_FLAG_REREG_MR@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
Lloh51:
	adrp	x8, _IB_USER_VERBS_CMD_REREG_MR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IB_USER_VERBS_CMD_REREG_MR@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	mov	w10, #1
	lsl	x8, x10, x8
	orr	x8, x8, x9
	str	x8, [x21, #64]
Lloh54:
	adrp	x1, _hns_roce_dev_mr_ops@GOTPAGE
Lloh55:
	ldr	x1, [x1, _hns_roce_dev_mr_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_ib_set_device_ops
	ldr	w8, [x21, #36]
LBB0_2:
Lloh56:
	adrp	x9, _HNS_ROCE_CAP_FLAG_MW@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HNS_ROCE_CAP_FLAG_MW@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh59:
	adrp	x8, _IB_USER_VERBS_CMD_ALLOC_MW@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IB_USER_VERBS_CMD_ALLOC_MW@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
Lloh62:
	adrp	x10, _IB_USER_VERBS_CMD_DEALLOC_MW@GOTPAGE
Lloh63:
	ldr	x10, [x10, _IB_USER_VERBS_CMD_DEALLOC_MW@GOTPAGEOFF]
Lloh64:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x9, x8
	ldr	x9, [x21, #64]
	orr	x8, x8, x9
	str	x8, [x21, #64]
Lloh65:
	adrp	x1, _hns_roce_dev_mw_ops@GOTPAGE
Lloh66:
	ldr	x1, [x1, _hns_roce_dev_mw_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_ib_set_device_ops
	ldr	w8, [x21, #36]
LBB0_4:
Lloh67:
	adrp	x9, _HNS_ROCE_CAP_FLAG_FRMR@GOTPAGE
Lloh68:
	ldr	x9, [x9, _HNS_ROCE_CAP_FLAG_FRMR@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh70:
	adrp	x1, _hns_roce_dev_frmr_ops@GOTPAGE
Lloh71:
	ldr	x1, [x1, _hns_roce_dev_frmr_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_ib_set_device_ops
	ldr	w8, [x21, #36]
LBB0_6:
Lloh72:
	adrp	x9, _HNS_ROCE_CAP_FLAG_SRQ@GOTPAGE
Lloh73:
	ldr	x9, [x9, _HNS_ROCE_CAP_FLAG_SRQ@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh75:
	adrp	x8, _IB_USER_VERBS_CMD_CREATE_SRQ@GOTPAGE
Lloh76:
	ldr	x8, [x8, _IB_USER_VERBS_CMD_CREATE_SRQ@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
Lloh78:
	adrp	x10, _IB_USER_VERBS_CMD_MODIFY_SRQ@GOTPAGE
Lloh79:
	ldr	x10, [x10, _IB_USER_VERBS_CMD_MODIFY_SRQ@GOTPAGEOFF]
Lloh80:
	ldr	x10, [x10]
	lsl	x10, x9, x10
	orr	x8, x10, x8
Lloh81:
	adrp	x10, _IB_USER_VERBS_CMD_QUERY_SRQ@GOTPAGE
Lloh82:
	ldr	x10, [x10, _IB_USER_VERBS_CMD_QUERY_SRQ@GOTPAGEOFF]
Lloh83:
	ldr	x10, [x10]
	lsl	x10, x9, x10
Lloh84:
	adrp	x11, _IB_USER_VERBS_CMD_DESTROY_SRQ@GOTPAGE
Lloh85:
	ldr	x11, [x11, _IB_USER_VERBS_CMD_DESTROY_SRQ@GOTPAGEOFF]
	orr	x8, x8, x10
Lloh86:
	ldr	x10, [x11]
	lsl	x10, x9, x10
	orr	x8, x8, x10
Lloh87:
	adrp	x10, _IB_USER_VERBS_CMD_POST_SRQ_RECV@GOTPAGE
Lloh88:
	ldr	x10, [x10, _IB_USER_VERBS_CMD_POST_SRQ_RECV@GOTPAGEOFF]
Lloh89:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x8, x9
	ldr	x9, [x21, #64]
	orr	x8, x8, x9
	str	x8, [x21, #64]
Lloh90:
	adrp	x1, _hns_roce_dev_srq_ops@GOTPAGE
Lloh91:
	ldr	x1, [x1, _hns_roce_dev_srq_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_ib_set_device_ops
	ldr	x8, [x21, #48]
	ldr	x1, [x8, #8]
	mov	x0, x20
	bl	_ib_set_device_ops
LBB0_8:
	ldr	x8, [x21, #48]
	ldr	x1, [x8]
	mov	x0, x20
	bl	_ib_set_device_ops
Lloh92:
	adrp	x1, _hns_roce_dev_ops@GOTPAGE
Lloh93:
	ldr	x1, [x1, _hns_roce_dev_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_ib_set_device_ops
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_15
; %bb.9:
	mov	x23, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21, #32]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	w1, [x9, x23, lsl #2]
	cbz	w1, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w2, w23, #1
	mov	x0, x20
	bl	_ib_device_set_netdev
	cbz	w0, LBB0_10
; %bb.14:
	mov	x22, x0
	b	LBB0_22
LBB0_15:
Lloh94:
	adrp	x1, l_.str@PAGE
Lloh95:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ib_register_device
	cbz	w0, LBB0_17
; %bb.16:
	mov	x22, x0
Lloh96:
	adrp	x1, l_.str.1@PAGE
Lloh97:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_17:
	mov	x0, x21
	bl	_hns_roce_setup_mtu_mac
	cbz	w0, LBB0_19
; %bb.18:
	mov	x22, x0
Lloh98:
	adrp	x1, l_.str.2@PAGE
Lloh99:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_19:
	sub	x0, x20, #48
Lloh100:
	adrp	x8, _hns_roce_netdev_event@GOTPAGE
Lloh101:
	ldr	x8, [x8, _hns_roce_netdev_event@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_register_netdevice_notifier
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.20:
Lloh103:
	adrp	x1, l_.str.3@PAGE
Lloh104:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_ib_unregister_device
LBB0_22:
	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
	ret
LBB0_23:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_NODE_IB_CA,4,2            ; @RDMA_NODE_IB_CA
	.comm	_IB_USER_VERBS_CMD_GET_CONTEXT,8,3 ; @IB_USER_VERBS_CMD_GET_CONTEXT
	.comm	_IB_USER_VERBS_CMD_QUERY_DEVICE,8,3 ; @IB_USER_VERBS_CMD_QUERY_DEVICE
	.comm	_IB_USER_VERBS_CMD_QUERY_PORT,8,3 ; @IB_USER_VERBS_CMD_QUERY_PORT
	.comm	_IB_USER_VERBS_CMD_ALLOC_PD,8,3 ; @IB_USER_VERBS_CMD_ALLOC_PD
	.comm	_IB_USER_VERBS_CMD_DEALLOC_PD,8,3 ; @IB_USER_VERBS_CMD_DEALLOC_PD
	.comm	_IB_USER_VERBS_CMD_REG_MR,8,3   ; @IB_USER_VERBS_CMD_REG_MR
	.comm	_IB_USER_VERBS_CMD_DEREG_MR,8,3 ; @IB_USER_VERBS_CMD_DEREG_MR
	.comm	_IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL,8,3 ; @IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL
	.comm	_IB_USER_VERBS_CMD_CREATE_CQ,8,3 ; @IB_USER_VERBS_CMD_CREATE_CQ
	.comm	_IB_USER_VERBS_CMD_DESTROY_CQ,8,3 ; @IB_USER_VERBS_CMD_DESTROY_CQ
	.comm	_IB_USER_VERBS_CMD_CREATE_QP,8,3 ; @IB_USER_VERBS_CMD_CREATE_QP
	.comm	_IB_USER_VERBS_CMD_MODIFY_QP,8,3 ; @IB_USER_VERBS_CMD_MODIFY_QP
	.comm	_IB_USER_VERBS_CMD_QUERY_QP,8,3 ; @IB_USER_VERBS_CMD_QUERY_QP
	.comm	_IB_USER_VERBS_CMD_DESTROY_QP,8,3 ; @IB_USER_VERBS_CMD_DESTROY_QP
	.comm	_IB_USER_VERBS_EX_CMD_MODIFY_CQ,8,3 ; @IB_USER_VERBS_EX_CMD_MODIFY_CQ
	.comm	_HNS_ROCE_CAP_FLAG_REREG_MR,4,2 ; @HNS_ROCE_CAP_FLAG_REREG_MR
	.comm	_IB_USER_VERBS_CMD_REREG_MR,8,3 ; @IB_USER_VERBS_CMD_REREG_MR
	.comm	_hns_roce_dev_mr_ops,4,2        ; @hns_roce_dev_mr_ops
	.comm	_HNS_ROCE_CAP_FLAG_MW,4,2       ; @HNS_ROCE_CAP_FLAG_MW
	.comm	_IB_USER_VERBS_CMD_ALLOC_MW,8,3 ; @IB_USER_VERBS_CMD_ALLOC_MW
	.comm	_IB_USER_VERBS_CMD_DEALLOC_MW,8,3 ; @IB_USER_VERBS_CMD_DEALLOC_MW
	.comm	_hns_roce_dev_mw_ops,4,2        ; @hns_roce_dev_mw_ops
	.comm	_HNS_ROCE_CAP_FLAG_FRMR,4,2     ; @HNS_ROCE_CAP_FLAG_FRMR
	.comm	_hns_roce_dev_frmr_ops,4,2      ; @hns_roce_dev_frmr_ops
	.comm	_HNS_ROCE_CAP_FLAG_SRQ,4,2      ; @HNS_ROCE_CAP_FLAG_SRQ
	.comm	_IB_USER_VERBS_CMD_CREATE_SRQ,8,3 ; @IB_USER_VERBS_CMD_CREATE_SRQ
	.comm	_IB_USER_VERBS_CMD_MODIFY_SRQ,8,3 ; @IB_USER_VERBS_CMD_MODIFY_SRQ
	.comm	_IB_USER_VERBS_CMD_QUERY_SRQ,8,3 ; @IB_USER_VERBS_CMD_QUERY_SRQ
	.comm	_IB_USER_VERBS_CMD_DESTROY_SRQ,8,3 ; @IB_USER_VERBS_CMD_DESTROY_SRQ
	.comm	_IB_USER_VERBS_CMD_POST_SRQ_RECV,8,3 ; @IB_USER_VERBS_CMD_POST_SRQ_RECV
	.comm	_hns_roce_dev_srq_ops,4,2       ; @hns_roce_dev_srq_ops
	.comm	_hns_roce_dev_ops,4,2           ; @hns_roce_dev_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hns_%d"

l_.str.1:                               ; @.str.1
	.asciz	"ib_register_device failed!\n"

l_.str.2:                               ; @.str.2
	.asciz	"setup_mtu_mac failed!\n"

	.comm	_hns_roce_netdev_event,4,2      ; @hns_roce_netdev_event
l_.str.3:                               ; @.str.3
	.asciz	"register_netdevice_notifier failed!\n"

	.no_dead_strip	_hns_roce_register_device
.subsections_via_symbols
