	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_name_add_rr        ## -- Begin function ldns_dnssec_name_add_rr
	.p2align	4, 0x90
_ldns_dnssec_name_add_rr:               ## @ldns_dnssec_name_add_rr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r14
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_ldns_rr_get_type
	movq	%rax, %rbx
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_ldns_rr_rrsig_typecovered
	movl	%eax, %edi
	callq	_ldns_rdf2rr_type
	jmp	LBB0_7
LBB0_2:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	je	LBB0_9
## %bb.8:
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rbx
	jne	LBB0_10
LBB0_9:
	movq	%r12, 16(%r14)
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	%rcx, %rax
	je	LBB0_12
## %bb.11:
	cmpq	%rdx, %rax
	je	LBB0_12
## %bb.14:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrsets_new
	movq	%rax, (%r14)
	movq	%rax, %rdi
LBB0_16:
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_dnssec_rrsets_add_rr      ## TAILCALL
LBB0_12:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.17:
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_dnssec_rrs_add_rr         ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrs_new
	movq	%rax, 8(%r14)
	movq	%r12, (%rax)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_ERR,4,2            ## @LDNS_STATUS_ERR
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ## @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_name_add_rr        ; -- Begin function ldns_dnssec_name_add_rr
	.p2align	2
_ldns_dnssec_name_add_rr:               ; @ldns_dnssec_name_add_rr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_ldns_rr_get_type
	mov	x22, x0
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ldns_rr_rrsig_typecovered
	bl	_ldns_rdf2rr_type
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_5:
	mov	x0, #0
LBB0_6:
Lloh9:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_8
; %bb.7:
Lloh12:
	adrp	x9, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x22, x9
	b.ne	LBB0_10
LBB0_8:
	str	x19, [x20, #16]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_13
; %bb.11:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_16
; %bb.12:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ldns_dnssec_rrs_add_rr
LBB0_13:
	ldr	x0, [x20]
	cbnz	x0, LBB0_15
; %bb.14:
	bl	_ldns_dnssec_rrsets_new
	str	x0, [x20]
LBB0_15:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ldns_dnssec_rrsets_add_rr
LBB0_16:
	bl	_ldns_dnssec_rrs_new
	str	x0, [x20, #8]
	str	x19, [x0]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
	.comm	_LDNS_STATUS_ERR,4,2            ; @LDNS_STATUS_ERR
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
.subsections_via_symbols
