	.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_end
_ldns_radix_node_array_free_end:        ## @ldns_radix_node_array_free_end
	.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
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rcx
	leal	-1(%rax), %edx
	movslq	%edx, %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_3
## %bb.2:
	movl	$1, %edi
	xorl	%ebx, %ebx
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_9:
	cmpl	%eax, %ebx
	jne	LBB0_10
## %bb.13:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ldns_radix_node_array_free     ## TAILCALL
LBB0_3:
	leal	-2(%rax), %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rbx), %rsi
	cmpq	$1, %rsi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	(%rdx,%rbx), %esi
	movslq	%esi, %rsi
	decq	%rbx
	cmpq	$0, (%rcx,%rsi,8)
	je	LBB0_5
## %bb.12:
	negq	%rbx
	cmpq	%rax, %rbx
	setb	%cl
	jmp	LBB0_7
LBB0_10:
	callq	_assert
	subl	%ebx, (%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ldns_radix_array_reduce        ## TAILCALL
LBB0_6:
	movl	$1, %ecx
	subq	%rbx, %rcx
	cmpq	%rax, %rcx
	setb	%cl
	movl	%eax, %ebx
LBB0_7:
	movzbl	%cl, %edi
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ldns_radix_node_array_free_end
.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_end
_ldns_radix_node_array_free_end:        ; @ldns_radix_node_array_free_end
	.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	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x10, [x0, #8]
	sub	w9, w8, #1
	ldr	x9, [x10, w9, sxtw #3]
	cbz	x9, LBB0_3
; %bb.2:
	mov	w20, #0
	mov	w0, #1
	cbnz	w20, LBB0_7
	b	LBB0_11
LBB0_3:
	sub	w11, w8, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x8, x9
	cmp	x12, #1
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w11, w9
	ldr	x12, [x10, w12, sxtw #3]
	sub	x9, x9, #1
	cbz	x12, LBB0_4
; %bb.6:
	neg	x20, x9
	cmp	x20, x8
	cset	w0, lo
	cbz	w20, LBB0_11
LBB0_7:
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.8:
	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_9:
	bl	_assert
	ldr	w8, [x19]
	sub	w8, w8, w20
	str	w8, [x19]
	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_10:
	mov	w10, #1
	sub	x9, x10, x9
	cmp	x9, x8
	cset	w0, lo
	mov	x20, x8
	cbnz	w20, LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ldns_radix_node_array_free_end
.subsections_via_symbols
