	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_rrset_wildcard             ## -- Begin function val_rrset_wildcard
	.p2align	4, 0x90
_val_rrset_wildcard:                    ## @val_rrset_wildcard
	.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	16(%rdi), %r14
	movl	$1, %r12d
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rsi
	movq	%r14, %rdi
	callq	_rrsig_get_labcount
	movq	%rax, %rbx
	cmpq	$2, (%r14)
	jb	LBB0_6
## %bb.2:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_rrsig_get_labcount
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	(%r14), %r15
	jb	LBB0_4
LBB0_6:
	movq	(%r13), %r15
	movq	8(%r13), %r14
	movq	%r15, -48(%rbp)
	movq	%r14, %rdi
	callq	_dname_is_wild
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$16, %r14
	addq	$-2, %r15
	movq	%r15, -48(%rbp)
LBB0_8:
	movq	%r14, %rdi
	callq	_dname_count_labels
	notl	%ebx
	addl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, (%rdi)
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edx
	callq	_dname_remove_labels
	movq	-48(%rbp), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_10
LBB0_5:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_rrset_wildcard             ; -- Begin function val_rrset_wildcard
	.p2align	2
_val_rrset_wildcard:                    ; @val_rrset_wildcard
	.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
	ldr	x23, [x0, #16]
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x1, [x23, #8]
	mov	x0, x23
	bl	_rrsig_get_labcount
	mov	x21, x0
	ldr	x8, [x23]
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.2:
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x1, x24, x8
	mov	x0, x23
	bl	_rrsig_get_labcount
	cmp	x21, x0
	b.ne	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lo	LBB0_3
LBB0_5:
	ldp	x22, x23, [x22]
	str	x22, [sp, #8]
	mov	x0, x23
	bl	_dname_is_wild
	cbz	x0, LBB0_7
; %bb.6:
	add	x23, x23, #16
	sub	x8, x22, #2
	str	x8, [sp, #8]
LBB0_7:
	mov	x0, x23
	bl	_dname_count_labels
	mvn	w8, w21
	add	w2, w0, w8
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.8:
	str	x23, [x20]
	add	x1, sp, #8
	mov	x0, x20
	bl	_dname_remove_labels
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_9:
	mov	w0, #1
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
	add	sp, sp, #80
	ret
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
