	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function floor_log2
_floor_log2:                            ## @floor_log2
	.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	%edi, %eax
	sarl	$16, %eax
	xorl	%ecx, %ecx
	cmpl	$65536, %edi                    ## imm = 0x10000
	setge	%cl
	cmovll	%edi, %eax
	shll	$4, %ecx
	movl	%eax, %edx
	sarl	$8, %edx
	leal	8(%rcx), %esi
	cmpl	$256, %eax                      ## imm = 0x100
	cmovll	%eax, %edx
	cmovll	%ecx, %esi
	movl	%edx, %eax
	sarl	$4, %eax
	leal	4(%rsi), %ecx
	cmpl	$16, %edx
	cmovll	%edx, %eax
	cmovll	%esi, %ecx
	movl	%eax, %edx
	sarl	$2, %edx
	leal	2(%rcx), %esi
	cmpl	$4, %eax
	cmovll	%eax, %edx
	cmovll	%ecx, %esi
	xorl	%eax, %eax
	cmpl	$2, %edx
	setge	%al
	addl	%esi, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_floor_log2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function floor_log2
_floor_log2:                            ; @floor_log2
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_2
; %bb.1:
	asr	w8, w0, #16
	cmp	w0, #16, lsl #12                ; =65536
	csel	w8, w8, w0, ge
	cset	w9, ge
	lsl	w10, w9, #4
	asr	w11, w8, #8
	mov	w12, #8
	bfi	w12, w9, #4, #1
	cmp	w8, #255
	csel	w8, w11, w8, gt
	csel	w9, w12, w10, gt
	asr	w10, w8, #4
	orr	w11, w9, #0x4
	cmp	w8, #15
	csel	w8, w10, w8, gt
	csel	w9, w11, w9, gt
	asr	w10, w8, #2
	orr	w11, w9, #0x2
	cmp	w8, #3
	csel	w8, w10, w8, gt
	csel	w9, w11, w9, gt
	cmp	w8, #1
	cinc	w0, w9, gt
	ret
LBB0_2:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_floor_log2
.subsections_via_symbols
