	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intlog2                        ## -- Begin function intlog2
	.p2align	4, 0x90
_intlog2:                               ## @intlog2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_WARN_ON
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	callq	_fls
	movl	%eax, %ecx
	negb	%cl
	shll	%cl, %ebx
	movl	%ebx, %ecx
	shrl	$23, %ecx
	movzbl	%cl, %edx
	andl	$8388607, %ebx                  ## imm = 0x7FFFFF
	movq	_logtable@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	incl	%ecx
	movzbl	%cl, %ecx
	movl	(%rsi,%rcx,4), %ecx
	movl	(%rsi,%rdx,4), %edx
	subl	%edx, %ecx
	movzwl	%cx, %ecx
	imull	%ebx, %ecx
	shrl	$15, %ecx
	shll	$24, %eax
	shll	$8, %edx
	addl	%eax, %edx
	leal	(%rcx,%rdx), %eax
	addl	$-16777216, %eax                ## imm = 0xFF000000
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_logtable,8,3                   ## @logtable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intlog2                        ; -- Begin function intlog2
	.p2align	2
_intlog2:                               ; @intlog2
	.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
	mov	x19, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_fls
	neg	w8, w0
	lsl	w8, w19, w8
	lsr	w9, w8, #23
	ubfx	w10, w8, #23, #8
	and	w8, w8, #0x7fffff
Lloh0:
	adrp	x11, _logtable@GOTPAGE
Lloh1:
	ldr	x11, [x11, _logtable@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	add	w9, w9, #1
	and	w9, w9, #0xff
	ldr	w9, [x11, w9, uxtw #2]
	ldr	w10, [x11, w10, uxtw #2]
	sub	w9, w9, w10
	and	w9, w9, #0xffff
	mul	w8, w9, w8
	lsl	w9, w0, #24
	add	w9, w9, w10, lsl #8
	add	w8, w9, w8, lsr #15
	mov	w9, #-16777216
	add	w0, w8, w9
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_logtable,8,3                   ; @logtable
.subsections_via_symbols
