	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_conn_rtr_qp
_mlx5_fpga_conn_rtr_qp:                 ## @mlx5_fpga_conn_rtr_qp
	.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	%rdi, %r12
	movq	24(%rdi), %r14
	movq	(%r14), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_fpga_dbg
	xorl	%edi, %edi
	callq	_MLX5_ST_SZ_BYTES
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_mtu@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_QPC_MTU_1K_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_log_msg_max@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_log_max_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_MLX5_SET
	movq	_remote_qpn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r12), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_next_rcv_psn@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_fpga_qpc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%r12), %rsi
	movq	_next_send_psn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_GET
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_MLX5_SET
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_primary_address_path@GOTPCREL(%rip), %r14
	movl	24(%r14), %edx
	movq	_MLX5_FPGA_PKEY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movl	20(%r14), %edx
	movq	_MLX5_FPGA_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_ADDR_OF
	movl	%eax, %r13d
	movq	_fpga_qpc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%r12), %rsi
	movq	_fpga_mac_47_32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ether_addr_copy
	movl	12(%r14), %r13d
	movq	_r_roce_min_src_udp_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_ROCE
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_MLX5_SET
	movl	8(%r14), %edx
	movl	4(%r12), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_MLX5_SET
	movl	(%r14), %edx
	movq	%r14, %r15
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_ADDR_OF
	movl	%eax, %r13d
	movq	_fpga_qpc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%r12), %rsi
	movq	_fpga_ip@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movl	%eax, %r14d
	movl	(%r15), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	callq	_MLX5_FLD_SZ_BYTES
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_memcpy
	movq	_MLX5_CMD_OP_INIT2RTR_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_mlx5_core_qp_modify
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_mlx5_fpga_warn
	movl	%r12d, %r15d
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %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	"QP RTR\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mtu,4,2                        ## @mtu
	.comm	_MLX5_QPC_MTU_1K_BYTES,4,2      ## @MLX5_QPC_MTU_1K_BYTES
	.comm	_log_msg_max,4,2                ## @log_msg_max
	.comm	_log_max_msg,4,2                ## @log_max_msg
	.comm	_remote_qpn,4,2                 ## @remote_qpn
	.comm	_next_rcv_psn,4,2               ## @next_rcv_psn
	.comm	_fpga_qpc,8,3                   ## @fpga_qpc
	.comm	_next_send_psn,4,2              ## @next_send_psn
	.comm	_primary_address_path,28,2      ## @primary_address_path
	.comm	_MLX5_FPGA_PKEY_INDEX,4,2       ## @MLX5_FPGA_PKEY_INDEX
	.comm	_MLX5_FPGA_PORT_NUM,4,2         ## @MLX5_FPGA_PORT_NUM
	.comm	_fpga_mac_47_32,4,2             ## @fpga_mac_47_32
	.comm	_r_roce_min_src_udp_port,4,2    ## @r_roce_min_src_udp_port
	.comm	_fpga_ip,4,2                    ## @fpga_ip
	.comm	_MLX5_CMD_OP_INIT2RTR_QP,4,2    ## @MLX5_CMD_OP_INIT2RTR_QP
L_.str.1:                               ## @.str.1
	.asciz	"qp_modify RST2INIT failed: %d\n"

	.no_dead_strip	_mlx5_fpga_conn_rtr_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_conn_rtr_qp
