	.file	"104828822.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"x   = "
.LC1:
	.string	"n   = "
.LC2:
	.string	"result   = "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 170
	mov	DWORD PTR -8[rbp], 3
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	rightrot
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	dec2bin
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	dec2bin
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	dec2bin
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	rightrot
	.type	rightrot, @function
rightrot:
.LFB1:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	rightrot, .-rightrot
	.globl	getbits
	.type	getbits, @function
getbits:
.LFB2:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, eax
	shr	edx, cl
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, -1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	not	eax
	and	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getbits, .-getbits
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	" = %d\n"
	.text
	.globl	dec2bin
	.type	dec2bin, @function
dec2bin:
.LFB3:
	.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	BYTE PTR -1[rbp], 31
	jmp	.L8
.L10:
	movsx	ecx, BYTE PTR -1[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	edi, eax
	call	getbits
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -1[rbp]
	and	eax, 7
	test	al, al
	jne	.L9
	mov	edi, 32
	call	putchar@PLT
.L9:
	movzx	eax, BYTE PTR -1[rbp]
	sub	eax, 1
	mov	BYTE PTR -1[rbp], al
.L8:
	cmp	BYTE PTR -1[rbp], 0
	jns	.L10
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dec2bin, .-dec2bin
	.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	"104828822.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"x   = \000"
	.align	2
.LC1:
	.ascii	"n   = \000"
	.align	2
.LC2:
	.ascii	"result   = \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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #170
	str	r3, [fp, #-16]
	mov	r3, #3
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	rightrot
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, .L3
	bl	printf
	ldr	r0, [fp, #-16]
	bl	dec2bin
	ldr	r0, .L3+4
	bl	printf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	dec2bin
	ldr	r0, .L3+8
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	dec2bin
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	rightrot
	.syntax unified
	.arm
	.fpu softvfp
	.type	rightrot, %function
rightrot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsr	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rightrot, .-rightrot
	.align	2
	.global	getbits
	.syntax unified
	.arm
	.fpu softvfp
	.type	getbits, %function
getbits:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	lsr	r3, r2, r3
	mvn	r1, #0
	ldr	r2, [fp, #-16]
	lsl	r2, r1, r2
	mvn	r2, r2
	and	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getbits, .-getbits
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\000"
	.text
	.align	2
	.global	dec2bin
	.syntax unified
	.arm
	.fpu softvfp
	.type	dec2bin, %function
dec2bin:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #31
	strb	r3, [fp, #-5]
.L11:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	getbits
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12
	bl	printf
	ldrb	r3, [fp, #-5]
	and	r3, r3, #7
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L10
	mov	r0, #32
	bl	putchar
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-5]
	b	.L11
.L13:
	.align	2
.L12:
	.word	.LC3
	.size	dec2bin, .-dec2bin
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
