	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_cname_response
_handle_cname_response:                 ## @handle_cname_response
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, (%rcx)
	movq	(%rsi), %rax
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rax, (%r8)
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_12
## %bb.1:
	movq	%rcx, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_iter_add_prepend_answer
	testl	%eax, %eax
	je	LBB0_22
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	(%r13), %rdx
	movq	(%rdx), %r12
	cmpq	%r12, %r15
	jae	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdx), %rax
	movq	(%rax,%r15,8), %r12
	movl	(%r12), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rdi
	movl	4(%r12), %esi
	callq	_dname_strict_subdomain_c
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iter_find_rrset_in_prepend_answer
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rdi
	movl	4(%r12), %esi
	callq	_query_dname_compare
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iter_find_rrset_in_prepend_answer
	testl	%eax, %eax
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_iter_add_prepend_answer
	testl	%eax, %eax
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_get_cname_target
	jmp	LBB0_3
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	movq	8(%rdx), %rcx
	addq	%r12, %rcx
	movl	$1, %eax
	cmpq	%rcx, %r12
	jae	LBB0_23
## %bb.14:
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %r15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_iter_add_prepend_auth
	testl	%eax, %eax
	je	LBB0_22
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movq	(%r13), %rdx
	movq	8(%rdx), %rcx
	addq	(%rdx), %rcx
	cmpq	%rcx, %r12
	jae	LBB0_19
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rdx), %rax
	movq	(%rax,%r12,8), %rbx
	movl	(%rbx), %edi
	callq	_ntohs
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rbx), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
	jmp	LBB0_16
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_19:
	movl	$1, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ## @LDNS_RR_TYPE_DNAME
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ## @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
	.no_dead_strip	_handle_cname_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_cname_response
_handle_cname_response:                 ; @handle_cname_response
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x9, x8, [x1]
	str	x8, [x3]
	str	x9, [x4]
	ldr	x8, [x2]
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x25, #0
Lloh0:
	adrp	x26, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh2:
	adrp	x27, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_iter_add_prepend_answer
	cbz	w0, LBB0_20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	x8, [x19]
	ldr	x24, [x8]
	cmp	x25, x24
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	ldr	x24, [x8, x25, lsl #3]
	ldr	w0, [x24]
	bl	_ntohs
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	ldr	w1, [x24, #4]
	bl	_dname_strict_subdomain_c
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_iter_find_rrset_in_prepend_answer
	cbz	w0, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_ntohs
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	ldr	w1, [x24, #4]
	bl	_query_dname_compare
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_iter_find_rrset_in_prepend_answer
	cbnz	w0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_iter_add_prepend_answer
	cbz	w0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_get_cname_target
	b	LBB0_3
LBB0_12:
	mov	x24, #0
LBB0_13:
	ldr	x9, [x8, #8]
	add	x9, x9, x24
	cmp	x24, x9
	b.hs	LBB0_19
; %bb.14:
Lloh4:
	adrp	x23, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh5:
	ldr	x23, [x23, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh6:
	adrp	x25, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_iter_add_prepend_auth
	cbz	w0, LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19]
	ldp	x9, x10, [x8]
	add	x9, x10, x9
	cmp	x24, x9
	b.hs	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	ldr	x22, [x8, x24, lsl #3]
	ldr	w0, [x22]
	bl	_ntohs
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x22]
	bl	_ntohs
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_15
	b	LBB0_16
LBB0_19:
	mov	w0, #1
LBB0_20:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ; @LDNS_RR_TYPE_DNAME
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ; @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
	.no_dead_strip	_handle_cname_response
.subsections_via_symbols
