	.file	"77078.c"
	.intel_syntax noprefix
	.text
	.globl	converter
	.type	converter, @function
converter:
.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, 336
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	QWORD PTR -328[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 3978425819141910832
	movabs	rdx, 5063528411713059128
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], 1246316615
	mov	DWORD PTR -296[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -308[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -320[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	mov	DWORD PTR -288[rbp+rax*4], edx
	mov	eax, DWORD PTR -308[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -320[rbp]
	cqo
	idiv	rsi
	mov	QWORD PTR -320[rbp], rax
	add	DWORD PTR -296[rbp], 1
.L2:
	cmp	QWORD PTR -320[rbp], 0
	jne	.L3
	sub	DWORD PTR -296[rbp], 1
	mov	DWORD PTR -292[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	mov	ecx, DWORD PTR -288[rbp+rax*4]
	mov	eax, DWORD PTR -292[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -292[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -328[rbp]
	add	rdx, rax
	movsx	rax, ecx
	movzx	eax, BYTE PTR -32[rbp+rax]
	mov	BYTE PTR [rdx], al
	sub	DWORD PTR -296[rbp], 1
.L4:
	cmp	DWORD PTR -296[rbp], 0
	jns	.L5
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -328[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	converter, .-converter
	.globl	checker
	.type	checker, @function
checker:
.LFB7:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	ebx, BYTE PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	bl, al
	jne	.L11
	add	DWORD PTR -24[rbp], 1
.L11:
	add	DWORD PTR -20[rbp], 1
.L10:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	cmp	rbx, rax
	jb	.L12
	mov	eax, DWORD PTR -24[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	cmp	rbx, rax
	jne	.L13
	mov	eax, 1
	jmp	.L9
.L13:
	mov	eax, 0
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	checker, .-checker
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"palsquare.in"
.LC2:
	.string	"w"
.LC3:
	.string	"palsquare.out"
.LC4:
	.string	"%d"
.LC6:
	.string	"%s %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	DWORD PTR -276[rbp], edi
	mov	QWORD PTR -288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -248[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -240[rbp], rax
	lea	rdx, -260[rbp]
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -256[rbp], 1
	jmp	.L15
.L17:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -256[rbp]
	movq	rax, xmm2
	movsd	xmm0, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -232[rbp], rax
	mov	eax, DWORD PTR -260[rbp]
	lea	rdx, -224[rbp]
	mov	rcx, QWORD PTR -232[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	converter
	mov	eax, DWORD PTR -256[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -260[rbp]
	lea	rdx, -112[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	converter
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	checker
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], 0
	je	.L16
	lea	rcx, -224[rbp]
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -240[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L16:
	add	DWORD PTR -256[rbp], 1
.L15:
	cmp	DWORD PTR -256[rbp], 300
	jle	.L17
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.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	"77078.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0123456789ABCDEFGHIJ"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	converter
	.syntax unified
	.arm
	.fpu softvfp
	.type	converter, %function
converter:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	str	r2, [fp, #-304]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L2
.L3:
	ldr	r3, [fp, #-300]
	ldr	r1, [fp, #-296]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-280]
	ldr	r1, [fp, #-296]
	ldr	r0, [fp, #-300]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L2:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-292]
	sub	r3, r3, #1
	str	r3, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L4
.L5:
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-280]
	ldr	r3, [fp, #-288]
	add	r1, r3, #1
	str	r1, [fp, #-288]
	mov	r1, r3
	ldr	r3, [fp, #-304]
	add	r3, r3, r1
	sub	r1, fp, #4
	add	r2, r1, r2
	ldrb	r2, [r2, #-24]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-292]
	sub	r3, r3, #1
	str	r3, [fp, #-292]
.L4:
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bge	.L5
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-304]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.size	converter, .-converter
	.align	2
	.global	checker
	.syntax unified
	.arm
	.fpu softvfp
	.type	checker, %function
checker:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L10
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r4, [r3]	@ zero_extendqisi2
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r4, r3
	bne	.L13
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	lsr	r2, r3, #1
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L14
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	lsr	r2, r3, #1
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L15
	mov	r3, #1
	b	.L11
.L15:
	mov	r3, #0
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	checker, .-checker
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"palsquare.in\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"palsquare.out\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
.LC7:
	.ascii	"%s %s\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 = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-240]
	str	r1, [fp, #-244]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	fopen
	str	r0, [fp, #-224]
	ldr	r1, .L22+12
	ldr	r0, .L22+16
	bl	fopen
	str	r0, [fp, #-220]
	sub	r3, fp, #232
	mov	r2, r3
	ldr	r1, .L22+20
	ldr	r0, [fp, #-224]
	bl	__isoc99_fscanf
	mov	r3, #1
	str	r3, [fp, #-228]
	b	.L17
.L19:
	ldr	r0, [fp, #-228]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-232]
	sub	r2, fp, #208
	ldr	r1, [fp, #-216]
	mov	r0, r3
	bl	converter
	ldr	r3, [fp, #-232]
	sub	r2, fp, #108
	ldr	r1, [fp, #-228]
	mov	r0, r3
	bl	converter
	sub	r3, fp, #208
	mov	r0, r3
	bl	checker
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #208
	sub	r2, fp, #108
	ldr	r1, .L22+24
	ldr	r0, [fp, #-220]
	bl	fprintf
.L18:
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L17:
	ldr	r3, [fp, #-228]
	cmp	r3, #300
	ble	.L19
	ldr	r0, [fp, #-224]
	bl	fclose
	ldr	r0, [fp, #-220]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC8
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
