	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_authreadkeys                   ## -- Begin function authreadkeys
	.p2align	4, 0x90
_authreadkeys:                          ## @authreadkeys
	.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	$728, %rsp                      ## imm = 0x2D8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_59
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -760(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_INIT_SSL
	movq	$0, -704(%rbp)
	leaq	-560(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r15, %rdx
	callq	_fgets
	movq	%rax, -712(%rbp)
	testq	%rax, %rax
	je	LBB0_56
## %bb.2:
	leaq	-712(%rbp), %r14
	xorl	%r13d, %r13d
	movq	%r15, -752(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	-704(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log_maybe
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	-560(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r15, %rdx
	callq	_fgets
	movq	%rax, -712(%rbp)
	testq	%rax, %rax
	je	LBB0_56
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
                                        ##       Child Loop BB0_37 Depth 3
	movq	-704(%rbp), %rax
	movq	_nerr_maxlimit@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_56
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nexttok
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edx
	movq	_NTP_MAXKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-704(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log_maybe
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, -692(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_nexttok
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	(%rax), %al
	orb	$32, %al
	cmpb	$109, %al
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_KEY_TYPE_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -728(%rbp)                ## 8-byte Spill
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-704(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	-692(%rbp), %edx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	movq	%rax, -728(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	leaq	L_.str.5(%rip), %rsi
	movl	-692(%rbp), %edx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_nexttok
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %rbx
	cmpq	$20, %rax
	ja	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -744(%rbp)                ## 8-byte Spill
	leal	40(%rbx), %edi
	callq	_emalloc
	movq	%rax, %rcx
	movq	$0, 24(%rax)
	movl	-692(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rcx)
	movq	-728(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	%rbx, 8(%rcx)
	movq	%rcx, -736(%rbp)                ## 8-byte Spill
	movl	32(%rcx), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	jmp	LBB0_27
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-704(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	-692(%rbp), %edx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
	leaq	-712(%rbp), %r14
	jmp	LBB0_4
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_min
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=2
	shll	$4, %eax
	movq	%rbx, %rcx
	andq	$-2, %rcx
	movl	%eax, -688(%rbp,%rcx,2)
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_26
LBB0_23:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14,%rbx), %edi
	callq	_tolower
	movl	$17, %edx
	leaq	_authreadkeys.hex(%rip), %r12
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_55
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	subl	%r12d, %eax
	testb	$1, %bl
	je	LBB0_21
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	%rbx, %rcx
	andq	$-2, %rcx
	orl	%eax, -688(%rbp,%rcx,2)
	jmp	LBB0_22
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -744(%rbp)                ## 8-byte Spill
	shrq	%r15
	leal	40(%r15), %edi
	callq	_emalloc
	movq	%rax, %rcx
	movq	$0, 24(%rax)
	movl	-692(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rcx)
	movq	-728(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	%r15, 8(%rcx)
	movq	%rcx, -736(%rbp)                ## 8-byte Spill
	movl	32(%rcx), %edi
	leaq	-688(%rbp), %rsi
	movq	%r15, %rdx
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_memcpy
	leaq	-712(%rbp), %r14
	movq	%r14, %rdi
	callq	_nexttok
	testq	%rax, %rax
	je	LBB0_52
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_32 Depth=2
	xorl	%edi, %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movl	-692(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
LBB0_30:                                ##   in Loop: Header=BB0_32 Depth=2
	movq	-736(%rbp), %rbx                ## 8-byte Reload
	movq	24(%rbx), %rdi
	leaq	-716(%rbp), %rsi
	movl	%r12d, %edx
	callq	_keyacc_new_push
	movq	%rax, 24(%rbx)
LBB0_31:                                ##   in Loop: Header=BB0_32 Depth=2
	leaq	1(%r13), %r15
	testq	%r13, %r13
	je	LBB0_52
LBB0_32:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_37 Depth 3
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_strchr
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	movb	$0, (%r13)
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=2
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_41
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	movb	1(%rax), %al
	xorl	%r12d, %r12d
	testb	%al, %al
	je	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	%rbx, %r14
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_32 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_49
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=3
	cmpl	$1000, %r12d                    ## imm = 0x3E8
	ja	LBB0_49
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=3
	leal	(%r12,%r12,4), %ecx
	movsbl	(%r14), %edx
	movzbl	1(%r14), %eax
	incq	%r14
	leal	(%rdx,%rcx,2), %r12d
	addl	$-48, %r12d
	testb	%al, %al
	jne	LBB0_37
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_32 Depth=2
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_42
LBB0_49:                                ##   in Loop: Header=BB0_32 Depth=2
	cmpb	$0, (%r14)
	je	LBB0_40
## %bb.50:                              ##   in Loop: Header=BB0_32 Depth=2
	leaq	-704(%rbp), %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movl	-692(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
	leaq	-712(%rbp), %r14
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_32 Depth=2
	leaq	-712(%rbp), %r14
LBB0_42:                                ##   in Loop: Header=BB0_32 Depth=2
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	-716(%rbp), %rdx
	callq	_is_ip_address
	testq	%rax, %rax
	je	LBB0_48
## %bb.43:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_30
## %bb.44:                              ##   in Loop: Header=BB0_32 Depth=2
	leaq	-716(%rbp), %rdi
	callq	_IS_IPV4
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_32 Depth=2
	cmpl	$32, %r12d
	ja	LBB0_29
LBB0_46:                                ##   in Loop: Header=BB0_32 Depth=2
	leaq	-716(%rbp), %rdi
	callq	_IS_IPV6
	testq	%rax, %rax
	je	LBB0_30
## %bb.47:                              ##   in Loop: Header=BB0_32 Depth=2
	cmpl	$129, %r12d
	jae	LBB0_29
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_32 Depth=2
	leaq	-704(%rbp), %rdi
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdx
	movl	-692(%rbp), %ecx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
	jmp	LBB0_31
LBB0_52:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -728(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	movq	-736(%rbp), %r13                ## 8-byte Reload
	testq	%r13, %r13
	setne	%dil
	callq	_INSIST
	movq	-744(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 16(%r13)
	movq	-752(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_4
LBB0_54:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-736(%rbp), %rdi                ## 8-byte Reload
	callq	_free_keydata
	movq	-744(%rbp), %r13                ## 8-byte Reload
	movq	-752(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_4
LBB0_55:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-704(%rbp), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	-692(%rbp), %edx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_log_maybe
	movq	-752(%rbp), %r15                ## 8-byte Reload
	leaq	-712(%rbp), %r14
	jmp	LBB0_4
LBB0_56:
	movq	%r15, %rdi
	callq	_fclose
	movq	-704(%rbp), %rcx
	testq	%rcx, %rcx
	jle	LBB0_60
## %bb.57:
	movq	_nerr_maxlimit@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %r8
	cmovgq	%rax, %r8
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%r14d, %r14d
	movq	-760(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_msyslog
	testq	%r13, %r13
	je	LBB0_62
	.p2align	4, 0x90
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rbx
	movq	%r13, %rdi
	callq	_free_keydata
	movq	%rbx, %r13
	testq	%rbx, %rbx
	jne	LBB0_58
	jmp	LBB0_62
LBB0_59:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_msyslog
	jmp	LBB0_62
LBB0_60:
	xorl	%eax, %eax
	callq	_auth_delkeys
	movl	$1, %r14d
	testq	%r13, %r13
	je	LBB0_62
	.p2align	4, 0x90
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rbx
	movl	(%r13), %edi
	movl	4(%r13), %esi
	movl	32(%r13), %edx
	movq	8(%r13), %rcx
	movq	24(%r13), %r8
	callq	_MD5auth_setkey
	movq	$0, 24(%r13)
	movq	%r13, %rdi
	callq	_free_keydata
	movq	%rbx, %r13
	testq	%rbx, %rbx
	jne	LBB0_61
LBB0_62:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_64
## %bb.63:
	movl	%r14d, %eax
	addq	$728, %rsp                      ## imm = 0x2D8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"authreadkeys: file '%s': %m"

	.comm	_nerr_maxlimit,8,3              ## @nerr_maxlimit
L_.str.2:                               ## @.str.2
	.asciz	"authreadkeys: cannot change key %s"

	.comm	_NTP_MAXKEY,4,2                 ## @NTP_MAXKEY
L_.str.3:                               ## @.str.3
	.asciz	"authreadkeys: key %s > %d reserved for Autokey"

L_.str.4:                               ## @.str.4
	.asciz	"authreadkeys: no key type for key %d"

L_.str.5:                               ## @.str.5
	.asciz	"authreadkeys: invalid type for key %d"

	.comm	_KEY_TYPE_MD5,4,2               ## @KEY_TYPE_MD5
L_.str.6:                               ## @.str.6
	.asciz	"authreadkeys: no key for key %d"

	.section	__TEXT,__const
	.p2align	4                               ## @authreadkeys.hex
_authreadkeys.hex:
	.asciz	"0123456789abcdef"

	.section	__TEXT,__cstring,cstring_literals
L_.str.7:                               ## @.str.7
	.asciz	"authreadkeys: invalid hex digit for key %d"

L_.str.8:                               ## @.str.8
	.asciz	"authreadkeys: Invalid character in subnet specification for <%s/%s> in key %d"

	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
L_.str.9:                               ## @.str.9
	.asciz	"authreadkeys: excessive subnet mask <%s/%s> for key %d"

L_.str.10:                              ## @.str.10
	.asciz	"authreadkeys: invalid IP address <%s> for key %d"

L_.str.11:                              ## @.str.11
	.space	1

L_.str.12:                              ## @.str.12
	.asciz	" (emergency break)"

L_.str.13:                              ## @.str.13
	.asciz	"authreadkeys: rejecting file '%s' after %u error(s)%s"

	.comm	_NID_cmac,4,2                   ## @NID_cmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_authreadkeys                   ; -- Begin function authreadkeys
	.p2align	2
_authreadkeys:                          ; @authreadkeys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #736
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_61
; %bb.1:
	mov	x21, x0
	bl	_INIT_SSL
	str	xzr, [sp, #64]
	add	x0, sp, #208
	mov	w1, #512
	mov	x2, x21
	bl	_fgets
	str	x0, [sp, #72]
Lloh5:
	adrp	x27, _nerr_maxlimit@GOTPAGE
Lloh6:
	ldr	x27, [x27, _nerr_maxlimit@GOTPAGEOFF]
	mov	x19, #0
	cbz	x0, LBB0_58
; %bb.2:
Lloh7:
	adrp	x28, l_.str.2@PAGE
Lloh8:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh9:
	adrp	x23, _NTP_MAXKEY@GOTPAGE
Lloh10:
	ldr	x23, [x23, _NTP_MAXKEY@GOTPAGEOFF]
Lloh11:
	adrp	x25, _UINT_MAX@GOTPAGE
Lloh12:
	ldr	x25, [x25, _UINT_MAX@GOTPAGEOFF]
	mov	w26, #10
Lloh13:
	adrp	x24, _authreadkeys.hex@PAGE
Lloh14:
	add	x24, x24, _authreadkeys.hex@PAGEOFF
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x22, [sp]
	add	x0, sp, #64
	mov	x1, x28
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_log_maybe
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #208
	mov	w1, #512
	mov	x2, x21
	bl	_fgets
	str	x0, [sp, #72]
	cbz	x0, LBB0_58
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
                                        ;       Child Loop BB0_38 Depth 3
	ldr	x8, [sp, #64]
	ldr	x9, [x27]
	cmp	x8, x9
	b.gt	LBB0_58
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #72
	bl	_nexttok
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #0
	b.le	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	stp	x22, x8, [sp]
	add	x0, sp, #64
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	add	x0, sp, #72
	bl	_nexttok
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x0]
	orr	w8, w8, #0x20
	cmp	w8, #109
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh17:
	adrp	x8, _KEY_TYPE_MD5@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KEY_TYPE_MD5@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh20:
	adrp	x24, _authreadkeys.hex@PAGE
Lloh21:
	add	x24, x24, _authreadkeys.hex@PAGEOFF
	add	x0, sp, #64
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
	mov	x0, #0
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_log_maybe
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #72
	bl	_nexttok
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	bl	_strlen
	mov	x23, x0
	cmp	x0, #20
	b.hi	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w0, w23, #40
	bl	_emalloc
	mov	x28, x0
	str	xzr, [x0, #24]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	stp	w9, w8, [x0]
	str	x23, [x0, #8]
	ldr	w0, [x0, #32]
	stp	x22, x23, [sp]
	bl	_memcpy
	b	LBB0_28
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh26:
	adrp	x24, _authreadkeys.hex@PAGE
Lloh27:
	add	x24, x24, _authreadkeys.hex@PAGEOFF
	add	x0, sp, #64
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	w1, #256
	bl	_min
	mov	x23, x0
	cbz	x0, LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, #0
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=2
	lsl	w8, w8, #4
	and	x9, x9, #0xfffffffffffffffc
	add	x10, sp, #80
	str	w8, [x10, x9]
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x25, x25, #1
	cmp	x23, x25
	b.eq	LBB0_27
LBB0_24:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w0, [x22, x25]
	bl	_tolower
	mov	x1, x0
	mov	x0, x24
	mov	w2, #17
	bl	_memchr
	cbz	x0, LBB0_57
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	sub	w8, w0, w24
	lsl	x9, x25, #1
	tbz	w25, #0, LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	and	x9, x9, #0xfffffffffffffffc
	add	x11, sp, #80
	ldr	w10, [x11, x9]
	orr	w8, w10, w8
	str	w8, [x11, x9]
	b	LBB0_23
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	lsr	x20, x23, #1
	add	w0, w20, #40
	bl	_emalloc
	mov	x28, x0
	str	xzr, [x0, #24]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	stp	w9, w8, [x0]
	str	x20, [x0, #8]
	ldr	w0, [x0, #32]
	add	x8, sp, #80
	stp	x8, x20, [sp]
	bl	_memcpy
Lloh30:
	adrp	x25, _UINT_MAX@GOTPAGE
Lloh31:
	ldr	x25, [x25, _UINT_MAX@GOTPAGEOFF]
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #72
	bl	_nexttok
	cbz	x0, LBB0_53
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_33 Depth=2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	stp	x20, x8, [sp, #8]
	str	x22, [sp]
	mov	x0, #0
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_log_maybe
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=2
	ldr	x0, [x28, #24]
	add	x1, sp, #60
	mov	x2, x27
	bl	_keyacc_new_push
	str	x0, [x28, #24]
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x22, x23, #1
	cbz	x23, LBB0_53
LBB0_33:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_38 Depth 3
	mov	x0, x22
	mov	w1, #44
	bl	_strchr
	mov	x23, x0
	cbz	x0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	strb	wzr, [x23]
LBB0_35:                                ;   in Loop: Header=BB0_33 Depth=2
	mov	x0, x22
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_41
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x20, x0
	ldrb	w8, [x20, #1]!
	strb	wzr, [x0]
	cbz	w8, LBB0_42
; %bb.37:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x24, x21
	mov	x21, x25
	mov	w27, #0
	mov	x25, x20
LBB0_38:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_33 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	and	w0, w8, #0xff
	bl	_isdigit
	cbz	w0, LBB0_43
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=3
	cmp	w27, #1000
	b.hi	LBB0_43
; %bb.40:                               ;   in Loop: Header=BB0_38 Depth=3
	ldrsb	w9, [x25]
	ldrb	w8, [x25, #1]!
	madd	w9, w27, w26, w9
	sub	w27, w9, #48
	cbnz	w8, LBB0_38
	b	LBB0_45
LBB0_41:                                ;   in Loop: Header=BB0_33 Depth=2
	mov	x20, #0
	ldr	w27, [x25]
	b	LBB0_46
LBB0_42:                                ;   in Loop: Header=BB0_33 Depth=2
	mov	w27, #0
	b	LBB0_46
LBB0_43:                                ;   in Loop: Header=BB0_33 Depth=2
	ldrb	w8, [x25]
	cbz	w8, LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x20, x8, [sp, #8]
	add	x0, sp, #64
	str	x25, [sp]
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_log_maybe
	mov	x25, x21
	mov	x21, x24
Lloh36:
	adrp	x24, _authreadkeys.hex@PAGE
Lloh37:
	add	x24, x24, _authreadkeys.hex@PAGEOFF
	b	LBB0_32
LBB0_45:                                ;   in Loop: Header=BB0_33 Depth=2
	mov	x25, x21
	mov	x21, x24
Lloh38:
	adrp	x24, _authreadkeys.hex@PAGE
Lloh39:
	add	x24, x24, _authreadkeys.hex@PAGEOFF
LBB0_46:                                ;   in Loop: Header=BB0_33 Depth=2
Lloh40:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	add	x2, sp, #60
	mov	x0, x22
	bl	_is_ip_address
	cbz	x0, LBB0_52
; %bb.47:                               ;   in Loop: Header=BB0_33 Depth=2
	ldr	w8, [x25]
	cmp	w27, w8
	b.hs	LBB0_31
; %bb.48:                               ;   in Loop: Header=BB0_33 Depth=2
	add	x0, sp, #60
	bl	_IS_IPV4
	cbz	x0, LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_33 Depth=2
	cmp	w27, #32
	b.hi	LBB0_30
LBB0_50:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x0, sp, #60
	bl	_IS_IPV6
	cbz	x0, LBB0_31
; %bb.51:                               ;   in Loop: Header=BB0_33 Depth=2
	cmp	w27, #129
	b.hs	LBB0_30
	b	LBB0_31
LBB0_52:                                ;   in Loop: Header=BB0_33 Depth=2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x22, x8, [sp]
	add	x0, sp, #64
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_log_maybe
	b	LBB0_32
LBB0_53:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x28, #0
	cset	w0, ne
	bl	_INSIST
	str	x19, [x28, #16]
	mov	x19, x28
	b	LBB0_56
LBB0_55:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
	bl	_free_keydata
LBB0_56:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
Lloh45:
	adrp	x27, _nerr_maxlimit@GOTPAGE
Lloh46:
	ldr	x27, [x27, _nerr_maxlimit@GOTPAGEOFF]
Lloh47:
	adrp	x28, l_.str.2@PAGE
Lloh48:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh49:
	adrp	x23, _NTP_MAXKEY@GOTPAGE
Lloh50:
	ldr	x23, [x23, _NTP_MAXKEY@GOTPAGEOFF]
	b	LBB0_5
LBB0_57:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [sp, #48]                  ; 8-byte Folded Reload
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh51:
	adrp	x24, _authreadkeys.hex@PAGE
Lloh52:
	add	x24, x24, _authreadkeys.hex@PAGEOFF
	add	x0, sp, #64
Lloh53:
	adrp	x1, l_.str.7@PAGE
Lloh54:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_log_maybe
Lloh55:
	adrp	x23, _NTP_MAXKEY@GOTPAGE
Lloh56:
	ldr	x23, [x23, _NTP_MAXKEY@GOTPAGEOFF]
Lloh57:
	adrp	x25, _UINT_MAX@GOTPAGE
Lloh58:
	ldr	x25, [x25, _UINT_MAX@GOTPAGEOFF]
	b	LBB0_5
LBB0_58:
	mov	x0, x21
	bl	_fclose
	ldr	x8, [sp, #64]
	cmp	x8, #0
	b.le	LBB0_63
; %bb.59:
Lloh59:
	adrp	x9, l_.str.11@PAGE
Lloh60:
	add	x9, x9, l_.str.11@PAGEOFF
Lloh61:
	adrp	x10, l_.str.12@PAGE
Lloh62:
	add	x10, x10, l_.str.12@PAGEOFF
	ldr	x11, [x27]
	cmp	x8, x11
	csel	x9, x10, x9, gt
Lloh63:
	adrp	x10, _LOG_ERR@GOTPAGE
Lloh64:
	ldr	x10, [x10, _LOG_ERR@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x10]
	stp	x8, x9, [sp]
Lloh66:
	adrp	x1, l_.str.13@PAGE
Lloh67:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x2, x20
	bl	_msyslog
	cbz	x19, LBB0_62
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #16]
	mov	x0, x19
	bl	_free_keydata
	mov	x19, x20
	cbnz	x20, LBB0_60
	b	LBB0_62
LBB0_61:
Lloh68:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
Lloh71:
	adrp	x1, l_.str.1@PAGE
Lloh72:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_msyslog
LBB0_62:
	mov	w0, #0
	b	LBB0_66
LBB0_63:
	bl	_auth_delkeys
	cbz	x19, LBB0_65
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldp	w0, w1, [x19]
	ldr	w2, [x19, #32]
	ldp	x3, x20, [x19, #8]
	ldr	x4, [x19, #24]
	bl	_MD5auth_setkey
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_free_keydata
	mov	x19, x20
	cbnz	x20, LBB0_64
LBB0_65:
	mov	w0, #1
LBB0_66:
	ldur	x8, [x29, #-96]
Lloh73:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh74:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_68
; %bb.67:
	add	sp, sp, #736
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_68:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"authreadkeys: file '%s': %m"

	.comm	_nerr_maxlimit,8,3              ; @nerr_maxlimit
l_.str.2:                               ; @.str.2
	.asciz	"authreadkeys: cannot change key %s"

	.comm	_NTP_MAXKEY,4,2                 ; @NTP_MAXKEY
l_.str.3:                               ; @.str.3
	.asciz	"authreadkeys: key %s > %d reserved for Autokey"

l_.str.4:                               ; @.str.4
	.asciz	"authreadkeys: no key type for key %d"

l_.str.5:                               ; @.str.5
	.asciz	"authreadkeys: invalid type for key %d"

	.comm	_KEY_TYPE_MD5,4,2               ; @KEY_TYPE_MD5
l_.str.6:                               ; @.str.6
	.asciz	"authreadkeys: no key for key %d"

	.section	__TEXT,__const
_authreadkeys.hex:                      ; @authreadkeys.hex
	.asciz	"0123456789abcdef"

	.section	__TEXT,__cstring,cstring_literals
l_.str.7:                               ; @.str.7
	.asciz	"authreadkeys: invalid hex digit for key %d"

l_.str.8:                               ; @.str.8
	.asciz	"authreadkeys: Invalid character in subnet specification for <%s/%s> in key %d"

	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
l_.str.9:                               ; @.str.9
	.asciz	"authreadkeys: excessive subnet mask <%s/%s> for key %d"

l_.str.10:                              ; @.str.10
	.asciz	"authreadkeys: invalid IP address <%s> for key %d"

l_.str.11:                              ; @.str.11
	.space	1

l_.str.12:                              ; @.str.12
	.asciz	" (emergency break)"

l_.str.13:                              ; @.str.13
	.asciz	"authreadkeys: rejecting file '%s' after %u error(s)%s"

	.comm	_NID_cmac,4,2                   ; @NID_cmac
.subsections_via_symbols
