	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ldns_rdf2buffer_str_dname
LCPI0_0:
	.long	254                             ## 0xfe
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
LCPI0_1:
	.long	40                              ## 0x28
	.long	46                              ## 0x2e
	.long	59                              ## 0x3b
	.long	92                              ## 0x5c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ldns_rdf2buffer_str_dname
	.p2align	4, 0x90
_ldns_rdf2buffer_str_dname:             ## @ldns_rdf2buffer_str_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_ldns_rdf_data
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_1
## %bb.17:
	movq	_LDNS_STATUS_DOMAINNAME_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	cmpq	$1, %rax
	jne	LBB0_2
## %bb.18:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ldns_buffer_printf
	jmp	LBB0_16
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_16
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r14
	testq	%r14, %r14
	je	LBB0_16
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	cmpq	%rax, %r15
	jae	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%r14), %rax
	incq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	callq	_ldns_buffer_printf
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%r15,8), %rdx
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	movmskps	%xmm0, %eax
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movzbl	%dl, %r13d
	movl	%r13d, %edi
	callq	_isascii
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r13d, %edi
	callq	_isgraph
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r12,%r15,8), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r12,%r15,8), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ldns_rdf_size
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	%rax, %r15
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_ldns_buffer_printf
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_buffer_status             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ## @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_STATUS_DOMAINNAME_OVERFLOW,4,2 ## @LDNS_STATUS_DOMAINNAME_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

L_.str.1:                               ## @.str.1
	.asciz	"\\%c"

L_.str.2:                               ## @.str.2
	.asciz	"\\%03u"

L_.str.3:                               ## @.str.3
	.asciz	"%c"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ldns_rdf2buffer_str_dname
lCPI0_0:
	.long	254                             ; 0xfe
	.long	255                             ; 0xff
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	40                              ; 0x28
	.long	46                              ; 0x2e
	.long	59                              ; 0x3b
	.long	92                              ; 0x5c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ldns_rdf2buffer_str_dname
	.p2align	2
_ldns_rdf2buffer_str_dname:             ; @ldns_rdf2buffer_str_dname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ldns_rdf_data
	mov	x21, x0
	ldr	x27, [x0]
	mov	x0, x20
	bl	_ldns_rdf_size
Lloh0:
	adrp	x8, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LDNS_STATUS_DOMAINNAME_OVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_STATUS_DOMAINNAME_OVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	mov	x0, x20
	bl	_ldns_rdf_size
	cmp	x0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ldns_buffer_printf
	b	LBB0_18
LBB0_4:
	cbz	x27, LBB0_18
; %bb.5:
	mov	x26, #0
	add	x8, x21, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
Lloh12:
	adrp	x22, l_.str.2@PAGE
Lloh13:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh14:
	adrp	x23, l_.str.3@PAGE
Lloh15:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh16:
	adrp	x25, l_.str.1@PAGE
Lloh17:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x27, [x21, x24, lsl #3]
	mov	x26, x24
	cbz	x27, LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x20
	bl	_ldns_rdf_size
	cmp	x26, x0
	b.hs	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x26, x27
	add	x24, x8, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x28, x8, x26, lsl #3
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x25
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	bl	_ldns_buffer_printf
	add	x28, x28, #8
	subs	x27, x27, #1
	b.eq	LBB0_16
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	dup.2s	v0, w8
	and.8b	v0, v0, v8
	dup.4s	v1, v0[1]
	zip1.4s	v0, v0, v1
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	cmeq.4s	v0, v0, v1
	xtn.4h	v0, v0
	umov.h	w9, v0[0]
	umov.h	w10, v0[1]
	and	w10, w10, #0x1
	bfi	w9, w10, #1, #1
	umov.h	w10, v0[2]
	and	w10, w10, #0x1
	bfi	w9, w10, #2, #1
	umov.h	w10, v0[3]
	bfi	w9, w10, #3, #29
	tst	w9, #0xf
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	and	w26, w8, #0xff
	mov	x0, x26
	bl	_isascii
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x26
	bl	_isgraph
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x28]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x23
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x28]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x22
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_ldns_rdf_size
	cmp	x24, x0
	b.hs	LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ldns_buffer_printf
	b	LBB0_6
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_ldns_buffer_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ; @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_STATUS_DOMAINNAME_OVERFLOW,4,2 ; @LDNS_STATUS_DOMAINNAME_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

l_.str.1:                               ; @.str.1
	.asciz	"\\%c"

l_.str.2:                               ; @.str.2
	.asciz	"\\%03u"

l_.str.3:                               ; @.str.3
	.asciz	"%c"

.subsections_via_symbols
