	.file	"277732.c"
	.intel_syntax noprefix
	.text
	.globl	msb
	.type	msb, @function
msb:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -28[rbp], edi
	mov	r12d, 0
	mov	ebx, 16
	mov	r13d, -1
.L3:
	mov	ecx, ebx
	shr	r13d, cl
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, r12d
	sar	eax, cl
	mov	edx, eax
	mov	eax, r13d
	mov	ecx, ebx
	sal	eax, cl
	and	eax, edx
	test	eax, eax
	je	.L2
	add	r12d, ebx
.L2:
	mov	eax, ebx
	shr	eax, 31
	add	eax, ebx
	sar	eax
	mov	ebx, eax
	test	ebx, ebx
	jne	.L3
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	msb, .-msb
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%08x %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 1
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 5
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 33536
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 164608
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1073741824
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -252706816
	call	msb
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edi, eax
	call	msb
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 31
	jle	.L7
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"277732.c"
	.text
	.align	2
	.global	msb
	.syntax unified
	.arm
	.fpu softvfp
	.type	msb, %function
msb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	mov	r5, #0
	mov	r4, #16
	mvn	r6, #0
.L3:
	lsr	r6, r6, r4
	ldr	r3, [fp, #-16]
	asr	r3, r3, r5
	mov	r2, r3
	lsl	r3, r6, r4
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L2
	add	r5, r5, r4
.L2:
	lsr	r3, r4, #31
	add	r3, r3, r4
	asr	r3, r3, #1
	mov	r4, r3
	cmp	r4, #0
	bne	.L3
	mov	r3, r5
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
	.size	msb, .-msb
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"%08x %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r0, #1
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	mov	r0, #3
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	mov	r0, #5
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	mov	r0, #33536
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	ldr	r0, .L9+4
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	mov	r0, #1073741824
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	ldr	r0, .L9+8
	bl	msb
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L6
.L7:
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r4, r2, r3
	mov	r2, #1
	ldr	r3, [fp, #-16]
	lsl	r3, r2, r3
	mov	r0, r3
	bl	msb
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L9+12
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #31
	ble	.L7
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	164608
	.word	-252706816
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
