	.file	"167330999.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	", %d"
.LC2:
	.string	"]"
	.text
	.globl	print_array
	.type	print_array, @function
print_array:
.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
	jle	.L6
	mov	edi, 91
	call	putchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[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, .LC1[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
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L1
.L6:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_array, .-print_array
	.globl	remove_element
	.type	remove_element, @function
remove_element:
.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	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	je	.L9
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
.L9:
	add	DWORD PTR -8[rbp], 1
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L10
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	remove_element, .-remove_element
	.section	.rodata
.LC3:
	.string	"\n nums = "
.LC4:
	.string	" val  = %d\n"
.LC5:
	.string	" Output: "
	.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -96[rbp], 3
	mov	DWORD PTR -92[rbp], 2
	mov	DWORD PTR -88[rbp], 2
	mov	DWORD PTR -84[rbp], 3
	mov	DWORD PTR -112[rbp], 4
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -72[rbp], 2
	mov	DWORD PTR -68[rbp], 2
	mov	DWORD PTR -64[rbp], 3
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 4
	mov	DWORD PTR -52[rbp], 2
	mov	DWORD PTR -108[rbp], 8
	lea	rax, -96[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 3
	lea	rax, -80[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -20[rbp], 2
	mov	DWORD PTR -104[rbp], 2
	mov	DWORD PTR -116[rbp], 0
	jmp	.L13
.L14:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 40
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	print_array
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 36
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 36
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 40
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	esi, ecx
	mov	rdi, rax
	call	remove_element
	mov	DWORD PTR -100[rbp], eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -100[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_array
	add	DWORD PTR -116[rbp], 1
.L13:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"167330999.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	", %d\000"
	.align	2
.LC4:
	.ascii	"]\000"
	.text
	.align	2
	.global	print_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_array, %function
print_array:
	@ 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
	ble	.L6
	mov	r0, #91
	bl	putchar
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7
	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, .L7+4
	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
	ldr	r0, .L7+8
	bl	puts
	b	.L1
.L6:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	print_array, .-print_array
	.align	2
	.global	remove_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_element, %function
remove_element:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L12:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L11:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	remove_element, .-remove_element
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012 nums = \000"
	.align	2
.LC6:
	.ascii	" val  = %d\012\000"
	.align	2
.LC7:
	.ascii	" Output: \000"
	.align	2
.LC0:
	.word	3
	.word	2
	.word	2
	.word	3
	.align	2
.LC1:
	.word	0
	.word	1
	.word	2
	.word	2
	.word	3
	.word	0
	.word	4
	.word	2
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L19+4
	sub	ip, fp, #80
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #4
	str	r3, [fp, #-96]
	ldr	r3, .L19+8
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #8
	str	r3, [fp, #-92]
	sub	r3, fp, #80
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-60]
	mov	r3, #3
	str	r3, [fp, #-56]
	sub	r3, fp, #40
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-48]
	mov	r3, #2
	str	r3, [fp, #-44]
	mov	r3, #2
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L15
.L16:
	ldr	r0, .L19+12
	bl	printf
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r0, [r3]
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	ldr	r3, [r3]
	mov	r1, r3
	bl	print_array
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+16
	bl	printf
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r0, [r3]
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #56
	ldr	r1, [r3]
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #52
	ldr	r3, [r3]
	mov	r2, r3
	bl	remove_element
	str	r0, [fp, #-84]
	ldr	r0, .L19+20
	bl	printf
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #60
	ldr	r3, [r3]
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	print_array
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L15:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
