	.file	"812792.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Fail to allocate SHM"
.LC1:
	.string	"%s\n"
.LC2:
	.string	" - errno # %d (%s)\n"
.LC3:
	.string	"the_stack_data/812792.c"
.LC4:
	.string	" - line # %d (file # %s)\n"
.LC5:
	.string	"Fail to get info SHM"
.LC6:
	.string	"User asked size: %ld\n"
.LC7:
	.string	"Allocated size:  %ld\n"
.LC8:
	.string	"Fail to de-attach SHM"
.LC9:
	.string	"Fail to de-allocate SHM"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 184
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -168[rbp], 10240
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 1920
	mov	rsi, rax
	mov	edi, 0
	call	shmget@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC0[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rbx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	mov	edx, 27
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -160[rbp], rax
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shmctl@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC5[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rbx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	mov	edx, 34
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -176[rbp], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	QWORD PTR -176[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 65
	add	QWORD PTR -176[rbp], 1
.L4:
	mov	rax, QWORD PTR -176[rbp]
	cmp	rax, QWORD PTR -152[rbp]
	jb	.L5
	mov	QWORD PTR -176[rbp], 0
	jmp	.L6
.L8:
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	rcx, QWORD PTR -176[rbp]
	movabs	rdx, -6148914691236517205
	mov	rax, rcx
	mul	rdx
	shr	rdx, 4
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	sub	rcx, rax
	mov	rdx, rcx
	test	rdx, rdx
	jne	.L7
	mov	edi, 10
	call	putchar@PLT
.L7:
	add	QWORD PTR -176[rbp], 1
.L6:
	mov	rax, QWORD PTR -176[rbp]
	cmp	rax, QWORD PTR -152[rbp]
	jb	.L8
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rbx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	mov	edx, 56
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L10
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC9[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rbx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, .LC3[rip]
	mov	edx, 60
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"812792.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Fail to allocate SHM\000"
	.align	2
.LC1:
	.ascii	"%s\012\000"
	.align	2
.LC2:
	.ascii	" - errno # %d (%s)\012\000"
	.align	2
.LC3:
	.ascii	"the_stack_data/812792.c\000"
	.align	2
.LC4:
	.ascii	" - line # %d (file # %s)\012\000"
	.align	2
.LC5:
	.ascii	"Fail to get info SHM\000"
	.align	2
.LC6:
	.ascii	"User asked size: %ld\012\000"
	.align	2
.LC7:
	.ascii	"Allocated size:  %ld\012\000"
	.align	2
.LC8:
	.ascii	"Fail to de-attach SHM\000"
	.align	2
.LC9:
	.ascii	"Fail to de-allocate SHM\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #10240
	str	r3, [fp, #-120]
	mov	r2, #1920
	ldr	r1, [fp, #-120]
	mov	r0, #0
	bl	shmget
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bgt	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13+8
	ldr	r1, .L13+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L13+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, .L13+20
	mov	r2, #27
	ldr	r1, .L13+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-116]
	bl	shmat
	str	r0, [fp, #-112]
	sub	r3, fp, #100
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-116]
	bl	shmctl
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13+28
	ldr	r1, .L13+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L13+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, .L13+20
	mov	r2, #34
	ldr	r1, .L13+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r1, [fp, #-120]
	ldr	r0, .L13+32
	bl	printf
	ldr	r3, [fp, #-64]
	mov	r1, r3
	ldr	r0, .L13+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L4
.L5:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	mov	r2, #65
	strb	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L4:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	bcc	.L5
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L6
.L8:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-124]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r1, [fp, #-124]
	ldr	r3, .L13+40
	umull	r2, r3, r1, r3
	lsr	r2, r3, #4
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L7
	mov	r0, #10
	bl	putchar
.L7:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L6:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	bcc	.L8
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-112]
	bl	shmdt
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13+44
	ldr	r1, .L13+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L13+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, .L13+20
	mov	r2, #56
	ldr	r1, .L13+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-116]
	bl	shmctl
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13+48
	ldr	r1, .L13+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L13+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, .L13+20
	mov	r2, #60
	ldr	r1, .L13+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC10
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	-1431655765
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
