	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_radix_cleanup_leaf
_ldns_radix_cleanup_leaf:               ## @ldns_radix_cleanup_leaf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	24(%rdi), %r14
	xorl	%edi, %edi
	cmpq	8(%r14), %r15
	setb	%dil
	callq	_assert
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ldns_radix_node_free
	movq	16(%r14), %rax
	leaq	(,%r15,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	16(%rax,%rbx), %rdi
	callq	_LDNS_FREE
	movq	16(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%rbx)
	movq	$0, 16(%rax,%rbx)
	cmpq	$1, 8(%r14)
	jne	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_radix_node_array_free     ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	addq	$8, %rsp
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_radix_node_array_free_end ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ldns_radix_node_array_free_front ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ldns_radix_cleanup_leaf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_radix_cleanup_leaf
_ldns_radix_cleanup_leaf:               ; @ldns_radix_cleanup_leaf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x19, [x0, #24]
	ldr	x8, [x19, #8]
	cmp	x21, x8
	cset	w0, lo
	bl	_assert
	mov	x0, x20
	mov	x1, #0
	bl	_ldns_radix_node_free
	ldr	x8, [x19, #16]
	add	x9, x21, x21, lsl #1
	lsl	x20, x9, #3
	add	x8, x8, x20
	ldr	x0, [x8, #16]
	bl	_LDNS_FREE
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	cmp	x8, #1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ldns_radix_node_array_free
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ldns_radix_node_array_free_end
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ldns_radix_node_array_free_front
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ldns_radix_cleanup_leaf
.subsections_via_symbols
