	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_zone_glue_rr_list         ## -- Begin function ldns_zone_glue_rr_list
	.p2align	4, 0x90
_ldns_zone_glue_rr_list:                ## @ldns_zone_glue_rr_list
	.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	%rdi, %r13
	callq	_ldns_zone_soa
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	testq	%rax, %rax
	je	LBB0_31
## %bb.2:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_ldns_rr_list_new
	testq	%rax, %rax
	je	LBB0_25
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ldns_zone_rr_count
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rsi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	je	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_ldns_zone_rr_count
	cmpq	%rax, %rbx
	jae	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ldns_zone_rrs
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_ldns_rr_get_type
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_ldns_rr_owner
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_ldns_zone_soa
	movq	%rax, %rdi
	callq	_ldns_rr_owner
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_ldns_rdf_compare
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	jmp	LBB0_7
LBB0_15:
	movq	%r15, %rdi
	callq	_LDNS_FREE
	jmp	LBB0_30
LBB0_16:
	movq	%r15, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_28
## %bb.17:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jae	LBB0_28
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	movq	%r15, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %rdi
	callq	_ldns_rr_owner
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ldns_rr_list_push_rr
	testl	%eax, %eax
	je	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=2
	incq	%rbx
	movq	%r12, %rdi
	callq	_ldns_rr_list_rr_count
	cmpq	%rax, %rbx
	jae	LBB0_18
LBB0_23:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ldns_rr_list_rr
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ldns_rr_owner
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ldns_dname_is_subdomain
	testq	%rax, %rax
	jne	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ldns_dname_compare
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_21
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_27:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_28:
	movq	%r12, %rdi
	callq	_ldns_rr_list_free
	movq	%r15, %rdi
	callq	_ldns_rr_list_free
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ldns_rr_list_rr_count
	testq	%rax, %rax
	jne	LBB0_31
	jmp	LBB0_29
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	%r15, %rdi
	callq	_LDNS_FREE
	movq	%r12, %rdi
	callq	_ldns_rr_list_free
	testq	%rbx, %rbx
	je	LBB0_30
LBB0_29:
	movq	%rbx, %rdi
	callq	_ldns_rr_list_free
LBB0_30:
	xorl	%ebx, %ebx
LBB0_31:
	movq	%rbx, %rax
	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,8,3             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_zone_glue_rr_list         ; -- Begin function ldns_zone_glue_rr_list
	.p2align	2
_ldns_zone_glue_rr_list:                ; @ldns_zone_glue_rr_list
	.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	x22, x0
	bl	_ldns_zone_soa
	cbz	x0, LBB0_26
; %bb.1:
	bl	_ldns_rr_list_new
	cbz	x0, LBB0_26
; %bb.2:
	mov	x20, x0
	bl	_ldns_rr_list_new
	cbz	x0, LBB0_14
; %bb.3:
	mov	x21, x0
	bl	_ldns_rr_list_new
	mov	x19, x0
	cbz	x0, LBB0_24
; %bb.4:
	mov	x0, x22
	bl	_ldns_zone_rr_count
	cbz	x0, LBB0_15
; %bb.5:
	mov	x23, #0
Lloh0:
	adrp	x26, _LDNS_RR_TYPE_A@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh2:
	adrp	x27, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh4:
	adrp	x28, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x24
	bl	_ldns_rr_list_push_rr
	cbz	w0, LBB0_24
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	mov	x0, x22
	bl	_ldns_zone_rr_count
	cmp	x23, x0
	b.hs	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ldns_zone_rrs
	mov	x1, x23
	bl	_ldns_rr_list_rr
	mov	x24, x0
	bl	_ldns_rr_get_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_ldns_rr_get_type
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_ldns_rr_get_type
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_ldns_rr_owner
	mov	x25, x0
	mov	x0, x22
	bl	_ldns_zone_soa
	bl	_ldns_rr_owner
	mov	x1, x0
	mov	x0, x25
	bl	_ldns_rdf_compare
	cbz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	b	LBB0_7
LBB0_14:
	mov	x0, x20
	bl	_LDNS_FREE
	b	LBB0_26
LBB0_15:
	mov	x0, x20
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_28
; %bb.16:
	mov	x22, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ldns_rr_list_rr_count
	cmp	x22, x0
	b.hs	LBB0_28
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	mov	x0, x20
	mov	x1, x22
	bl	_ldns_rr_list_rr
	bl	_ldns_rr_owner
	mov	x23, x0
	mov	x0, x21
	bl	_ldns_rr_list_rr_count
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x24, #0
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=2
	mov	x0, x19
	mov	x1, x25
	bl	_ldns_rr_list_push_rr
	cbz	w0, LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	add	x24, x24, #1
	mov	x0, x21
	bl	_ldns_rr_list_rr_count
	cmp	x24, x0
	b.hs	LBB0_17
LBB0_22:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x24
	bl	_ldns_rr_list_rr
	mov	x25, x0
	bl	_ldns_rr_owner
	mov	x26, x0
	mov	x1, x23
	bl	_ldns_dname_is_subdomain
	cbnz	x0, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	mov	x0, x26
	mov	x1, x23
	bl	_ldns_dname_compare
	cbnz	x0, LBB0_21
	b	LBB0_20
LBB0_24:
	mov	x0, x20
	bl	_LDNS_FREE
	mov	x0, x21
	bl	_ldns_rr_list_free
	cbz	x19, LBB0_27
LBB0_25:
	mov	x0, x19
	bl	_ldns_rr_list_free
LBB0_26:
	mov	x19, #0
LBB0_27:
	mov	x0, x19
	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_28:
	mov	x0, x21
	bl	_ldns_rr_list_free
	mov	x0, x20
	bl	_ldns_rr_list_free
	mov	x0, x19
	bl	_ldns_rr_list_rr_count
	cbnz	x0, LBB0_27
	b	LBB0_25
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
.subsections_via_symbols
