	.file	"41562.c"
	.intel_syntax noprefix
	.text
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 560
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -580[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -576[rbp], 0
	mov	edx, DWORD PTR -580[rbp]
	mov	eax, 32
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	neg	eax
	mov	DWORD PTR -564[rbp], eax
	lea	rdx, -176[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	sub	DWORD PTR -580[rbp], 3
	mov	edx, DWORD PTR -580[rbp]
	mov	eax, 29
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -572[rbp], eax
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -572[rbp]
	sal	eax, 2
	mov	DWORD PTR -568[rbp], eax
	jmp	.L3
.L11:
	mov	r13d, DWORD PTR -580[rbp]
	mov	eax, DWORD PTR -572[rbp]
	or	eax, DWORD PTR -568[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	DWORD PTR -304[rbp+rax*4], edx
	mov	eax, DWORD PTR -572[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -568[rbp]
	add	eax, eax
	or	edx, eax
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	DWORD PTR -560[rbp+rax*4], edx
	mov	eax, DWORD PTR -572[rbp]
	shr	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR -568[rbp]
	shr	eax
	or	edx, eax
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	DWORD PTR -432[rbp+rax*4], edx
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	edx, DWORD PTR -560[rbp+rax*4]
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	or	edx, eax
	mov	eax, DWORD PTR -580[rbp]
	cdqe
	mov	eax, DWORD PTR -304[rbp+rax*4]
	or	eax, edx
	not	eax
	lea	r12, -176[rbp]
	add	r12, 4
	and	eax, DWORD PTR -564[rbp]
	mov	DWORD PTR [r12], eax
	mov	ebx, DWORD PTR [r12]
	jmp	.L4
.L9:
	mov	eax, ebx
	neg	eax
	and	eax, ebx
	mov	r14d, eax
	mov	eax, r14d
	not	eax
	and	ebx, eax
	test	ebx, ebx
	je	.L6
	mov	rax, r12
	lea	r12, 4[rax]
	or	ebx, r13d
	mov	edx, ebx
	mov	DWORD PTR [rax], edx
.L6:
	mov	eax, r13d
	lea	r13d, -1[rax]
	mov	ebx, eax
	mov	eax, ebx
	mov	eax, DWORD PTR -560[rbp+rax*4]
	or	eax, r14d
	add	eax, eax
	mov	edx, r13d
	mov	DWORD PTR -560[rbp+rdx*4], eax
	mov	eax, ebx
	mov	eax, DWORD PTR -432[rbp+rax*4]
	or	eax, r14d
	shr	eax
	mov	edx, r13d
	mov	DWORD PTR -432[rbp+rdx*4], eax
	mov	eax, ebx
	mov	eax, DWORD PTR -304[rbp+rax*4]
	or	eax, r14d
	mov	edx, r13d
	mov	DWORD PTR -304[rbp+rdx*4], eax
	mov	eax, r13d
	mov	edx, DWORD PTR -560[rbp+rax*4]
	mov	eax, r13d
	mov	eax, DWORD PTR -432[rbp+rax*4]
	or	edx, eax
	mov	eax, r13d
	mov	eax, DWORD PTR -304[rbp+rax*4]
	or	eax, edx
	not	eax
	and	eax, DWORD PTR -564[rbp]
	mov	ebx, eax
	test	ebx, ebx
	je	.L14
	test	r13d, r13d
	jne	.L5
	add	DWORD PTR -576[rbp], 1
	jmp	.L8
.L5:
	test	r13d, r13d
	jne	.L9
	jmp	.L8
.L14:
	nop
.L8:
	sub	r12, 4
	mov	ebx, DWORD PTR [r12]
	mov	r13d, ebx
	and	r13d, 31
	and	ebx, -32
.L4:
	test	ebx, ebx
	jne	.L5
	sal	DWORD PTR -568[rbp]
.L3:
	cmp	DWORD PTR -568[rbp], 0
	jne	.L11
	sal	DWORD PTR -572[rbp]
.L2:
	cmp	DWORD PTR -572[rbp], 0
	jne	.L12
	mov	eax, DWORD PTR -576[rbp]
	add	eax, eax
	mov	DWORD PTR count[rip], eax
	nop
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	add	rsp, 560
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"Value too large, abort\n"
.LC1:
	.string	"\nSolutions: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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
	cmp	DWORD PTR -20[rbp], 1
	jle	.L16
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jg	.L17
.L16:
	mov	DWORD PTR -4[rbp], 8
.L17:
	cmp	DWORD PTR -4[rbp], 27
	jle	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	cmp	DWORD PTR -4[rbp], 3
	jg	.L19
	cmp	DWORD PTR -4[rbp], 1
	sete	al
	movzx	eax, al
	mov	DWORD PTR count[rip], eax
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	solve
.L20:
	mov	eax, DWORD PTR count[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"41562.c"
	.text
	.global	count
	.bss
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #544
	str	r0, [fp, #-560]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-556]
	ldr	r3, [fp, #-560]
	rsb	r3, r3, #32
	mov	r2, #1
	lsl	r3, r2, r3
	rsb	r3, r3, #0
	str	r3, [fp, #-544]
	sub	r3, fp, #156
	mov	r2, #132
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-560]
	sub	r3, r3, #3
	str	r3, [fp, #-560]
	ldr	r3, [fp, #-560]
	rsb	r3, r3, #29
	mov	r2, #1
	lsl	r3, r2, r3
	str	r3, [fp, #-552]
	b	.L2
.L12:
	ldr	r3, [fp, #-552]
	lsl	r3, r3, #2
	str	r3, [fp, #-548]
	b	.L3
.L11:
	ldr	r5, [fp, #-560]
	ldr	r2, [fp, #-552]
	ldr	r3, [fp, #-548]
	orr	r2, r2, r3
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-264]
	ldr	r3, [fp, #-552]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-548]
	lsl	r3, r3, #1
	orr	r2, r2, r3
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-520]
	ldr	r3, [fp, #-552]
	lsr	r2, r3, #2
	ldr	r3, [fp, #-548]
	lsr	r3, r3, #1
	orr	r2, r2, r3
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-392]
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [r3, #-520]
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r3, [r3, #-392]
	orr	r2, r2, r3
	ldr	r3, [fp, #-560]
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r3, [r3, #-264]
	orr	r3, r2, r3
	mvn	r2, r3
	sub	r6, fp, #156
	add	r6, r6, #4
	ldr	r3, [fp, #-544]
	and	r3, r3, r2
	str	r3, [r6]
	ldr	r4, [r6]
	b	.L4
.L9:
	mov	r3, r4
	rsb	r3, r3, #0
	and	r7, r4, r3
	mvn	r3, r7
	and	r4, r4, r3
	cmp	r4, #0
	beq	.L6
	mov	r3, r6
	add	r6, r3, #4
	orr	r2, r4, r5
	str	r2, [r3]
.L6:
	mov	r3, r5
	sub	r5, r3, #1
	mov	r4, r3
	lsl	r3, r4, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-520]
	orr	r3, r7, r3
	lsl	r2, r3, #1
	lsl	r3, r5, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-520]
	lsl	r3, r4, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-392]
	orr	r3, r7, r3
	lsr	r2, r3, #1
	lsl	r3, r5, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-392]
	lsl	r3, r4, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-264]
	orr	r2, r7, r3
	lsl	r3, r5, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-264]
	lsl	r3, r5, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [r3, #-520]
	lsl	r3, r5, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r3, [r3, #-392]
	orr	r2, r2, r3
	lsl	r3, r5, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r3, [r3, #-264]
	orr	r3, r2, r3
	mvn	r2, r3
	ldr	r3, [fp, #-544]
	and	r4, r2, r3
	cmp	r4, #0
	beq	.L14
	cmp	r5, #0
	bne	.L5
	ldr	r3, [fp, #-556]
	add	r3, r3, #1
	str	r3, [fp, #-556]
	b	.L8
.L5:
	cmp	r5, #0
	bne	.L9
	b	.L8
.L14:
	nop
.L8:
	sub	r6, r6, #4
	ldr	r4, [r6]
	and	r5, r4, #31
	bic	r4, r4, #31
.L4:
	cmp	r4, #0
	bne	.L5
	ldr	r3, [fp, #-548]
	lsl	r3, r3, #1
	str	r3, [fp, #-548]
.L3:
	ldr	r3, [fp, #-548]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-552]
	lsl	r3, r3, #1
	str	r3, [fp, #-552]
.L2:
	ldr	r3, [fp, #-552]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-556]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L15+4
	str	r2, [r3]
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	count
	.size	solve, .-solve
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Value too large, abort\012\000"
	.align	2
.LC2:
	.ascii	"\012Solutions: %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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L19
.L18:
	mov	r3, #8
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #27
	ble	.L20
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bgt	.L21
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L24+8
	str	r2, [r3]
	b	.L22
.L21:
	ldr	r0, [fp, #-8]
	bl	solve
.L22:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+12
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC1
	.word	count
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
