	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_radix_node_array_free_front
_ldns_radix_node_array_free_front:      ## @ldns_radix_node_array_free_front
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_3
## %bb.2:
	movl	$1, %edi
	xorl	%ebx, %ebx
	testq	%rbx, %rbx
	je	LBB0_29
LBB0_10:
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.30:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ldns_radix_node_array_free     ## TAILCALL
LBB0_3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	cmpq	%rbx, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%rcx), %rbx
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_5
## %bb.7:
	decq	%rbx
	jmp	LBB0_8
LBB0_11:
	callq	_assert
	movl	$255, %eax
	subl	16(%r14), %eax
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setge	%dil
	callq	_assert
	movq	(%r14), %rdx
	movq	8(%r14), %rdi
	leaq	(%rdi,%rbx,8), %rsi
	subq	%rbx, %rdx
	shlq	$2, %rdx
	callq	_memmove
	addq	%rbx, 16(%r14)
	movq	(%r14), %rdx
	movq	%rdx, %rsi
	subq	%rbx, %rsi
	movq	%rsi, (%r14)
	je	LBB0_28
## %bb.12:
	movq	8(%r14), %rax
	notq	%rbx
	addq	%rbx, %rdx
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_14
## %bb.13:
	xorl	%edx, %edx
LBB0_24:
	testq	%rcx, %rcx
	jne	LBB0_25
LBB0_28:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ldns_radix_array_reduce        ## TAILCALL
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%rdx
	decq	%rcx
	je	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%rdx, (%rsi)
	jmp	LBB0_27
LBB0_6:
	movq	%rax, %rbx
LBB0_8:
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setb	%dil
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_29:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	andq	$-4, %rsi
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_24
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rdx, (%rdi)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	1(%rdx), %rbx
	movq	%rbx, (%rdi)
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	2(%rdx), %rbx
	movq	%rbx, (%rdi)
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rax,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	3(%rdx), %rbx
	movq	%rbx, (%rdi)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ldns_radix_node_array_free_front
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_radix_node_array_free_front
_ldns_radix_node_array_free_front:      ; @ldns_radix_node_array_free_front
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.2:
	mov	x20, #0
	mov	w0, #1
	cbz	x20, LBB0_13
LBB0_3:
	cmp	x20, x8
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ldns_radix_node_array_free
LBB0_5:
	mov	w11, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x11
	cmp	x8, x11
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x9, x10, lsl #3]
	add	x11, x10, #1
	cbz	x12, LBB0_6
; %bb.8:
	sub	x20, x11, #1
	b	LBB0_12
LBB0_9:
	bl	_assert
	ldr	w8, [x19, #16]
	mov	w9, #255
	sub	w8, w9, w8
	cmp	w8, w20
	cset	w0, ge
	bl	_assert
	ldp	x8, x0, [x19]
	add	x1, x0, x20, lsl #3
	sub	x8, x8, x20
	lsl	x2, x8, #2
	bl	_memmove
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	str	x8, [x19, #16]
	ldr	x8, [x19]
	subs	x8, x8, x20
	str	x8, [x19]
	b.ne	LBB0_14
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ldns_radix_array_reduce
LBB0_11:
	mov	x20, x8
LBB0_12:
	cmp	x10, x8
	cset	w0, lo
	cbnz	x20, LBB0_3
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x9, #0
	ldr	x10, [x19, #8]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x9, [x11]
	b	LBB0_15
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ldns_radix_node_array_free_front
.subsections_via_symbols
