	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_tag_buf         ## -- Begin function sldns_str2wire_tag_buf
	.p2align	4, 0x90
_sldns_str2wire_tag_buf:                ## @sldns_str2wire_tag_buf
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_strlen
	cmpq	$256, %rax                      ## imm = 0x100
	jb	LBB0_2
## %bb.1:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_TAG@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%rax, %r12
	cmpq	%rax, (%r14)
	jbe	LBB0_9
## %bb.3:
	movb	(%r13), %al
	testb	%al, %al
	je	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isalnum
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%r13,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_5
LBB0_7:
	movq	%r12, %rbx
	incq	%rbx
	movq	%r12, (%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_memmove
	movq	%rbx, (%r14)
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_LDNS_WIREPARSE_ERR_SYNTAX_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_TAG,4,2 ## @LDNS_WIREPARSE_ERR_SYNTAX_TAG
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ## @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sldns_str2wire_tag_buf         ; -- Begin function sldns_str2wire_tag_buf
	.p2align	2
_sldns_str2wire_tag_buf:                ; @sldns_str2wire_tag_buf
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_strlen
	cmp	x0, #256
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_TAG@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x22, x0
	ldr	x8, [x19]
	cmp	x8, x0
	b.ls	LBB0_8
; %bb.3:
	ldrb	w8, [x20]
	cbz	w8, LBB0_7
; %bb.4:
	mov	x23, #0
	add	x24, x20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isalnum
	cbz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x24, x23]
	add	x23, x23, #1
	cbnz	w8, LBB0_5
LBB0_7:
	add	x23, x22, #1
	str	x22, [x21], #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_memmove
	str	x23, [x19]
Lloh2:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
LBB0_10:
Lloh6:
	adrp	x8, _LDNS_WIREPARSE_ERR_SYNTAX_TAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_SYNTAX_TAG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	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
	b	_RET_ERR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_WIREPARSE_ERR_SYNTAX_TAG,4,2 ; @LDNS_WIREPARSE_ERR_SYNTAX_TAG
	.comm	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL,4,2 ; @LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
.subsections_via_symbols
