	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rpc_connect_open
__rpc_connect_open:                     ## @_rpc_connect_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpl	$0, 44(%rdi)
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rpc_server_disconnect
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_update_precise_now
	movq	_precise_now@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	addsd	(%rbx), %xmm0
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_rpc_sock_connect
	movl	%eax, 44(%rbx)
	testl	%eax, %eax
	js	LBB0_3
## %bb.13:
	movq	_rpc_status_connected@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_active_net_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_global_generation@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movabsq	$-4294967298, %rax              ## imm = 0xFFFFFFFEFFFFFFFE
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_rpc_make_handshake
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jns	LBB0_20
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rpc_server_seterror
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	16(%rbx), %rdi
	callq	_estrdup
	movq	%rax, (%r15)
LBB0_16:
	testq	%r14, %r14
	je	LBB0_19
## %bb.17:
	movl	24(%rbx), %eax
	jmp	LBB0_18
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	callq	_strerror
	movq	%rax, %rsi
	movl	(%r13), %r12d
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rpc_server_seterror
	movq	%rbx, %rdi
	callq	_rpc_server_deactivate
	testq	%r15, %r15
	je	LBB0_11
## %bb.7:
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.9:
	callq	_strerror
	movq	%rax, %rdi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rdi
LBB0_10:
	callq	_estrdup
	movq	%rax, (%r15)
LBB0_11:
	testq	%r14, %r14
	je	LBB0_19
## %bb.12:
	movl	(%r13), %eax
LBB0_18:
	movl	%eax, (%r14)
LBB0_19:
	movq	_rpc_status_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	$-1, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_precise_now,8,3                ## @precise_now
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Connect timed out"

	.comm	_rpc_status_failed,8,3          ## @rpc_status_failed
	.comm	_rpc_status_connected,8,3       ## @rpc_status_connected
	.comm	_active_net_connections,4,2     ## @active_net_connections
	.comm	_global_generation,4,2          ## @global_generation
L_.str.1:                               ## @.str.1
	.asciz	"Rpc handshake failed"

	.no_dead_strip	__rpc_connect_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rpc_connect_open
__rpc_connect_open:                     ; @_rpc_connect_open
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #44]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rpc_server_disconnect
LBB0_2:
	bl	_update_precise_now
Lloh0:
	adrp	x8, _precise_now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _precise_now@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	ldr	d1, [x19]
	fadd	d8, d0, d1
	ldp	w1, w0, [x19, #48]
	fmov	d0, d8
	bl	_rpc_sock_connect
	str	w0, [x19, #44]
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _rpc_status_connected@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rpc_status_connected@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #32]
Lloh6:
	adrp	x8, _active_net_connections@GOTPAGE
Lloh7:
	ldr	x8, [x8, _active_net_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh8:
	adrp	x8, _global_generation@GOTPAGE
Lloh9:
	ldr	x8, [x8, _global_generation@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mvni.2s	v0, #1
	str	d0, [x19, #8]
	mov	x0, x19
	fmov	d0, d8
	bl	_rpc_make_handshake
	tbnz	x0, #63, LBB0_7
; %bb.4:
	mov	w0, #1
	b	LBB0_21
LBB0_5:
Lloh11:
	adrp	x22, _errno@GOTPAGE
Lloh12:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	w0, LBB0_11
; %bb.6:
	bl	_strerror
	mov	x1, x0
	ldr	w2, [x22]
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_rpc_server_seterror
	cbz	x21, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	bl	_estrdup
	str	x0, [x21]
LBB0_9:
	cbz	x20, LBB0_20
; %bb.10:
	ldr	w8, [x19, #24]
	b	LBB0_19
LBB0_11:
	mov	w2, #0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_rpc_server_seterror
	mov	x0, x19
	bl	_rpc_server_deactivate
	cbz	x21, LBB0_17
; %bb.13:
	ldr	w0, [x22]
	cbz	w0, LBB0_15
; %bb.14:
	bl	_strerror
	b	LBB0_16
LBB0_15:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
LBB0_16:
	bl	_estrdup
	str	x0, [x21]
LBB0_17:
	cbz	x20, LBB0_20
; %bb.18:
	ldr	w8, [x22]
LBB0_19:
	str	w8, [x20]
LBB0_20:
Lloh19:
	adrp	x8, _rpc_status_failed@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rpc_status_failed@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	mov	w0, #-1
LBB0_21:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_precise_now,8,3                ; @precise_now
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Connect timed out"

	.comm	_rpc_status_failed,8,3          ; @rpc_status_failed
	.comm	_rpc_status_connected,8,3       ; @rpc_status_connected
	.comm	_active_net_connections,4,2     ; @active_net_connections
	.comm	_global_generation,4,2          ; @global_generation
l_.str.1:                               ; @.str.1
	.asciz	"Rpc handshake failed"

	.no_dead_strip	__rpc_connect_open
.subsections_via_symbols
