	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_trustanchor_frm_str
_add_trustanchor_frm_str:               ## @add_trustanchor_frm_str
	.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, %r13
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LDNS_RR_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)
	movq	%r12, %rdi
	movl	$59, %esi
	callq	_str_contains_data
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	16(%rbp), %rax
	subq	$8, %rsp
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movq	%r15, %r9
	movq	%rax, %r15
	pushq	(%rax)
	pushq	(%r13)
	pushq	%r14
	callq	_sldns_str2wire_rr_buf
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_LDNS_WIREPARSE_OFFSET
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_sldns_get_errorstr_parse
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_log_err
	jmp	LBB0_12
LBB0_4:
	movq	(%r13), %rdi
	callq	_free
	movq	-72(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memdup
	movq	%rax, (%r13)
	movq	-72(%rbp), %rdx
	movq	%rdx, (%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sldns_wirerr_get_type
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sldns_wirerr_get_type
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_9:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memdup
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	-64(%rbp), %rdx
	movq	-72(%rbp), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	_add_trustanchor_frm_rr
	movq	%rax, %r14
	jmp	LBB0_12
LBB0_1:
	movq	24(%rbp), %rax
	movl	$1, (%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_log_err
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_BUF_SIZE,4,2           ## @LDNS_RR_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ldns error while converting string to RR at%d: %s: %s"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failure in add_trustanchor"

	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
L_.str.2:                               ## @.str.2
	.asciz	"malloc failure in add trustanchor"

	.no_dead_strip	_add_trustanchor_frm_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_trustanchor_frm_str
_add_trustanchor_frm_str:               ; @add_trustanchor_frm_str
	.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, #32
	mov	x21, x7
	mov	x23, x6
	mov	x24, x5
	mov	x26, x4
	mov	x27, x3
	mov	x19, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _LDNS_RR_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x7fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	stur	x8, [x29, #-96]
	mov	x0, x1
	mov	w1, #59
	bl	_str_contains_data
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x7, [x24]
	ldr	x8, [x23]
	str	x8, [sp, #-16]!
	sub	x2, x29, #96
	sub	x3, x29, #104
	mov	x0, x25
	mov	x1, x22
	mov	w4, #0
	mov	x5, x27
	mov	x6, x26
	bl	_sldns_str2wire_rr_buf
	add	sp, sp, #16
	cbz	w0, LBB0_3
; %bb.2:
	mov	x26, x0
	bl	_LDNS_WIREPARSE_OFFSET
	mov	x19, x0
	mov	x0, x26
	bl	_sldns_get_errorstr_parse
                                        ; kill: def $w0 killed $w0 def $x0
	sub	sp, sp, #32
	stp	x0, x25, [sp, #8]
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	add	sp, sp, #32
	b	LBB0_12
LBB0_3:
	ldr	x0, [x24]
	bl	_free
	ldur	x1, [x29, #-104]
	mov	x0, x22
	bl	_memdup
	str	x0, [x24]
	ldur	x2, [x29, #-104]
	str	x2, [x23]
	cbz	x0, LBB0_9
; %bb.4:
	ldur	x1, [x29, #-96]
	mov	x0, x22
	bl	_sldns_wirerr_get_type
Lloh10:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	ldp	x2, x1, [x29, #-104]
	mov	x0, x22
	bl	_sldns_wirerr_get_type
Lloh13:
	adrp	x8, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_6:
	ldur	x1, [x29, #-96]
	mov	x0, x22
	bl	_memdup
	cbz	x0, LBB0_10
; %bb.7:
	mov	x1, x0
	ldp	x3, x2, [x29, #-104]
	mov	x0, x20
	mov	x4, x19
	bl	_add_trustanchor_frm_rr
	b	LBB0_13
LBB0_8:
	mov	x0, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_13
LBB0_9:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_log_err
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_BUF_SIZE,4,2           ; @LDNS_RR_BUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ldns error while converting string to RR at%d: %s: %s"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failure in add_trustanchor"

	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
l_.str.2:                               ; @.str.2
	.asciz	"malloc failure in add trustanchor"

	.no_dead_strip	_add_trustanchor_frm_str
.subsections_via_symbols
