	.file	"57254.c"
	.intel_syntax noprefix
	.text
	.globl	lsp
	.type	lsp, @function
lsp:
.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	and	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	lsp, .-lsp
	.globl	is_power_of_2
	.type	is_power_of_2, @function
is_power_of_2:
.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, 8
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	lsp
	cmp	DWORD PTR -4[rbp], eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	is_power_of_2, .-is_power_of_2
	.section	.rodata
.LC0:
	.string	"the_stack_data/57254.c"
.LC1:
	.string	"is_power_of_2(n)"
	.text
	.globl	num_mosse_for_powers_of_two
	.type	num_mosse_for_powers_of_two, @function
num_mosse_for_powers_of_two:
.LFB2:
	.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	is_power_of_2
	test	eax, eax
	jne	.L6
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 15
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	sub	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	num_mosse_for_powers_of_two, .-num_mosse_for_powers_of_two
	.globl	num_of_ones_in_binary_rep
	.type	num_of_ones_in_binary_rep, @function
num_of_ones_in_binary_rep:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L9
	mov	eax, 0
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	lsp
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	mov	edi, eax
	call	num_of_ones_in_binary_rep
	add	eax, 1
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	num_of_ones_in_binary_rep, .-num_of_ones_in_binary_rep
	.globl	num_mosse
	.type	num_mosse, @function
num_mosse:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	num_of_ones_in_binary_rep
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L14
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edi, eax
	call	num_mosse_for_powers_of_two
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	edi, eax
	call	num_mosse
	add	eax, ebx
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	edi, eax
	call	lsp
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	add	eax, eax
	cmp	ebx, eax
	jne	.L15
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edi, eax
	call	num_mosse_for_powers_of_two
	lea	ebx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edx, eax
	sal	eax, 2
	sub	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	edi, eax
	call	num_mosse
	add	eax, ebx
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edi, eax
	call	num_mosse_for_powers_of_two
	lea	ebx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	lsp
	mov	edx, DWORD PTR -20[rbp]
	add	eax, edx
	mov	edi, eax
	call	num_mosse
	add	eax, ebx
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	num_mosse, .-num_mosse
	.section	.rodata
.LC2:
	.string	"n > 0"
	.text
	.globl	mossa
	.type	mossa, @function
mossa:
.LFB5:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jg	.L17
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 38
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	num_of_ones_in_binary_rep
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L18
	mov	eax, 1
	jmp	.L19
.L18:
	mov	eax, 2
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	mossa, .-mossa
	.section	.rodata
.LC3:
	.string	"%d %d"
.LC4:
	.string	"p >= 1"
.LC5:
	.string	"p <= 2"
.LC6:
	.string	"n >= 0"
