	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rrset_insert_rr                ## -- Begin function rrset_insert_rr
	.p2align	4, 0x90
_rrset_insert_rr:                       ## @rrset_insert_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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	8(%rsi), %eax
	movq	_LOCALZONE_RRSET_COUNT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r9, %rsi
	callq	_log_warn
	movl	$1, %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r8, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rsi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %ecx
	movl	%ecx, 8(%rsi)
	leal	8(,%rax,8), %esi
	callq	_regional_alloc
	movq	%rax, (%rbx)
	movl	8(%rbx), %esi
	shll	$3, %esi
	movq	%r13, %rdi
	callq	_regional_alloc
	movq	%rax, 24(%rbx)
	movl	8(%rbx), %esi
	shll	$3, %esi
	movq	%r13, %rdi
	callq	_regional_alloc
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.6:
	addq	$8, %rdi
	leal	-8(,%rax,8), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	24(%rbx), %rdi
	addq	$8, %rdi
	movl	8(%rbx), %eax
	leal	-8(,%rax,8), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	movl	8(%rbx), %eax
	leal	-8(,%rax,8), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	(%rbx), %rdi
	movq	24(%rbx), %rcx
LBB0_7:
	movq	%r14, (%rdi)
	movq	%r12, (%rcx)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_regional_alloc_init
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	16(%rbx), %rcx
	movl	$1, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCALZONE_RRSET_COUNT_MAX,4,2  ## @LOCALZONE_RRSET_COUNT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RRset '%s' has more than %d records, record ignored"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rrset_insert_rr                ; -- Begin function rrset_insert_rr
	.p2align	2
_rrset_insert_rr:                       ; @rrset_insert_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
	mov	x21, x2
	ldr	w8, [x1, #8]
Lloh0:
	adrp	x9, _LOCALZONE_RRSET_COUNT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOCALZONE_RRSET_COUNT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x5
	bl	_log_warn
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	mov	x22, x4
	mov	x20, x3
	mov	x19, x1
	mov	x23, x0
	ldr	x26, [x1]
	ldp	x24, x25, [x1, #16]
	add	w8, w8, #1
	str	w8, [x1, #8]
	lsl	w1, w8, #3
	bl	_regional_alloc
	str	x0, [x19]
	ldr	w8, [x19, #8]
	lsl	w1, w8, #3
	mov	x0, x23
	bl	_regional_alloc
	str	x0, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w1, w8, #3
	mov	x0, x23
	bl	_regional_alloc
	str	x0, [x19, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_9
; %bb.4:
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w10, [x19, #8]
	cmp	w10, #2
	b.lt	LBB0_7
; %bb.6:
	add	x0, x8, #8
	lsl	w8, w10, #3
	sub	w2, w8, #8
	mov	x1, x26
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	ldr	w8, [x19, #8]
	lsl	w8, w8, #3
	sub	w2, w8, #8
	mov	x1, x25
	bl	_memcpy
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	ldr	w8, [x19, #8]
	lsl	w8, w8, #3
	sub	w2, w8, #8
	mov	x1, x24
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
LBB0_7:
	str	x20, [x8]
	str	x22, [x9]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_regional_alloc_init
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCALZONE_RRSET_COUNT_MAX,4,2  ; @LOCALZONE_RRSET_COUNT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RRset '%s' has more than %d records, record ignored"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

.subsections_via_symbols
