	.file	"140441.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"FAIL: shmget():%s [%d]\n"
.LC1:
	.string	"FAIL: shmat():%s [%d]\n"
	.text
	.globl	sysv_shmget
	.type	sysv_shmget, @function
sysv_shmget:
.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, 192
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	DWORD PTR -180[rbp], edx
	mov	DWORD PTR -184[rbp], ecx
	mov	DWORD PTR -188[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -168[rbp], 0
	je	.L2
	cmp	DWORD PTR -184[rbp], 0
	jns	.L3
.L2:
	mov	eax, -1
	jmp	.L10
.L3:
	cmp	QWORD PTR -176[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -176[rbp]
	mov	esi, 1234
	mov	rdi, rax
	call	ftok@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], -1
	jne	.L6
	mov	eax, -1
	jmp	.L10
.L5:
	mov	eax, DWORD PTR -180[rbp]
	mov	DWORD PTR -152[rbp], eax
.L6:
	mov	eax, DWORD PTR -188[rbp]
	or	ah, 6
	mov	edx, eax
	mov	eax, DWORD PTR -184[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	jne	.L7
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR -148[rbp], eax
.L7:
	cmp	DWORD PTR -148[rbp], -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	lea	rcx, -144[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -144[rbp]
	mov	ecx, 32
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L8:
	mov	eax, DWORD PTR -148[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	lea	rcx, -144[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	__xpg_strerror_r@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -144[rbp]
	mov	ecx, 37
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -148[rbp]
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sysv_shmget, .-sysv_shmget
	.section	.rodata
.LC2:
	.string	"FAIL:shmctl():%s [%s:%d]\n"
	.text
	.globl	sysv_shmrm
	.type	sysv_shmrm, @function
sysv_shmrm:
.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	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, 47
	lea	rcx, __FUNCTION__.0[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -4[rbp]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sysv_shmrm, .-sysv_shmrm
	.section	.rodata
	.align 8
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 11
__FUNCTION__.0:
	.string	"sysv_shmrm"
	.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	"140441.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"FAIL: shmget():%s [%d]\012\000"
	.align	2
.LC1:
	.ascii	"FAIL: shmat():%s [%d]\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sysv_shmget
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysv_shmget, %function
sysv_shmget:
	@ args = 4, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	str	r2, [fp, #-160]
	str	r3, [fp, #-164]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bge	.L3
.L2:
	mvn	r3, #0
	b	.L10
.L3:
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L12+4
	ldr	r0, [fp, #-156]
	bl	ftok
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmn	r3, #1
	bne	.L6
	mvn	r3, #0
	b	.L10
.L5:
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-144]
.L6:
	ldr	r1, [fp, #-164]
	ldr	r3, [fp, #4]
	orr	r3, r3, #1536
	mov	r2, r3
	ldr	r0, [fp, #-144]
	bl	shmget
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	bne	.L7
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-144]
	bl	shmget
	str	r0, [fp, #-140]
.L7:
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r1, fp, #136
	mov	r2, #128
	mov	r0, r3
	bl	__xpg_strerror_r
	ldr	r3, .L12+8
	ldr	r0, [r3]
	sub	r2, fp, #136
	mov	r3, #32
	ldr	r1, .L12+12
	bl	fprintf
	mvn	r3, #0
	b	.L10
.L8:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-140]
	bl	shmat
	mov	r2, r0
	ldr	r3, [fp, #-152]
	str	r2, [r3]
	ldr	r3, [fp, #-152]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r1, fp, #136
	mov	r2, #128
	mov	r0, r3
	bl	__xpg_strerror_r
	ldr	r3, .L12+8
	ldr	r0, [r3]
	sub	r2, fp, #136
	mov	r3, #37
	ldr	r1, .L12+16
	bl	fprintf
	mvn	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-140]
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	1234
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	sysv_shmget, .-sysv_shmget
	.section	.rodata
	.align	2
.LC3:
	.ascii	"FAIL:shmctl():%s [%s:%d]\012\000"
	.text
	.align	2
	.global	sysv_shmrm
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysv_shmrm, %function
sysv_shmrm:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	shmctl
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L15
	ldr	r3, .L17
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	mov	r3, #47
	str	r3, [sp]
	ldr	r3, .L17+4
	ldr	r1, .L17+8
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L16
.L15:
	ldr	r3, [fp, #-16]
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	__FUNCTION__.5980
	.word	.LC3
	.size	sysv_shmrm, .-sysv_shmrm
	.section	.rodata
	.align	2
	.type	__FUNCTION__.5980, %object
	.size	__FUNCTION__.5980, 11
__FUNCTION__.5980:
	.ascii	"sysv_shmrm\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
