	.file	"extr_lsm.c_apparmor_getprocattr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"current"
.LC1:
	.string	"prev"
.LC2:
	.string	"exec"
	.text
	.p2align 4
	.type	apparmor_getprocattr, @function
apparmor_getprocattr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR ENOENT[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	get_task_cred@PLT
	mov	edi, DWORD PTR current[rip]
	mov	r13, rax
	call	task_ctx@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	strcmp@PLT
	test	rax, rax
	jne	.L2
	mov	rdi, r13
	neg	r12d
	call	cred_label@PLT
	mov	rdi, rax
	call	aa_get_newest_label@PLT
	mov	rbp, rax
	test	rbp, rbp
	je	.L6
.L17:
	mov	rsi, r14
	mov	rdi, rbp
	call	aa_getprocattr@PLT
	mov	r12d, eax
.L6:
	mov	rdi, rbp
	call	aa_put_label@PLT
	mov	rdi, r13
	call	put_cred@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	jne	.L15
.L4:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L5
.L15:
	call	aa_get_newest_label@PLT
	neg	r12d
	mov	rbp, rax
	test	rbp, rbp
	jne	.L17
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12d, DWORD PTR EINVAL[rip]
	xor	ebp, ebp
	neg	r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	apparmor_getprocattr, .-apparmor_getprocattr
	.comm	current,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_lsm.c_apparmor_getprocattr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"current\000"
	.align	2
.LC1:
	.ascii	"prev\000"
	.align	2
.LC2:
	.ascii	"exec\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apparmor_getprocattr, %function
apparmor_getprocattr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r8, r2
	ldr	r5, [r3]
	bl	get_task_cred
	ldr	r3, .L19+4
	mov	r6, r0
	ldr	r0, [r3]
	bl	task_ctx
	ldr	r1, .L19+8
	mov	r7, r0
	mov	r0, r4
	bl	strcmp
	cmp	r0, #0
	beq	.L17
	mov	r0, r4
	ldr	r1, .L19+12
	bl	strcmp
	cmp	r0, #0
	bne	.L4
	ldr	r0, [r7, #4]
	cmp	r0, #0
	bne	.L15
.L4:
	mov	r0, r4
	ldr	r1, .L19+16
	bl	strcmp
	cmp	r0, #0
	beq	.L18
.L5:
	mov	r7, #0
	ldr	r3, .L19+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
	mov	r0, r7
	bl	aa_put_label
	mov	r0, r6
	bl	put_cred
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r0, [r7]
	cmp	r0, #0
	beq	.L5
.L15:
	bl	aa_get_newest_label
	mov	r7, r0
.L3:
	cmp	r7, #0
	rsbeq	r4, r5, #0
	beq	.L6
	mov	r1, r8
	mov	r0, r7
	bl	aa_getprocattr
	mov	r4, r0
	b	.L6
.L17:
	mov	r0, r6
	bl	cred_label
	bl	aa_get_newest_label
	mov	r7, r0
	b	.L3
.L20:
	.align	2
.L19:
	.word	ENOENT
	.word	current
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	EINVAL
	.size	apparmor_getprocattr, .-apparmor_getprocattr
	.comm	current,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
