	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_lookup_parent_glue_from_cache ## -- Begin function iter_lookup_parent_glue_from_cache
	.p2align	4, 0x90
_iter_lookup_parent_glue_from_cache:    ## @iter_lookup_parent_glue_from_cache
	.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, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_delegpt_count_targets
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.1:
	movq	_PACKED_RRSET_PARENT_SIDE@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_lock_rw_unlock
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	movq	%r15, %rbx
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movl	(%rbx), %r9d
	movq	(%r12), %rax
	movl	(%rax), %eax
	pushq	$0
	pushq	%rax
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_log_rrset_key
	movl	$1, (%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_delegpt_add_rrset_A
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_lock_rw_unlock
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%rbx, %r15
	movl	(%rbx), %r9d
	movq	(%r12), %rax
	movl	(%rax), %eax
	pushq	$0
	pushq	%rax
	callq	_rrset_cache_lookup
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_log_rrset_key
	movl	$1, 4(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_delegpt_add_rrset_AAAA
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	jmp	LBB0_9
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_delegpt_count_targets
	xorl	%ecx, %ecx
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	setne	%cl
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ## @LDNS_RR_TYPE_A
	.comm	_PACKED_RRSET_PARENT_SIDE,4,2   ## @PACKED_RRSET_PARENT_SIDE
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found parent-side"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failure in lookup_parent_glue"

	.comm	_LDNS_RR_TYPE_AAAA,4,2          ## @LDNS_RR_TYPE_AAAA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iter_lookup_parent_glue_from_cache ; -- Begin function iter_lookup_parent_glue_from_cache
	.p2align	2
_iter_lookup_parent_glue_from_cache:    ; @iter_lookup_parent_glue_from_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_delegpt_count_targets
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x27, [x19]
	cbz	x27, LBB0_11
; %bb.1:
Lloh0:
	adrp	x22, _PACKED_RRSET_PARENT_SIDE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PACKED_RRSET_PARENT_SIDE@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	mov	w28, #1
Lloh4:
	adrp	x25, _VERB_ALGO@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VERB_ALGO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_lock_rw_unlock
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [x27, #16]
	cbz	x27, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	ldp	w2, w1, [x27, #8]
Lloh6:
	adrp	x8, _LDNS_RR_TYPE_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldr	w4, [x20]
	ldr	w5, [x22]
	ldr	x8, [x23]
	ldr	w6, [x8]
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	w0, [x25]
	mov	x1, x24
	mov	x2, x26
	bl	_log_rrset_key
	str	w28, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	mov	w3, #1
	bl	_delegpt_add_rrset_A
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_lock_rw_unlock
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #8]
	ldp	w2, w1, [x27, #8]
Lloh11:
	adrp	x8, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	ldr	w4, [x20]
	ldr	w5, [x22]
	ldr	x8, [x23]
	ldr	w6, [x8]
	mov	w7, #0
	bl	_rrset_cache_lookup
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	w0, [x25]
	mov	x1, x24
	mov	x2, x26
	bl	_log_rrset_key
	str	w28, [x27, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x26
	mov	w3, #1
	bl	_delegpt_add_rrset_AAAA
	cbnz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_delegpt_count_targets
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x0, x8
	cset	w0, ne
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,4,2             ; @LDNS_RR_TYPE_A
	.comm	_PACKED_RRSET_PARENT_SIDE,4,2   ; @PACKED_RRSET_PARENT_SIDE
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found parent-side"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failure in lookup_parent_glue"

	.comm	_LDNS_RR_TYPE_AAAA,4,2          ; @LDNS_RR_TYPE_AAAA
.subsections_via_symbols
