	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnsc_shared_secret_cache_insert
_dnsc_shared_secret_cache_insert:       ## @dnsc_shared_secret_cache_insert
	.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	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	_crypto_box_BEFORENMBYTES@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_lock_rw_init
	movq	24(%rbx), %rdi
	movq	_DNSCRYPT_SHARED_SECRET_KEY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	%r15d, 16(%rbx)
	movq	%rbx, 8(%rbx)
	movq	%r12, (%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slabhash_insert                ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DNSCRYPT_SHARED_SECRET_KEY_LENGTH,4,2 ## @DNSCRYPT_SHARED_SECRET_KEY_LENGTH
	.comm	_crypto_box_BEFORENMBYTES,4,2   ## @crypto_box_BEFORENMBYTES
	.no_dead_strip	_dnsc_shared_secret_cache_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnsc_shared_secret_cache_insert
_dnsc_shared_secret_cache_insert:       ; @dnsc_shared_secret_cache_insert
	.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
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x21, x0
Lloh0:
	adrp	x25, _crypto_box_BEFORENMBYTES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _crypto_box_BEFORENMBYTES@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_malloc
	mov	x23, x0
	cbz	x21, LBB0_3
; %bb.1:
	cbz	x23, LBB0_3
; %bb.2:
	ldr	w2, [x25]
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	add	x0, x21, #20
	bl	_lock_rw_init
	ldr	x0, [x21, #24]
Lloh2:
	adrp	x8, _DNSCRYPT_SHARED_SECRET_KEY_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DNSCRYPT_SHARED_SECRET_KEY_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_memcpy
	str	w19, [x21, #16]
	stp	x23, x21, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	mov	x4, #0
	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
	b	_slabhash_insert
LBB0_3:
	mov	x0, x21
	bl	_free
	mov	x0, x23
	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
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DNSCRYPT_SHARED_SECRET_KEY_LENGTH,4,2 ; @DNSCRYPT_SHARED_SECRET_KEY_LENGTH
	.comm	_crypto_box_BEFORENMBYTES,4,2   ; @crypto_box_BEFORENMBYTES
	.no_dead_strip	_dnsc_shared_secret_cache_insert
.subsections_via_symbols
