	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_connect_ctx
_pp_connect_ctx:                        ## @pp_connect_ctx
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r15
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movl	$0, -88(%rbp)
	movl	%ecx, -84(%rbp)
	movl	%esi, -80(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movl	$0, -56(%rbp)
	movl	8(%r8), %eax
	movl	%eax, -52(%rbp)
	movl	$0, -48(%rbp)
	movq	_IBV_QPS_RTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rdi), %edi
	movq	_IBV_QP_STATE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-48(%rbp), %rsi
	callq	_ibv_modify_qp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_2:
	movq	_IBV_QPS_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%r12d, -48(%rbp)
	movl	8(%rbx), %edi
	movq	_IBV_QP_SQ_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	leaq	-48(%rbp), %rsi
	callq	_ibv_modify_qp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf
	movl	$1, %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, -88(%rbp)
	movl	$1, -72(%rbp)
	movq	%rax, -64(%rbp)
	movl	%r14d, -68(%rbp)
LBB0_6:
	movl	4(%rbx), %edi
	leaq	-88(%rbp), %rsi
	callq	_ibv_create_ah
	movl	%eax, %ecx
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_QPS_RTR,4,2                ## @IBV_QPS_RTR
	.comm	_IBV_QP_STATE,4,2               ## @IBV_QP_STATE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to modify QP to RTR\n"

	.comm	_IBV_QPS_RTS,4,2                ## @IBV_QPS_RTS
	.comm	_IBV_QP_SQ_PSN,4,2              ## @IBV_QP_SQ_PSN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to modify QP to RTS\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create AH\n"

	.no_dead_strip	_pp_connect_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_connect_ctx
_pp_connect_ctx:                        ; @pp_connect_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x5
	mov	x21, x4
	mov	x22, x2
	mov	x19, x0
	stp	wzr, w3, [sp, #8]
	str	w1, [sp, #16]
	stp	xzr, xzr, [sp, #24]
	ldr	w8, [x4, #8]
	stp	wzr, w8, [sp, #40]
Lloh0:
	adrp	x8, _IBV_QPS_RTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBV_QPS_RTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp]
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x23, _IBV_QP_STATE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IBV_QP_STATE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x1, sp
	bl	_ibv_modify_qp
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _IBV_QPS_RTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IBV_QPS_RTS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w22, w8, [sp]
	ldr	w0, [x19, #8]
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _IBV_QP_SQ_PSN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IBV_QP_SQ_PSN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x1, sp
	bl	_ibv_modify_qp
	cbz	x0, LBB0_6
; %bb.3:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_fprintf
	mov	w0, #1
LBB0_5:
	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
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w9, #1
	str	w9, [sp, #8]
	stp	w9, w20, [sp, #24]
	str	x8, [sp, #32]
LBB0_8:
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_ibv_create_ah
	str	w0, [x19]
	cbz	w0, LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_5
LBB0_10:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_QPS_RTR,4,2                ; @IBV_QPS_RTR
	.comm	_IBV_QP_STATE,4,2               ; @IBV_QP_STATE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to modify QP to RTR\n"

	.comm	_IBV_QPS_RTS,4,2                ; @IBV_QPS_RTS
	.comm	_IBV_QP_SQ_PSN,4,2              ; @IBV_QP_SQ_PSN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to modify QP to RTS\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create AH\n"

	.no_dead_strip	_pp_connect_ctx
.subsections_via_symbols
