	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_sub_ts
_search_sub_ts:                         ## @search_sub_ts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	decl	%r8d
	jne	LBB0_3
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	cmpl	%r8d, %eax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r8), %edx
	cmpl	%edx, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r8,%rax), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	8(%rdi), %r9
	movslq	%edx, %rcx
	cmpq	%rsi, (%r9,%rcx,8)
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %r8d
	cmpl	%r8d, %eax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_7:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movq	8(%rdi), %rdx
	movslq	%eax, %rsi
	movq	(%rdx,%rsi,8), %rsi
	movslq	%r8d, %rdi
	cmpq	(%rdx,%rdi,8), %rsi
	cmovgl	%r8d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_search_sub_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_sub_ts
_search_sub_ts:                         ; @search_sub_ts
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	subs	w9, w9, #1
	b.lt	LBB0_6
; %bb.1:
	cbz	w9, LBB0_7
; %bb.2:
	mov	x8, x0
	mov	w0, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #1
	cmp	w0, w10
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w9, w0
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	ldr	x11, [x8, #8]
	ldr	x11, [x11, w10, sxtw #3]
	cmp	x11, x1
	csel	w0, w0, w10, gt
	csel	w9, w10, w9, gt
	cmp	w0, w9
	b.ne	LBB0_3
; %bb.5:
	ret
LBB0_6:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	_AVERROR
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	ldr	x8, [x8, #8]
	ldr	x10, [x8, w0, sxtw #3]
	ldr	x8, [x8, w9, sxtw #3]
	cmp	x10, x8
	csel	w0, w9, w0, gt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_search_sub_ts
.subsections_via_symbols
