	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dname_pkt_copy                 ## -- Begin function dname_pkt_copy
	.p2align	4, 0x90
_dname_pkt_copy:                        ## @dname_pkt_copy
	.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	(%rdx), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	$8, %rbx
	movq	%r12, %rdi
	callq	_LABEL_IS_PTR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_PTR_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sldns_buffer_at
	movq	%rax, %rbx
	movq	(%rax), %r12
	testq	%r12, %r12
	jne	LBB0_2
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	_LDNS_MAX_LABELLEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	setle	%dil
	callq	_log_assert
	addq	%r12, %r13
	incq	%r13
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r14), %rdi
	movq	%r12, (%r14)
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memmove
	leaq	(%rbx,%r12,8), %rax
	leaq	(%r14,%r12,8), %r14
	addq	$8, %r14
	movq	(%rbx,%r12,8), %r12
	movq	%rax, %rbx
	testq	%r12, %r12
	jne	LBB0_2
LBB0_7:
	movq	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	$0, (%r14)
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_LABELLEN,8,3          ## @LDNS_MAX_LABELLEN
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ## @LDNS_MAX_DOMAINLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad dname in dname_pkt_copy"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dname_pkt_copy                 ; -- Begin function dname_pkt_copy
	.p2align	2
_dname_pkt_copy:                        ; @dname_pkt_copy
	.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	x19, x1
	ldr	x21, [x2]
	cbz	x21, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _LDNS_MAX_LABELLEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_MAX_LABELLEN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x2, #8
	mov	x0, x21
	bl	_LABEL_IS_PTR
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x22]
	mov	x0, x21
	bl	_PTR_OFFSET
	mov	x1, x0
	mov	x0, x20
	bl	_sldns_buffer_at
	mov	x2, x0
	ldr	x21, [x0]
	cbnz	x21, LBB0_2
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	cmp	x21, x8
	cset	w0, le
	bl	_log_assert
	add	x8, x23, x21
	add	x23, x8, #1
	ldr	x8, [x25]
	cmp	x23, x8
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x21, [x19], #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_memmove
	lsl	x8, x21, #3
	add	x2, x22, x8
	add	x19, x19, x8
	ldr	x21, [x2]
	cbnz	x21, LBB0_2
LBB0_6:
	str	xzr, [x19]
	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
	ret
LBB0_7:
	str	xzr, [x19]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	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	_log_err
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_LABELLEN,8,3          ; @LDNS_MAX_LABELLEN
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ; @LDNS_MAX_DOMAINLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad dname in dname_pkt_copy"

.subsections_via_symbols
