	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_setup_qp
_rping_setup_qp:                        ## @rping_setup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_ibv_alloc_pd
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DEBUG_LOG
	movl	(%rbx), %edi
	callq	_ibv_create_comp_channel
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_DEBUG_LOG
	movl	(%rbx), %edi
	movq	_RPING_SQ_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
	movl	4(%r15), %ecx
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_ibv_create_cq
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_DEBUG_LOG
	movl	8(%r15), %edi
	xorl	%esi, %esi
	callq	_ibv_req_notify_cq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	8(%r15), %edi
	callq	_ibv_destroy_cq
	jmp	LBB0_11
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movl	4(%r15), %edi
	callq	_ibv_destroy_comp_channel
LBB0_12:
	movl	(%r15), %edi
	callq	_ibv_dealloc_pd
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_rping_create_qp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.14:
	movl	12(%r15), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_DEBUG_LOG
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdi
	callq	_perror
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibv_alloc_pd failed\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"created pd %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"ibv_create_comp_channel failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"created channel %p\n"

	.comm	_RPING_SQ_DEPTH,4,2             ## @RPING_SQ_DEPTH
L_.str.4:                               ## @.str.4
	.asciz	"ibv_create_cq failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"created cq %p\n"

L_.str.6:                               ## @.str.6
	.asciz	"rdma_create_qp"

L_.str.7:                               ## @.str.7
	.asciz	"created qp %p\n"

	.no_dead_strip	_rping_setup_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_setup_qp
_rping_setup_qp:                        ; @rping_setup_qp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_ibv_alloc_pd
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUG_LOG
	ldr	w0, [x20]
	bl	_ibv_create_comp_channel
	str	w0, [x19, #4]
	cbz	w0, LBB0_7
; %bb.2:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DEBUG_LOG
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _RPING_SQ_DEPTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RPING_SQ_DEPTH@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	lsl	w1, w8, #1
	ldr	w3, [x19, #4]
	mov	x2, x19
	mov	w4, #0
	bl	_ibv_create_cq
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.3:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DEBUG_LOG
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_ibv_req_notify_cq
	cbz	w0, LBB0_12
; %bb.4:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_ibv_destroy_cq
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_7:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_8:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w20, [x8]
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_ibv_destroy_comp_channel
LBB0_10:
	ldr	w0, [x19]
	bl	_ibv_dealloc_pd
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_rping_create_qp
	mov	x20, x0
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	w1, [x19, #12]
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DEBUG_LOG
	b	LBB0_11
LBB0_14:
Lloh43:
	adrp	x0, l_.str.6@PAGE
Lloh44:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_perror
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibv_alloc_pd failed\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"created pd %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"ibv_create_comp_channel failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"created channel %p\n"

	.comm	_RPING_SQ_DEPTH,4,2             ; @RPING_SQ_DEPTH
l_.str.4:                               ; @.str.4
	.asciz	"ibv_create_cq failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"created cq %p\n"

l_.str.6:                               ; @.str.6
	.asciz	"rdma_create_qp"

l_.str.7:                               ; @.str.7
	.asciz	"created qp %p\n"

	.no_dead_strip	_rping_setup_qp
.subsections_via_symbols
