	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_connect_client
_rping_connect_client:                  ## @rping_connect_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -32(%rbp)
	movl	$7, -24(%rbp)
	movl	12(%r14), %edi
	movq	%rbx, %rsi
	callq	_rdma_connect
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	leaq	8(%r14), %rdi
	callq	_sem_wait
	movq	(%r14), %rdx
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_DEBUG_LOG
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdma_connect"

	.comm	_CONNECTED,8,3                  ## @CONNECTED
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"wait for CONNECTED state %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"rmda_connect successful\n"

	.no_dead_strip	_rping_connect_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_connect_client
_rping_connect_client:                  ; @rping_connect_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	movi.2s	v0, #1
	str	d0, [sp]
	mov	w8, #7
	str	w8, [sp, #8]
	ldr	w0, [x19, #12]
	mov	x1, sp
	bl	_rdma_connect
	cbnz	w0, LBB0_5
; %bb.1:
	add	x0, x19, #8
	bl	_sem_wait
	ldr	x2, [x19]
Lloh0:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEBUG_LOG
	mov	w20, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w20, #-1
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdma_connect"

	.comm	_CONNECTED,8,3                  ; @CONNECTED
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"wait for CONNECTED state %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"rmda_connect successful\n"

	.no_dead_strip	_rping_connect_client
.subsections_via_symbols
