	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_get_sleep_divider_id_from_clock
_ci_get_sleep_divider_id_from_clock:    ## @ci_get_sleep_divider_id_from_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	%rdx, %r8
	movq	_CISLAND_MINIMUM_ENGINE_CLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	cmovgq	%rax, %r8
	xorl	%ecx, %ecx
	cmpq	%rsi, %r8
	jg	LBB0_8
## %bb.1:
	movq	%rsi, %r9
	movq	_CISLAND_MAX_DEEPSLEEP_DIVIDER_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	shll	%cl, %edi
	movslq	%edi, %rsi
	movq	%r9, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	subq	$1, %rcx
	setb	%dl
	cmpq	%r8, %rax
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%dl, %dl
	je	LBB0_2
LBB0_7:
	incl	%ecx
LBB0_8:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISLAND_MINIMUM_ENGINE_CLOCK,8,3 ## @CISLAND_MINIMUM_ENGINE_CLOCK
	.comm	_CISLAND_MAX_DEEPSLEEP_DIVIDER_ID,8,3 ## @CISLAND_MAX_DEEPSLEEP_DIVIDER_ID
	.no_dead_strip	_ci_get_sleep_divider_id_from_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_get_sleep_divider_id_from_clock
_ci_get_sleep_divider_id_from_clock:    ; @ci_get_sleep_divider_id_from_clock
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CISLAND_MINIMUM_ENGINE_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CISLAND_MINIMUM_ENGINE_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	csel	x8, x8, x2, gt
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
Lloh3:
	adrp	x9, _CISLAND_MAX_DEEPSLEEP_DIVIDER_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CISLAND_MAX_DEEPSLEEP_DIVIDER_ID@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
	mov	w9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w11, w9, w10
	sxtw	x11, w11
	sdiv	x11, x1, x11
	cmp	x11, x8
	ccmp	x10, #0, #4, lt
	sub	x10, x10, #1
	b.ne	LBB0_3
; %bb.4:
	add	w0, w10, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CISLAND_MINIMUM_ENGINE_CLOCK,8,3 ; @CISLAND_MINIMUM_ENGINE_CLOCK
	.comm	_CISLAND_MAX_DEEPSLEEP_DIVIDER_ID,8,3 ; @CISLAND_MAX_DEEPSLEEP_DIVIDER_ID
	.no_dead_strip	_ci_get_sleep_divider_id_from_clock
.subsections_via_symbols
