	.file	"168892534.c"
	.intel_syntax noprefix
	.text
	.globl	p1
	.bss
	.align 8
	.type	p1, @object
	.size	p1, 8
p1:
	.zero	8
	.globl	p2
	.align 8
	.type	p2, @object
	.size	p2, 8
p2:
	.zero	8
	.globl	size1
	.align 4
	.type	size1, @object
	.size	size1, 4
size1:
	.zero	4
	.globl	size2
	.align 4
	.type	size2, @object
	.size	size2, 4
size2:
	.zero	4
	.text
	.globl	merge_and_throw
	.type	merge_and_throw, @function
merge_and_throw:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rax, rdi
	mov	rcx, rsi
	mov	ebx, 0
	jmp	.L2
.L5:
	mov	rsi, QWORD PTR [rax]
	mov	edi, DWORD PTR [rsi]
	mov	rsi, QWORD PTR [rcx]
	mov	esi, DWORD PTR [rsi]
	cmp	edi, esi
	jge	.L3
	mov	rsi, QWORD PTR [rax]
	add	rsi, 4
	mov	QWORD PTR [rax], rsi
	jmp	.L4
.L3:
	mov	rsi, QWORD PTR [rcx]
	add	rsi, 4
	mov	QWORD PTR [rcx], rsi
.L4:
	add	ebx, 1
.L2:
	cmp	ebx, edx
	jl	.L5
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	merge_and_throw, .-merge_and_throw
	.section	.rodata
.LC1:
	.string	"%.1f"
	.text
	.globl	merge_even
	.type	merge_even, @function
merge_even:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	edx, DWORD PTR size1[rip]
	mov	eax, DWORD PTR size2[rip]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	edx, -1[rax]
	lea	rcx, -16[rbp]
	lea	rax, -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	merge_and_throw
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	merge_even, .-merge_even
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	merge_odd
	.type	merge_odd, @function
merge_odd:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	edx, DWORD PTR size1[rip]
	mov	eax, DWORD PTR size2[rip]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	lea	rcx, -16[rbp]
	lea	rax, -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	merge_and_throw
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	merge_odd, .-merge_odd
	.section	.rodata
.LC3:
	.string	"Bad alloc!"
	.text
	.globl	safealloc
	.type	safealloc, @function
safealloc:
.LFB9:
	.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	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	sal	eax, 2
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	abort@PLT
.L12:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1061109567
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	safealloc, .-safealloc
	.globl	read
	.type	read, @function
read:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read, .-read
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, size1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR size1[rip]
	mov	edi, eax
	call	safealloc
	mov	QWORD PTR p1[rip], rax
	mov	edx, DWORD PTR size1[rip]
	mov	rax, QWORD PTR p1[rip]
	mov	esi, edx
	mov	rdi, rax
	call	read
	lea	rsi, size2[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR size2[rip]
	mov	edi, eax
	call	safealloc
	mov	QWORD PTR p2[rip], rax
	mov	edx, DWORD PTR size2[rip]
	mov	rax, QWORD PTR p2[rip]
	mov	esi, edx
	mov	rdi, rax
	call	read
	mov	edx, DWORD PTR size1[rip]
	mov	eax, DWORD PTR size2[rip]
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L18
	mov	rdx, QWORD PTR p2[rip]
	mov	rax, QWORD PTR p1[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	merge_odd
	jmp	.L19
.L18:
	mov	rdx, QWORD PTR p2[rip]
	mov	rax, QWORD PTR p1[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	merge_even
.L19:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.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	"168892534.c"
	.text
	.comm	p1,4,4
	.comm	p2,4,4
	.comm	size1,4,4
	.comm	size2,4,4
	.align	2
	.global	merge_and_throw
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_and_throw, %function
merge_and_throw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	mov	r3, r0
	mov	ip, r2
	mov	r4, #0
	b	.L2
.L5:
	ldr	r2, [r3]
	ldr	r0, [r2]
	ldr	r2, [r1]
	ldr	r2, [r2]
	cmp	r0, r2
	bge	.L3
	ldr	r2, [r3]
	add	r2, r2, #4
	str	r2, [r3]
	b	.L4
.L3:
	ldr	r2, [r1]
	add	r2, r2, #4
	str	r2, [r1]
.L4:
	add	r4, r4, #1
.L2:
	cmp	r4, ip
	blt	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	merge_and_throw, .-merge_and_throw
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%.1f\000"
	.text
	.align	2
	.global	merge_even
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_even, %function
merge_even:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r2, r3, #1
	sub	r1, fp, #12
	sub	r3, fp, #8
	mov	r0, r3
	bl	merge_and_throw
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L7+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	size1
	.word	size2
	.word	.LC0
	.size	merge_even, .-merge_even
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\000"
	.text
	.align	2
	.global	merge_odd
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_odd, %function
merge_odd:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	sub	r1, fp, #12
	sub	r3, fp, #8
	mov	r0, r3
	bl	merge_and_throw
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+8
	bl	printf
	b	.L12
.L10:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+8
	bl	printf
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	size1
	.word	size2
	.word	.LC1
	.size	merge_odd, .-merge_odd
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Bad alloc!\000"
	.text
	.align	2
	.global	safealloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	safealloc, %function
safealloc:
	@ 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]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L18
	bl	printf
	bl	abort
.L16:
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r1, .L18+4
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	1061109567
	.size	safealloc, .-safealloc
	.align	2
	.global	read
	.syntax unified
	.arm
	.fpu softvfp
	.type	read, %function
read:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L23
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L22
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC1
	.size	read, .-read
	.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
	ldr	r1, .L29
	ldr	r0, .L29+4
	bl	__isoc99_scanf
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r0, r3
	bl	safealloc
	mov	r3, r0
	ldr	r2, .L29+8
	str	r3, [r2]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r2, .L29
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	read
	ldr	r1, .L29+12
	ldr	r0, .L29+4
	bl	__isoc99_scanf
	ldr	r3, .L29+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	safealloc
	mov	r3, r0
	ldr	r2, .L29+16
	str	r3, [r2]
	ldr	r3, .L29+16
	ldr	r3, [r3]
	ldr	r2, .L29+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	read
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, .L29+12
	ldr	r3, [r3]
	add	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r2, .L29+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	merge_odd
	b	.L27
.L26:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	ldr	r2, .L29+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	merge_even
.L27:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	size1
	.word	.LC1
	.word	p1
	.word	size2
	.word	p2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
