	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_conn_create          ## -- Begin function mlx5_fpga_conn_create
	.p2align	4, 0x90
_mlx5_fpga_conn_create:                 ## @mlx5_fpga_conn_create
	.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
	cmpq	$0, 16(%rsi)
	je	LBB0_1
## %bb.3:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, 24(%rax)
	leaq	8(%rax), %rbx
	leaq	12(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	16(%r14), %rax
	movq	%rax, 40(%r12)
	movl	8(%r14), %eax
	movl	%eax, 36(%r12)
	movq	_fpga_qpc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	movq	_remote_mac_47_32@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_MLX5_ADDR_OF
	movq	%rax, %r13
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_mlx5_query_mac_address
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	_fpga_qpc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	_MLX5_ADDR_OF
	movq	%r15, %rbx
	movq	%rax, %r15
	movabsq	$549755814142, %rax             ## imm = 0x80000000FE
	movq	%rax, (%r15)
	leaq	32(%r15), %rdi
	movq	%r13, %rsi
	callq	_addrconf_addr_eui48
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_mlx5_core_reserved_gid_alloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movl	%ebx, %edx
	callq	_mlx5_fpga_err
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_24:
	movq	%r12, %rdi
	callq	_kfree
	movq	%rbx, %r12
LBB0_25:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r12), %esi
	movq	_MLX5_ROCE_VERSION_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_ROCE_L3_TYPE_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLX5_FPGA_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r15, %r8
	movq	%r13, %r9
	pushq	%rax
	pushq	$0
	pushq	$1
	callq	_mlx5_core_roce_gid_set
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_23
LBB0_12:
	movq	_MLX5_FPGA_PORT_NUM@GOTPCREL(%rip), %r15
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mlx5_fpga_dbg
	movl	4(%r14), %esi
	addl	(%r14), %esi
	addl	%esi, %esi
	movq	%r12, %rdi
	callq	_mlx5_fpga_conn_create_cq
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_22
LBB0_14:
	movq	%r12, %rdi
	callq	_mlx5_fpga_conn_arm_cq
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movq	%r12, %rdi
	callq	_mlx5_fpga_conn_create_qp
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_16:
	leaq	32(%r12), %r14
	movq	_fpga_qpc@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_FPGA_QPC_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_st@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_FPGA_QPC_ST_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_ether_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_vid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_next_rcv_psn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_next_send_psn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_pkey@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_FPGA_PKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	4(%r12), %ecx
	movl	32(%r12), %esi
	movq	_remote_qpn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_rnr_retry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$7, %ecx
	callq	_MLX5_SET
	movl	(%rbx), %edi
	movl	32(%r12), %esi
	movq	_retry_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$7, %ecx
	callq	_MLX5_SET
	movl	(%r13), %edi
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_mlx5_fpga_create_qp
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_20
LBB0_18:
	movq	%r12, %rdi
	callq	_mlx5_fpga_conn_connect
	testl	%eax, %eax
	je	LBB0_26
## %bb.19:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	movq	24(%r12), %rax
	movl	(%rax), %edi
	movl	16(%r12), %esi
	callq	_mlx5_fpga_destroy_qp
LBB0_20:
	movq	%r12, %rdi
	callq	_mlx5_fpga_conn_destroy_qp
LBB0_21:
	movq	%r12, %rdi
	callq	_mlx5_fpga_conn_destroy_cq
LBB0_22:
	movl	(%r13), %edi
	movl	(%r12), %esi
	movl	(%r15), %eax
	subq	$8, %rsp
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_mlx5_core_roce_gid_set
	addq	$32, %rsp
LBB0_23:
	movl	(%r13), %edi
	movl	(%r12), %esi
	callq	_mlx5_core_reserved_gid_free
	jmp	LBB0_24
