	.file	"36074214.c"
	.intel_syntax noprefix
	.text
	.globl	log2_approx
	.type	log2_approx, @function
log2_approx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	BYTE PTR -5[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -5[rbp], al
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 30
	jle	.L4
	movzx	eax, BYTE PTR -5[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	log2_approx, .-log2_approx
	.globl	log2_approx64
	.type	log2_approx64, @function
log2_approx64:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	BYTE PTR -5[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR -4[rbp]
	mov	BYTE PTR -5[rbp], al
.L8:
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 62
	jle	.L9
	movzx	eax, BYTE PTR -5[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	log2_approx64, .-log2_approx64
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"36074214.c"
	.text
	.align	2
	.global	log2_approx
	.syntax unified
	.arm
	.fpu softvfp
	.type	log2_approx, %function
log2_approx:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-9]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	mov	r2, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #1
	strb	r3, [fp, #-9]
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #30
	ble	.L4
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	log2_approx, .-log2_approx
	.align	2
	.global	log2_approx64
	.syntax unified
	.arm
	.fpu softvfp
	.type	log2_approx64, %function
log2_approx64:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	mov	r1, #0
	strb	r1, [fp, #-25]
	mov	r1, #0
	str	r1, [fp, #-24]
	b	.L7
.L9:
	mov	r0, #1
	mov	r1, #0
	ldr	ip, [fp, #-24]
	sub	r6, ip, #32
	rsb	lr, ip, #32
	lsl	r3, r1, ip
	orr	r3, r3, r0, lsl r6
	orr	r3, r3, r0, lsr lr
	lsl	r2, r0, ip
	mov	r6, r2
	mov	r7, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	and	r4, r6, r0
	and	r5, r7, r1
	orrs	r1, r4, r5
	beq	.L8
	ldr	r1, [fp, #-24]
	strb	r1, [fp, #-25]
.L8:
	ldr	r1, [fp, #-24]
	add	r1, r1, #1
	str	r1, [fp, #-24]
.L7:
	ldr	r1, [fp, #-24]
	cmp	r1, #62
	ble	.L9
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	log2_approx64, .-log2_approx64
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
