	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_pkt_filter_answer
_ldns_pkt_filter_answer:                ## @ldns_pkt_filter_answer
	.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	%rsi, %r12
	callq	_ldns_pkt_answer
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ldns_rr_list_rr_count
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r13), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_ldns_rr_list_set_rr
	movl	%r14d, %r13d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_ldns_rr_list_rr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_ANY@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_RR_TYPE_AXFR@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_LDNS_RR_TYPE_PTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
	jmp	LBB0_10
LBB0_1:
	xorl	%r13d, %r13d
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_rr_list_set_rr_count      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_ANY,8,3           ## @LDNS_RR_TYPE_ANY
	.comm	_LDNS_RR_TYPE_AXFR,8,3          ## @LDNS_RR_TYPE_AXFR
	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_PTR,8,3           ## @LDNS_RR_TYPE_PTR
	.no_dead_strip	_ldns_pkt_filter_answer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_pkt_filter_answer
_ldns_pkt_filter_answer:                ; @ldns_pkt_filter_answer
	.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	x20, x1
	bl	_ldns_pkt_answer
	mov	x19, x0
	bl	_ldns_rr_list_rr_count
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	w23, #0
	mov	w27, #0
Lloh0:
	adrp	x25, _LDNS_RR_TYPE_ANY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LDNS_RR_TYPE_ANY@GOTPAGEOFF]
Lloh2:
	adrp	x26, _LDNS_RR_TYPE_AXFR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _LDNS_RR_TYPE_AXFR@GOTPAGEOFF]
Lloh4:
	adrp	x28, _LDNS_RR_TYPE_PTR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _LDNS_RR_TYPE_PTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w27, #1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x27
	bl	_ldns_rr_list_set_rr
	mov	x27, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w21, w23
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ldns_rr_list_rr
	mov	x24, x0
	bl	_ldns_rr_get_type
	ldr	x8, [x25]
	cmp	x8, x20
	ccmp	x0, x20, #4, ne
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x11, [x28]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	ccmp	x0, x11, #4, ne
	b.eq	LBB0_2
	b	LBB0_3
LBB0_7:
	mov	w27, #0
LBB0_8:
	mov	x0, x19
	mov	x1, x27
	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
	b	_ldns_rr_list_set_rr_count
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_ANY,8,3           ; @LDNS_RR_TYPE_ANY
	.comm	_LDNS_RR_TYPE_AXFR,8,3          ; @LDNS_RR_TYPE_AXFR
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_PTR,8,3           ; @LDNS_RR_TYPE_PTR
	.no_dead_strip	_ldns_pkt_filter_answer
.subsections_via_symbols
