	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rping_bind_client
_rping_bind_client:                     ## @rping_bind_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %rdx
	movl	24(%rdi), %edi
	movl	40(%rbx), %eax
	movl	%eax, 16(%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	32(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
LBB0_3:
	movl	$2000, %ecx                     ## imm = 0x7D0
	callq	_rdma_resolve_addr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	leaq	8(%rbx), %rdi
	callq	_sem_wait
	movq	(%rbx), %rdx
	movq	_ROUTE_RESOLVED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DEBUG_LOG
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdma_resolve_addr"

	.comm	_ROUTE_RESOLVED,8,3             ## @ROUTE_RESOLVED
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"waiting for addr/route resolution state %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"rdma_resolve_addr - rdma_resolve_route successful\n"

	.no_dead_strip	_rping_bind_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rping_bind_client
_rping_bind_client:                     ; @rping_bind_client
	.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	x19, x0
	ldr	w8, [x0, #40]
	mov	x2, x0
	str	w8, [x2, #16]!
	mov	x1, x2
	ldr	x8, [x1, #16]!
	ldr	w0, [x2, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x1, #0
LBB0_2:
	mov	w3, #2000
	bl	_rdma_resolve_addr
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.3:
	add	x0, x19, #8
	bl	_sem_wait
	ldr	x2, [x19]
Lloh0:
	adrp	x8, _ROUTE_RESOLVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROUTE_RESOLVED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEBUG_LOG
	mov	w20, #0
	b	LBB0_6
LBB0_5:
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_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_6
	.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
	.comm	_AF_INET,8,3                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdma_resolve_addr"

	.comm	_ROUTE_RESOLVED,8,3             ; @ROUTE_RESOLVED
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"waiting for addr/route resolution state %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"rdma_resolve_addr - rdma_resolve_route successful\n"

	.no_dead_strip	_rping_bind_client
.subsections_via_symbols
