	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_zsk_to_ksk
_init_zsk_to_ksk:                       ## @init_zsk_to_ksk
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%rbx), %edi
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	callq	_sldns_wirerr_get_type
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_ta_is_dnskey_sep
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	xorl	%ecx, %ecx
	movq	_AUTR_STATE_VALID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%cl
	addl	%ecx, %r14d
	jmp	LBB0_7
LBB0_8:
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.9:
	movq	(%r12), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.10:
	xorl	%r13d, %r13d
	movq	_AUTR_STATE_ADDPEND@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ta_is_dnskey_sep
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_verbose_key
	movq	_AUTR_STATE_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_set_trustanchor_state
	incl	%r13d
	jmp	LBB0_14
LBB0_1:
	xorl	%r13d, %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %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	_AUTR_STATE_VALID,8,3           ## @AUTR_STATE_VALID
	.comm	_AUTR_STATE_ADDPEND,8,3         ## @AUTR_STATE_ADDPEND
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trust KSK from ZSK(config)"

	.no_dead_strip	_init_zsk_to_ksk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_zsk_to_ksk
_init_zsk_to_ksk:                       ; @init_zsk_to_ksk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x1]
	ldr	x22, [x8]
	cbz	x22, LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w23, #0
Lloh0:
	adrp	x25, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AUTR_STATE_VALID@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AUTR_STATE_VALID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x22, #28]
	ldr	w2, [x22, #24]
	bl	_sldns_wirerr_get_type
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_ta_is_dnskey_sep
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	cinc	w23, w23, eq
	b	LBB0_2
LBB0_7:
	cbz	w23, LBB0_14
; %bb.8:
	ldr	x8, [x21]
	ldr	x22, [x8]
	cbz	x22, LBB0_14
; %bb.9:
	mov	w21, #0
Lloh4:
	adrp	x25, _AUTR_STATE_ADDPEND@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AUTR_STATE_ADDPEND@GOTPAGEOFF]
Lloh6:
	adrp	x26, _VERB_ALGO@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VERB_ALGO@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ta_is_dnskey_sep
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x23
	bl	_verbose_key
	ldr	x3, [x24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_set_trustanchor_state
	add	w21, w21, #1
	b	LBB0_10
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_AUTR_STATE_VALID,8,3           ; @AUTR_STATE_VALID
	.comm	_AUTR_STATE_ADDPEND,8,3         ; @AUTR_STATE_ADDPEND
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trust KSK from ZSK(config)"

	.no_dead_strip	_init_zsk_to_ksk
.subsections_via_symbols
