	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modify_to_rts
_modify_to_rts:                         ## @modify_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	%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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rsi), %edi
	callq	_to_mdev
	movq	_IB_QP_STATE@GOTPCREL(%rip), %r13
	movq	_IB_QP_PKEY_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%r13), %edx
	movq	%rax, %r14
	movq	_IB_QP_QKEY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IB_QPS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, -44(%rbp)
	movq	_IB_QP1_QKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_2:
	movq	_IB_QPS_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%r13), %edx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	movq	_IB_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_IB_QP_SQ_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mlx5_ib_err
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QP_PKEY_INDEX,4,2           ## @IB_QP_PKEY_INDEX
	.comm	_IB_QP_QKEY,4,2                 ## @IB_QP_QKEY
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.comm	_IB_QPS_INIT,4,2                ## @IB_QPS_INIT
	.comm	_IB_QP1_QKEY,4,2                ## @IB_QP1_QKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not change QP%d state to INIT: %d\n"

	.comm	_IB_QPS_RTR,4,2                 ## @IB_QPS_RTR
L_.str.1:                               ## @.str.1
	.asciz	"could not change QP%d state to RTR: %d\n"

	.comm	_IB_QPS_RTS,4,2                 ## @IB_QPS_RTS
	.comm	_IB_QP_SQ_PSN,4,2               ## @IB_QP_SQ_PSN
L_.str.2:                               ## @.str.2
	.asciz	"could not change QP%d state to RTS: %d\n"

	.no_dead_strip	_modify_to_rts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modify_to_rts
_modify_to_rts:                         ; @modify_to_rts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x1, #4]
	bl	_to_mdev
	mov	x19, x0
Lloh0:
	adrp	x23, _IB_QP_STATE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_QP_STATE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _IB_QP_PKEY_INDEX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_QP_PKEY_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _IB_QP_QKEY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IB_QP_QKEY@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh7:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _IB_QP_PORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_QP_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh11:
	adrp	x8, _IB_QPS_INIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_QPS_INIT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IB_QP1_QKEY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_QP1_QKEY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w21, [sp, #24]
	ldr	w9, [x22]
	stp	w8, w9, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ib_modify_qp
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w2, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh19:
	adrp	x8, _IB_QPS_RTR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_QPS_RTR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	w2, [x23]
	add	x1, sp, #8
	mov	x0, x20
	bl	_ib_modify_qp
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w2, [x20]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh24:
	adrp	x8, _IB_QPS_RTS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_QPS_RTS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	ldr	w8, [x23]
Lloh27:
	adrp	x9, _IB_QP_SQ_PSN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_QP_SQ_PSN@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #8
	mov	x0, x20
	bl	_ib_modify_qp
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w2, [x20]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x3, x21
	bl	_mlx5_ib_err
LBB0_7:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QP_PKEY_INDEX,4,2           ; @IB_QP_PKEY_INDEX
	.comm	_IB_QP_QKEY,4,2                 ; @IB_QP_QKEY
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.comm	_IB_QPS_INIT,4,2                ; @IB_QPS_INIT
	.comm	_IB_QP1_QKEY,4,2                ; @IB_QP1_QKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not change QP%d state to INIT: %d\n"

	.comm	_IB_QPS_RTR,4,2                 ; @IB_QPS_RTR
l_.str.1:                               ; @.str.1
	.asciz	"could not change QP%d state to RTR: %d\n"

	.comm	_IB_QPS_RTS,4,2                 ; @IB_QPS_RTS
	.comm	_IB_QP_SQ_PSN,4,2               ; @IB_QP_SQ_PSN
l_.str.2:                               ; @.str.2
	.asciz	"could not change QP%d state to RTS: %d\n"

	.no_dead_strip	_modify_to_rts
.subsections_via_symbols
