	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function az_domain_remove_rr
_az_domain_remove_rr:                   ## @az_domain_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, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	callq	_az_domain_rrset
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_az_rrset_find_rr
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_13
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_6
## %bb.4:
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_az_domain_rrset
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_rrsigs_copy_from_rrset_to_rrsigset
LBB0_6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_domain_remove_rrset
	movl	$1, %eax
	jmp	LBB0_19
LBB0_7:
	movq	_LDNS_RR_TYPE_RRSIG@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_rrsig_rdata_get_type_covered
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_az_domain_rrset
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_az_rrset_find_rrsig
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rrset_remove_rr
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	jmp	LBB0_19
LBB0_11:
	movl	$1, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.12:
	movl	$1, (%rcx)
	jmp	LBB0_19
LBB0_13:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rrset_remove_rr
	testl	%eax, %eax
	je	LBB0_18
LBB0_14:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_16:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rrset_remove_rr
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%rax)
	movl	$0, 4(%rax)
	jmp	LBB0_14
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %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
	.no_dead_strip	_az_domain_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_domain_remove_rr
_az_domain_remove_rr:                   ; @az_domain_remove_rr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_az_domain_rrset
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	x0, [x0]
	add	x3, sp, #8
	mov	x1, x24
	mov	x2, x22
	bl	_az_rrset_find_rr
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x23]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x20, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_az_domain_rrset
	cbz	x0, LBB0_14
; %bb.5:
	mov	x1, x0
	mov	x0, x23
	bl	_rrsigs_copy_from_rrset_to_rrsigset
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_domain_remove_rrset
	b	LBB0_16
LBB0_7:
Lloh2:
	adrp	x8, _LDNS_RR_TYPE_RRSIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RR_TYPE_RRSIG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x24
	mov	x1, x22
	bl	_rrsig_rdata_get_type_covered
	mov	x1, x0
	mov	x0, x19
	bl	_az_domain_rrset
	cbz	x0, LBB0_11
; %bb.9:
	mov	x19, x0
	ldr	x0, [x0]
	add	x3, sp, #8
	mov	x1, x24
	mov	x2, x22
	bl	_az_rrset_find_rrsig
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_rrset_remove_rr
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_17
LBB0_11:
	mov	w0, #1
	cbz	x20, LBB0_17
; %bb.12:
	str	w0, [x20]
	b	LBB0_17
LBB0_13:
	ldr	x1, [sp, #8]
	mov	x0, x23
	bl	_rrset_remove_rr
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_14:
	ldr	x1, [sp, #8]
	mov	x0, x23
	bl	_rrset_remove_rr
	cbz	w0, LBB0_17
; %bb.15:
	ldr	x8, [x20]
	str	x8, [x23, #8]
	ldr	x8, [x23]
	ldr	w9, [x8, #4]
	stp	w9, wzr, [x8]
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_RRSIG,8,3         ; @LDNS_RR_TYPE_RRSIG
	.no_dead_strip	_az_domain_remove_rr
.subsections_via_symbols
