	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_dane_filter_unusable_records
_ldns_dane_filter_unusable_records:     ## @ldns_dane_filter_unusable_records
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	xorl	%ebx, %ebx
	movq	_LDNS_RR_TYPE_TLSA@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jae	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_ldns_rr_rd_count
	cmpl	$4, %eax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movl	%eax, %edi
	callq	_ldns_rdf2native_int8
	cmpl	$3, %eax
	jg	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ldns_rr_rdf
	movl	%eax, %edi
	callq	_ldns_rdf2native_int8
	cmpl	$1, %eax
	jg	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_ldns_rr_rdf
	movl	%eax, %edi
	callq	_ldns_rdf2native_int8
	cmpl	$2, %eax
	jg	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	jne	LBB0_3
## %bb.10:
	movq	%r14, %rdi
	callq	_ldns_rr_list_free
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_TLSA,8,3          ## @LDNS_RR_TYPE_TLSA
	.no_dead_strip	_ldns_dane_filter_unusable_records
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_dane_filter_unusable_records
_ldns_dane_filter_unusable_records:     ; @ldns_dane_filter_unusable_records
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_ldns_rr_list_new
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_11
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x23, _LDNS_RR_TYPE_TLSA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_RR_TYPE_TLSA@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_ldns_rr_list_rr_count
	cmp	x21, x0
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ldns_rr_list_rr
	mov	x22, x0
	bl	_ldns_rr_get_type
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_ldns_rr_rd_count
	cmp	w0, #4
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_ldns_rr_rdf
	bl	_ldns_rdf2native_int8
	cmp	w0, #3
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #1
	bl	_ldns_rr_rdf
	bl	_ldns_rdf2native_int8
	cmp	w0, #1
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #2
	bl	_ldns_rr_rdf
	bl	_ldns_rdf2native_int8
	cmp	w0, #2
	b.gt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_ldns_rr_list_push_rr
	cbnz	w0, LBB0_3
; %bb.10:
	mov	x0, x19
	bl	_ldns_rr_list_free
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_TLSA,8,3          ; @LDNS_RR_TYPE_TLSA
	.no_dead_strip	_ldns_dane_filter_unusable_records
.subsections_via_symbols
