	.file	"14200864.c"
	.intel_syntax noprefix
	.text
	.globl	bitlen
	.type	bitlen, @function
bitlen:
.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	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	add	DWORD PTR -4[rbp], 1
	shr	DWORD PTR -20[rbp]
.L2:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bitlen, .-bitlen
	.section	.rodata
.LC0:
	.string	"Error: illegal p or n."
.LC1:
	.string	"setbits(11, 1, 2, 6) -> %u\n"
	.text
	.globl	setbits
	.type	setbits, @function
setbits:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	bitlen
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	bitlen
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cmp	DWORD PTR -20[rbp], eax
	jb	.L6
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jnb	.L7
.L6:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, -1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	not	eax
	and	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, -1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	not	eax
	and	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	shr	DWORD PTR -36[rbp], cl
	mov	eax, DWORD PTR -44[rbp]
	mov	ecx, eax
	sal	DWORD PTR -36[rbp], cl
	mov	eax, DWORD PTR -4[rbp]
	or	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	sal	DWORD PTR -36[rbp], cl
	mov	eax, DWORD PTR -8[rbp]
	or	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	setbits, .-setbits
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, 6
	mov	edx, 2
	mov	esi, 1
	mov	edi, 11
	call	setbits
	mov	ecx, 6
	mov	edx, 2
	mov	esi, 3
	mov	edi, 11
	call	setbits
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"14200864.c"
	.text
	.align	2
	.global	bitlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	bitlen, %function
bitlen:
	@ 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
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bitlen, .-bitlen
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: illegal p or n.\000"
	.align	2
.LC1:
	.ascii	"setbits(11, 1, 2, 6) -> %u\012\000"
	.text
	.align	2
	.global	setbits
	.syntax unified
	.arm
	.fpu softvfp
	.type	setbits, %function
setbits:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-32]
	bl	bitlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	bitlen
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L6
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcs	.L7
.L6:
	ldr	r0, .L9
	bl	puts
	mov	r3, #0
	b	.L8
.L7:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	sub	r2, r2, r3
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	mvn	r2, #0
	ldr	r3, [fp, #-16]
	lsl	r3, r2, r3
	mvn	r3, r3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	and	r3, r3, r2
	str	r3, [fp, #-12]
	mvn	r2, #0
	ldr	r3, [fp, #-40]
	lsl	r3, r2, r3
	mvn	r3, r3
	mov	r2, r3
	ldr	r3, [fp, #-44]
	and	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	lsr	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	lsl	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	lsl	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L9+4
	bl	printf
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.size	setbits, .-setbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r3, #6
	mov	r2, #2
	mov	r1, #1
	mov	r0, #11
	bl	setbits
	mov	r3, #6
	mov	r2, #2
	mov	r1, #3
	mov	r0, #11
	bl	setbits
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
