	.file	"extr_posix_sem.c_psem_unlink_internal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	psem_unlink_internal, @function
psem_unlink_internal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	PSEM_SUBSYS_ASSERT_HELD@PLT
	test	rbp, rbp
	je	.L5
	test	r13, r13
	je	.L5
	mov	r12d, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR PSEM_DEFINED[rip]
	or	eax, DWORD PTR PSEM_ALLOCATED[rip]
	test	eax, r12d
	je	.L5
	and	r12d, DWORD PTR PSEM_INDELETE[rip]
	jne	.L8
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR posix_ipc_perm[rip]
	call	AUDIT_ARG@PLT
	mov	eax, DWORD PTR 0[rbp]
	or	eax, DWORD PTR PSEM_INDELETE[rip]
	sub	DWORD PTR 4[rbp], 1
	mov	DWORD PTR 0[rbp], eax
	je	.L14
	or	eax, DWORD PTR PSEM_REMOVED[rip]
	mov	DWORD PTR 0[rbp], eax
.L7:
	mov	rdi, r13
	call	psem_cache_delete@PLT
	mov	esi, DWORD PTR M_SHM[rip]
	mov	rdi, r13
	call	FREE@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	psem_delete@PLT
	mov	esi, DWORD PTR M_SHM[rip]
	mov	rdi, rbp
	call	FREE@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	psem_unlink_internal, .-psem_unlink_internal
	.comm	posix_ipc_perm,4,4
	.comm	PSEM_REMOVED,4,4
	.comm	PSEM_INDELETE,4,4
	.comm	PSEM_DEFINED,4,4
	.comm	PSEM_ALLOCATED,4,4
	.comm	M_SHM,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_posix_sem.c_psem_unlink_internal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	psem_unlink_internal, %function
psem_unlink_internal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	bl	PSEM_SUBSYS_ASSERT_HELD
	clz	r3, r5
	cmp	r4, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r3, #0
	bne	.L4
	ldr	r2, .L14
	ldr	r1, .L14+4
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r6, [r4]
	orr	r2, r2, r1
	tst	r2, r6
	beq	.L4
	ldr	r7, .L14+8
	ldr	r2, [r7]
	ands	r6, r6, r2
	movne	r6, r3
	bne	.L1
	ldr	r2, .L14+12
	ldr	r3, [r4, #8]
	ldr	r0, [r2]
	ldr	r1, [r4, #16]
	ldr	r2, [r4, #12]
	bl	AUDIT_ARG
	ldr	r3, [r4, #4]
	ldr	r1, [r7]
	ldr	r2, [r4]
	sub	r3, r3, #1
	orr	r2, r2, r1
	cmp	r3, #0
	stm	r4, {r2, r3}
	beq	.L13
	ldr	r3, .L14+16
	ldr	r7, .L14+20
	ldr	r3, [r3]
	orr	r2, r3, r2
	str	r2, [r4]
.L6:
	mov	r0, r5
	bl	psem_cache_delete
	mov	r0, r5
	ldr	r1, [r7]
	bl	FREE
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L14+24
	ldr	r6, [r3]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r7, .L14+20
	mov	r0, r4
	bl	psem_delete
	mov	r0, r4
	ldr	r1, [r7]
	bl	FREE
	b	.L6
.L15:
	.align	2
.L14:
	.word	PSEM_DEFINED
	.word	PSEM_ALLOCATED
	.word	PSEM_INDELETE
	.word	posix_ipc_perm
	.word	PSEM_REMOVED
	.word	M_SHM
	.word	EINVAL
	.size	psem_unlink_internal, .-psem_unlink_internal
	.comm	posix_ipc_perm,4,4
	.comm	PSEM_REMOVED,4,4
	.comm	PSEM_INDELETE,4,4
	.comm	PSEM_DEFINED,4,4
	.comm	PSEM_ALLOCATED,4,4
	.comm	M_SHM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
