	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_entry_copy_toregion        ## -- Begin function key_entry_copy_toregion
	.p2align	4, 0x90
_key_entry_copy_toregion:               ## @key_entry_copy_toregion
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	movl	$56, %edx
	callq	_regional_alloc_init
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r13
	movq	48(%rbx), %rsi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_regional_alloc_init
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%r13, 24(%r13)
	cmpq	$0, 16(%r13)
	je	LBB0_18
## %bb.3:
	movq	16(%rbx), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$56, %edx
	callq	_regional_alloc_init
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rax, %r15
	movq	40(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_packed_rrset_sizeof
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_regional_alloc_init
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	%rax, %rdi
	callq	_packed_rrset_ptr_fixup
LBB0_7:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_regional_strdup
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_17
LBB0_9:
	movq	32(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_regional_strdup
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_17
LBB0_11:
	movq	%r15, 16(%r13)
	jmp	LBB0_18
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_key_entry_copy_toregion        ; -- Begin function key_entry_copy_toregion
	.p2align	2
_key_entry_copy_toregion:               ; @key_entry_copy_toregion
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x21
	mov	w2, #56
	bl	_regional_alloc_init
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x1, [x21, #48]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_regional_alloc_init
	str	x0, [x19, #48]
	cbz	x0, LBB0_12
; %bb.2:
	str	x19, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.3:
	ldr	x22, [x21, #16]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #56
	bl	_regional_alloc_init
	cbz	x0, LBB0_12
; %bb.4:
	mov	x21, x0
	ldr	x23, [x22, #40]
	cbz	x23, LBB0_7
; %bb.5:
	mov	x0, x23
	bl	_packed_rrset_sizeof
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_regional_alloc_init
	str	x0, [x21, #40]
	cbz	x0, LBB0_12
; %bb.6:
	bl	_packed_rrset_ptr_fixup
LBB0_7:
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_regional_strdup
	str	x0, [x21, #8]
	cbz	x0, LBB0_12
LBB0_9:
	ldr	x1, [x22, #32]
	cbz	x1, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_regional_strdup
	str	x0, [x21, #32]
	cbz	x0, LBB0_12
LBB0_11:
	str	x21, [x19, #16]
	b	LBB0_13
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
