	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nearestPower
_nearestPower:                          ## @nearestPower
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	$1, %eax
	cmpl	$1, %edi
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$3, %edi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	sarl	%edi
	addl	%eax, %eax
	cmpl	$1, %edi
	jne	LBB0_4
LBB0_6:
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_5:
	shll	$2, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nearestPower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nearestPower
_nearestPower:                          ; @nearestPower
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_5
; %bb.1:
	mov	x8, x0
	mov	w0, #1
	cmp	w8, #1
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #3
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w8, w8, #1
	lsl	w0, w0, #1
	cmp	w8, #1
	b.ne	LBB0_2
LBB0_4:
	ret
LBB0_5:
	mov	w0, #-1
	ret
LBB0_6:
	lsl	w0, w0, #2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nearestPower
.subsections_via_symbols
