	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packed_rrset_copy_region       ## -- Begin function packed_rrset_copy_region
	.p2align	4, 0x90
_packed_rrset_copy_region:              ## @packed_rrset_copy_region
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movl	$48, %esi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movq	(%rbx), %r13
	movl	40(%rbx), %eax
	movl	%eax, 40(%r12)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	16(%rbx), %eax
	movl	%eax, 16(%r12)
	movq	%r12, 8(%r12)
	movups	24(%rbx), %xmm0
	movups	%xmm0, 24(%r12)
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_regional_alloc_init
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%r13, %rdi
	callq	_packed_rrset_sizeof
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_regional_alloc_init
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_packed_rrset_ptr_fixup
	movq	8(%rbx), %rax
	addq	(%rbx), %rax
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	subq	%r14, %rdx
	movl	$0, %esi
	cmovgeq	%rdx, %rsi
	movq	%rsi, (%rax,%rcx,8)
	incq	%rcx
	movq	8(%rbx), %rdx
	addq	(%rbx), %rdx
	cmpq	%rdx, %rcx
	jb	LBB0_5
LBB0_6:
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	subq	%r14, %rax
	cmovgeq	%rax, %rcx
	movq	%rcx, 24(%rbx)
	jmp	LBB0_10
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %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	_packed_rrset_copy_region       ; -- Begin function packed_rrset_copy_region
	.p2align	2
_packed_rrset_copy_region:              ; @packed_rrset_copy_region
	.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, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	mov	w1, #48
	bl	_regional_alloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x22, [x23]
	ldr	w8, [x23, #40]
	str	w8, [x19, #40]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x23, #16]
	str	w8, [x19, #16]
	str	x19, [x19, #8]
	ldur	q0, [x23, #24]
	stur	q0, [x19, #24]
	ldp	x2, x1, [x23, #24]
	mov	x0, x21
	bl	_regional_alloc_init
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x22
	bl	_packed_rrset_sizeof
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_regional_alloc_init
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	str	x0, [x19]
	bl	_packed_rrset_ptr_fixup
	ldp	x8, x9, [x21]
	cmn	x9, x8
	b.eq	LBB0_6
; %bb.4:
	mov	x8, #0
	ldr	x9, [x21, #16]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #3
	ldr	x11, [x9, x10]
	subs	x11, x11, x20
	csel	x11, xzr, x11, lt
	str	x11, [x9, x10]
	add	x8, x8, #1
	ldp	x10, x11, [x21]
	add	x10, x11, x10
	cmp	x8, x10
	b.lo	LBB0_5
LBB0_6:
	ldr	x8, [x21, #24]
	subs	x8, x8, x20
	csel	x8, xzr, x8, lt
	str	x8, [x21, #24]
	b	LBB0_8
LBB0_7:
	mov	x19, #0
LBB0_8:
	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
