	.file	"extr_sysv_shm.c_shm_prison_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sysvshm"
	.text
	.p2align 4
	.type	shm_prison_check, @function
shm_prison_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ecx, 4
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	vfs_copyopt@PLT
	cmp	DWORD PTR ENOENT[rip], eax
	je	.L7
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, 129
	jg	.L4
	cmp	edx, 127
	jg	.L14
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	prison_lock@PLT
	mov	esi, DWORD PTR shm_prison_slot[rip]
	mov	edi, DWORD PTR [rbx]
	call	osd_jail_get@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rbp, rax
	call	prison_unlock@PLT
	mov	eax, DWORD PTR EPERM[rip]
	test	rbp, rbp
	je	.L1
.L7:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	edx, 130
	je	.L1
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	shm_prison_check, .-shm_prison_check
	.comm	shm_prison_slot,4,4
	.comm	EPERM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sysv_shm.c_shm_prison_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sysvshm\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shm_prison_check, %function
shm_prison_check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	ip, .L17
	sub	sp, sp, #12
	mov	r3, #4
	mov	r4, r0
	mov	r2, sp
	mov	r0, r1
	ldr	r1, .L17+4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	vfs_copyopt
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp]
	cmp	r3, #129
	bgt	.L4
	cmp	r3, #127
	bgt	.L14
.L6:
	ldr	r3, .L17+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L14:
	ldr	r0, [r4]
	bl	prison_lock
	ldr	r3, .L17+16
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	osd_jail_get
	mov	r5, r0
	ldr	r0, [r4]
	bl	prison_unlock
	cmp	r5, #0
	beq	.L16
.L7:
	mov	r0, #0
	b	.L1
.L4:
	cmp	r3, #130
	beq	.L1
	b	.L6
.L16:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	.LC0
	.word	ENOENT
	.word	EINVAL
	.word	shm_prison_slot
	.word	EPERM
	.size	shm_prison_check, .-shm_prison_check
	.comm	shm_prison_slot,4,4
	.comm	EPERM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
