	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dnsc_apply_cfg                 ## -- Begin function dnsc_apply_cfg
	.p2align	4, 0x90
_dnsc_apply_cfg:                        ## @dnsc_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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_dnsc_parse_certs
	testq	%rax, %rax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fatal_exit
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dnsc_parse_keys
	testq	%rax, %rax
	jg	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal_exit
LBB0_4:
	movl	32(%rbx), %edi
	movl	$4, %esi
	callq	_randombytes_buf
	movl	16(%r14), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dnsc_load_local_data
	testq	%rax, %rax
	jg	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_fatal_exit
LBB0_6:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_lock_basic_lock
	movl	8(%r14), %edx
	movl	12(%r14), %edi
	movq	_HASH_DEFAULT_STARTARRAY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_dnsc_shared_secrets_sizefunc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dnsc_shared_secrets_compfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_dnsc_shared_secrets_delkeyfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_dnsc_shared_secrets_deldatafunc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	pushq	$0
	pushq	%rax
	callq	_slabhash_create
	addq	$16, %rsp
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_lock_basic_unlock
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_fatal_exit
LBB0_8:
	movq	%rbx, %rdi
	callq	_lock_basic_lock
	movl	(%r14), %edx
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movq	_dnsc_nonces_sizefunc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dnsc_nonces_compfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_dnsc_nonces_delkeyfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_dnsc_nonces_deldatafunc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	pushq	$0
	pushq	%rax
	callq	_slabhash_create
	addq	$16, %rsp
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
	xorl	%eax, %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	"dnsc_apply_cfg: no cert file loaded"

L_.str.1:                               ## @.str.1
	.asciz	"dnsc_apply_cfg: no key file loaded"

L_.str.2:                               ## @.str.2
	.asciz	"dnsc_apply_cfg: could not load local data"

	.comm	_HASH_DEFAULT_STARTARRAY,4,2    ## @HASH_DEFAULT_STARTARRAY
	.comm	_dnsc_shared_secrets_sizefunc,4,2 ## @dnsc_shared_secrets_sizefunc
	.comm	_dnsc_shared_secrets_compfunc,4,2 ## @dnsc_shared_secrets_compfunc
	.comm	_dnsc_shared_secrets_delkeyfunc,4,2 ## @dnsc_shared_secrets_delkeyfunc
	.comm	_dnsc_shared_secrets_deldatafunc,4,2 ## @dnsc_shared_secrets_deldatafunc
L_.str.3:                               ## @.str.3
	.asciz	"dnsc_apply_cfg: could not create shared secrets cache."

	.comm	_dnsc_nonces_sizefunc,4,2       ## @dnsc_nonces_sizefunc
	.comm	_dnsc_nonces_compfunc,4,2       ## @dnsc_nonces_compfunc
	.comm	_dnsc_nonces_delkeyfunc,4,2     ## @dnsc_nonces_delkeyfunc
	.comm	_dnsc_nonces_deldatafunc,4,2    ## @dnsc_nonces_deldatafunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dnsc_apply_cfg                 ; -- Begin function dnsc_apply_cfg
	.p2align	2
_dnsc_apply_cfg:                        ; @dnsc_apply_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_dnsc_parse_certs
	cmp	x0, #0
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_dnsc_parse_keys
	cmp	x0, #0
	b.gt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal_exit
LBB0_4:
	ldr	w0, [x19, #32]
	mov	w1, #4
	bl	_randombytes_buf
	ldr	w8, [x20, #16]
	str	w8, [x19, #28]
	mov	x0, x19
	mov	x1, x20
	bl	_dnsc_load_local_data
	cmp	x0, #0
	b.gt	LBB0_6
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal_exit
LBB0_6:
	add	x21, x19, #24
	mov	x0, x21
	bl	_lock_basic_lock
Lloh6:
	adrp	x22, _HASH_DEFAULT_STARTARRAY@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HASH_DEFAULT_STARTARRAY@GOTPAGEOFF]
	ldr	w1, [x22]
	ldp	w2, w0, [x20, #8]
Lloh8:
	adrp	x8, _dnsc_shared_secrets_sizefunc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dnsc_shared_secrets_sizefunc@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _dnsc_shared_secrets_compfunc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dnsc_shared_secrets_compfunc@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _dnsc_shared_secrets_delkeyfunc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dnsc_shared_secrets_delkeyfunc@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
Lloh17:
	adrp	x8, _dnsc_shared_secrets_deldatafunc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dnsc_shared_secrets_deldatafunc@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
	mov	x7, #0
	bl	_slabhash_create
	str	x0, [x19, #16]
	mov	x0, x21
	bl	_lock_basic_unlock
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal_exit
LBB0_8:
	mov	x0, x19
	bl	_lock_basic_lock
	ldr	w1, [x22]
	ldp	w2, w0, [x20]
Lloh22:
	adrp	x8, _dnsc_nonces_sizefunc@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dnsc_nonces_sizefunc@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x8, _dnsc_nonces_compfunc@GOTPAGE
Lloh26:
	ldr	x8, [x8, _dnsc_nonces_compfunc@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
Lloh28:
	adrp	x8, _dnsc_nonces_delkeyfunc@GOTPAGE
Lloh29:
	ldr	x8, [x8, _dnsc_nonces_delkeyfunc@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
Lloh31:
	adrp	x8, _dnsc_nonces_deldatafunc@GOTPAGE
Lloh32:
	ldr	x8, [x8, _dnsc_nonces_deldatafunc@GOTPAGEOFF]
Lloh33:
	ldr	w6, [x8]
	mov	x7, #0
	bl	_slabhash_create
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_lock_basic_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dnsc_apply_cfg: no cert file loaded"

l_.str.1:                               ; @.str.1
	.asciz	"dnsc_apply_cfg: no key file loaded"

l_.str.2:                               ; @.str.2
	.asciz	"dnsc_apply_cfg: could not load local data"

	.comm	_HASH_DEFAULT_STARTARRAY,4,2    ; @HASH_DEFAULT_STARTARRAY
	.comm	_dnsc_shared_secrets_sizefunc,4,2 ; @dnsc_shared_secrets_sizefunc
	.comm	_dnsc_shared_secrets_compfunc,4,2 ; @dnsc_shared_secrets_compfunc
	.comm	_dnsc_shared_secrets_delkeyfunc,4,2 ; @dnsc_shared_secrets_delkeyfunc
	.comm	_dnsc_shared_secrets_deldatafunc,4,2 ; @dnsc_shared_secrets_deldatafunc
l_.str.3:                               ; @.str.3
	.asciz	"dnsc_apply_cfg: could not create shared secrets cache."

	.comm	_dnsc_nonces_sizefunc,4,2       ; @dnsc_nonces_sizefunc
	.comm	_dnsc_nonces_compfunc,4,2       ; @dnsc_nonces_compfunc
	.comm	_dnsc_nonces_delkeyfunc,4,2     ; @dnsc_nonces_delkeyfunc
	.comm	_dnsc_nonces_deldatafunc,4,2    ; @dnsc_nonces_deldatafunc
.subsections_via_symbols
