	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_connect
_client_connect:                        ## @client_connect
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	movq	$0, -64(%rbp)
	movq	_use_rgai@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	movq	_dst_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_port@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	je	LBB0_2
## %bb.1:
	movq	_rai_hints@GOTPCREL(%rip), %rdx
	leaq	-40(%rbp), %rcx
	callq	_rdma_getaddrinfo
	jmp	LBB0_3
LBB0_2:
	movq	_ai_hints@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rcx
	callq	_getaddrinfo
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movq	%rax, %rsi
	callq	_printf
LBB0_38:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_src_addr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.7:
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.8:
	movq	_RAI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rai_hints@GOTPCREL(%rip), %rdx
	orl	%eax, (%rdx)
	movl	(%r15), %esi
	leaq	-64(%rbp), %rcx
	callq	_rdma_getaddrinfo
	jmp	LBB0_10
LBB0_9:
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ai_hints@GOTPCREL(%rip), %rdx
	orl	%eax, (%rdx)
	movl	(%r15), %esi
	leaq	-72(%rbp), %rcx
	callq	_getaddrinfo
LBB0_10:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%ebx, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_12:
	movq	-40(%rbp), %rax
	movq	-48(%rbp), %rcx
	addq	$8, %rcx
	leaq	32(%rax), %rdx
	testq	%rax, %rax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rs_socket
	movq	_rs@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_set_options
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.13:
	cmpq	$0, -40(%rbp)
	movq	(%r15), %rdi
	je	LBB0_15
## %bb.14:
	movq	-64(%rbp), %rax
	movl	24(%rax), %edx
	movl	28(%rax), %esi
	jmp	LBB0_16
LBB0_15:
	movq	-72(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
LBB0_16:
	callq	_rs_bind
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
LBB0_18:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.20:
	movq	(%r15), %rdi
	movq	_SOL_RDMA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_RDMA_ROUTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%rax), %r8d
	callq	_rs_setsockopt
	testl	%eax, %eax
	jne	LBB0_21
## %bb.22:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	movq	(%r15), %rdi
	jmp	LBB0_25
LBB0_24:
	movq	(%r15), %rdi
	movq	-48(%rbp), %rax
