	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_target_choose_random_connections ## -- Begin function rpc_target_choose_random_connections
	.p2align	4, 0x90
_rpc_target_choose_random_connections:  ## @rpc_target_choose_random_connections
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	xorl	%r13d, %r13d
	testq	%rax, %rax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	(%rax), %r14
	movl	$0, %r12d
	cmpq	%rax, %r14
	je	LBB0_15
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r13d, %rax
	incl	%r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx,%rax,8)
	incl	%r12d
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %r14
	cmpq	8(%r15), %r14
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_server_check_ready
	movq	_cr_ok@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_RPCS_DATA
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	jle	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r13d
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_lrand48
	incl	%r12d
	cltd
	idivl	%r12d
	cmpl	%ebx, %edx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%edx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx,%rax,8)
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_3:
	xorl	%r12d, %r12d
LBB0_15:
	movq	(%r15), %rbx
	cmpq	%r15, %rbx
	je	LBB0_25
## %bb.16:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_cr_ok@GOTPCREL(%rip), %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%r13d, %rax
	incl	%r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rcx,%rax,8)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %rbx
	cmpq	%r15, %rbx
	je	LBB0_25
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_server_check_ready
	cmpl	(%r12), %eax
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	callq	_RPCS_DATA
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	jle	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	jl	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%eax, %eax
	callq	_lrand48
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	cltd
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	idivl	%ecx
	cmpl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movslq	%edx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rcx,%rax,8)
	jmp	LBB0_24
LBB0_25:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cr_ok,4,2                      ## @cr_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_target_choose_random_connections ; -- Begin function rpc_target_choose_random_connections
	.p2align	2
_rpc_target_choose_random_connections:  ; @rpc_target_choose_random_connections
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_13
; %bb.2:
	ldr	x24, [x8]
	cmp	x24, x8
	b.eq	LBB0_13
; %bb.3:
	mov	w25, #0
	mov	w23, #0
Lloh0:
	adrp	x26, _cr_ok@GOTPAGE
Lloh1:
	ldr	x26, [x26, _cr_ok@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x24, [x19, w23, sxtw #3]
	add	w23, w23, #1
	add	w25, w25, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [x24]
	ldr	x8, [x22, #8]
	cmp	x24, x8
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_server_check_ready
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x21, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_RPCS_DATA
	mov	x1, x21
	bl	_matches_pid
	cmp	w0, #1
	b.lt	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, w20
	b.lt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_lrand48
	add	w25, w25, #1
	sdiv	w8, w0, w25
	msub	w8, w8, w25, w0
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x24, [x19, w8, sxtw #3]
	b	LBB0_5
LBB0_12:
	mov	w23, #0
	b	LBB0_24
LBB0_13:
	mov	w23, #0
	mov	w25, #0
LBB0_14:
	ldr	x24, [x22]
	cmp	x24, x22
	b.eq	LBB0_24
; %bb.15:
Lloh2:
	adrp	x26, _cr_ok@GOTPAGE
Lloh3:
	ldr	x26, [x26, _cr_ok@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	str	x24, [x19, w23, sxtw #3]
	add	w23, w23, #1
	add	w25, w25, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x24, [x24]
	cmp	x24, x22
	b.eq	LBB0_24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_server_check_ready
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	x21, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x24
	bl	_RPCS_DATA
	mov	x1, x21
	bl	_matches_pid
	cmp	w0, #1
	b.lt	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w23, w20
	b.lt	LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	bl	_lrand48
	add	w25, w25, #1
	sdiv	w8, w0, w25
	msub	w8, w8, w25, w0
	cmp	w8, w20
	b.ge	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	str	x24, [x19, w8, sxtw #3]
	b	LBB0_17
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_cr_ok,4,2                      ; @cr_ok
.subsections_via_symbols
