	.file	"352958.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"[]"
.LC1:
	.string	"[%d"
.LC2:
	.string	", %d"
	.text
	.globl	print_nums
	.type	print_nums, @function
print_nums:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 0
	jg	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L2:
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L5
	mov	edi, 93
	call	putchar@PLT
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_nums, .-print_nums
	.globl	can_complete_circuit
	.type	can_complete_circuit, @function
can_complete_circuit:
.LFB7:
	.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	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], -1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L10:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	add	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L9
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], -1
.L9:
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L10
	cmp	DWORD PTR -4[rbp], 0
	jle	.L11
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	add	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L13
	mov	eax, -1
	jmp	.L14
.L13:
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L15
.L11:
	mov	eax, DWORD PTR -4[rbp]
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	can_complete_circuit, .-can_complete_circuit
	.section	.rodata
.LC3:
	.string	"\n Input:"
.LC4:
	.string	"\n   gas:  "
.LC5:
	.string	"\n   cost: "
.LC6:
	.string	"\n Output: %d\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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -144[rbp], 1
	mov	DWORD PTR -140[rbp], 2
	mov	DWORD PTR -136[rbp], 3
	mov	DWORD PTR -132[rbp], 4
	mov	DWORD PTR -128[rbp], 5
	mov	DWORD PTR -216[rbp], 5
	mov	DWORD PTR -112[rbp], 3
	mov	DWORD PTR -108[rbp], 4
	mov	DWORD PTR -104[rbp], 5
	mov	DWORD PTR -100[rbp], 1
	mov	DWORD PTR -96[rbp], 2
	mov	DWORD PTR -212[rbp], 5
	mov	DWORD PTR -168[rbp], 2
	mov	DWORD PTR -164[rbp], 3
	mov	DWORD PTR -160[rbp], 4
	mov	DWORD PTR -208[rbp], 3
	mov	DWORD PTR -156[rbp], 3
	mov	DWORD PTR -152[rbp], 4
	mov	DWORD PTR -148[rbp], 3
	mov	DWORD PTR -204[rbp], 3
	lea	rax, -144[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -216[rbp]
	mov	DWORD PTR -72[rbp], eax
	lea	rax, -112[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -212[rbp]
	mov	DWORD PTR -56[rbp], eax
	lea	rax, -168[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -208[rbp]
	mov	DWORD PTR -40[rbp], eax
	lea	rax, -156[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -204[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -200[rbp], 2
	mov	DWORD PTR -220[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 80
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -184[rbp], rax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 72
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 64
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -176[rbp], rax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	sal	rax, 5
	add	rax, rbp
	sub	rax, 56
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -192[rbp], eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -196[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_nums
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -192[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_nums
	mov	ecx, DWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	mov	esi, DWORD PTR -196[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	can_complete_circuit
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -220[rbp], 1
.L17:
	mov	eax, DWORD PTR -220[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L18
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"352958.c"
	.text
	.section	.rodata
	.align	2
.LC4:
	.ascii	"[]\000"
	.align	2
.LC5:
	.ascii	"[%d\000"
	.align	2
.LC6:
	.ascii	", %d\000"
	.text
	.align	2
	.global	print_nums
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_nums, %function
print_nums:
	@ 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]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L2
	ldr	r0, .L6
	bl	printf
	b	.L1
.L2:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L5
	mov	r0, #93
	bl	putchar
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	print_nums, .-print_nums
	.align	2
	.global	can_complete_circuit
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_complete_circuit, %function
can_complete_circuit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L10
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L11
	mov	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L13
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L14
.L17:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L15
	mvn	r3, #0
	b	.L16
.L15:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L14:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L17
.L13:
	ldr	r3, [fp, #-8]
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	can_complete_circuit, .-can_complete_circuit
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012 Input:\000"
	.align	2
.LC8:
	.ascii	"\012   gas:  \000"
	.align	2
.LC9:
	.ascii	"\012   cost: \000"
	.align	2
.LC10:
	.ascii	"\012 Output: %d\012\000"
	.align	2
.LC0:
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.align	2
.LC1:
	.word	3
	.word	4
	.word	5
	.word	1
	.word	2
	.align	2
.LC2:
	.word	2
	.word	3
	.word	4
	.align	2
.LC3:
	.word	3
	.word	4
	.word	3
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L23+4
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #5
	str	r3, [fp, #-144]
	ldr	r3, .L23+8
	sub	ip, fp, #60
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #5
	str	r3, [fp, #-140]
	ldr	r2, .L23+12
	sub	r3, fp, #104
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #3
	str	r3, [fp, #-136]
	ldr	r2, .L23+16
	sub	r3, fp, #92
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #3
	str	r3, [fp, #-132]
	sub	r3, fp, #80
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-36]
	sub	r3, fp, #60
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-28]
	sub	r3, fp, #104
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-20]
	sub	r3, fp, #92
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-12]
	mov	r3, #2
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L19
.L20:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-36]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	str	r3, [fp, #-112]
	ldr	r0, .L23+20
	bl	printf
	ldr	r0, .L23+24
	bl	printf
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-124]
	bl	print_nums
	ldr	r0, .L23+28
	bl	printf
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-116]
	bl	print_nums
	ldr	r3, [fp, #-112]
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-124]
	bl	can_complete_circuit
	str	r0, [fp, #-108]
	ldr	r1, [fp, #-108]
	ldr	r0, .L23+32
	bl	printf
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L19:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
