	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_dname_scan      ## -- Begin function sldns_wire2str_dname_scan
	.p2align	4, 0x90
_sldns_wire2str_dname_scan:             ## @sldns_wire2str_dname_scan
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rsi, %r13
	movq	(%rdi), %r12
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_sldns_str_print
	movl	%eax, %edx
	addl	%r15d, %edx
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_32
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, (%rax)
	decq	(%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	leaq	8(%r12), %rax
	movl	%esi, %ecx
	andl	$192, %ecx
	testq	%rcx, %rcx
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rax,%rsi,8), %rcx
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	jbe	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	subq	%rax, %rsi
	sarq	$3, %rsi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r13), %rcx
	cmpq	%rsi, %rcx
	cmovbq	%rcx, %rsi
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%esi, %esi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	%esi, %r13d
	movq	%rax, %r12
	movl	%edx, %r15d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12), %edx
	addq	$8, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dname_char_print
	addl	%eax, %r15d
	decl	%r13d
	jne	LBB0_14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%edx, %r15d
	movq	%rax, %r12
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	leaq	(,%rdx,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, (%rcx)
	movq	(%r13), %rax
	subq	%rdx, %rax
	movq	%rax, (%r13)
	jne	LBB0_4
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$-64, %cl
	jne	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	ja	LBB0_40
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	andl	$63, %esi
	shlq	$8, %rsi
	orq	(%rax), %rsi
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	andl	$63, %esi
	shlq	$8, %rsi
	orq	(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, (%rax)
	decq	%rcx
	movq	%rcx, (%r13)
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%edx, %r15d
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_41
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	jae	LBB0_41
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1001, %ecx                     ## imm = 0x3E9
	jae	LBB0_42
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rsi,8), %r12
	movq	(%rax,%rsi,8), %rsi
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%rsi, %rsi
	movl	%r15d, %edx
	jne	LBB0_3
	jmp	LBB0_36
LBB0_28:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_39
LBB0_29:
	addq	$8, %r12
	movq	%r12, (%rdi)
	decq	%rax
	movq	%rax, (%r13)
	jmp	LBB0_38
LBB0_30:
	movl	%edx, %r15d
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_sldns_str_print
LBB0_31:
	movl	%r15d, %edx
	addl	%eax, %edx
	jmp	LBB0_37
LBB0_32:
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_36
## %bb.33:
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_35
	jmp	LBB0_36
LBB0_34:
	movl	%r15d, %edx
	testq	%rax, %rax
	je	LBB0_36
LBB0_35:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$8, (%rcx)
	decq	%rax
	movq	%rax, (%r13)
LBB0_36:
	testl	%edx, %edx
	je	LBB0_38
LBB0_37:
	movl	%edx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	leaq	L_.str.1(%rip), %rdx
LBB0_39:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sldns_str_print                ## TAILCALL
LBB0_40:
	movl	%edx, %r15d
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_43
LBB0_41:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_43
LBB0_42:
	leaq	L_.str.4(%rip), %rdx
LBB0_43:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_sldns_str_print
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ErrorMissingDname"

L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	"ErrorPartialDname"

L_.str.3:                               ## @.str.3
	.asciz	"ErrorComprPtrOutOfBounds"

L_.str.4:                               ## @.str.4
	.asciz	"ErrorComprPtrLooped"

L_.str.5:                               ## @.str.5
	.asciz	"ErrorLABELTYPE%xIsUnknown"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_dname_scan      ; -- Begin function sldns_wire2str_dname_scan
	.p2align	2
_sldns_wire2str_dname_scan:             ; @sldns_wire2str_dname_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x21, x2
	ldr	x9, [x1]
	cbz	x9, LBB0_26
; %bb.1:
	mov	x22, x1
	mov	x23, x0
	ldr	x24, [x0]
	ldr	x8, [x24]
	cbz	x8, LBB0_27
; %bb.2:
	mov	w27, #0
	mov	w9, #0
	mov	w19, #0
	add	x28, x4, x5, lsl #3
	stp	x4, x5, [sp, #8]                ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x21
	mov	x1, x20
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_sldns_str_print
	add	w19, w0, w19
	ldr	x8, [x24]
	cbz	x8, LBB0_30
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	tbnz	w27, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x9, [x23]
	add	x9, x9, #8
	str	x9, [x23]
	ldr	x9, [x22]
	sub	x9, x9, #1
	str	x9, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x9, x24, #8
	and	x10, x8, #0xc0
	cbnz	w10, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	tbz	w27, #0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x10, x9, x8, lsl #3
	sub	x11, x28, x9
	asr	x11, x11, #3
	cmp	x10, x28
	csel	x25, x8, x11, ls
	cbz	w25, LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x26, x25
	mov	x24, x9
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w2, [x24], #8
	mov	x0, x21
	mov	x1, x20
	bl	_dname_char_print
	add	w19, w19, w0
	subs	w26, w26, #1
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w27, #0, LBB0_4
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x10, [x22]
	cmp	x10, x8
	csel	x25, x10, x8, lo
	cbnz	w25, LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x24, x9
	tbnz	w27, #0, LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x23]
	add	x8, x8, x25, lsl #3
	str	x8, [x23]
	ldr	x8, [x22]
	subs	x8, x8, x25
	str	x8, [x22]
	b.ne	LBB0_4
	b	LBB0_32
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #192
	b.ne	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	tbz	w27, #0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x24, #16
	cmp	x10, x28
	b.hi	LBB0_38
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w8, #8
	and	x8, x8, #0x3f00
	ldr	x9, [x9]
	orr	x8, x9, x8
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x22]
	cbz	x10, LBB0_38
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	lsl	w8, w8, #8
	and	x8, x8, #0x3f00
	ldr	x9, [x9]
	orr	x8, x9, x8
	ldr	x9, [x23]
	add	x9, x9, #8
	str	x9, [x23]
	sub	x9, x10, #1
	str	x9, [x22]
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x4, x5, [sp, #8]                ; 16-byte Folded Reload
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cbz	x4, LBB0_39
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x5
	b.hs	LBB0_39
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #1001
	b.hs	LBB0_40
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	add	x24, x4, x8, lsl #3
	ldr	x8, [x24]
	mov	w27, #1
	cbnz	x8, LBB0_3
	b	LBB0_34
LBB0_26:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_37
LBB0_27:
	add	x8, x24, #8
	str	x8, [x23]
	sub	x8, x9, #1
	str	x8, [x22]
	b	LBB0_36
LBB0_28:
	str	x10, [sp]
Lloh4:
	adrp	x2, l_.str.5@PAGE
Lloh5:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_29:
	mov	x0, x21
	mov	x1, x20
	bl	_sldns_str_print
	add	w19, w0, w19
	b	LBB0_35
LBB0_30:
	tbnz	w27, #0, LBB0_34
; %bb.31:
	ldr	x8, [x22]
LBB0_32:
	cbz	x8, LBB0_34
; %bb.33:
	ldr	x9, [x23]
	add	x9, x9, #8
	str	x9, [x23]
	sub	x8, x8, #1
	str	x8, [x22]
LBB0_34:
	cbz	w19, LBB0_36
LBB0_35:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_36:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_37:
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_sldns_str_print
LBB0_38:
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_29
LBB0_39:
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_29
LBB0_40:
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ErrorMissingDname"

l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	"ErrorPartialDname"

l_.str.3:                               ; @.str.3
	.asciz	"ErrorComprPtrOutOfBounds"

l_.str.4:                               ; @.str.4
	.asciz	"ErrorComprPtrLooped"

l_.str.5:                               ; @.str.5
	.asciz	"ErrorLABELTYPE%xIsUnknown"

.subsections_via_symbols
