	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_key
_add_key:                               ## @add_key
	.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, %r12
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movl	%eax, -52(%rbp)
	movq	_LDNS_RR_CLASS_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htons
	movl	%eax, -48(%rbp)
	movq	%r12, %rdi
	callq	_htons
	movl	%eax, -44(%rbp)
	movq	(%r14), %rbx
	movl	%r15d, %edi
	callq	_htonl
	movl	%eax, -56(%rbp)
	leaq	(%r12,%rbx), %r13
	addq	$10, %r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	(%r14), %rdx
	movq	16(%r14), %rsi
	movq	%rax, %rdi
	callq	_memmove
	leaq	(%r15,%rbx,4), %rdi
	leaq	-52(%rbp), %rsi
	movl	$2, %edx
	callq	_memmove
	leaq	(%r15,%rbx,4), %rdi
	addq	$8, %rdi
	leaq	-48(%rbp), %rsi
	movl	$2, %edx
	callq	_memmove
	leaq	(%r15,%rbx,4), %rdi
	addq	$16, %rdi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_memmove
	leaq	(%r15,%rbx,4), %rdi
	addq	$32, %rdi
	leaq	-44(%rbp), %rsi
	movl	$2, %edx
	callq	_memmove
	leaq	(%r15,%rbx,4), %rdi
	addq	$40, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memmove
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_autr_ta_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	%rax, (%rcx)
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	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	_LDNS_RR_CLASS_IN,8,3           ## @LDNS_RR_CLASS_IN
	.no_dead_strip	_add_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_key
_add_key:                               ; @add_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_htons
	str	w0, [sp, #8]
Lloh3:
	adrp	x8, _LDNS_RR_CLASS_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_CLASS_IN@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_htons
	str	w0, [sp, #4]
	mov	x0, x20
	bl	_htons
	str	w0, [sp]
	ldr	x22, [x19]
	mov	x0, x23
	bl	_htonl
	str	w0, [sp, #12]
	add	x8, x20, x22
	add	x23, x8, #10
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	x1, [x19, #16]
	ldr	x2, [x19]
	bl	_memmove
	add	x25, x24, x22, lsl #2
	add	x1, sp, #8
	mov	x0, x25
	mov	w2, #2
	bl	_memmove
	add	x0, x25, #8
	add	x1, sp, #4
	mov	w2, #2
	bl	_memmove
	add	x0, x25, #16
	add	x1, sp, #12
	mov	w2, #4
	bl	_memmove
	add	x0, x25, #32
	mov	x1, sp
	mov	w2, #2
	bl	_memmove
	add	x0, x25, #40
	mov	x1, x21
	mov	x2, x20
	bl	_memmove
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_autr_ta_create
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	str	x9, [x0]
	str	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_CLASS_IN,8,3           ; @LDNS_RR_CLASS_IN
	.no_dead_strip	_add_key
.subsections_via_symbols
