	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_prepare_qp_to_rts
_dr_prepare_qp_to_rts:                  ## @dr_prepare_qp_to_rts
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -52(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_IB_MTU_1024@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rdi), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_dr_modify_qp_rst2init
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	leaq	-40(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_mlx5dr_cmd_query_gid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	%r15d, -64(%rbp)
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	movabsq	$4294967308, %rax               ## imm = 0x10000000C
	movq	%rax, -60(%rbp)
	movl	$0, -48(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %edi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rsi
	callq	_dr_cmd_modify_qp_init2rtr
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movabsq	$30064771086, %rax              ## imm = 0x70000000E
	movq	%rax, -80(%rbp)
	movl	$7, -72(%rbp)
	movl	(%rbx), %edi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rsi
	callq	_dr_cmd_modify_qp_rtr2rts
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MTU_1024,4,2                ## @IB_MTU_1024
	.no_dead_strip	_dr_prepare_qp_to_rts
.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 dr_prepare_qp_to_rts
lCPI0_0:
	.long	12                              ; 0xc
	.long	1                               ; 0x1
lCPI0_1:
	.long	14                              ; 0xe
	.long	7                               ; 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dr_prepare_qp_to_rts:                  ; @dr_prepare_qp_to_rts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	stp	xzr, xzr, [sp]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _IB_MTU_1024@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MTU_1024@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0]
	mov	x1, x19
	mov	w2, #1
	bl	_dr_modify_qp_rst2init
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	mov	x8, sp
	add	x3, x8, #24
	mov	w1, #1
	mov	w2, #0
	bl	_mlx5dr_cmd_query_gid
	cbnz	w0, LBB0_4
; %bb.2:
	str	w21, [sp]
	ldr	w8, [x19]
	stp	wzr, w8, [sp, #16]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #4]
	ldp	w0, w8, [x20]
	str	w8, [sp, #12]
	mov	x2, sp
	mov	x1, x19
	bl	_dr_cmd_modify_qp_init2rtr
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #32]
	mov	w8, #7
	str	w8, [sp, #40]
	ldr	w0, [x20]
	add	x2, sp, #32
	mov	x1, x19
	bl	_dr_cmd_modify_qp_rtr2rts
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MTU_1024,4,2                ; @IB_MTU_1024
	.no_dead_strip	_dr_prepare_qp_to_rts
.subsections_via_symbols
