	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_target_conn                ## -- Begin function get_target_conn
	.p2align	4, 0x90
_get_target_conn:                       ## @get_target_conn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	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	%r15, (%rax,%rbx,8)
	sete	%dil
	callq	_assert
	movq	_get_connection@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r14
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_get_target_connection
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	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)
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_get_target@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	%r15, (%rcx,%rax,8)
	movq	_get_connection@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r14, (%rcx,%rax,8)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
LBB0_7:
	callq	_write_out
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_write_out
	negl	(%r15)
	jmp	LBB0_8
LBB0_5:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	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	" "

L_.str.1:                               ## @.str.1
	.asciz	"get "

	.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                ; -- Begin function get_target_conn
	.p2align	2
_get_target_conn:                       ; @get_target_conn
	.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	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #0
	cneg	w8, w8, mi
	sub	w20, w8, #1
Lloh0:
	adrp	x8, _get_targets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _get_targets@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, lo
	bl	_assert
Lloh3:
	adrp	x8, _get_target@GOTPAGE
Lloh4:
	ldr	x8, [x8, _get_target@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x20, x20, #3
	ldr	x8, [x8, x20]
	cmp	x8, x19
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _get_connection@GOTPAGE
Lloh7:
	ldr	x8, [x8, _get_connection@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x20, [x8, x20]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_get_target_connection
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.4:
Lloh11:
	adrp	x21, _get_targets@GOTPAGE
Lloh12:
	ldr	x21, [x21, _get_targets@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _MAX_CLUSTER_SERVERS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MAX_CLUSTER_SERVERS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
	add	w9, w8, #1
Lloh16:
	adrp	x10, _get_target@GOTPAGE
Lloh17:
	ldr	x10, [x10, _get_target@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	sbfiz	x8, x8, #3, #32
	str	x19, [x10, x8]
	str	w9, [x19]
Lloh19:
	adrp	x9, _get_connection@GOTPAGE
Lloh20:
	ldr	x9, [x9, _get_connection@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	str	x20, [x9, x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #4
LBB0_5:
	bl	_write_out
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_write_out
	ldr	w8, [x19]
	neg	w8, w8
	str	w8, [x19]
LBB0_7:
	mov	x0, x20
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.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	" "

l_.str.1:                               ; @.str.1
	.asciz	"get "

	.comm	_MAX_CLUSTER_SERVERS,8,3        ; @MAX_CLUSTER_SERVERS
.subsections_via_symbols