.LC7:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -12[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jg	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 58
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 2
	jle	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 59
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L22:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jns	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 60
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L23:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jne	.L24
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	num_mosse
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 2
	jne	.L25
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	mossa
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 28
__PRETTY_FUNCTION__.2:
	.string	"num_mosse_for_powers_of_two"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 6
__PRETTY_FUNCTION__.1:
	.string	"mossa"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"57254.c"
	.text
	.align	2
	.global	lsp
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsp, %function
lsp:
	@ 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]
	ldr	r3, [fp, #-8]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-8]
	and	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lsp, .-lsp
	.align	2
	.global	is_power_of_2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_power_of_2, %function
is_power_of_2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	lsp
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	is_power_of_2, .-is_power_of_2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/57254.c\000"
	.align	2
.LC1:
	.ascii	"is_power_of_2(n)\000"
	.text
	.align	2
	.global	num_mosse_for_powers_of_two
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_mosse_for_powers_of_two, %function
num_mosse_for_powers_of_two:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	is_power_of_2
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L8
	mov	r2, #15
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	__assert_fail
.L6:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	sub	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	__PRETTY_FUNCTION__.4621
	.word	.LC0
	.word	.LC1
	.size	num_mosse_for_powers_of_two, .-num_mosse_for_powers_of_two
	.align	2
	.global	num_of_ones_in_binary_rep
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_of_ones_in_binary_rep, %function
num_of_ones_in_binary_rep:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	b	.L12
.L11:
	ldr	r0, [fp, #-8]
	bl	lsp
	mov	r2, r0
	ldr	r3, [fp, #-8]
	sub	r3, r3, r2
	mov	r0, r3
	bl	num_of_ones_in_binary_rep
	mov	r3, r0
	add	r3, r3, #1
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	num_of_ones_in_binary_rep, .-num_of_ones_in_binary_rep
	.align	2
	.global	num_mosse
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_mosse, %function
num_mosse:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r0, [fp, #-16]
	bl	num_of_ones_in_binary_rep
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L16
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r3, r0
	mov	r0, r3
	bl	num_mosse_for_powers_of_two
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, r2
	mov	r0, r3
	bl	num_mosse
	mov	r3, r0
	add	r3, r4, r3
	b	.L15
.L16:
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, r2
	mov	r0, r3
	bl	lsp
	mov	r4, r0
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r3, r0
	lsl	r3, r3, #1
	cmp	r4, r3
	bne	.L17
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r3, r0
	mov	r0, r3
	bl	num_mosse_for_powers_of_two
	mov	r3, r0
	add	r4, r3, #1
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r3, r0
	mov	r2, r3
	lsl	r3, r3, #2
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	num_mosse
	mov	r3, r0
	add	r3, r4, r3
	b	.L15
.L17:
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r3, r0
	mov	r0, r3
	bl	num_mosse_for_powers_of_two
	mov	r3, r0
	add	r4, r3, #1
	ldr	r0, [fp, #-16]
	bl	lsp
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	num_mosse
	mov	r3, r0
	add	r3, r4, r3
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	num_mosse, .-num_mosse
	.section	.rodata
	.align	2
.LC2:
	.ascii	"n > 0\000"
	.text
	.align	2
	.global	mossa
	.syntax unified
	.arm
	.fpu softvfp
	.type	mossa, %function
mossa:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L19
	ldr	r3, .L22
	mov	r2, #38
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	__assert_fail
.L19:
	ldr	r0, [fp, #-8]
	bl	num_of_ones_in_binary_rep
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L20
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #2
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	__PRETTY_FUNCTION__.4631
	.word	.LC0
	.word	.LC2
	.size	mossa, .-mossa
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d %d\000"
	.align	2
.LC4:
	.ascii	"p >= 1\000"
	.align	2
.LC5:
	.ascii	"p <= 2\000"
	.align	2
.LC6:
	.ascii	"n >= 0\000"
	.align	2
.LC7:
	.ascii	"%d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #12
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L32+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L25
	ldr	r3, .L32+8
	mov	r2, #58
	ldr	r1, .L32+12
	ldr	r0, .L32+16
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L26
	ldr	r3, .L32+8
	mov	r2, #59
	ldr	r1, .L32+12
	ldr	r0, .L32+20
	bl	__assert_fail
.L26:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L27
	ldr	r3, .L32+8
	mov	r2, #60
	ldr	r1, .L32+12
	ldr	r0, .L32+24
	bl	__assert_fail
.L27:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L28
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	num_mosse
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L32+28
	bl	printf
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L29
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	mossa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L32+28
	bl	printf
.L29:
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC8
	.word	.LC3
	.word	__PRETTY_FUNCTION__.4636
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4621, %object
	.size	__PRETTY_FUNCTION__.4621, 28
__PRETTY_FUNCTION__.4621:
	.ascii	"num_mosse_for_powers_of_two\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4631, %object
	.size	__PRETTY_FUNCTION__.4631, 6
__PRETTY_FUNCTION__.4631:
	.ascii	"mossa\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4636, %object
	.size	__PRETTY_FUNCTION__.4636, 5
__PRETTY_FUNCTION__.4636:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
