	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function follow_cname_chain
_follow_cname_chain:                    ## @follow_cname_chain
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_CNAME_CHAIN@GOTPCREL(%rip), %rax
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	movq	%r8, %r14
	movl	%esi, %r13d
	movq	%rdi, %r15
	xorl	%r12d, %r12d
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movl	(%rax), %esi
	cmpl	$3, %esi
	jl	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	addq	$2, %rdi
	addl	$-2, %esi
	callq	_dname_valid
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	addq	$2, %rdi
	movl	(%r15), %esi
	callq	_dname_subdomain_c
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	addq	$2, %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_az_find_name
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_az_domain_rrset
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_az_domain_rrset
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_msg_add_rrset_an
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %r14
	incl	%r12d
	movq	_MAX_CNAME_CHAIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_2
	jmp	LBB0_13
LBB0_8:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_msg_add_rrset_an
	testl	%eax, %eax
	jne	LBB0_13
LBB0_11:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CNAME_CHAIN,4,2            ## @MAX_CNAME_CHAIN
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ## @LDNS_RR_TYPE_CNAME
	.no_dead_strip	_follow_cname_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function follow_cname_chain
_follow_cname_chain:                    ; @follow_cname_chain
	.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
Lloh0:
	adrp	x25, _MAX_CNAME_CHAIN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_CNAME_CHAIN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w26, #0
Lloh2:
	adrp	x27, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23, #16]
	ldr	x9, [x9]
	add	x0, x9, #2
	sub	w1, w8, #2
	bl	_dname_valid
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	add	x0, x8, #2
	ldr	w1, [x21]
	bl	_dname_subdomain_c
	cbz	w0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	add	x1, x8, #2
	mov	x0, x21
	mov	x2, x24
	bl	_az_find_name
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	mov	x1, x22
	bl	_az_domain_rrset
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x27]
	mov	x0, x23
	bl	_az_domain_rrset
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, x24
	bl	_msg_add_rrset_an
	cbz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [x24]
	ldr	w8, [x25]
	add	w26, w26, #1
	cmp	w26, w8
	b.lt	LBB0_2
	b	LBB0_12
LBB0_11:
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	bl	_msg_add_rrset_an
	cbz	w0, LBB0_14
LBB0_12:
	mov	w0, #1
LBB0_13:
	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
LBB0_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CNAME_CHAIN,4,2            ; @MAX_CNAME_CHAIN
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ; @LDNS_RR_TYPE_CNAME
	.no_dead_strip	_follow_cname_chain
.subsections_via_symbols
