	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_msg_from_zone             ## -- Begin function iter_msg_from_zone
	.p2align	4, 0x90
_iter_msg_from_zone:                    ## @iter_msg_from_zone
	.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
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	movl	8(%r15), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.4:
	movq	%rcx, %r14
	movl	%edx, %r13d
	movl	4(%r15), %edx
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %r8
	callq	_reply_find_rrset_section_an
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %rdi
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %r8
	callq	_reply_find_rrset_section_ns
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_RESPONSE_TYPE_REFERRAL@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_18
## %bb.10:
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	addq	(%rax), %rcx
	je	LBB0_8
## %bb.11:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r13
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	addq	(%rax), %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %r13
	jae	LBB0_8
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rax
	movq	(%rax,%r13,8), %rbx
	movl	8(%rbx), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%rbx), %edi
	callq	_ntohs
	cmpq	%r14, %rax
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %edi
	callq	_dname_count_labels
	movl	(%r15), %ecx
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %edi
	movl	8(%r15), %edx
	movl	%eax, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dname_strict_subdomain
	testq	%rax, %rax
	je	LBB0_12
	jmp	LBB0_7
LBB0_18:
	movq	_RESPONSE_TYPE_ANSWER@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	sete	%al
	movq	_RESPONSE_TYPE_CNAME@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_log_assert
	movq	(%r12), %rdi
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%r14, %r8
	callq	_reply_find_rrset_section_an
	testq	%rax, %rax
	jne	LBB0_7
## %bb.20:
	movq	(%r12), %rdi
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	(%rbx), %rcx
	movq	%r14, %r8
	callq	_reply_find_rrset_section_ns
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.21:
	movq	(%r12), %rdi
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %r8
	callq	_reply_find_rrset_section_an
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_SOA,8,3           ## @LDNS_RR_TYPE_SOA
	.comm	_RESPONSE_TYPE_REFERRAL,4,2     ## @RESPONSE_TYPE_REFERRAL
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_RESPONSE_TYPE_ANSWER,4,2       ## @RESPONSE_TYPE_ANSWER
	.comm	_RESPONSE_TYPE_CNAME,4,2        ## @RESPONSE_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ## @LDNS_RR_TYPE_DNSKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_msg_from_zone             ; -- Begin function iter_msg_from_zone
	.p2align	2
_iter_msg_from_zone:                    ; @iter_msg_from_zone
	.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	x21, x0
	mov	w0, #0
	cbz	x21, LBB0_10
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_10
; %bb.2:
	ldr	x0, [x21]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_9
; %bb.4:
	mov	x19, x3
	mov	x22, x2
	ldr	w2, [x20, #4]
Lloh0:
	adrp	x23, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
	ldr	x3, [x23]
	mov	x4, x19
	bl	_reply_find_rrset_section_an
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x21]
	ldp	w2, w1, [x20, #4]
	ldr	x3, [x23]
	mov	x4, x19
	bl	_reply_find_rrset_section_ns
	cbz	x0, LBB0_7
LBB0_6:
	mov	w0, #1
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _RESPONSE_TYPE_REFERRAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESPONSE_TYPE_REFERRAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x21]
	ldp	x9, x10, [x8]
	cmn	x10, x9
	b.ne	LBB0_14
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
Lloh5:
	adrp	x8, _RESPONSE_TYPE_ANSWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESPONSE_TYPE_ANSWER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w22
Lloh8:
	adrp	x8, _RESPONSE_TYPE_CNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RESPONSE_TYPE_CNAME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ccmp	w8, w22, #4, ne
	cset	w0, eq
	bl	_log_assert
	ldr	x0, [x21]
	ldp	w2, w1, [x20, #4]
Lloh11:
	adrp	x22, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	ldr	x3, [x22]
	mov	x4, x19
	bl	_reply_find_rrset_section_an
	cbnz	x0, LBB0_6
; %bb.12:
	ldr	x0, [x21]
	ldp	w2, w1, [x20, #4]
	ldr	x3, [x22]
	mov	x4, x19
	bl	_reply_find_rrset_section_ns
	cbnz	x0, LBB0_6
; %bb.13:
	ldr	x0, [x21]
	ldp	w2, w1, [x20, #4]
Lloh13:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh15:
	ldr	x3, [x8]
	mov	x4, x19
	bl	_reply_find_rrset_section_an
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_10
LBB0_14:
	mov	x22, #0
Lloh16:
	adrp	x23, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh17:
	ldr	x23, [x23, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #0
	add	x22, x22, #1
	ldr	x8, [x21]
	ldp	x9, x10, [x8]
	add	x9, x10, x9
	cmp	x22, x9
	b.hs	LBB0_10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	ldr	x24, [x8, x22, lsl #3]
	ldr	w0, [x24, #8]
	bl	_ntohs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x24, #4]
	bl	_ntohs
	cmp	x0, x19
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x24]
	bl	_dname_count_labels
	ldr	w3, [x20]
	add	w8, w3, #1
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x0
	ldr	w0, [x24]
	ldr	w2, [x20, #8]
	bl	_dname_strict_subdomain
	cbz	x0, LBB0_15
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_SOA,8,3           ; @LDNS_RR_TYPE_SOA
	.comm	_RESPONSE_TYPE_REFERRAL,4,2     ; @RESPONSE_TYPE_REFERRAL
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_RESPONSE_TYPE_ANSWER,4,2       ; @RESPONSE_TYPE_ANSWER
	.comm	_RESPONSE_TYPE_CNAME,4,2        ; @RESPONSE_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_DNSKEY,8,3        ; @LDNS_RR_TYPE_DNSKEY
.subsections_via_symbols