_mlx5_fpga_conn_rtr_qp:                 ; @mlx5_fpga_conn_rtr_qp
	.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	x21, x0
	ldr	x20, [x0, #24]
	ldr	x22, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5_fpga_dbg
	mov	x0, #0
	bl	_MLX5_ST_SZ_BYTES
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _mtu@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mtu@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _MLX5_QPC_MTU_1K_BYTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_QPC_MTU_1K_BYTES@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_SET
Lloh11:
	adrp	x8, _log_msg_max@GOTPAGE
Lloh12:
	ldr	x8, [x8, _log_msg_max@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	adrp	x8, _log_max_msg@GOTPAGE
Lloh15:
	ldr	x8, [x8, _log_max_msg@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5_CAP_GEN
	mov	x3, x0
	mov	x0, x19
	mov	x1, x19
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_MLX5_SET
Lloh17:
	adrp	x8, _remote_qpn@GOTPAGE
Lloh18:
	ldr	x8, [x8, _remote_qpn@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldr	w3, [x21, #16]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_SET
Lloh20:
	adrp	x8, _next_rcv_psn@GOTPAGE
Lloh21:
	ldr	x8, [x8, _next_rcv_psn@GOTPAGEOFF]
Lloh22:
	adrp	x24, _fpga_qpc@GOTPAGE
Lloh23:
	ldr	x24, [x24, _fpga_qpc@GOTPAGEOFF]
Lloh24:
	ldr	w23, [x8]
	ldr	x0, [x24]
	ldr	x1, [x21, #8]
Lloh25:
	adrp	x8, _next_send_psn@GOTPAGE
Lloh26:
	ldr	x8, [x8, _next_send_psn@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	bl	_MLX5_GET
	mov	x3, x0
	mov	x0, x19
	mov	x1, x19
	mov	x2, x23
	bl	_MLX5_SET
Lloh28:
	adrp	x25, _primary_address_path@GOTPAGE
Lloh29:
	ldr	x25, [x25, _primary_address_path@GOTPAGEOFF]
	ldr	w2, [x25, #24]
Lloh30:
	adrp	x8, _MLX5_FPGA_PKEY_INDEX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MLX5_FPGA_PKEY_INDEX@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_SET
	ldr	w2, [x25, #20]
Lloh33:
	adrp	x8, _MLX5_FPGA_PORT_NUM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MLX5_FPGA_PORT_NUM@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_SET
	ldr	w2, [x25, #16]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_ADDR_OF
	mov	x23, x0
	ldr	x0, [x24]
	ldr	x1, [x21, #8]
Lloh36:
	adrp	x8, _fpga_mac_47_32@GOTPAGE
Lloh37:
	ldr	x8, [x8, _fpga_mac_47_32@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_MLX5_ADDR_OF
	mov	x1, x0
	mov	x0, x23
	bl	_ether_addr_copy
	ldr	w23, [x25, #12]
Lloh39:
	adrp	x8, _r_roce_min_src_udp_port@GOTPAGE
Lloh40:
	ldr	x8, [x8, _r_roce_min_src_udp_port@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5_CAP_ROCE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x19
	mov	x2, x23
	bl	_MLX5_SET
	ldr	w2, [x25, #8]
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_SET
	ldr	w2, [x25, #4]
	mov	x0, x19
	mov	x1, x19
	mov	w3, #0
	bl	_MLX5_SET
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x19
	bl	_MLX5_ADDR_OF
	mov	x23, x0
	ldr	x0, [x24]
	ldr	x1, [x21, #8]
Lloh42:
	adrp	x8, _fpga_ip@GOTPAGE
Lloh43:
	ldr	x8, [x8, _fpga_ip@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	bl	_MLX5_ADDR_OF
	mov	x24, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_MLX5_FLD_SZ_BYTES
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
Lloh45:
	adrp	x8, _MLX5_CMD_OP_INIT2RTR_QP@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MLX5_CMD_OP_INIT2RTR_QP@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	x3, x19
	mov	x4, x21
	bl	_mlx5_core_qp_modify
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5_fpga_warn
	b	LBB0_4
LBB0_3:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.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 AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QP RTR\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mtu,4,2                        ; @mtu
	.comm	_MLX5_QPC_MTU_1K_BYTES,4,2      ; @MLX5_QPC_MTU_1K_BYTES
	.comm	_log_msg_max,4,2                ; @log_msg_max
	.comm	_log_max_msg,4,2                ; @log_max_msg
	.comm	_remote_qpn,4,2                 ; @remote_qpn
	.comm	_next_rcv_psn,4,2               ; @next_rcv_psn
	.comm	_fpga_qpc,8,3                   ; @fpga_qpc
	.comm	_next_send_psn,4,2              ; @next_send_psn
	.comm	_primary_address_path,28,2      ; @primary_address_path
	.comm	_MLX5_FPGA_PKEY_INDEX,4,2       ; @MLX5_FPGA_PKEY_INDEX
	.comm	_MLX5_FPGA_PORT_NUM,4,2         ; @MLX5_FPGA_PORT_NUM
	.comm	_fpga_mac_47_32,4,2             ; @fpga_mac_47_32
	.comm	_r_roce_min_src_udp_port,4,2    ; @r_roce_min_src_udp_port
	.comm	_fpga_ip,4,2                    ; @fpga_ip
	.comm	_MLX5_CMD_OP_INIT2RTR_QP,4,2    ; @MLX5_CMD_OP_INIT2RTR_QP
l_.str.1:                               ; @.str.1
	.asciz	"qp_modify RST2INIT failed: %d\n"

	.no_dead_strip	_mlx5_fpga_conn_rtr_qp
.subsections_via_symbols