LBB0_25:
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_rs_connect
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_35
## %bb.26:
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.28:
	movq	(%r15), %rax
	movq	%rax, -80(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_poll_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	callq	_do_poll
	testl	%eax, %eax
	jne	LBB0_29
## %bb.30:
	movl	$4, -52(%rbp)
	movq	(%r15), %rdi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_rs_getsockopt
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.31:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_32
LBB0_39:
	testl	%r14d, %r14d
	jne	LBB0_34
	jmp	LBB0_35
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_33
LBB0_27:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_33
LBB0_29:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_33
LBB0_32:
	movl	%eax, (%r12)
	movl	$-1, %r14d
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_33
LBB0_21:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rdi
LBB0_33:
	callq	_perror
LBB0_34:
	movq	(%r15), %rdi
	callq	_rs_close
	movl	%r14d, %ebx
LBB0_35:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.36:
	callq	_rdma_freeaddrinfo
	jmp	LBB0_38
LBB0_37:
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_use_rgai,8,3                   ## @use_rgai
	.comm	_dst_addr,8,3                   ## @dst_addr
	.comm	_port,4,2                       ## @port
	.comm	_rai_hints,4,2                  ## @rai_hints
	.comm	_ai_hints,4,2                   ## @ai_hints
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getaddrinfo: %s\n"

	.comm	_src_addr,8,3                   ## @src_addr
	.comm	_RAI_PASSIVE,4,2                ## @RAI_PASSIVE
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo src_addr: %s\n"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_rs,8,3                         ## @rs
L_.str.3:                               ## @.str.3
	.asciz	"rbind"

	.comm	_SOL_RDMA,4,2                   ## @SOL_RDMA
	.comm	_RDMA_ROUTE,4,2                 ## @RDMA_ROUTE
L_.str.4:                               ## @.str.4
	.asciz	"rsetsockopt RDMA_ROUTE"

	.comm	_errno,4,2                      ## @errno
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.5:                               ## @.str.5
	.asciz	"rconnect"

	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_poll_timeout,4,2               ## @poll_timeout
L_.str.6:                               ## @.str.6
	.asciz	"rpoll"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
L_.str.7:                               ## @.str.7
	.asciz	"async rconnect"

	.no_dead_strip	_client_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_connect
_client_connect:                        ; @client_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	stur	xzr, [x29, #-40]
	str	xzr, [sp, #48]
Lloh0:
	adrp	x22, _use_rgai@GOTPAGE
Lloh1:
	ldr	x22, [x22, _use_rgai@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _dst_addr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dst_addr@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x9]
Lloh5:
	adrp	x20, _port@GOTPAGE
Lloh6:
	ldr	x20, [x20, _port@GOTPAGEOFF]
	ldr	w1, [x20]
	cbz	x8, LBB0_5
; %bb.1:
Lloh7:
	adrp	x2, _rai_hints@GOTPAGE
Lloh8:
	ldr	x2, [x2, _rai_hints@GOTPAGEOFF]
	sub	x3, x29, #40
	bl	_rdma_getaddrinfo
	mov	x19, x0
	cbz	w0, LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_gai_strerror
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_printf
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #112
	ret
LBB0_5:
Lloh11:
	adrp	x2, _ai_hints@GOTPAGE
Lloh12:
	ldr	x2, [x2, _ai_hints@GOTPAGEOFF]
	add	x3, sp, #40
	bl	_getaddrinfo
	mov	x19, x0
	cbnz	w0, LBB0_2
LBB0_6:
Lloh13:
	adrp	x21, _src_addr@GOTPAGE
Lloh14:
	ldr	x21, [x21, _src_addr@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.8:
Lloh15:
	adrp	x8, _RAI_PASSIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RAI_PASSIVE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x2, _rai_hints@GOTPAGE
Lloh19:
	ldr	x2, [x2, _rai_hints@GOTPAGEOFF]
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
	ldr	w1, [x20]
	add	x3, sp, #48
	bl	_rdma_getaddrinfo
	mov	x19, x0
	cbz	w0, LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_gai_strerror
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_10:
Lloh22:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x2, _ai_hints@GOTPAGE
Lloh26:
	ldr	x2, [x2, _ai_hints@GOTPAGEOFF]
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
	ldr	w1, [x20]
	add	x3, sp, #32
	bl	_getaddrinfo
	mov	x19, x0
	cbnz	w0, LBB0_9
LBB0_11:
	ldur	x8, [x29, #-40]
	ldr	x9, [sp, #40]
	add	x9, x9, #8
	add	x10, x8, #32
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rs_socket
Lloh30:
	adrp	x20, _rs@GOTPAGE
Lloh31:
	ldr	x20, [x20, _rs@GOTPAGEOFF]
	str	x0, [x20]
	bl	_set_options
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.12:
	ldur	x8, [x29, #-40]
	ldr	x0, [x20]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [sp, #48]
	ldp	w2, w1, [x8, #24]
	b	LBB0_15
LBB0_14:
	ldr	x8, [sp, #32]
	ldp	w2, w1, [x8]
LBB0_15:
	bl	_rs_bind
	mov	x19, x0
	cbnz	w0, LBB0_32
LBB0_16:
	ldur	x8, [x29, #-40]
	cbz	x8, LBB0_21
; %bb.17:
	ldr	x3, [x8, #16]
	cbz	x3, LBB0_20
; %bb.18:
Lloh32:
	adrp	x9, _SOL_RDMA@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SOL_RDMA@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh34:
	ldr	w1, [x9]
Lloh35:
	adrp	x9, _RDMA_ROUTE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _RDMA_ROUTE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x9]
	ldr	w4, [x8, #8]
	bl	_rs_setsockopt
	cbnz	w0, LBB0_36
; %bb.19:
	ldur	x8, [x29, #-40]
	cbz	x8, LBB0_21
LBB0_20:
	ldr	x0, [x20]
	b	LBB0_22
LBB0_21:
	ldr	x0, [x20]
	ldr	x8, [sp, #40]
LBB0_22:
	ldp	w2, w1, [x8]
	bl	_rs_connect
	mov	x19, x0
	cbz	w0, LBB0_29
; %bb.23:
Lloh38:
	adrp	x21, _errno@GOTPAGE
Lloh39:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh40:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_33
; %bb.24:
	ldr	x8, [x20]
Lloh43:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh44:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh45:
	ldr	w8, [x9]
	str	w8, [sp, #16]
Lloh46:
	adrp	x8, _poll_timeout@GOTPAGE
Lloh47:
	ldr	x8, [x8, _poll_timeout@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_do_poll
	cbnz	w0, LBB0_34
; %bb.25:
	mov	w8, #4
	str	w8, [sp, #8]
	ldr	x0, [x20]
Lloh49:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_rs_getsockopt
	mov	x19, x0
	cbnz	w0, LBB0_27
; %bb.26:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_35
LBB0_27:
	cbz	w19, LBB0_29
LBB0_28:
	ldr	x0, [x20]
	bl	_rs_close
LBB0_29:
	ldur	x0, [x29, #-40]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_rdma_freeaddrinfo
	b	LBB0_4
LBB0_31:
	ldr	x0, [sp, #40]
	bl	_freeaddrinfo
	b	LBB0_4
LBB0_32:
Lloh55:
	adrp	x0, l_.str.3@PAGE
Lloh56:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	b	LBB0_28
LBB0_33:
Lloh57:
	adrp	x0, l_.str.5@PAGE
Lloh58:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	b	LBB0_28
LBB0_34:
	mov	x19, x0
Lloh59:
	adrp	x0, l_.str.6@PAGE
Lloh60:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_perror
	b	LBB0_28
LBB0_35:
	str	w8, [x21]
	mov	w19, #-1
Lloh61:
	adrp	x0, l_.str.7@PAGE
Lloh62:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_perror
	b	LBB0_28
LBB0_36:
	mov	x19, x0
Lloh63:
	adrp	x0, l_.str.4@PAGE
Lloh64:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_28
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_use_rgai,8,3                   ; @use_rgai
	.comm	_dst_addr,8,3                   ; @dst_addr
	.comm	_port,4,2                       ; @port
	.comm	_rai_hints,4,2                  ; @rai_hints
	.comm	_ai_hints,4,2                   ; @ai_hints
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getaddrinfo: %s\n"

	.comm	_src_addr,8,3                   ; @src_addr
	.comm	_RAI_PASSIVE,4,2                ; @RAI_PASSIVE
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo src_addr: %s\n"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_rs,8,3                         ; @rs
l_.str.3:                               ; @.str.3
	.asciz	"rbind"

	.comm	_SOL_RDMA,4,2                   ; @SOL_RDMA
	.comm	_RDMA_ROUTE,4,2                 ; @RDMA_ROUTE
l_.str.4:                               ; @.str.4
	.asciz	"rsetsockopt RDMA_ROUTE"

	.comm	_errno,4,2                      ; @errno
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.5:                               ; @.str.5
	.asciz	"rconnect"

	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_poll_timeout,4,2               ; @poll_timeout
l_.str.6:                               ; @.str.6
	.asciz	"rpoll"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
l_.str.7:                               ; @.str.7
	.asciz	"async rconnect"

	.no_dead_strip	_client_connect
.subsections_via_symbols
