	.file	"168392.c"
	.intel_syntax noprefix
	.text
	.globl	wPrefersM1OverM
	.type	wPrefersM1OverM, @function
wPrefersM1OverM:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rdx, rax, 4000
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L3
	mov	eax, 1
	jmp	.L1
.L3:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rdx, rax, 4000
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L5
	mov	eax, 0
	jmp	.L1
.L5:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L6
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	wPrefersM1OverM, .-wPrefersM1OverM
	.section	.rodata
.LC0:
	.string	"W   M"
.LC1:
	.string	" %d    %d\n"
	.text
	.globl	stableMarriage
	.type	stableMarriage, @function
stableMarriage:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3968
	mov	QWORD PTR -8056[rbp], rdi
	mov	DWORD PTR -8060[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -8060[rbp]
	mov	DWORD PTR -8028[rbp], eax
	mov	DWORD PTR -8048[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -8048[rbp]
	cdqe
	mov	DWORD PTR -8016[rbp+rax*4], -1
	add	DWORD PTR -8048[rbp], 1
.L8:
	cmp	DWORD PTR -8048[rbp], 999
	jle	.L9
	lea	rdx, -4016[rbp]
	mov	eax, 0
	mov	ecx, 500
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR -8060[rbp]
	mov	DWORD PTR -8044[rbp], eax
	jmp	.L10
.L19:
	mov	DWORD PTR -8040[rbp], 0
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	test	eax, eax
	je	.L23
	add	DWORD PTR -8040[rbp], 1
.L11:
	mov	eax, DWORD PTR -8040[rbp]
	cmp	eax, DWORD PTR -8060[rbp]
	jl	.L14
	jmp	.L13
.L23:
	nop
.L13:
	mov	DWORD PTR -8036[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	imul	rdx, rax, 4000
	mov	rax, QWORD PTR -8056[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8036[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR -8024[rbp], eax
	mov	eax, DWORD PTR -8024[rbp]
	sub	eax, DWORD PTR -8060[rbp]
	cdqe
	mov	eax, DWORD PTR -8016[rbp+rax*4]
	cmp	eax, -1
	jne	.L16
	mov	eax, DWORD PTR -8024[rbp]
	sub	eax, DWORD PTR -8060[rbp]
	cdqe
	mov	edx, DWORD PTR -8040[rbp]
	mov	DWORD PTR -8016[rbp+rax*4], edx
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], 1
	sub	DWORD PTR -8044[rbp], 1
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -8024[rbp]
	sub	eax, DWORD PTR -8060[rbp]
	cdqe
	mov	eax, DWORD PTR -8016[rbp+rax*4]
	mov	DWORD PTR -8020[rbp], eax
	mov	edi, DWORD PTR -8060[rbp]
	mov	ecx, DWORD PTR -8020[rbp]
	mov	edx, DWORD PTR -8040[rbp]
	mov	esi, DWORD PTR -8024[rbp]
	mov	rax, QWORD PTR -8056[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	wPrefersM1OverM
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -8024[rbp]
	sub	eax, DWORD PTR -8060[rbp]
	cdqe
	mov	edx, DWORD PTR -8040[rbp]
	mov	DWORD PTR -8016[rbp+rax*4], edx
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], 1
	mov	eax, DWORD PTR -8020[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], 0
.L17:
	add	DWORD PTR -8036[rbp], 1
.L15:
	mov	eax, DWORD PTR -8036[rbp]
	cmp	eax, DWORD PTR -8060[rbp]
	jge	.L10
	mov	eax, DWORD PTR -8040[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	test	eax, eax
	je	.L18
.L10:
	cmp	DWORD PTR -8044[rbp], 0
	jg	.L19
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -8032[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -8032[rbp]
	cdqe
	mov	eax, DWORD PTR -8016[rbp+rax*4]
	mov	ecx, DWORD PTR -8032[rbp]
	mov	edx, DWORD PTR -8060[rbp]
	add	ecx, edx
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8032[rbp], 1
.L20:
	mov	eax, DWORD PTR -8032[rbp]
	cmp	eax, DWORD PTR -8060[rbp]
	jl	.L21
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	stableMarriage, .-stableMarriage
	.section	.rodata
.LC2:
	.string	"%d"
	.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
	lea	r11, -7999488[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 560
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -8000036[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L25
.L30:
	lea	rax, -8000032[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -8000024[rbp], 0
	jmp	.L26
.L29:
	mov	DWORD PTR -8000020[rbp], 0
	jmp	.L27
.L28:
	lea	rax, -8000028[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -8000028[rbp]
	mov	edx, DWORD PTR -8000020[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -8000024[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 1000
	add	rdx, rcx
	mov	DWORD PTR -8000016[rbp+rdx*4], eax
	add	DWORD PTR -8000020[rbp], 1
.L27:
	mov	eax, DWORD PTR -8000032[rbp]
	cmp	DWORD PTR -8000020[rbp], eax
	jl	.L28
	add	DWORD PTR -8000024[rbp], 1
.L26:
	mov	eax, DWORD PTR -8000032[rbp]
	add	eax, eax
	cmp	DWORD PTR -8000024[rbp], eax
	jl	.L29
	mov	edx, DWORD PTR -8000032[rbp]
	lea	rax, -8000016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	stableMarriage
.L25:
	mov	eax, DWORD PTR -8000036[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -8000036[rbp], edx
	test	eax, eax
	jg	.L30
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	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	"168392.c"
	.text
	.align	2
	.global	wPrefersM1OverM
	.syntax unified
	.arm
	.fpu softvfp
	.type	wPrefersM1OverM, %function
wPrefersM1OverM:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L6:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L3
	mov	r3, #1
	b	.L1
.L3:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L5
	mov	r3, #0
	b	.L1
.L5:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L6
.L1:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	wPrefersM1OverM, .-wPrefersM1OverM
	.section	.rodata
	.align	2
.LC0:
	.ascii	"W   M\000"
	.align	2
.LC1:
	.ascii	" %d    %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stableMarriage
	.syntax unified
	.arm
	.fpu softvfp
	.type	stableMarriage, %function
stableMarriage:
	@ args = 0, pretend = 0, frame = 8048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8000
	sub	sp, sp, #56
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-3948]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-3952]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	str	r3, [r2, #-3920]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3940]
	b	.L8
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3940]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3940]
	add	r3, r3, #1
	str	r3, [r2, #-3940]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3940]
	cmp	r3, #1000
	blt	.L9
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	str	r3, [r2, #-3936]
	b	.L10
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3932]
	b	.L11
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3932]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3932]
	add	r3, r3, #1
	str	r3, [r2, #-3932]
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3932]
	ldr	r3, [r3, #-3952]
	cmp	r2, r3
	blt	.L14
	b	.L13
.L23:
	nop
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3928]
	b	.L15
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-3932]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3948]
	add	r3, r3, r2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-3928]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r1, #-3916]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3916]
	ldr	r3, [r3, #-3952]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3908]
	cmn	r3, #1
	bne	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3916]
	ldr	r3, [r3, #-3952]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-3932]
	str	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3932]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-4004]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3936]
	sub	r3, r3, #1
	str	r3, [r2, #-3936]
	b	.L17
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3916]
	ldr	r3, [r3, #-3952]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	sub	r1, fp, #4096
	sub	r1, r1, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3908]
	str	r3, [r2, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3952]
	str	r3, [sp]
	ldr	r3, [ip, #-3912]
	ldr	r2, [r2, #-3932]
	ldr	r1, [r1, #-3916]
	ldr	r0, [r0, #-3948]
	bl	wPrefersM1OverM
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3916]
	ldr	r3, [r3, #-3952]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #4
	ldr	r2, [r2, #-3932]
	str	r2, [r3, #-3908]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3932]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-4004]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3912]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-4004]
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3928]
	add	r3, r3, #1
	str	r3, [r2, #-3928]
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3928]
	ldr	r3, [r3, #-3952]
	cmp	r2, r3
	bge	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3932]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	cmp	r3, #0
	beq	.L18
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3936]
	cmp	r3, #0
	bgt	.L19
	ldr	r0, .L24+4
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3924]
	b	.L20
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3924]
	ldr	r3, [r3, #-3952]
	add	r1, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3924]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3908]
	mov	r2, r3
	ldr	r0, .L24+8
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-3924]
	add	r3, r3, #1
	str	r3, [r2, #-3924]
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-3924]
	ldr	r3, [r3, #-3952]
	cmp	r2, r3
	blt	.L21
	nop
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	stableMarriage, .-stableMarriage
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8000024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #7995392
	sub	sp, sp, #4608
	sub	sp, sp, #24
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L35+4
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L35+8
	bl	__isoc99_scanf
	b	.L27
.L32:
	ldr	r3, .L35+12
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L35+8
	bl	__isoc99_scanf
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-524]
	b	.L28
.L31:
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-520]
	b	.L29
.L30:
	ldr	r3, .L35+16
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L35+8
	bl	__isoc99_scanf
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r1, [r3, #-528]
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	mov	r0, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r2, [r3, #-524]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #7995392
	sub	r2, r2, #4
	sub	r2, r2, #4096
	ldr	r2, [r2, #-520]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3, #-516]
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r3, [r3, #-520]
	add	r3, r3, #1
	str	r3, [r2, #-520]
.L29:
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r3, [r3, #-520]
	cmp	r3, r2
	blt	.L30
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r3, [r3, #-524]
	add	r3, r3, #1
	str	r3, [r2, #-524]
.L28:
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r3, [r3, #-532]
	lsl	r2, r3, #1
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r3, [r3, #-524]
	cmp	r3, r2
	blt	.L31
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r2, [r3, #-532]
	ldr	r3, .L35+20
	sub	r1, fp, #4
	add	r3, r1, r3
	mov	r1, r2
	mov	r0, r3
	bl	stableMarriage
.L27:
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	ldr	r2, [r3, #-536]
	sub	r1, r2, #1
	sub	r3, fp, #7995392
	sub	r3, r3, #4
	sub	r3, r3, #4096
	str	r1, [r3, #-536]
	cmp	r2, #0
	bgt	.L32
	mov	r3, #0
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC4
	.word	-8000024
	.word	.LC3
	.word	-8000020
	.word	-8000016
	.word	-8000004
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
