	.file	"64201563.c"
	.intel_syntax noprefix
	.text
	.globl	money
	.bss
	.align 32
	.type	money, @object
	.size	money, 60
money:
	.zero	60
	.globl	add
	.align 32
	.type	add, @object
	.size	add, 60
add:
	.zero	60
	.globl	friends
	.align 32
	.type	friends, @object
	.size	friends, 60
friends:
	.zero	60
	.globl	name
	.align 32
	.type	name, @object
	.size	name, 300
name:
	.zero	300
	.text
	.globl	find
	.type	find, @function
find:
.LFB0:
	.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 -4[rbp], 0
	jmp	.L2
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, name[rip]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find, .-find
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d%d"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	find
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, friends[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, money[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -76[rbp], 0
	jmp	.L6
.L7:
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	find
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, add[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, money[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -72[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, friends[rip]
	mov	edi, DWORD PTR [rcx+rdx]
	cdq
	idiv	edi
	lea	ecx, [rsi+rax]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, add[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -76[rbp], 1
.L6:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, friends[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -76[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, friends[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, add[rip]
	mov	esi, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, money[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -72[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, friends[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	lea	ecx, [rsi+rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, add[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L10:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	solve, .-solve
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"gift1.in"
.LC4:
	.string	"w"
.LC5:
	.string	"gift1.out"
.LC6:
	.string	"%d"
.LC7:
	.string	"%s %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	freopen@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	freopen@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, 60
	mov	esi, 0
	lea	rdi, add[rip]
	call	memset@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	lea	rdx, name[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L13
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L15:
	call	solve
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L15
	mov	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, add[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, money[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 2
	lea	rcx, name[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"64201563.c"
	.text
	.comm	money,60,4
	.comm	add,60,4
	.comm	friends,60,4
	.comm	name,300,4
	.align	2
	.global	find
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L5
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	name
	.size	find, .-find
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solve
	.syntax unified
	.arm
	.fpu softvfp
	.type	solve, %function
solve:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	sub	r3, fp, #56
	mov	r0, r3
	bl	find
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, .L13+8
	add	r1, r3, r2
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, .L13+12
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L13+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L8
.L9:
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L13+4
	bl	__isoc99_scanf
	sub	r3, fp, #36
	mov	r0, r3
	bl	find
	str	r0, [fp, #-60]
	ldr	r2, .L13+20
	ldr	r3, [fp, #-60]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r2, .L13+8
	ldr	r3, [fp, #-64]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L13+12
	ldr	r3, [fp, #-64]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	add	r2, r4, r3
	ldr	r1, .L13+20
	ldr	r3, [fp, #-60]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L8:
	ldr	r2, .L13+12
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	blt	.L9
	ldr	r2, .L13+12
	ldr	r3, [fp, #-64]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L12
	ldr	r2, .L13+20
	ldr	r3, [fp, #-64]
	ldr	r4, [r2, r3, lsl #2]
	ldr	r2, .L13+8
	ldr	r3, [fp, #-64]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L13+12
	ldr	r3, [fp, #-64]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r2, r4, r3
	ldr	r1, .L13+20
	ldr	r3, [fp, #-64]
	str	r2, [r1, r3, lsl #2]
.L12:
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	money
	.word	friends
	.word	.LC1
	.word	add
	.size	solve, .-solve
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"gift1.in\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"gift1.out\000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"%s %d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+8
	ldr	r0, .L24+12
	bl	freopen
	ldr	r3, .L24+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+20
	ldr	r0, .L24+24
	bl	freopen
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L24+28
	bl	__isoc99_scanf
	mov	r2, #60
	mov	r1, #0
	ldr	r0, .L24+32
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L17:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L24+36
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L24+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L19:
	bl	solve
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L19
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L21:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L24+36
	add	r1, r3, r2
	ldr	r2, .L24+32
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, .L24+44
	ldr	r3, [fp, #-12]
	ldr	r3, [r0, r3, lsl #2]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, .L24+48
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC9
	.word	stdin
	.word	.LC3
	.word	.LC4
	.word	stdout
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	add
	.word	name
	.word	.LC0
	.word	money
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
