	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_new_rpc_connection          ## -- Begin function do_new_rpc_connection
	.p2align	4, 0x90
_do_new_rpc_connection:                 ## @do_new_rpc_connection
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movsd	%xmm2, -72(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	movl	%edi, %ebx
	movq	_connect@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_ADD_CNT
	movl	(%r12), %edi
	movq	%r14, %r12
	callq	_START_TIMER
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r13d, %esi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_rpc_find_persistent
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_assert
	movl	(%r14), %esi
	cmpl	%r12d, %esi
	jge	LBB0_1
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rdi
	shll	$3, %esi
	leal	(,%r12,8), %ebx
	movl	%ebx, %edx
	callq	_zzrealloc
	movq	%rax, 8(%r14)
	movl	(%r14), %edi
	shll	$3, %edi
	movl	%ebx, %esi
	callq	_ADD_PREALLOC
	movq	%r12, %rax
	movslq	(%r14), %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %ebx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jge	LBB0_5
## %bb.3:
	movl	%r13d, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r13d
	subl	%ebx, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movl	%r15d, %esi
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_rpc_server_new
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	decl	%r13d
	jne	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	movl	%esi, %eax
LBB0_6:
	xorl	%r13d, %r13d
	testl	%eax, %eax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_rpc_open
	shrq	$63, %rax
	xorl	$1, %eax
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
## %bb.9:
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.11:
	movl	$32, %edi
	callq	_zzmalloc
	movq	%rax, %r13
	movq	_last_connection_fd@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, 24(%r13)
	movq	%r14, 16(%r13)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%r13)
	movq	_rpc_connection_tree@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r14d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_tree_insert_connection
	movl	%eax, (%rbx)
	jmp	LBB0_12
LBB0_10:
	xorl	%r13d, %r13d
LBB0_12:
	movq	_connect@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_END_TIMER
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connect,4,2                    ## @connect
	.comm	_last_connection_fd,4,2         ## @last_connection_fd
	.comm	_rpc_connection_tree,4,2        ## @rpc_connection_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_new_rpc_connection          ; -- Begin function do_new_rpc_connection
	.p2align	2
_do_new_rpc_connection:                 ; @do_new_rpc_connection
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x20, x5
	mov	x21, x4
	fmov	d9, d2
	fmov	d10, d1
	fmov	d8, d0
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x27, _connect@GOTPAGE
Lloh1:
	ldr	x27, [x27, _connect@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_ADD_CNT
	ldr	w0, [x27]
	bl	_START_TIMER
	mov	x0, x25
	mov	x1, x24
	fmov	d0, d10
	fmov	d1, d9
	bl	_rpc_find_persistent
	mov	x22, x0
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, w23
	b.ge	LBB0_5
; %bb.1:
	ldr	x0, [x22, #8]
	lsl	w1, w8, #3
	lsl	w26, w23, #3
	mov	x2, x26
	bl	_zzrealloc
	str	x0, [x22, #8]
	ldr	w8, [x22]
	lsl	w0, w8, #3
	mov	x1, x26
	bl	_ADD_PREALLOC
	ldrsw	x8, [x22]
	cmp	w8, w23
	b.ge	LBB0_4
; %bb.2:
	lsl	x26, x8, #2
	sub	w28, w23, w8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	fmov	d0, d8
	fmov	d1, d9
	bl	_rpc_server_new
	ldr	x8, [x22, #8]
	str	w0, [x8, x26]
	add	x26, x26, #4
	subs	w28, w28, #1
	b.ne	LBB0_3
LBB0_4:
	str	w23, [x22]
	mov	x8, x23
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x24, #0
	mov	w23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x24, lsl #2]
	mov	x1, x21
	mov	x2, x20
	bl	_rpc_open
	lsr	x8, x0, #63
	eor	w8, w8, #0x1
	add	w23, w8, w23
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_7
; %bb.8:
	cbz	w23, LBB0_10
; %bb.9:
	mov	w0, #32
	bl	_zzmalloc
	mov	x20, x0
Lloh2:
	adrp	x8, _last_connection_fd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _last_connection_fd@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	stp	x22, x9, [x0, #16]
	str	x19, [x0]
	str	d8, [x0, #8]
Lloh4:
	adrp	x21, _rpc_connection_tree@GOTPAGE
Lloh5:
	ldr	x21, [x21, _rpc_connection_tree@GOTPAGEOFF]
	ldr	w19, [x21]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_tree_insert_connection
	str	w0, [x21]
	b	LBB0_11
LBB0_10:
	mov	x20, #0
LBB0_11:
	ldr	w0, [x27]
	bl	_END_TIMER
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_connect,4,2                    ; @connect
	.comm	_last_connection_fd,4,2         ; @last_connection_fd
	.comm	_rpc_connection_tree,4,2        ; @rpc_connection_tree
.subsections_via_symbols
