	.file	"extr_util.c_ipcperms.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ipcperms
	.type	ipcperms, @function
ipcperms:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	r12d, ebx
	sar	r12w, 6
	call	current_euid@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	audit_ipc_obj@PLT
	mov	eax, ebx
	mov	r13d, DWORD PTR 0[rbp]
	sar	ax, 3
	or	r12d, eax
	or	r12d, ebx
	movsx	r12d, r12w
	cmp	QWORD PTR 8[rbp], r14
	je	.L2
	cmp	QWORD PTR 16[rbp], r14
	jne	.L3
.L2:
	sar	r13d, 6
.L4:
	not	r13d
	and	r12d, r13d
	and	r12d, 7
	je	.L8
	mov	edi, DWORD PTR CAP_IPC_OWNER[rip]
	call	capable@PLT
	test	eax, eax
	je	.L11
.L8:
	movsx	esi, bx
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	security_ipc_permission@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR 28[rbp]
	call	in_group_p@PLT
	test	rax, rax
	je	.L5
.L6:
	sar	r13d, 3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 24[rbp]
	call	in_group_p@PLT
	test	rax, rax
	jne	.L6
	jmp	.L4
.L11:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipcperms, .-ipcperms
	.comm	CAP_IPC_OWNER,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_util.c_ipcperms.c"
	.text
	.align	2
	.global	ipcperms
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipcperms, %function
ipcperms:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	bl	current_euid
	mov	r7, r0
	mov	r0, r4
	bl	audit_ipc_obj
	ldr	r3, [r4, #4]
	asr	r5, r6, #3
	orr	r5, r5, r6, asr #6
	cmp	r3, r7
	ldr	r8, [r4]
	orr	r5, r6, r5
	beq	.L2
	ldr	r3, [r4, #8]
	cmp	r3, r7
	bne	.L3
.L2:
	asr	r8, r8, #6
.L4:
	bic	r5, r5, r8
	tst	r5, #7
	beq	.L8
	ldr	r3, .L12
	ldr	r0, [r3]
	bl	capable
	cmp	r0, #0
	beq	.L11
.L8:
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	security_ipc_permission
.L3:
	ldr	r0, [r4, #16]
	bl	in_group_p
	cmp	r0, #0
	beq	.L5
.L6:
	asr	r8, r8, #3
	b	.L4
.L5:
	ldr	r0, [r4, #12]
	bl	in_group_p
	cmp	r0, #0
	bne	.L6
	b	.L4
.L11:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	CAP_IPC_OWNER
	.size	ipcperms, .-ipcperms
	.comm	CAP_IPC_OWNER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
