	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tac_add_server                 ## -- Begin function tac_add_server
	.p2align	4, 0x90
_tac_add_server:                        ## @tac_add_server
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_MAXSERVERS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jae	LBB0_6
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %r15
	shlq	$5, %r12
	leaq	(%r15,%r12), %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$16, 16(%r15,%r12)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15,%r12)
	movq	%r14, %rdi
	leaq	(%r15,%r12), %r14
	addq	$24, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_inet_aton
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_4
LBB0_3:
	movq	_TACPLUS_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movl	%r13d, %edi
	callq	_htons
	movl	%eax, 20(%r15,%r12)
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_xstrdup
	movq	%rax, 8(%r15,%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15,%r12)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15,%r12)
	incq	(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_generr
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	testl	%r13d, %r13d
	je	LBB0_3
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_generr
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXSERVERS,8,3                 ## @MAXSERVERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many TACACS+ servers specified"

	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"%s: host not found"

	.comm	_TACPLUS_PORT,4,2               ## @TACPLUS_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tac_add_server                 ; -- Begin function tac_add_server
	.p2align	2
_tac_add_server:                        ; @tac_add_server
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x26, [x0]
Lloh0:
	adrp	x8, _MAXSERVERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXSERVERS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x26, x8
	b.hs	LBB0_6
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	ldr	x27, [x19, #8]
	add	x28, x27, x26, lsl #5
	add	x0, x28, #16
	mov	w25, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w25, [x28, #16]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x28, #28]
	add	x25, x28, #24
	mov	x0, x24
	mov	x1, x25
	bl	_inet_aton
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x24
	bl	_gethostbyname
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w1, [x0]
	mov	x0, x25
	mov	w2, #4
	bl	_memcpy
LBB0_4:
Lloh6:
	adrp	x8, _TACPLUS_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TACPLUS_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w0, w8, w23, eq
	bl	_htons
	str	w0, [x28, #20]
	mov	x0, x19
	mov	x1, x22
	bl	_xstrdup
	str	x0, [x28, #8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	w0, #0
	add	x8, x27, x26, lsl #5
	stp	w21, w20, [x8]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_generr
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	str	x24, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXSERVERS,8,3                 ; @MAXSERVERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many TACACS+ servers specified"

	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"%s: host not found"

	.comm	_TACPLUS_PORT,4,2               ; @TACPLUS_PORT
.subsections_via_symbols
