	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_rdma_setup_rn
_mlx5_rdma_setup_rn:                    ## @mlx5_rdma_setup_rn
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_mlx5_get_profile
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_mlx5i_epriv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mlx5_is_sub_interface
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	*8(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5e_attach_netdev
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%r14)
	cmpq	$0, (%r13)
	jne	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5e_destroy_mdev_resources
	jmp	LBB0_8
LBB0_1:
	movq	%r15, %rdi
	callq	_mlx5i_pkey_qpn_ht_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx5_core_warn
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r13)
	movq	_mlx5i_xmit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	_mlx5i_attach_mcast@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_mlx5i_detach_mcast@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_mlx5i_set_pkey_index@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_mlx5_rdma_netdev_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	$1, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_mlx5e_create_mdev_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_8:
	movq	%r15, %rdi
	callq	_mlx5i_pkey_qpn_ht_cleanup
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocate qpn_to_netdev ht failed\n"

	.comm	_mlx5i_xmit,4,2                 ## @mlx5i_xmit
	.comm	_mlx5i_attach_mcast,4,2         ## @mlx5i_attach_mcast
	.comm	_mlx5i_detach_mcast,4,2         ## @mlx5i_detach_mcast
	.comm	_mlx5i_set_pkey_index,4,2       ## @mlx5i_set_pkey_index
	.comm	_mlx5_rdma_netdev_free,4,2      ## @mlx5_rdma_netdev_free
	.no_dead_strip	_mlx5_rdma_setup_rn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_rdma_setup_rn
_mlx5_rdma_setup_rn:                    ; @mlx5_rdma_setup_rn
	.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	x20, x3
	mov	x19, x2
	mov	x23, x0
	mov	x0, x3
	bl	_mlx5_get_profile
	mov	x24, x0
	mov	x0, x19
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_mlx5i_epriv
	mov	x25, x0
	mov	x0, x20
	bl	_mlx5_is_sub_interface
	str	x0, [x21]
	cbz	x0, LBB0_4
LBB0_1:
	ldr	x8, [x24, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x21
	blr	x8
	mov	x0, x25
	bl	_mlx5e_attach_netdev
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x24]
	mov	x0, x25
	blr	x8
	ldr	x8, [x21]
	cbnz	x8, LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_mlx5e_destroy_mdev_resources
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_mlx5i_pkey_qpn_ht_init
	cbz	w0, LBB0_7
; %bb.5:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5_core_warn
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_netif_carrier_off
	str	x23, [x21, #24]
Lloh2:
	adrp	x8, _mlx5i_xmit@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mlx5i_xmit@GOTPAGEOFF]
Lloh4:
	adrp	x9, _mlx5i_attach_mcast@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mlx5i_attach_mcast@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh8:
	adrp	x8, _mlx5i_detach_mcast@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mlx5i_detach_mcast@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _mlx5i_set_pkey_index@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mlx5i_set_pkey_index@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
Lloh14:
	adrp	x8, _mlx5_rdma_netdev_free@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mlx5_rdma_netdev_free@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19]
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_mlx5e_create_mdev_resources
	mov	x22, x0
	cbz	w0, LBB0_1
LBB0_8:
	mov	x0, x19
	bl	_mlx5i_pkey_qpn_ht_cleanup
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocate qpn_to_netdev ht failed\n"

	.comm	_mlx5i_xmit,4,2                 ; @mlx5i_xmit
	.comm	_mlx5i_attach_mcast,4,2         ; @mlx5i_attach_mcast
	.comm	_mlx5i_detach_mcast,4,2         ; @mlx5i_detach_mcast
	.comm	_mlx5i_set_pkey_index,4,2       ; @mlx5i_set_pkey_index
	.comm	_mlx5_rdma_netdev_free,4,2      ; @mlx5_rdma_netdev_free
	.no_dead_strip	_mlx5_rdma_setup_rn
.subsections_via_symbols
