	.file	"29446.c"
	.intel_syntax noprefix
	.text
	.globl	mul
	.type	mul, @function
mul:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	rcx, rdx
	mov	rax, rsi
	mov	rdx, rdi
	mov	rdx, rcx
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	movzx	eax, WORD PTR -80[rbp]
	movzx	eax, ax
	add	eax, edx
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	WORD PTR -34[rbp], 0
	jmp	.L2
.L6:
	mov	WORD PTR -32[rbp], 0
	jmp	.L3
.L5:
	movzx	edx, WORD PTR -34[rbp]
	movzx	eax, WORD PTR -32[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 8[rax]
	movzx	eax, WORD PTR -34[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rdx, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR -32[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	imul	rsi, rax
	mov	rdx, rsi
	movzx	esi, WORD PTR -34[rbp]
	movzx	eax, WORD PTR -32[rbp]
	add	eax, esi
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	movzx	edx, WORD PTR -34[rbp]
	movzx	eax, WORD PTR -32[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 4294967295
	cmp	rax, rdx
	jbe	.L4
	movzx	edx, WORD PTR -34[rbp]
	movzx	eax, WORD PTR -32[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	add	QWORD PTR -8[rbp], 4
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	movzx	edx, WORD PTR -34[rbp]
	movzx	eax, WORD PTR -32[rbp]
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	esi, ecx
	movzx	ecx, WORD PTR -34[rbp]
	movzx	eax, WORD PTR -32[rbp]
	add	eax, ecx
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	add	rdx, rsi
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
.L4:
	movzx	eax, WORD PTR -32[rbp]
	add	eax, 1
	mov	WORD PTR -32[rbp], ax
.L3:
	movzx	eax, WORD PTR -80[rbp]
	cmp	WORD PTR -32[rbp], ax
	jb	.L5
	movzx	eax, WORD PTR -34[rbp]
	add	eax, 1
	mov	WORD PTR -34[rbp], ax
.L2:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	WORD PTR -34[rbp], ax
	jb	.L6
	mov	WORD PTR -30[rbp], 0
	jmp	.L7
.L9:
	movzx	eax, WORD PTR -30[rbp]
	add	eax, 1
	mov	WORD PTR -30[rbp], ax
.L7:
	movzx	edx, WORD PTR -30[rbp]
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	ecx, ax
	movzx	eax, WORD PTR -80[rbp]
	movzx	eax, ax
	add	eax, ecx
	cmp	edx, eax
	jge	.L8
	movzx	eax, WORD PTR -30[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L9
.L8:
	movzx	eax, WORD PTR -30[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
.L10:
	mov	rax, QWORD PTR -56[rbp]
	movzx	edx, WORD PTR -30[rbp]
	mov	WORD PTR [rax], dx
	mov	DWORD PTR -28[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -28[rbp], 1
.L11:
	movzx	eax, WORD PTR -30[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mul, .-mul
	.section	.rodata
.LC0:
	.string	"%08x"
	.text
	.globl	print
	.type	print, @function
print:
.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, 16
	mov	eax, edi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	jmp	.L14
.L15:
	mov	rdx, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR -16[rbp]
	movzx	eax, ax
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -16[rbp]
	sub	eax, 1
	mov	WORD PTR -16[rbp], ax
.L14:
	movzx	eax, WORD PTR -16[rbp]
	test	ax, ax
	jne	.L15
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print, .-print
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	mwInit@PLT
	mov	WORD PTR -48[rbp], 3
	mov	edi, 12
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 892272671
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 1698626982
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 1502062318
	mov	WORD PTR -32[rbp], 2
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], -1511063425
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], -539351670
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edi, edx
	mov	rsi, rax
	call	print
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, edx
	mov	rsi, rax
	call	print
	mov	ecx, DWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	mul
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edi, edx
	mov	rsi, rax
	call	print
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	call	mwTerm@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"29446.c"
	.text
	.align	2
	.global	mul
	.syntax unified
	.arm
	.fpu softvfp
	.type	mul, %function
mul:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #48
	str	r0, [fp, #-56]
	sub	r3, fp, #64
	stm	r3, {r1, r2}
	ldr	r3, [fp, #-56]
	ldrh	r3, [r3]
	mov	r2, r3
	ldrh	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r3, #0
	strh	r3, [fp, #-50]	@ movhi
	b	.L2
.L6:
	mov	r3, #0
	strh	r3, [fp, #-48]	@ movhi
	b	.L3
.L5:
	ldrh	r2, [fp, #-50]
	ldrh	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #4]
	ldrh	r3, [fp, #-50]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r4, r3
	mov	r5, #0
	ldr	r2, [fp, #-60]
	ldrh	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	ldrh	r0, [fp, #-50]
	ldrh	r1, [fp, #-48]
	add	r1, r0, r1
	lsl	r1, r1, #3
	ldr	r0, [fp, #-40]
	add	r1, r0, r1
	adds	r8, r6, r2
	adc	r9, r7, r3
	stm	r1, {r8-r9}
	ldrh	r2, [fp, #-50]
	ldrh	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L4
	ldrh	r2, [fp, #-50]
	ldrh	r3, [fp, #-48]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrh	r1, [fp, #-50]
	ldrh	r2, [fp, #-48]
	add	r2, r1, r2
	add	r2, r2, #1
	lsl	r2, r2, #3
	ldr	r1, [fp, #-40]
	add	r2, r1, r2
	ldmia	r2, {r0-r1}
	mov	r2, r3
	mov	r3, #0
	ldrh	lr, [fp, #-50]
	ldrh	ip, [fp, #-48]
	add	ip, lr, ip
	add	ip, ip, #1
	lsl	ip, ip, #3
	ldr	lr, [fp, #-40]
	add	ip, lr, ip
	adds	lr, r0, r2
	str	lr, [fp, #-76]
	adc	r3, r1, r3
	str	r3, [fp, #-72]
	sub	r4, fp, #76
	ldmia	r4, {r3-r4}
	stm	ip, {r3-r4}
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
.L4:
	ldrh	r3, [fp, #-48]
	add	r3, r3, #1
	strh	r3, [fp, #-48]	@ movhi
.L3:
	ldrh	r3, [fp, #-64]
	ldrh	r2, [fp, #-48]
	cmp	r2, r3
	bcc	.L5
	ldrh	r3, [fp, #-50]
	add	r3, r3, #1
	strh	r3, [fp, #-50]	@ movhi
.L2:
	ldr	r3, [fp, #-56]
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-50]
	cmp	r2, r3
	bcc	.L6
	mov	r3, #0
	strh	r3, [fp, #-46]	@ movhi
	b	.L7
.L9:
	ldrh	r3, [fp, #-46]
	add	r3, r3, #1
	strh	r3, [fp, #-46]	@ movhi
.L7:
	ldrh	r2, [fp, #-46]
	ldr	r3, [fp, #-56]
	ldrh	r3, [r3]
	mov	r1, r3
	ldrh	r3, [fp, #-64]
	add	r3, r1, r3
	cmp	r2, r3
	bge	.L8
	ldrh	r3, [fp, #-46]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L9
.L8:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #4]
	ldrh	r3, [fp, #-46]
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-36]
	str	r2, [r3, #4]
.L10:
	ldr	r3, [fp, #-56]
	ldrh	r2, [fp, #-46]	@ movhi
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L12:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-56]
	ldr	r0, [r1, #4]
	ldr	r1, [fp, #-44]
	lsl	r1, r1, #2
	add	r1, r0, r1
	mov	r3, r2
	str	r3, [r1]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L11:
	ldrh	r3, [fp, #-46]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L12
	ldr	r0, [fp, #-40]
	bl	free
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	mul, .-mul
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%08x\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	b	.L14
.L15:
	ldr	r2, [fp, #-8]
	ldrh	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16
	bl	printf
	ldrh	r3, [fp, #-12]
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L14:
	ldrh	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	print, .-print
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	mwInit
	mov	r3, #3
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L21+4
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r2, .L21+8
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r2, .L21+12
	str	r2, [r3]
	mov	r3, #2
	strh	r3, [fp, #-16]	@ movhi
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L21+16
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, .L21+20
	str	r2, [r3]
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	bl	print
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	bl	print
	sub	r0, fp, #24
	sub	r3, fp, #16
	ldm	r3, {r1, r2}
	bl	mul
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	bl	print
	ldr	r3, .L21+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	mwTerm
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	free
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	892272671
	.word	1698626982
	.word	1502062318
	.word	-1511063425
	.word	-539351670
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
