	.file	"480518.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/proc/%d/cmdline"
	.text
	.globl	print_process_arg_list
	.type	print_process_arg_list, @function
print_process_arg_list:
.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, 1120
	mov	DWORD PTR -1108[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -1108[rbp]
	lea	rax, -1072[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 24
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -1072[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1092[rbp], eax
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1092[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1080[rbp], rax
	mov	eax, DWORD PTR -1092[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1088[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -1088[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -1088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	add	QWORD PTR -1088[rbp], rax
.L2:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	add	rax, rdx
	cmp	QWORD PTR -1088[rbp], rax
	jb	.L3
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_process_arg_list, .-print_process_arg_list
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	print_process_arg_list
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"480518.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/%d/cmdline\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_process_arg_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_process_arg_list, %function
print_process_arg_list:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1072]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #1040
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r3, [fp, #-1072]
	ldr	r2, .L5+4
	mov	r1, #24
	bl	snprintf
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1064]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	read
	mov	r3, r0
	str	r3, [fp, #-1060]
	ldr	r0, [fp, #-1064]
	bl	close
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-1068]
	b	.L2
.L3:
	ldr	r0, [fp, #-1068]
	bl	puts
	ldr	r0, [fp, #-1068]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	str	r3, [fp, #-1068]
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	add	r3, r3, r2
	ldr	r2, [fp, #-1068]
	cmp	r2, r3
	bcc	.L3
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC0
	.size	print_process_arg_list, .-print_process_arg_list
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	print_process_arg_list
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
