	.file	"extr_hooks.c_selinux_msg_queue_msgsnd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	selinux_msg_queue_msgsnd, @function
selinux_msg_queue_msgsnd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	current_sid@PLT
	mov	rdi, r13
	mov	r12, rax
	call	selinux_ipc@PLT
	mov	rdi, r14
	mov	rbp, rax
	call	selinux_msg_msg@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR SECINITSID_UNLABELED[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L2
.L5:
	mov	eax, DWORD PTR LSM_AUDIT_DATA_IPC[rip]
	mov	r8d, DWORD PTR MSGQ__WRITE[rip]
	mov	rsi, r12
	lea	rdi, selinux_state[rip]
	mov	ecx, DWORD PTR SECCLASS_MSGQ[rip]
	mov	rdx, QWORD PTR 0[rbp]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR 0[r13]
	mov	r13, rsp
	mov	r9, r13
	mov	DWORD PTR [rsp], eax
	call	avc_has_perm@PLT
	test	eax, eax
	je	.L9
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR SECCLASS_MSG[rip]
	mov	rdx, QWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	r9, rbx
	mov	rsi, r12
	lea	rdi, selinux_state[rip]
	call	security_transition_sid@PLT
	test	eax, eax
	je	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR MSG__SEND[rip]
	mov	rdx, QWORD PTR [rbx]
	mov	r9, r13
	mov	rsi, r12
	mov	ecx, DWORD PTR SECCLASS_MSG[rip]
	lea	rdi, selinux_state[rip]
	call	avc_has_perm@PLT
	test	eax, eax
	jne	.L1
	mov	r8d, DWORD PTR MSGQ__ENQUEUE[rip]
	mov	rsi, QWORD PTR [rbx]
	mov	r9, r13
	lea	rdi, selinux_state[rip]
	mov	ecx, DWORD PTR SECCLASS_MSGQ[rip]
	mov	rdx, QWORD PTR 0[rbp]
	call	avc_has_perm@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	selinux_msg_queue_msgsnd, .-selinux_msg_queue_msgsnd
	.comm	selinux_state,4,4
	.comm	SECINITSID_UNLABELED,8,8
	.comm	SECCLASS_MSGQ,4,4
	.comm	SECCLASS_MSG,4,4
	.comm	MSG__SEND,4,4
	.comm	MSGQ__WRITE,4,4
	.comm	MSGQ__ENQUEUE,4,4
	.comm	LSM_AUDIT_DATA_IPC,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_hooks.c_selinux_msg_queue_msgsnd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	selinux_msg_queue_msgsnd, %function
selinux_msg_queue_msgsnd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L11
	sub	sp, sp, #24
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	current_sid
	mov	r7, r0
	mov	r0, r5
	bl	selinux_ipc
	mov	r6, r0
	mov	r0, r4
	bl	selinux_msg_msg
	ldr	r3, .L11+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	beq	.L2
.L5:
	ldr	r3, .L11+8
	ldr	r1, .L11+12
	ldr	r0, [r5]
	ldr	r3, [r3]
	ldr	r8, .L11+16
	ldr	ip, [r1]
	add	r5, sp, #12
	ldr	r2, [r6]
	mov	r1, r7
	str	r3, [sp]
	str	r0, [sp, #12]
	ldr	r3, [r8]
	ldr	r0, .L11+20
	str	r5, [sp, #4]
	str	ip, [sp, #16]
	bl	avc_has_perm
	cmp	r0, #0
	beq	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, #0
	ldr	r2, [r6]
	stm	sp, {r1, r4}
	ldr	r3, .L11+24
	mov	r1, r7
	ldr	r3, [r3]
	ldr	r0, .L11+20
	bl	security_transition_sid
	cmp	r0, #0
	beq	.L5
	b	.L1
.L9:
	ldr	r3, .L11+28
	ldr	r2, [r4]
	ldr	r0, [r3]
	ldr	r3, .L11+24
	stm	sp, {r0, r5}
	mov	r1, r7
	ldr	r3, [r3]
	ldr	r0, .L11+20
	bl	avc_has_perm
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L11+32
	ldr	r2, [r6]
	ldr	r0, [r3]
	ldr	r1, [r4]
	ldr	r3, [r8]
	str	r0, [sp]
	str	r5, [sp, #4]
	ldr	r0, .L11+20
	bl	avc_has_perm
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	SECINITSID_UNLABELED
	.word	MSGQ__WRITE
	.word	LSM_AUDIT_DATA_IPC
	.word	SECCLASS_MSGQ
	.word	selinux_state
	.word	SECCLASS_MSG
	.word	MSG__SEND
	.word	MSGQ__ENQUEUE
	.size	selinux_msg_queue_msgsnd, .-selinux_msg_queue_msgsnd
	.comm	selinux_state,4,4
	.comm	SECINITSID_UNLABELED,4,4
	.comm	SECCLASS_MSGQ,4,4
	.comm	SECCLASS_MSG,4,4
	.comm	MSG__SEND,4,4
	.comm	MSGQ__WRITE,4,4
	.comm	MSGQ__ENQUEUE,4,4
	.comm	LSM_AUDIT_DATA_IPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
