	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_compressed_dname
_write_compressed_dname:                ## @write_compressed_dname
	.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	%rdi, %r15
	cmpl	$1, %edx
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_sldns_buffer_remaining
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sldns_buffer_write_u8
	jmp	LBB0_9
LBB0_3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	subl	%edx, %r14d
	je	LBB0_7
## %bb.4:
	movq	%rsi, %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_sldns_buffer_remaining
	cltq
	leaq	1(%rbx), %rcx
	cmpq	%rax, %rcx
	ja	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	8(%r12), %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sldns_buffer_write_u8
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_sldns_buffer_write
	leaq	(%r12,%rbx,8), %r12
	addq	$8, %r12
	incl	%r14d
	jne	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	callq	_sldns_buffer_remaining
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_12
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_PTR_CREATE
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sldns_buffer_write_u16
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_compressed_dname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_compressed_dname
_write_compressed_dname:                ; @write_compressed_dname
	.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	x19, x0
	cmp	w2, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_sldns_buffer_remaining
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_sldns_buffer_write_u8
	b	LBB0_10
LBB0_3:
	mov	x20, x3
	ldr	w8, [x3]
	subs	w23, w8, w2
	b.eq	LBB0_7
; %bb.4:
	mov	x21, x1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x21]
	mov	x0, x19
	bl	_sldns_buffer_remaining
	add	x8, x22, #1
	cmp	x8, w0, sxtw
	b.hi	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #8
	mov	x0, x19
	mov	x1, x22
	bl	_sldns_buffer_write_u8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_sldns_buffer_write
	add	x21, x21, x22, lsl #3
	adds	w23, w23, #1
	b.lo	LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_sldns_buffer_remaining
	cmp	w0, #2
	b.ge	LBB0_9
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20, #4]
	bl	_PTR_CREATE
	mov	x1, x0
	mov	x0, x19
	bl	_sldns_buffer_write_u16
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
	.no_dead_strip	_write_compressed_dname
.subsections_via_symbols
