	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc_adjust_clock_combinations
_btc_adjust_clock_combinations:         ## @btc_adjust_clock_combinations
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movslq	4(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.2:
	cmpl	%ecx, %ebx
	je	LBB0_8
## %bb.3:
	cmpl	%ecx, %ebx
	jge	LBB0_6
## %bb.4:
	leal	(%rcx,%rbx), %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	(%rdi), %ebx
	cmpl	%ebx, %eax
	jle	LBB0_8
## %bb.5:
	decl	%ecx
	movl	4(%rsi), %esi
	addl	%ebx, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	movl	%eax, %edx
	callq	_btc_get_valid_sclk
	movl	%eax, 4(%r14)
	jmp	LBB0_8
LBB0_6:
	movl	%ebx, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movq	8(%rdi), %rax
	cmpq	%rcx, %rax
	jge	LBB0_8
## %bb.7:
	movl	(%rsi), %esi
	subq	%rax, %rbx
	movq	%rbx, %rdx
	callq	_btc_get_valid_mclk
	movl	%eax, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_btc_adjust_clock_combinations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc_adjust_clock_combinations
_btc_adjust_clock_combinations:         ; @btc_adjust_clock_combinations
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x2]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x2
	ldr	w9, [x2, #4]
	cmp	w9, #0
	ccmp	w9, w8, #4, ne
	b.eq	LBB0_7
; %bb.2:
	sxtw	x9, w9
	cmp	w9, w8
	b.ge	LBB0_5
; %bb.3:
	sub	w8, w8, #1
	add	w10, w8, w9
	sdiv	w10, w10, w9
	ldr	w9, [x0]
	cmp	w10, w9
	b.le	LBB0_7
; %bb.4:
	ldr	w1, [x1, #4]
	add	w8, w8, w9
	sdiv	w2, w8, w9
	bl	_btc_get_valid_sclk
	str	w0, [x19, #4]
	b	LBB0_7
LBB0_5:
	sub	w10, w9, w8
	ldr	x8, [x0, #8]
	cmp	x8, w10, sxtw
	b.ge	LBB0_7
; %bb.6:
	ldr	w1, [x1]
	sub	x2, x9, x8
	bl	_btc_get_valid_mclk
	str	w0, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_btc_adjust_clock_combinations
.subsections_via_symbols
