	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_add_server_ex              ## -- Begin function rad_add_server_ex
	.p2align	4, 0x90
_rad_add_server_ex:                     ## @rad_add_server_ex
	.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
	movl	%edx, %ebx
	movq	(%rdi), %rax
	movq	_MAXSERVERS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jae	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	leaq	(%rax,%rax,8), %r13
	leaq	(%r12,%r13,8), %rdi
	addq	$48, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, 48(%r12,%r13,8)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12,%r13,8)
	leaq	(%r12,%r13,8), %r15
	addq	$64, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_inet_aton
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_3:
	movl	%ebx, %edi
	callq	_htons
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	movq	%r14, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	_RADIUS_AUTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_getservbyname
	testq	%rax, %rax
	jne	LBB0_11
## %bb.19:
	movq	_RADIUS_PORT@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_20
LBB0_11:
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_18:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_generr
	jmp	LBB0_14
LBB0_20:
	movq	_RADACCT_PORT@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	callq	_htons
LBB0_4:
	movq	%rax, 56(%r12,%r13,8)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_strdup
	movq	%rax, 40(%r12,%r13,8)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	24(%rbp), %rax
	movl	16(%rbp), %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%r12,%r13,8)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%r12,%r13,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12,%r13,8)
	movl	%ecx, 8(%r12,%r13,8)
	movq	$0, 16(%r12,%r13,8)
	movl	(%rax), %eax
	movl	%eax, 12(%r12,%r13,8)
	incq	(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_generr
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXSERVERS,8,3                 ## @MAXSERVERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many RADIUS servers specified"

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

	.comm	_RADIUS_AUTH,8,3                ## @RADIUS_AUTH
L_.str.2:                               ## @.str.2
	.asciz	"radius"

L_.str.3:                               ## @.str.3
	.asciz	"udp"

	.comm	_RADIUS_PORT,4,2                ## @RADIUS_PORT
L_.str.4:                               ## @.str.4
	.asciz	"radacct"

	.comm	_RADACCT_PORT,4,2               ## @RADACCT_PORT
L_.str.5:                               ## @.str.5
	.asciz	"Out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_add_server_ex              ; -- Begin function rad_add_server_ex
	.p2align	2
_rad_add_server_ex:                     ; @rad_add_server_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x28, [x0]
Lloh0:
	adrp	x8, _MAXSERVERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXSERVERS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x28, x8
	b.hs	LBB0_5
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	str	w6, [sp, #20]                   ; 4-byte Folded Spill
	str	x7, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x20, [x19, #16]
	mov	w8, #72
	madd	x27, x28, x8, x20
	add	x0, x27, #48
	mov	w21, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w21, [x27, #48]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x27, #68]
	add	x27, x27, #64
	mov	x0, x26
	mov	x1, x27
	bl	_inet_aton
	cbz	w0, LBB0_6
; %bb.2:
	cbz	w25, LBB0_8
LBB0_3:
	mov	x0, x25
LBB0_4:
	bl	_htons
	b	LBB0_13
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_17
LBB0_6:
	mov	x0, x26
	bl	_gethostbyname
	cbz	x0, LBB0_16
; %bb.7:
	ldr	w1, [x0]
	mov	x0, x27
	mov	w2, #4
	bl	_memcpy
	cbnz	w25, LBB0_3
LBB0_8:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _RADIUS_AUTH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RADIUS_AUTH@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_getservbyname
	cbnz	x0, LBB0_12
; %bb.10:
Lloh15:
	adrp	x8, _RADIUS_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RADIUS_PORT@GOTPAGEOFF]
	b	LBB0_20
LBB0_11:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_getservbyname
	cbz	x0, LBB0_19
LBB0_12:
	ldr	x0, [x0]
LBB0_13:
	mov	w8, #72
	madd	x21, x28, x8, x20
	str	x0, [x21, #56]
	mov	x0, x24
	bl	_strdup
	str	x0, [x21, #40]
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #0
	mov	w8, #72
	madd	x8, x28, x8, x20
	stp	w23, w22, [x8]
	stp	xzr, xzr, [x8, #24]
	str	xzr, [x8, #16]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	stp	w10, w9, [x8, #8]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_18
LBB0_15:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:
	str	x26, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_generr
	mov	w0, #-1
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh25:
	adrp	x8, _RADACCT_PORT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RADACCT_PORT@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXSERVERS,8,3                 ; @MAXSERVERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many RADIUS servers specified"

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

	.comm	_RADIUS_AUTH,8,3                ; @RADIUS_AUTH
l_.str.2:                               ; @.str.2
	.asciz	"radius"

l_.str.3:                               ; @.str.3
	.asciz	"udp"

	.comm	_RADIUS_PORT,4,2                ; @RADIUS_PORT
l_.str.4:                               ; @.str.4
	.asciz	"radacct"

	.comm	_RADACCT_PORT,4,2               ; @RADACCT_PORT
l_.str.5:                               ; @.str.5
	.asciz	"Out of memory"

.subsections_via_symbols
