	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rrinternal_parse_rdf
_rrinternal_parse_rdf:                  ## @rrinternal_parse_rdf
	.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	%r9, %r12
	movq	%r8, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %rax
	movq	32(%rbp), %rdx
	movl	16(%rbp), %r14d
	cmpl	$128, %r14d
	je	LBB0_10
## %bb.1:
	cmpl	$130, %r14d
	je	LBB0_10
## %bb.2:
	cmpl	$129, %r14d
	jne	LBB0_12
## %bb.3:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	64(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	56(%rbp), %r15
	movq	48(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	(%r12), %rax
	subq	%rax, %rbx
	movq	%rbx, -48(%rbp)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_sldns_str2wire_dname_buf_origin
	testl	%eax, %eax
	jne	LBB0_13
LBB0_8:
	movq	-48(%rbp), %rax
	addq	%rax, (%r12)
LBB0_9:
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_10:
	decq	%rax
	cmpq	%rdx, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_strlen
	leaq	(%rax,%r13), %rsi
	subq	%rax, %r15
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_sldns_bget_token
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:
	movq	(%r12), %rax
	subq	%rax, %rbx
	movq	%rbx, -48(%rbp)
	leaq	(%rcx,%rax,4), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	callq	_sldns_str2wire_rdf_buf
	testl	%eax, %eax
	je	LBB0_8
LBB0_13:
	movl	%eax, %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_sldns_buffer_position
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_strlen
	subq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_RET_ERR_SHIFT
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %esi
	cmpl	%r14d, %eax
	movl	$1, %ecx
	cmoveq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	testq	%r15, %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmoveq	%rcx, %r14
	movq	(%r12), %rcx
	leaq	(%r14,%rcx), %rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_5
## %bb.15:
	movq	_LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_sldns_buffer_position
	movl	%ebx, %edi
	movq	%rax, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET_ERR                        ## TAILCALL
LBB0_5:
	cmpl	%esi, %eax
	leaq	l_.str.1(%rip), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%rax, %rsi
	testq	%r15, %r15
	cmovneq	%r15, %rsi
	leaq	(%rax,%rcx,4), %rdi
	movq	%r14, %rdx
	callq	_memmove
	addq	%r14, (%r12)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"@"

	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	2

	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.no_dead_strip	_rrinternal_parse_rdf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rrinternal_parse_rdf
_rrinternal_parse_rdf:                  ; @rrinternal_parse_rdf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x6
	mov	x19, x5
	mov	x23, x4
	mov	x22, x3
	mov	x26, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x9, x8, [x29, #16]
	cmp	w6, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w24, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w24, #129
	b.ne	LBB0_9
; %bb.3:
	mov	x25, x7
	ldp	x24, x26, [x29, #40]
	ldr	x27, [x29, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.4:
	ldr	x8, [x19]
	sub	x9, x23, x8
	str	x9, [sp, #8]
	add	x1, x22, x8, lsl #2
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, x24
	mov	x4, x26
	bl	_sldns_str2wire_dname_buf_origin
	cbnz	w0, LBB0_10
LBB0_5:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	add	x8, x9, x8
LBB0_6:
	str	x8, [x19]
Lloh2:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_7:
	sub	x8, x8, #1
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_strlen
	add	x1, x21, x0
	sub	x3, x26, x0
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sldns_bget_token
LBB0_9:
	ldr	x8, [x19]
	sub	x9, x23, x8
	str	x9, [sp, #8]
	add	x1, x22, x8, lsl #2
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, x24
	bl	_sldns_str2wire_rdf_buf
	cbz	w0, LBB0_5
LBB0_10:
	mov	x22, x0
	mov	x0, x20
	bl	_sldns_buffer_position
	mov	x19, x0
	mov	x0, x21
	bl	_strlen
	sub	x1, x19, x0
	mov	x0, x22
	bl	_RET_ERR_SHIFT
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
Lloh7:
	adrp	x8, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w25
	csinc	x9, x27, xzr, eq
	cmp	x24, #0
	csel	x21, x9, x26, eq
	ldr	x9, [x19]
	add	x10, x21, x9
	cmp	x10, x23
	b.ls	LBB0_14
; %bb.13:
Lloh10:
	adrp	x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_sldns_buffer_position
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_RET_ERR
LBB0_14:
Lloh13:
	adrp	x10, l_.str.1@PAGE
Lloh14:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w25
	csel	x8, x22, x10, eq
	cmp	x24, #0
	csel	x1, x8, x24, eq
	add	x0, x22, x9, lsl #2
	mov	x2, x21
	bl	_memmove
	ldr	x8, [x19]
	add	x8, x8, x21
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"@"

	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	2

	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.no_dead_strip	_rrinternal_parse_rdf
.subsections_via_symbols
