	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_setup_buffers
_rping_setup_buffers:                   ## @rping_setup_buffers
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DEBUG_LOG
	movl	56(%rbx), %edi
	leaq	68(%rbx), %rsi
	movq	_IBV_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	$4, %edx
	callq	_ibv_reg_mr
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	56(%rbx), %edi
	leaq	64(%rbx), %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_ibv_reg_mr
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	callq	_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edx
	movq	_IBV_ACCESS_REMOTE_READ@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	movl	56(%rbx), %edi
	movq	_IBV_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	movq	%rax, %rsi
	callq	_ibv_reg_mr
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpl	$0, 60(%rbx)
	je	LBB0_9
LBB0_18:
	movq	%rbx, %rdi
	callq	_rping_setup_wr
	leaq	L_.str.7(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DEBUG_LOG
	jmp	LBB0_17
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_17
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_16
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_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
	jmp	LBB0_14
LBB0_9:
	movl	(%rbx), %edi
	callq	_malloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	(%rbx), %edx
	movl	56(%rbx), %edi
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	orl	(%r12), %ecx
	movq	%rax, %rsi
	callq	_ibv_reg_mr
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	40(%rbx), %rdi
	callq	_free
	jmp	LBB0_13
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movq	32(%rbx), %rdi
	callq	_ibv_dereg_mr
LBB0_14:
	movq	24(%rbx), %rdi
	callq	_free
LBB0_15:
	movq	16(%rbx), %rdi
	callq	_ibv_dereg_mr
LBB0_16:
	movq	8(%rbx), %rdi
	callq	_ibv_dereg_mr
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rping_setup_buffers called on cb %p\n"

	.comm	_IBV_ACCESS_LOCAL_WRITE,4,2     ## @IBV_ACCESS_LOCAL_WRITE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"recv_buf reg_mr failed\n"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"send_buf reg_mr failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"rdma_buf malloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IBV_ACCESS_REMOTE_READ,4,2     ## @IBV_ACCESS_REMOTE_READ
	.comm	_IBV_ACCESS_REMOTE_WRITE,4,2    ## @IBV_ACCESS_REMOTE_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"rdma_buf reg_mr failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"start_buf malloc failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"start_buf reg_mr failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"allocated & registered buffers...\n"

	.no_dead_strip	_rping_setup_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_setup_buffers
_rping_setup_buffers:                   ; @rping_setup_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG_LOG
	ldr	w0, [x19, #56]
	add	x1, x19, #68
Lloh2:
	adrp	x20, _IBV_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IBV_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	w2, #4
	bl	_ibv_reg_mr
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #56]
	add	x1, x19, #64
	mov	w2, #4
	mov	w3, #0
	bl	_ibv_reg_mr
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x19]
	bl	_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.3:
	mov	x1, x0
	ldr	w0, [x19, #56]
	ldr	w2, [x19]
	ldr	w8, [x20]
Lloh4:
	adrp	x21, _IBV_ACCESS_REMOTE_READ@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IBV_ACCESS_REMOTE_READ@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh6:
	adrp	x22, _IBV_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IBV_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w3, w8, w9
	bl	_ibv_reg_mr
	str	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_rping_setup_wr
Lloh8:
	adrp	x0, l_.str.7@PAGE
Lloh9:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DEBUG_LOG
	mov	w20, #0
	b	LBB0_18
LBB0_6:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_7:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_8:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_9:
Lloh34:
	adrp	x8, _stderr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh41:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_10:
	ldr	w0, [x19]
	bl	_malloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_13
; %bb.11:
	mov	x1, x0
	ldr	w0, [x19, #56]
	ldr	w2, [x19]
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w3, w8, w9
	bl	_ibv_reg_mr
	str	x0, [x19, #48]
	cbnz	x0, LBB0_5
; %bb.12:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
Lloh47:
	adrp	x8, _errno@GOTPAGE
Lloh48:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh49:
	ldr	w20, [x8]
	ldr	x0, [x19, #40]
	bl	_free
	b	LBB0_14
LBB0_13:
Lloh50:
	adrp	x8, _stderr@GOTPAGE
Lloh51:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.5@PAGE
Lloh54:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
Lloh55:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	ldr	x0, [x19, #32]
	bl	_ibv_dereg_mr
LBB0_15:
	ldr	x0, [x19, #24]
	bl	_free
LBB0_16:
	ldr	x0, [x19, #16]
	bl	_ibv_dereg_mr
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_ibv_dereg_mr
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rping_setup_buffers called on cb %p\n"

	.comm	_IBV_ACCESS_LOCAL_WRITE,4,2     ; @IBV_ACCESS_LOCAL_WRITE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"recv_buf reg_mr failed\n"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"send_buf reg_mr failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"rdma_buf malloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IBV_ACCESS_REMOTE_READ,4,2     ; @IBV_ACCESS_REMOTE_READ
	.comm	_IBV_ACCESS_REMOTE_WRITE,4,2    ; @IBV_ACCESS_REMOTE_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"rdma_buf reg_mr failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"start_buf malloc failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"start_buf reg_mr failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"allocated & registered buffers...\n"

	.no_dead_strip	_rping_setup_buffers
.subsections_via_symbols