LBB0_26:
	movl	(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx5_fpga_dbg
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fpga_qpc,4,2                   ## @fpga_qpc
	.comm	_remote_mac_47_32,8,3           ## @remote_mac_47_32
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query local MAC: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate SGID: %d\n"

	.comm	_MLX5_ROCE_VERSION_2,4,2        ## @MLX5_ROCE_VERSION_2
	.comm	_MLX5_ROCE_L3_TYPE_IPV6,4,2     ## @MLX5_ROCE_L3_TYPE_IPV6
	.comm	_MLX5_FPGA_PORT_NUM,4,2         ## @MLX5_FPGA_PORT_NUM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set SGID: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Reserved SGID index %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to create CQ: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to create QP: %d\n"

	.comm	_state,4,2                      ## @state
	.comm	_MLX5_FPGA_QPC_STATE_INIT,4,2   ## @MLX5_FPGA_QPC_STATE_INIT
	.comm	_st,4,2                         ## @st
	.comm	_MLX5_FPGA_QPC_ST_RC,4,2        ## @MLX5_FPGA_QPC_ST_RC
	.comm	_ether_type,4,2                 ## @ether_type
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_vid,4,2                        ## @vid
	.comm	_next_rcv_psn,4,2               ## @next_rcv_psn
	.comm	_next_send_psn,4,2              ## @next_send_psn
	.comm	_pkey,4,2                       ## @pkey
	.comm	_MLX5_FPGA_PKEY,4,2             ## @MLX5_FPGA_PKEY
	.comm	_remote_qpn,4,2                 ## @remote_qpn
	.comm	_rnr_retry,4,2                  ## @rnr_retry
	.comm	_retry_count,4,2                ## @retry_count
L_.str.6:                               ## @.str.6
	.asciz	"Failed to create FPGA RC QP: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"FPGA QPN is %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mlx5_fpga_conn_create
lCPI0_0:
	.long	254                             ; 0xfe
	.long	128                             ; 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx5_fpga_conn_create
	.p2align	2
_mlx5_fpga_conn_create:                 ; @mlx5_fpga_conn_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #24]
	add	x21, x0, #8
	add	x0, x0, #12
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	bl	_spin_lock_init
	ldr	x8, [x23, #16]
	mov	x21, x19
	ldr	w1, [x21, #32]!
	str	x8, [x21, #8]
	ldr	w8, [x23, #8]
	str	w8, [x21, #4]
Lloh3:
	adrp	x27, _fpga_qpc@GOTPAGE
Lloh4:
	ldr	x27, [x27, _fpga_qpc@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh5:
	adrp	x8, _remote_mac_47_32@GOTPAGE
Lloh6:
	ldr	x8, [x8, _remote_mac_47_32@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	bl	_MLX5_ADDR_OF
	mov	x24, x0
	ldr	w0, [x20]
	mov	x1, x24
	bl	_mlx5_query_mac_address
	cbz	w0, LBB0_7
; %bb.3:
	mov	x25, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_mlx5_fpga_err
	mov	x0, x25
	b	LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_7:
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
	bl	_MLX5_ADDR_OF
	mov	x25, x0
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0], #32
	mov	x1, x24
	bl	_addrconf_addr_eui48
	ldr	w0, [x20]
	mov	x1, x19
	bl	_mlx5_core_reserved_gid_alloc
	cbz	w0, LBB0_12
; %bb.8:
	mov	x26, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_mlx5_fpga_err
	mov	x0, x26
LBB0_9:
	bl	_ERR_PTR
	mov	x21, x0
LBB0_10:
	mov	x0, x19
	bl	_kfree
	mov	x19, x21
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	ldr	w0, [x20]
	ldr	w1, [x19]
Lloh18:
	adrp	x8, _MLX5_ROCE_VERSION_2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX5_ROCE_VERSION_2@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _MLX5_ROCE_L3_TYPE_IPV6@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLX5_ROCE_L3_TYPE_IPV6@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x26, _MLX5_FPGA_PORT_NUM@GOTPAGE
Lloh25:
	ldr	x26, [x26, _MLX5_FPGA_PORT_NUM@GOTPAGEOFF]
	ldr	w8, [x26]
	str	w8, [sp]
	mov	x4, x25
	mov	x5, x24
	mov	w6, #1
	mov	w7, #0
	bl	_mlx5_core_roce_gid_set
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_fpga_err
	mov	x0, x24
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_25
LBB0_14:
	ldr	w2, [x19]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mlx5_fpga_dbg
	ldp	w8, w9, [x23]
	add	w8, w9, w8
	lsl	w1, w8, #1
	mov	x0, x19
	bl	_mlx5_fpga_conn_create_cq
	cbz	w0, LBB0_16
; %bb.15:
	mov	x24, x0
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_mlx5_fpga_err
	mov	x0, x24
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_24
LBB0_16:
	mov	x0, x19
	bl	_mlx5_fpga_conn_arm_cq
	ldp	w1, w2, [x23]
	mov	x0, x19
	bl	_mlx5_fpga_conn_create_qp
	cbz	w0, LBB0_18
; %bb.17:
	mov	x23, x0
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_mlx5_fpga_err
	mov	x0, x23
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_23
LBB0_18:
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh34:
	adrp	x8, _state@GOTPAGE
Lloh35:
	ldr	x8, [x8, _state@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _MLX5_FPGA_QPC_STATE_INIT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MLX5_FPGA_QPC_STATE_INIT@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
	mov	x2, x22
	mov	x3, x22
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh40:
	adrp	x8, _st@GOTPAGE
Lloh41:
	ldr	x8, [x8, _st@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
Lloh43:
	adrp	x8, _MLX5_FPGA_QPC_ST_RC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MLX5_FPGA_QPC_ST_RC@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh46:
	adrp	x8, _ether_type@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ether_type@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
Lloh49:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh52:
	adrp	x8, _vid@GOTPAGE
Lloh53:
	ldr	x8, [x8, _vid@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh55:
	adrp	x8, _next_rcv_psn@GOTPAGE
Lloh56:
	ldr	x8, [x8, _next_rcv_psn@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh58:
	adrp	x8, _next_send_psn@GOTPAGE
Lloh59:
	ldr	x8, [x8, _next_send_psn@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh61:
	adrp	x8, _pkey@GOTPAGE
Lloh62:
	ldr	x8, [x8, _pkey@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
Lloh64:
	adrp	x8, _MLX5_FPGA_PKEY@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MLX5_FPGA_PKEY@GOTPAGEOFF]
Lloh66:
	ldr	w3, [x8]
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh67:
	adrp	x8, _remote_qpn@GOTPAGE
Lloh68:
	ldr	x8, [x8, _remote_qpn@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh70:
	adrp	x8, _rnr_retry@GOTPAGE
Lloh71:
	ldr	x8, [x8, _rnr_retry@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
	mov	w3, #7
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldr	w1, [x19, #32]
Lloh73:
	adrp	x8, _retry_count@GOTPAGE
Lloh74:
	ldr	x8, [x8, _retry_count@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	mov	w3, #7
	bl	_MLX5_SET
	ldr	w0, [x20]
	add	x22, x19, #16
	mov	x1, x21
	mov	x2, x22
	bl	_mlx5_fpga_create_qp
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
Lloh76:
	adrp	x1, l_.str.6@PAGE
Lloh77:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_fpga_err
	mov	x0, x21
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_22
LBB0_20:
	mov	x0, x19
	bl	_mlx5_fpga_conn_connect
	cbz	w0, LBB0_26
; %bb.21:
	bl	_ERR_PTR
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_mlx5_fpga_destroy_qp
LBB0_22:
	mov	x0, x19
	bl	_mlx5_fpga_conn_destroy_qp
LBB0_23:
	mov	x0, x19
	bl	_mlx5_fpga_conn_destroy_cq
LBB0_24:
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	w8, [x26]
	str	w8, [sp]
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_mlx5_core_roce_gid_set
LBB0_25:
	ldr	w0, [x20]
	ldr	w1, [x19]
	bl	_mlx5_core_reserved_gid_free
	b	LBB0_10
LBB0_26:
	ldr	w2, [x22]
Lloh78:
	adrp	x1, l_.str.7@PAGE
Lloh79:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_mlx5_fpga_dbg
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fpga_qpc,4,2                   ; @fpga_qpc
	.comm	_remote_mac_47_32,8,3           ; @remote_mac_47_32
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query local MAC: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate SGID: %d\n"

	.comm	_MLX5_ROCE_VERSION_2,4,2        ; @MLX5_ROCE_VERSION_2
	.comm	_MLX5_ROCE_L3_TYPE_IPV6,4,2     ; @MLX5_ROCE_L3_TYPE_IPV6
	.comm	_MLX5_FPGA_PORT_NUM,4,2         ; @MLX5_FPGA_PORT_NUM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set SGID: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Reserved SGID index %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to create CQ: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to create QP: %d\n"

	.comm	_state,4,2                      ; @state
	.comm	_MLX5_FPGA_QPC_STATE_INIT,4,2   ; @MLX5_FPGA_QPC_STATE_INIT
	.comm	_st,4,2                         ; @st
	.comm	_MLX5_FPGA_QPC_ST_RC,4,2        ; @MLX5_FPGA_QPC_ST_RC
	.comm	_ether_type,4,2                 ; @ether_type
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_vid,4,2                        ; @vid
	.comm	_next_rcv_psn,4,2               ; @next_rcv_psn
	.comm	_next_send_psn,4,2              ; @next_send_psn
	.comm	_pkey,4,2                       ; @pkey
	.comm	_MLX5_FPGA_PKEY,4,2             ; @MLX5_FPGA_PKEY
	.comm	_remote_qpn,4,2                 ; @remote_qpn
	.comm	_rnr_retry,4,2                  ; @rnr_retry
	.comm	_retry_count,4,2                ; @retry_count
l_.str.6:                               ; @.str.6
	.asciz	"Failed to create FPGA RC QP: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"FPGA QPN is %u\n"

.subsections_via_symbols
