	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_zone_mark_and_get_glue ## -- Begin function ldns_dnssec_zone_mark_and_get_glue
	.p2align	4, 0x90
_ldns_dnssec_zone_mark_and_get_glue:    ## @ldns_dnssec_zone_mark_and_get_glue
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_ldns_rbtree_first
	movq	%rax, %r12
	movq	_LDNS_RBTREE_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_19
## %bb.4:
	movl	$-1, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	cmoveq	%rax, %r13
	movl	$0, %eax
	cmovnel	%eax, %r14d
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %r15
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_ldns_rbtree_next
	movq	%rax, %r12
	movq	_LDNS_RBTREE_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_19
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_ldns_dnssec_name_name
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ldns_dname_is_subdomain
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ldns_dnssec_rrsets_contains_type
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r14d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	callq	_ldns_dnssec_addresses_on_glue_list
	movq	%r13, %r15
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
	jmp	LBB0_21
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ldns_dnssec_addresses_on_glue_list
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%rbx)
	jmp	LBB0_18
LBB0_2:
	movq	_LDNS_STATUS_NULL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_NULL,8,3           ## @LDNS_STATUS_NULL
	.comm	_LDNS_RBTREE_NULL,8,3           ## @LDNS_RBTREE_NULL
	.comm	_LDNS_RR_TYPE_SOA,4,2           ## @LDNS_RR_TYPE_SOA
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NS,4,2            ## @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_DNAME,4,2         ## @LDNS_RR_TYPE_DNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dnssec_zone_mark_and_get_glue ; -- Begin function ldns_dnssec_zone_mark_and_get_glue
	.p2align	2
_ldns_dnssec_zone_mark_and_get_glue:    ; @ldns_dnssec_zone_mark_and_get_glue
	.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
	cbz	x0, LBB0_18
; %bb.1:
	ldr	w0, [x0]
	cbz	w0, LBB0_18
; %bb.2:
	mov	x19, x1
	bl	_ldns_rbtree_first
Lloh0:
	adrp	x24, _LDNS_RBTREE_NULL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_RBTREE_NULL@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.3:
	mov	x20, x0
	mov	x21, #0
Lloh2:
	adrp	x26, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	mov	w25, #-1
Lloh4:
	adrp	x27, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh5:
	ldr	x27, [x27, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh6:
	adrp	x28, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh7:
	ldr	x28, [x28, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [x27]
	bl	_ldns_dnssec_rrsets_contains_type
	cmp	x0, #0
	csel	x21, xzr, x22, eq
	csel	w25, w25, wzr, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_ldns_rbtree_next
	mov	x20, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x20]
	mov	x0, x23
	bl	_ldns_dnssec_name_name
	mov	x22, x0
	cbz	x21, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_ldns_dname_is_subdomain
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [x28]
	bl	_ldns_dnssec_rrsets_contains_type
	cbz	x0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [x26]
	bl	_ldns_dnssec_rrsets_contains_type
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [x28]
	bl	_ldns_dnssec_rrsets_contains_type
	cbnz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x19, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23, #4]
	mov	x1, x19
	bl	_ldns_dnssec_addresses_on_glue_list
Lloh8:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w25, #1
	mov	x21, x22
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x19, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w25, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23, #4]
	mov	x1, x19
	bl	_ldns_dnssec_addresses_on_glue_list
Lloh11:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_5
LBB0_18:
Lloh14:
	adrp	x8, _LDNS_STATUS_NULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_STATUS_NULL@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh16:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
LBB0_20:
	ldr	x0, [x8]
LBB0_21:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_NULL,8,3           ; @LDNS_STATUS_NULL
	.comm	_LDNS_RBTREE_NULL,8,3           ; @LDNS_RBTREE_NULL
	.comm	_LDNS_RR_TYPE_SOA,4,2           ; @LDNS_RR_TYPE_SOA
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
	.comm	_LDNS_RR_TYPE_NS,4,2            ; @LDNS_RR_TYPE_NS
	.comm	_LDNS_RR_TYPE_DNAME,4,2         ; @LDNS_RR_TYPE_DNAME
.subsections_via_symbols
