	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_radix_find_prefix
_ldns_radix_find_prefix:                ## @ldns_radix_find_prefix
	.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), %r15
	movq	$0, (%r8)
	movq	%r15, (%rcx)
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r9
	movl	$1, %eax
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.3:
	movq	%r8, %r13
	xorl	%r14d, %r14d
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%r14,8), %rdx
	subq	(%r15), %rdx
	jb	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	8(%r15), %rdx
	jae	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movq	16(%r15), %rax
	leaq	(%rdx,%rdx,2), %r12
	movq	(%rax,%r12,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rdx,%r14), %rdi
	cmpq	%r9, %rdi
	ja	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rbx
	leaq	(%rsi,%r14,8), %rdi
	movl	16(%rax,%r12,8), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rax
	addq	(%rax,%r12,8), %r14
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	%rbx, %rsi
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax,%r12,8), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, (%r13)
	movq	%r15, (%rcx)
	cmpq	%r9, %r14
	jne	LBB0_4
LBB0_12:
	movl	$1, %eax
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ldns_radix_find_prefix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_radix_find_prefix
_ldns_radix_find_prefix:                ; @ldns_radix_find_prefix
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x25, [x0]
	str	xzr, [x4]
	str	x25, [x3]
	cbz	x25, LBB0_12
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_11
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x23, #0
	mov	w24, #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x23, lsl #3]
	ldr	x9, [x25]
	subs	x26, x8, x9
	b.lo	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]
	cmp	x26, x8
	b.hs	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x25, #16]
	mul	x9, x26, x24
	ldr	x2, [x8, x9]
	cbz	x2, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x2, x23
	cmp	x9, x21
	b.hi	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x22, x23, lsl #3
	madd	x8, x26, x24, x8
	ldr	w1, [x8, #16]
	bl	_memcmp
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #16]
	mul	x9, x26, x24
	ldr	x9, [x8, x9]
	add	x23, x9, x23
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x26, x24, x8
	ldr	x25, [x8, #8]
	cbz	x25, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x23, [x19]
	str	x25, [x20]
	cmp	x23, x21
	b.ne	LBB0_3
LBB0_11:
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ldns_radix_find_prefix
.subsections_via_symbols
