	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_rrsets_add_rr      ## -- Begin function ldns_dnssec_rrsets_add_rr
	.p2align	4, 0x90
_ldns_dnssec_rrsets_add_rr:             ## @ldns_dnssec_rrsets_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rbx
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_ldns_rr_get_type
	movq	%rax, %r13
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r13, %r12
	cmpq	%r15, %r13
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ldns_rr_rrsig_typecovered
	movl	%eax, %edi
	callq	_ldns_rdf2rr_type
	movq	%rax, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ldns_dnssec_rrsets_type
	cmpq	%rax, %r12
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.12:
	movq	%r14, %rdi
	callq	_ldns_dnssec_rrsets_new_frm_rr
	movq	%rax, 24(%rbx)
	jmp	LBB0_25
LBB0_3:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_13:
	movq	%rbx, %rdi
	callq	_ldns_dnssec_rrsets_type
	cmpq	%rax, %r12
	jge	LBB0_19
## %bb.14:
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrsets_new
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movups	8(%rbx), %xmm0
	movups	%xmm0, 8(%rax)
	movq	24(%rbx), %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, 24(%rax)
	cmpq	%r15, %r13
	jne	LBB0_15
## %bb.16:
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrs_new
	movq	%rax, 16(%rbx)
	movq	%r14, (%rax)
	jmp	LBB0_17
LBB0_19:
	cmpq	%r15, %r13
	jne	LBB0_22
## %bb.20:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_27
## %bb.21:
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrs_new
	movq	%rax, 16(%rbx)
	jmp	LBB0_24
LBB0_15:
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrs_new
	movq	%rax, 8(%rbx)
	movq	%r14, (%rax)
	movq	$0, 16(%rbx)
LBB0_17:
	movq	%r12, (%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	jmp	LBB0_25
LBB0_22:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
LBB0_27:
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_dnssec_rrs_add_rr         ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	cmpq	%r15, %r13
	sete	%al
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrs_new
	movq	%rax, 8(%rbx,%r15,8)
	movq	%r14, (%rax)
	movq	%r12, (%rbx)
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_23:
	xorl	%eax, %eax
	callq	_ldns_dnssec_rrs_new
	movq	%rax, 8(%rbx)
LBB0_24:
	movq	%r14, (%rax)
LBB0_25:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_rrsets_add_rr      ; -- Begin function ldns_dnssec_rrsets_add_rr
	.p2align	2
_ldns_dnssec_rrsets_add_rr:             ; @ldns_dnssec_rrsets_add_rr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x24, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh3:
	ldr	x26, [x26, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldr	w19, [x24]
	mov	x0, x20
	bl	_ldns_rr_get_type
	mov	x23, x0
	ldr	x25, [x26]
	mov	x22, x0
	cmp	x0, x25
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_ldns_rr_rrsig_typecovered
	bl	_ldns_rdf2rr_type
	mov	x22, x0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_23
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_ldns_dnssec_rrsets_type
	cmp	x22, x0
	b.le	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x21, #24]
	cbnz	x0, LBB0_2
; %bb.10:
	mov	x0, x20
	bl	_ldns_dnssec_rrsets_new_frm_rr
	str	x0, [x21, #24]
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x21
	bl	_ldns_dnssec_rrsets_type
	cmp	x22, x0
	b.ge	LBB0_16
; %bb.14:
	bl	_ldns_dnssec_rrsets_new
	mov	x24, x0
	ldr	q0, [x21]
	str	q0, [x0]
	ldp	x8, x9, [x21, #16]
	stp	x8, x9, [x0, #16]
	cmp	x23, x25
	b.ne	LBB0_19
; %bb.15:
	str	xzr, [x21, #8]
	bl	_ldns_dnssec_rrs_new
	str	x0, [x21, #16]
	str	x20, [x0]
	b	LBB0_20
LBB0_16:
	cmp	x23, x25
	b.ne	LBB0_21
; %bb.17:
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_22
; %bb.18:
	bl	_ldns_dnssec_rrs_new
	str	x0, [x21, #16]
	b	LBB0_25
LBB0_19:
	bl	_ldns_dnssec_rrs_new
	str	x20, [x0]
	stp	x0, xzr, [x21, #8]
LBB0_20:
	str	x22, [x21]
	str	x24, [x21, #24]
	b	LBB0_12
LBB0_21:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_24
LBB0_22:
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ldns_dnssec_rrs_add_rr
LBB0_23:
	add	x19, x21, #8
	bl	_ldns_dnssec_rrs_new
	str	x22, [x21], #16
	cmp	x23, x25
	csel	x8, x21, x19, eq
	str	x0, [x8]
	str	x20, [x0]
	ldr	w19, [x24]
	b	LBB0_12
LBB0_24:
	bl	_ldns_dnssec_rrs_new
	str	x0, [x21, #8]
LBB0_25:
	str	x20, [x0]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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
.subsections_via_symbols
