	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_tag_scan        ## -- Begin function sldns_wire2str_tag_scan
	.p2align	4, 0x90
_sldns_wire2str_tag_scan:               ## @sldns_wire2str_tag_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rsi
	movq	(%rsi), %r14
	leaq	1(%r14), %rsi
	cmpq	%rsi, %rax
	jb	LBB0_8
## %bb.2:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r14
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movzbl	8(%rax,%rbx,8), %edi
	incq	%rbx
	callq	_isalnum
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movsbl	8(%rax,%r12,8), %ecx
	incq	%r12
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	callq	_sldns_str_print
	addl	%eax, %r13d
	cmpq	%r12, %r14
	jne	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(,%rcx,8), %rax
	addq	%rax, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%rcx, (%rax)
LBB0_8:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_wire2str_tag_scan        ; -- Begin function sldns_wire2str_tag_scan
	.p2align	2
_sldns_wire2str_tag_scan:               ; @sldns_wire2str_tag_scan
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0]
	ldr	x26, [x9]
	add	x25, x26, #1
	cmp	x8, x25
	b.lo	LBB0_5
; %bb.2:
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x26, x8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20]
	add	x23, x8, #1
	add	x8, x9, x8, lsl #3
	ldrb	w0, [x8, #8]
	bl	_isalnum
	mov	x8, x23
	cbnz	w0, LBB0_3
LBB0_5:
	mov	w23, #-1
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w23, #0
	cbz	x26, LBB0_10
; %bb.8:
	mov	x8, #0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	add	x27, x8, #1
	add	x8, x9, x8, lsl #3
	ldrsb	w3, [x8, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_sldns_str_print
	add	w23, w23, w0
	mov	x8, x27
	cmp	x26, x27
	b.ne	LBB0_9
LBB0_10:
	ldr	x8, [x20]
	add	x8, x8, x25, lsl #3
	str	x8, [x20]
	ldr	x8, [x19]
	sub	x8, x8, x25
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c"

.subsections_via_symbols
