	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc_find_valid_clock
_btc_find_valid_clock:                  ## @btc_find_valid_clock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	(%rdi), %ecx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movq	8(%rdi), %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rdi,8), %rsi
	cmpq	%rdx, %rsi
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_3
## %bb.5:
	decl	%ecx
	movq	(%r8,%rcx,8), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	%rdx, %rsi
LBB0_8:
	cmpq	%rax, %rsi
	cmovlq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_btc_find_valid_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc_find_valid_clock
_btc_find_valid_clock:                  ; @btc_find_valid_clock
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	x9, [x0, #8]
	mov	x10, x8
	mov	x11, x9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, x2
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_3
; %bb.5:
	sub	w8, w8, #1
	ldr	x2, [x9, w8, uxtw #3]
	b	LBB0_7
LBB0_6:
	mov	x2, x12
LBB0_7:
	cmp	x2, x1
	csel	x0, x2, x1, lt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_btc_find_valid_clock
.subsections_via_symbols
