	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ternary_recursivesearch
_ternary_recursivesearch:               ## @ternary_recursivesearch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movb	(%rsi), %cl
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
	addq	$24, %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	(%rdi), %cl
	jl	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	addq	$16, %rdi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rdi
	testb	%cl, %cl
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	testq	%rdi, %rdi
	jne	LBB0_2
LBB0_10:
	popq	%rbp
	retq
LBB0_9:
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ternary_recursivesearch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ternary_recursivesearch
_ternary_recursivesearch:               ; @ternary_recursivesearch
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldrsb	w8, [x1]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=2
	add	x9, x0, #24
	ldr	x0, [x9]
	cbz	x0, LBB0_9
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w9, [x0]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x9, x0, #16
	ldr	x0, [x9]
	cbnz	x0, LBB0_3
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x0, #8]
	cbz	w8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w2, #0
	add	x1, x1, #1
	cbnz	x0, LBB0_1
; %bb.8:
	mov	x0, x2
	ret
LBB0_9:
	mov	w0, #0
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ternary_recursivesearch
.subsections_via_symbols
