	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az_remove_rr
_az_remove_rr:                          ## @az_remove_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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_sldns_wirerr_get_type
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_sldns_wirerr_get_class
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_sldns_wirerr_get_rdatalen
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_sldns_wirerr_get_rdatawl
	cmpq	(%r12), %r14
	jne	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_az_find_name
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r13
	addq	$2, %r14
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_az_domain_remove_rr
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	$1, %ebx
	cmpq	$0, (%r13)
	jne	LBB0_8
## %bb.4:
	addq	$8, %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rbtree_delete
	movq	%r13, %rdi
	callq	_auth_data_delete
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %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"

	.no_dead_strip	_az_remove_rr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function az_remove_rr
_az_remove_rr:                          ; @az_remove_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	x20, x4
	mov	x22, x3
	mov	x25, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_sldns_wirerr_get_type
	mov	x21, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_sldns_wirerr_get_class
	mov	x26, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_sldns_wirerr_get_rdatalen
	mov	x24, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_sldns_wirerr_get_rdatawl
	ldr	x8, [x19]
	cmp	x26, x8
	b.ne	LBB0_6
; %bb.1:
	mov	x25, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_az_find_name
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	add	x3, x24, #2
	mov	x1, x21
	mov	x2, x25
	mov	x4, x20
	bl	_az_domain_remove_rr
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x22]
	cbnz	x8, LBB0_5
; %bb.4:
	add	x0, x19, #8
	mov	x1, x22
	bl	_rbtree_delete
	mov	x0, x22
	bl	_auth_data_delete
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
	str	w0, [x20]
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong class for RR"

	.no_dead_strip	_az_remove_rr
.subsections_via_symbols
