	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function establish_connection
_establish_connection:                  ## @establish_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpq	$0, (%rdi)
	js	LBB0_1
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r12
	cmpl	$0, 8(%rdi)
	je	LBB0_8
## %bb.2:
	movl	$-1, %r14d
	jle	LBB0_7
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_conn_server
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rax
	incq	%rax
	movslq	8(%r12), %rcx
	cmpq	%rcx, %rax
	cmovaeq	%r15, %rax
	movq	%rax, 16(%r12)
	incl	%ebx
	cmpl	%ecx, %ebx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_generr
	movl	$-1, %r14d
	jmp	LBB0_7
LBB0_5:
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movq	_TAC_SRVR_SINGLE_CONNECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	andl	(%rcx,%rax,4), %edx
	setne	%sil
	movl	%esi, 12(%r12)
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No TACACS+ servers specified"

	.comm	_TAC_SRVR_SINGLE_CONNECT,4,2    ## @TAC_SRVR_SINGLE_CONNECT
	.no_dead_strip	_establish_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function establish_connection
_establish_connection:                  ; @establish_connection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_conn_server
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	add	x9, x8, #1
	ldrsw	x10, [x19, #8]
	cmp	x9, x10
	csinc	x8, xzr, x8, hs
	str	x8, [x19, #16]
	add	w20, w20, #1
	cmp	w20, w10
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_generr
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldp	x9, x8, [x19, #16]
	ldr	w8, [x8, x9, lsl #2]
Lloh2:
	adrp	x9, _TAC_SRVR_SINGLE_CONNECT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TAC_SRVR_SINGLE_CONNECT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #12]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No TACACS+ servers specified"

	.comm	_TAC_SRVR_SINGLE_CONNECT,4,2    ; @TAC_SRVR_SINGLE_CONNECT
	.no_dead_strip	_establish_connection
.subsections_via_symbols
