	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_rr_to_rrset
_add_rr_to_rrset:                       ## @add_rr_to_rrset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	%r8, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rcx, %rax
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rax
	cmpq	%r14, %rcx
	je	LBB0_4
## %bb.3:
	movq	%rcx, %rax
	cmpq	%rcx, 8(%r12)
	jne	LBB0_7
LBB0_4:
	movq	(%rdx), %rcx
	cmpq	%rax, %rcx
	je	LBB0_6
## %bb.5:
	movq	_LDNS_RR_TYPE_ANY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_sldns_buffer_current
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_sig_is_double
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_skip_ttl_rdata
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_18
	jmp	LBB0_16
LBB0_8:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	movq	$0, 24(%rax)
	movq	%r15, %rdi
	callq	_sldns_buffer_current
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	cmpq	%r14, (%r13)
	jne	LBB0_11
## %bb.10:
	cmpq	%r14, 8(%r12)
	jne	LBB0_13
LBB0_11:
	movq	24(%r12), %rax
	leaq	32(%r12), %rcx
	leaq	8(%rax), %rdx
	testq	%rax, %rax
	cmoveq	%rcx, %rdx
	movq	%rbx, (%rdx)
	movq	%rbx, 24(%r12)
	incl	20(%r12)
	jmp	LBB0_14
LBB0_12:
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	48(%r12), %rax
	leaq	56(%r12), %rcx
	leaq	8(%rax), %rdx
	testq	%rax, %rax
	cmoveq	%rcx, %rdx
	movq	%rbx, (%rdx)
	movq	%rbx, 48(%r12)
	incl	40(%r12)
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_calc_size
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	(%rbx), %eax
	addl	%eax, 16(%r12)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_16:
	movq	_LDNS_RCODE_FORMERR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ## @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RCODE_FORMERR,4,2         ## @LDNS_RCODE_FORMERR
	.comm	_LDNS_RR_TYPE_ANY,8,3           ## @LDNS_RR_TYPE_ANY
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
	.no_dead_strip	_add_rr_to_rrset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_rr_to_rrset
_add_rr_to_rrset:                       ; @add_rr_to_rrset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x5
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x23, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x9, x4
	b.ne	LBB0_2
; %bb.1:
	mov	x9, x8
	b	LBB0_4
LBB0_2:
	mov	x9, x20
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	ldr	x10, [x19, #8]
	mov	x9, x8
	cmp	x10, x8
	b.ne	LBB0_6
LBB0_4:
	ldr	x8, [x2]
Lloh2:
	adrp	x10, _LDNS_RR_TYPE_ANY@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LDNS_RR_TYPE_ANY@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_sldns_buffer_current
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_sig_is_double
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_skip_ttl_rdata
Lloh5:
	adrp	x8, _LDNS_RCODE_FORMERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_RCODE_FORMERR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_17
LBB0_7:
	mov	x0, x22
	mov	w1, #32
	bl	_regional_alloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x22, x0
	str	xzr, [x0, #24]
	mov	x0, x21
	bl	_sldns_buffer_current
	str	w0, [x22, #16]
	str	xzr, [x22, #8]
	ldr	x8, [x23]
	cmp	x8, x20
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_12
LBB0_10:
	ldr	x8, [x19, #24]
	add	x9, x19, #32
	add	x10, x8, #8
	cmp	x8, #0
	csel	x8, x9, x10, eq
	str	x22, [x8]
	str	x22, [x19, #24]
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	ldr	x8, [x19, #48]
	add	x9, x19, #56
	add	x10, x8, #8
	cmp	x8, #0
	csel	x8, x9, x10, eq
	str	x22, [x8]
	str	x22, [x19, #48]
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_calc_size
	cbz	w0, LBB0_15
; %bb.14:
	mov	w0, #0
	ldr	w8, [x22]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_17
LBB0_15:
Lloh10:
	adrp	x8, _LDNS_RCODE_FORMERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_RCODE_FORMERR@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
	.comm	_LDNS_RCODE_FORMERR,4,2         ; @LDNS_RCODE_FORMERR
	.comm	_LDNS_RR_TYPE_ANY,8,3           ; @LDNS_RR_TYPE_ANY
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
	.no_dead_strip	_add_rr_to_rrset
.subsections_via_symbols
