	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_keyid_checked
_set_keyid_checked:                     ## @set_keyid_checked
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	4(%r8), %edi
	callq	_INFO_NITEMS
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_msyslog
	movq	_INFO_ERR_FMT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_ntohl
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	_NTP_MAXKEY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_5
## %bb.4:
	movl	%r13d, %edi
	callq	_auth_havekey
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movq	_INFO_OKAY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r13d, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_msyslog
	movq	_INFO_ERR_NODATA@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_req_ack                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_keyid_checked[%s]: err_nitems > 1"

	.comm	_INFO_ERR_FMT,4,2               ## @INFO_ERR_FMT
	.comm	_NTP_MAXKEY,4,2                 ## @NTP_MAXKEY
L_.str.1:                               ## @.str.1
	.asciz	"set_keyid_checked[%s]: invalid key id: %ld"

	.comm	_INFO_ERR_NODATA,4,2            ## @INFO_ERR_NODATA
	.comm	_INFO_OKAY,4,2                  ## @INFO_OKAY
	.no_dead_strip	_set_keyid_checked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_keyid_checked
_set_keyid_checked:                     ; @set_keyid_checked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x4, #4]
	bl	_INFO_NITEMS
	cmp	w0, #1
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_msyslog
Lloh5:
	adrp	x8, _INFO_ERR_FMT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFO_ERR_FMT@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19]
	bl	_ntohl
	mov	x24, x0
Lloh7:
	adrp	x8, _NTP_MAXKEY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NTP_MAXKEY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w0, w8, #0, ge
	b.gt	LBB0_5
; %bb.3:
	mov	x0, x24
	bl	_auth_havekey
	cbz	w0, LBB0_5
; %bb.4:
	str	w24, [x23]
Lloh10:
	adrp	x8, _INFO_OKAY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO_OKAY@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	sxtw	x8, w24
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_msyslog
Lloh17:
	adrp	x8, _INFO_ERR_NODATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INFO_ERR_NODATA@GOTPAGEOFF]
LBB0_6:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_req_ack
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_keyid_checked[%s]: err_nitems > 1"

	.comm	_INFO_ERR_FMT,4,2               ; @INFO_ERR_FMT
	.comm	_NTP_MAXKEY,4,2                 ; @NTP_MAXKEY
l_.str.1:                               ; @.str.1
	.asciz	"set_keyid_checked[%s]: invalid key id: %ld"

	.comm	_INFO_ERR_NODATA,4,2            ; @INFO_ERR_NODATA
	.comm	_INFO_OKAY,4,2                  ; @INFO_OKAY
	.no_dead_strip	_set_keyid_checked
.subsections_via_symbols
