	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_my_log2                        ## -- Begin function my_log2
	.p2align	4, 0x90
_my_log2:                               ## @my_log2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rdi, %rax
	cmovlq	%rax, %rdi
	xorl	%eax, %eax
	cmpq	$2, %rdi
	jl	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	addq	%rcx, %rcx
	cmpq	%rdi, %rcx
	jl	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_my_log2                        ; -- Begin function my_log2
	.p2align	2
_my_log2:                               ; @my_log2
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	sbfx	x8, x8, #1, #31
	cmp	x8, x0
	csel	x8, x8, x0, lt
	cmp	x8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	w0, #0
	mov	w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w0, #1
	lsl	x9, x9, #1
	cmp	x9, x8
	b.lt	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
.subsections_via_symbols
