	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az_insert_rr
_az_insert_rr:                          ## @az_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_sldns_wirerr_get_type
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_sldns_wirerr_get_class
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_sldns_wirerr_get_ttl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_sldns_wirerr_get_rdatalen
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_sldns_wirerr_get_rdatawl
	cmpq	(%r13), %r14
	jne	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_az_domain_find_or_create
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addq	$2, %r8
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_az_domain_add_rr
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_log_err
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong class for RR"

L_.str.1:                               ## @.str.1
	.asciz	"cannot create domain"

L_.str.2:                               ## @.str.2
	.asciz	"cannot add RR to domain"

	.no_dead_strip	_az_insert_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az_insert_rr
_az_insert_rr:                          ; @az_insert_rr
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x25, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_sldns_wirerr_get_type
	mov	x20, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	bl	_sldns_wirerr_get_class
	mov	x27, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	bl	_sldns_wirerr_get_ttl
	mov	x24, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	bl	_sldns_wirerr_get_rdatalen
	mov	x26, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	bl	_sldns_wirerr_get_rdatawl
	ldr	x8, [x23]
	cmp	x27, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x25, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_az_domain_find_or_create
	cbz	x0, LBB0_5
; %bb.2:
	add	x4, x26, #2
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	mov	x5, x19
	bl	_az_domain_add_rr
	cbz	w0, LBB0_6
; %bb.3:
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_log_err
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong class for RR"

l_.str.1:                               ; @.str.1
	.asciz	"cannot create domain"

l_.str.2:                               ; @.str.2
	.asciz	"cannot add RR to domain"

	.no_dead_strip	_az_insert_rr
.subsections_via_symbols
