	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sldns_str2wire_rr_buf_internal
_sldns_str2wire_rr_buf_internal:        ## @sldns_str2wire_rr_buf_internal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -60(%rbp)
	movq	_LDNS_MAX_RDFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	$0, -68(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -128(%rbp)
	movq	%rbx, %rdi
	callq	_strlen
	leaq	-52(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sldns_buffer_init_frm_data
	testq	%r13, %r13
	leaq	-128(%rbp), %rbx
	cmovneq	%r13, %rbx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	subq	$32, %rsp
	movl	%r15d, 24(%rsp)
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, 16(%rsp)
	movups	24(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-52(%rbp), %rdi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	movq	16(%rbp), %r9
	movq	%r9, %r12
	callq	_rrinternal_get_owner
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	leaq	-52(%rbp), %rdi
	leaq	-60(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	callq	_rrinternal_get_ttl
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	leaq	-52(%rbp), %rdi
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_rrinternal_get_class
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	leaq	-52(%rbp), %rdi
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_rrinternal_get_type
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	40(%rbp), %r10d
	movq	(%r13), %rdx
	movq	(%rbx), %rcx
	movl	-56(%rbp), %r8d
	movl	-64(%rbp), %r9d
	movl	-68(%rbp), %eax
	leaq	-52(%rbp), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	pushq	%r10
	pushq	%rax
	callq	_rrinternal_write_typeclassttl
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rbx), %r9
	movl	40(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	addq	$4, %r9
	movq	%r9, (%r13)
	jmp	LBB0_8
LBB0_7:
	movl	-56(%rbp), %eax
	subq	$8, %rsp
	leaq	-52(%rbp), %rdi
	movl	%r15d, %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	pushq	%r12
	pushq	%r14
	pushq	%rax
	callq	_rrinternal_parse_rdata
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	_LDNS_WIREPARSE_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_RDFLEN,4,2            ## @LDNS_MAX_RDFLEN
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ## @LDNS_WIREPARSE_ERR_OK
	.no_dead_strip	_sldns_str2wire_rr_buf_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sldns_str2wire_rr_buf_internal
_sldns_str2wire_rr_buf_internal:        ; @sldns_str2wire_rr_buf_internal
	.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
	sub	sp, sp, #64
	mov	x27, x7
	mov	x26, x6
	mov	x22, x5
	stur	w4, [x29, #-132]                ; 4-byte Folded Spill
	mov	x25, x3
	mov	x20, x2
	mov	x21, x1
	mov	x28, x0
	mov	x8, sp
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	ldr	x19, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	wzr, [x29, #-92]
Lloh3:
	adrp	x8, _LDNS_MAX_RDFLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_MAX_RDFLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w23, w8, #1
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	stur	xzr, [x29, #-100]
	stur	wzr, [x29, #-104]
	stur	xzr, [x29, #-112]
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #116
	mov	x1, x28
	mov	x28, x22
	mov	x22, x26
	bl	_sldns_buffer_init_frm_data
	sub	x8, x29, #112
	cmp	x25, #0
	csel	x25, x8, x25, eq
	sub	sp, sp, #16
	str	w23, [sp, #8]
	str	x24, [sp]
	sub	x0, x29, #116
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	mov	x4, x28
	mov	x5, x26
	mov	x6, x27
	mov	x7, x19
	bl	_rrinternal_get_owner
	add	sp, sp, #16
	cbnz	w0, LBB0_8
; %bb.1:
	sub	x0, x29, #116
	sub	x3, x29, #92
	sub	x4, x29, #96
	mov	x1, x24
	mov	x2, x23
	ldur	w5, [x29, #-132]                ; 4-byte Folded Reload
	bl	_rrinternal_get_ttl
	cbnz	w0, LBB0_8
; %bb.2:
	sub	x0, x29, #116
	sub	x3, x29, #92
	sub	x4, x29, #104
	mov	x1, x24
	mov	x2, x23
	bl	_rrinternal_get_class
	cbnz	w0, LBB0_8
; %bb.3:
	sub	x0, x29, #116
	sub	x3, x29, #92
	sub	x4, x29, #100
	mov	x1, x24
	mov	x2, x23
	bl	_rrinternal_get_type
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w26, [x29, #24]
	ldr	x2, [x20]
	ldr	x3, [x25]
	ldp	w5, w4, [x29, #-104]
	ldur	w6, [x29, #-96]
	sub	x0, x29, #116
	mov	x1, x21
	mov	x7, x26
	bl	_rrinternal_write_typeclassttl
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x5, [x25]
	cbz	w26, LBB0_7
; %bb.6:
	add	x8, x5, #4
	str	x8, [x20]
Lloh8:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	ldur	w6, [x29, #-100]
	str	x22, [sp, #-16]!
	sub	x0, x29, #116
	mov	x1, x24
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	mov	x7, x28
	bl	_rrinternal_parse_rdata
	add	sp, sp, #16
Lloh11:
	adrp	x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_WIREPARSE_ERR_OK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
LBB0_8:
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_RDFLEN,4,2            ; @LDNS_MAX_RDFLEN
	.comm	_LDNS_WIREPARSE_ERR_OK,4,2      ; @LDNS_WIREPARSE_ERR_OK
	.no_dead_strip	_sldns_str2wire_rr_buf_internal
.subsections_via_symbols
