	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function val_apply_cfg
_val_apply_cfg:                         ## @val_apply_cfg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdx), %rax
	movq	%rax, 48(%rsi)
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_anchors_create
	movq	%rax, %rdi
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:
	movq	40(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_key_cache_create
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movq	8(%r14), %rdi
LBB0_5:
	movq	%rax, 16(%r14)
	movq	%rbx, %rsi
	callq	_anchors_apply_cfg
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	12(%rbx), %eax
	movl	%eax, 32(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 28(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 24(%r15)
	movl	(%rbx), %edi
	callq	_cfg_count_numbers
	testl	%eax, %eax
	jle	LBB0_13
## %bb.7:
	movl	%eax, %ecx
	andl	$1, %ecx
	jne	LBB0_13
## %bb.8:
	shrl	%eax
	movl	%eax, (%r15)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_fill_nsec3_iter
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	16(%r15), %rax
	movslq	(%r15), %rcx
	movl	-4(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_val_neg_create
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:
	movq	%rax, (%r14)
	movl	$1, %r12d
	jmp	LBB0_19
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_17
LBB0_13:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_19
LBB0_14:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	xorl	%eax, %eax
	callq	_log_err
LBB0_19:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"validator: error in trustanchors config"

L_.str.2:                               ## @.str.2
	.asciz	"validator: unparseable or odd nsec3 key iterations: %s"

L_.str.3:                               ## @.str.3
	.asciz	"validator: cannot apply nsec3 key iterations"

	.no_dead_strip	_val_apply_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function val_apply_cfg
_val_apply_cfg:                         ; @val_apply_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x2, #16]
	str	x8, [x1, #48]
	ldr	x0, [x0, #8]
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_anchors_create
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
LBB0_2:
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_key_cache_create
	str	x0, [x20, #40]
	cbz	x0, LBB0_13
; %bb.4:
	mov	x8, x0
	ldr	x0, [x19, #8]
LBB0_5:
	str	x8, [x19, #16]
	mov	x1, x21
	bl	_anchors_apply_cfg
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x21, #12]
	str	w8, [x20, #32]
	ldur	d0, [x21, #4]
	str	d0, [x20, #24]
	ldr	w0, [x21]
	bl	_cfg_count_numbers
	and	w8, w0, #0x1
	cmp	w0, #1
	ccmp	w8, #0, #0, ge
	b.eq	LBB0_9
; %bb.7:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_9:
	lsr	w2, w0, #1
	str	w2, [x20]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_fill_nsec3_iter
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x0, [x20, #8]
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	ldur	w1, [x8, #-4]
	mov	x0, x21
	bl	_val_neg_create
	str	x0, [x20, #8]
	cbz	x0, LBB0_13
LBB0_12:
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_16
LBB0_13:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:
	bl	_log_err
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"validator: error in trustanchors config"

l_.str.2:                               ; @.str.2
	.asciz	"validator: unparseable or odd nsec3 key iterations: %s"

l_.str.3:                               ; @.str.3
	.asciz	"validator: cannot apply nsec3 key iterations"

	.no_dead_strip	_val_apply_cfg
.subsections_via_symbols
