	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_events
_update_events:                         ## @update_events
	.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
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rbx
	movl	(%rcx), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	movq	%r15, %rdi
	callq	_init_events
	cmpq	$0, (%rbx)
	je	LBB0_16
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %esi
	callq	_seen_trustanchor
	movq	-48(%rbp), %rdi
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_verbose_key
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	(%rbx), %r13
	jae	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movl	(%r12), %edi
	callq	_ntohs
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rdx,%r13,8), %rsi
	addq	$2, %rsi
	movq	(%rcx,%r13,8), %rdx
	addq	$-2, %rdx
	movq	%rax, %rdi
	callq	_rr_is_dnskey_sep
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_ntohs
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rdx,%r13,8), %rsi
	addq	$2, %rsi
	movq	(%rcx,%r13,8), %rdx
	addq	$-2, %rdx
	movq	%rax, %rdi
	callq	_rr_is_dnskey_revoked
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_dnskey_algo_is_supported
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_ntohs
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	(%rdx,%r13,8), %rdx
	addq	$2, %rdx
	movq	(%rcx,%r13,8), %rcx
	addq	$-2, %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	leaq	-48(%rbp), %r8
	callq	_find_key
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rax
	movl	(%rax,%r13,8), %esi
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rdx
	addq	$2, %rdx
	movq	(%rax,%r13,8), %rcx
	addq	$-2, %rcx
	movq	%r15, %rdi
	callq	_add_key
	movq	%rax, -48(%rbp)
	movl	$1, (%r14)
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r8
	testq	%r8, %r8
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_key_matches_a_ds
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_verbose_key
	movq	_AUTR_STATE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi
	movl	%eax, (%rdi)
	jmp	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VERB_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %r8d
	movl	12(%r15), %edx
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_log_nametypeclass
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdi, %rdi
	jne	LBB0_14
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_min_expiry
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_key_ttl
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_set_tp_times
	movl	$1, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_VERB_DETAIL,4,2                ## @VERB_DETAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trust point has unsupported algorithm at"

	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.1:                               ## @.str.1
	.asciz	"verified by DS"

	.comm	_AUTR_STATE_VALID,4,2           ## @AUTR_STATE_VALID
L_.str.2:                               ## @.str.2
	.asciz	"in DNS response"

	.no_dead_strip	_update_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_events
_update_events:                         ; @update_events
	.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, x4
	mov	x21, x3
	mov	x20, x2
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	x23, x0
	ldr	x22, [x3, #8]
	ldr	w0, [x3]
	bl	_ntohs
Lloh0:
	adrp	x27, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	cset	w0, eq
	bl	_log_assert
	mov	x0, x20
	bl	_init_events
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x26, _VERB_ALGO@GOTPAGE
Lloh3:
	ldr	x26, [x26, _VERB_ALGO@GOTPAGEOFF]
Lloh4:
	adrp	x28, l_.str.2@PAGE
Lloh5:
	add	x28, x28, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_verbose_key
Lloh8:
	adrp	x8, _AUTR_STATE_VALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUTR_STATE_VALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x0, [sp, #8]
	str	w8, [x0]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #1
	bl	_seen_trustanchor
	ldr	x0, [sp, #8]
	ldr	w1, [x26]
	mov	x2, x28
	bl	_verbose_key
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldr	x8, [x22]
	cmp	x25, x8
	b.hs	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	w0, [x21]
	bl	_ntohs
	lsl	x24, x25, #3
	ldp	x9, x8, [x22, #8]
	ldr	x8, [x8, x24]
	add	x1, x8, #2
	ldr	x8, [x9, x24]
	sub	x2, x8, #2
	bl	_rr_is_dnskey_sep
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_ntohs
	ldp	x9, x8, [x22, #8]
	ldr	x8, [x8, x24]
	add	x1, x8, #2
	ldr	x8, [x9, x24]
	sub	x2, x8, #2
	bl	_rr_is_dnskey_revoked
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_dnskey_algo_is_supported
	cbz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	bl	_ntohs
	mov	x1, x0
	ldp	x9, x8, [x22, #8]
	ldr	x8, [x8, x24]
	add	x2, x8, #2
	ldr	x8, [x9, x24]
	sub	x3, x8, #2
	add	x4, sp, #8
	mov	x0, x20
	bl	_find_key
	cbz	w0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #24]
	ldr	w1, [x8, x24]
	ldp	x9, x8, [x22, #8]
	ldr	x8, [x8, x24]
	add	x2, x8, #2
	ldr	x8, [x9, x24]
	sub	x3, x8, #2
	mov	x0, x20
	bl	_add_key
	str	x0, [sp, #8]
	mov	w8, #1
	str	w8, [x19]
	cbz	x0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x20]
	cbz	x4, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	mov	x2, x21
	mov	x3, x25
	bl	_key_matches_a_ds
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbnz	x8, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x0, LBB0_3
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x8, _VERB_DETAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VERB_DETAIL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x3, [x27]
	ldp	w4, w2, [x20, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_nametypeclass
	b	LBB0_4
LBB0_15:
	mov	x0, x23
	mov	x1, x22
	bl	_min_expiry
	mov	x22, x0
	mov	x0, x21
	bl	_key_ttl
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x19
	bl	_set_tp_times
	mov	w0, #1
LBB0_16:
	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_17:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_VERB_DETAIL,4,2                ; @VERB_DETAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trust point has unsupported algorithm at"

	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.1:                               ; @.str.1
	.asciz	"verified by DS"

	.comm	_AUTR_STATE_VALID,4,2           ; @AUTR_STATE_VALID
l_.str.2:                               ; @.str.2
	.asciz	"in DNS response"

	.no_dead_strip	_update_events
.subsections_via_symbols
