	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ternary_search                 ## -- Begin function ternary_search
	.p2align	4, 0x90
_ternary_search:                        ## @ternary_search
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movsbl	(%rsi), %ecx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rdi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rdi), %ecx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	1(%rsi), %ecx
	incq	%rsi
	addq	$24, %rdi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdi
	jmp	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	24(%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ternary_search                 ; -- Begin function ternary_search
	.p2align	2
_ternary_search:                        ; @ternary_search
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	ldrsb	w8, [x1]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x0, #8
	add	x10, x0, #16
	csel	x9, x9, x10, ge
	ldr	x0, [x9]
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w8, [x1, #1]!
	add	x9, x0, #24
	ldr	x0, [x9]
	cbnz	x0, LBB0_3
LBB0_6:
	ret
LBB0_7:
	ldr	x0, [x0, #24]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
