	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function get_target_conn_simple
LCPI0_0:
	.quad	0x3fc999999999999a              ## double 0.20000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_get_target_conn_simple
	.p2align	4, 0x90
_get_target_conn_simple:                ## @get_target_conn_simple
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	decl	%ebx
	movq	_get_targets@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setb	%dil
	callq	_assert
	movq	_get_target@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%r12, (%rax,%rbx,8)
	sete	%dil
	callq	_assert
	movq	_get_connection@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r14
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	negl	%eax
	movl	%eax, (%r12)
	leaq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_write_out
	movq	_CC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cvtsi2sdq	(%rax), %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_create_query
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	orb	$16, 1(%rax)
LBB0_4:
	movq	%r14, %rdi
	callq	_flush_output
	movq	_precise_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_accumulate_query_timeout
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_get_target_connection
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_get_targets@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_MAX_CLUSTER_SERVERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_assert
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movslq	%eax, %rcx
	notl	%eax
	movl	%eax, (%r12)
	movq	_get_target@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, (%rax,%rcx,8)
	movq	_get_connection@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, (%rax,%rcx,8)
	jmp	LBB0_8
LBB0_6:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_get_targets,8,3                ## @get_targets
	.comm	_get_target,8,3                 ## @get_target
	.comm	_get_connection,8,3             ## @get_connection
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_CC,8,3                         ## @CC
	.comm	_precise_now,4,2                ## @precise_now
	.comm	_MAX_CLUSTER_SERVERS,8,3        ## @MAX_CLUSTER_SERVERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_target_conn_simple         ; -- Begin function get_target_conn_simple
	.p2align	2
_get_target_conn_simple:                ; @get_target_conn_simple
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x21, x1
	cmp	w8, #0
	cneg	w8, w8, mi
	sub	w19, w8, #1
Lloh0:
	adrp	x8, _get_targets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _get_targets@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	cset	w0, lo
	bl	_assert
Lloh3:
	adrp	x8, _get_target@GOTPAGE
Lloh4:
	ldr	x8, [x8, _get_target@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x19, x19, #3
	ldr	x8, [x8, x19]
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _get_connection@GOTPAGE
Lloh7:
	ldr	x8, [x8, _get_connection@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x19, [x8, x19]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	neg	w8, w8
	str	w8, [x20]
	add	x0, x19, #16
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_write_out
Lloh11:
	adrp	x20, _CC@GOTPAGE
Lloh12:
	ldr	x20, [x20, _CC@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	d0, [x8]
	scvtf	d0, d0
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16329, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	fcvtzs	x2, d0
	mov	x0, x19
	mov	x1, x21
	bl	_create_query
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x0]
	orr	w8, w8, #0x1000
	str	w8, [x0]
LBB0_4:
	mov	x0, x19
	bl	_flush_output
Lloh13:
	adrp	x8, _precise_now@GOTPAGE
Lloh14:
	ldr	x8, [x8, _precise_now@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_accumulate_query_timeout
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_get_target_connection
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.6:
Lloh16:
	adrp	x21, _get_targets@GOTPAGE
Lloh17:
	ldr	x21, [x21, _get_targets@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh18:
	adrp	x9, _MAX_CLUSTER_SERVERS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAX_CLUSTER_SERVERS@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
	mvn	w9, w8
Lloh21:
	adrp	x10, _get_target@GOTPAGE
Lloh22:
	ldr	x10, [x10, _get_target@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	sbfiz	x8, x8, #3, #32
	str	x20, [x10, x8]
	str	w9, [x20]
Lloh24:
	adrp	x9, _get_connection@GOTPAGE
Lloh25:
	ldr	x9, [x9, _get_connection@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	str	x19, [x9, x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_get_targets,8,3                ; @get_targets
	.comm	_get_target,8,3                 ; @get_target
	.comm	_get_connection,8,3             ; @get_connection
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_CC,8,3                         ; @CC
	.comm	_precise_now,4,2                ; @precise_now
	.comm	_MAX_CLUSTER_SERVERS,8,3        ; @MAX_CLUSTER_SERVERS
.subsections_via_symbols
