	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilog2
_ilog2:                                 ## @ilog2
	.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, %edx
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	shlq	$2, %rax
	cmpq	$2, %rax
	movl	$1, %ebx
	cmovaeq	%rax, %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%edx, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rbx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_7
LBB0_6:
	movl	%ecx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ilog2: %d is not a power of 2\n"

	.no_dead_strip	_ilog2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilog2
_ilog2:                                 ; @ilog2
	.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	x2, x0
Lloh0:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x8]
	cbz	w9, LBB0_4
; %bb.1:
	mov	x8, #0
	lsl	x9, x9, #2
	cmp	x9, #1
	csinc	x19, x9, xzr, hi
	mov	w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w10, w9, w8
	cmp	w10, w2
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x19, x8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_7
LBB0_6:
	mov	x19, x8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ilog2: %d is not a power of 2\n"

	.no_dead_strip	_ilog2
.subsections_via_symbols
