	.file	"extr_selinuxfs.c_sel_write_access.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %s %hu"
.LC1:
	.string	"%x %x %x %x %u %x"
	.text
	.p2align 4
	.type	sel_write_access, @function
sel_write_access:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR SECURITY__COMPUTE_AV[rip]
	mov	edi, DWORD PTR current[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	task_has_security@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.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
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	add	r13, 1
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdi, r13
	call	kzalloc@PLT
	neg	r12d
	mov	r14, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r13
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rcx, rax
	mov	rdx, r14
	mov	rdi, rbp
	lea	r8, 12[rsp]
	lea	rsi, .LC0[rip]
	call	sscanf@PLT
	neg	r12d
	cmp	eax, 3
	je	.L17
.L5:
	mov	rdi, r13
	call	kfree@PLT
.L3:
	mov	rdi, r14
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r14
	call	strlen@PLT
	lea	rdx, 4[rsp]
	mov	rdi, r14
	lea	rsi, 1[rax]
	call	security_context_to_sid@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	rdi, r13
	call	strlen@PLT
	lea	rdx, 8[rsp]
	mov	rdi, r13
	lea	rsi, 1[rax]
	call	security_context_to_sid@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 8[rsp]
	lea	rcx, 16[rsp]
	mov	edi, DWORD PTR 4[rsp]
	call	security_compute_av_user@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdi, rbp
	mov	esi, DWORD PTR SIMPLE_TRANSACTION_LIMIT[rip]
	mov	eax, DWORD PTR 24[rsp]
	mov	r8d, -1
	lea	rdx, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR 36[rsp]
	push	rax
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 48[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 60[rsp]
	mov	ecx, DWORD PTR 64[rsp]
	call	scnprintf@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	r12d, eax
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sel_write_access, .-sel_write_access
	.comm	current,4,4
	.comm	SIMPLE_TRANSACTION_LIMIT,4,4
	.comm	SECURITY__COMPUTE_AV,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_selinuxfs.c_sel_write_access.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s %s %hu\000"
	.align	2
.LC1:
	.ascii	"%x %x %x %x %u %x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sel_write_access, %function
sel_write_access:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L18
	mov	r5, r1
	ldr	r1, .L18+4
	ldr	r0, [r3]
	ldr	r3, .L18+8
	sub	sp, sp, #64
	ldr	r1, [r1]
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bl	task_has_security
	subs	r4, r0, #0
	beq	.L15
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r8, .L18+12
	ldr	r3, .L18+16
	add	r6, r6, #1
	mov	r0, r6
	ldr	r1, [r8]
	ldr	r4, [r3]
	bl	kzalloc
	subs	r7, r0, #0
	rsb	r4, r4, #0
	beq	.L1
	mov	r0, r6
	ldr	r1, [r8]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L3
	ldr	ip, .L18+20
	add	r3, sp, #36
	str	r3, [sp]
	mov	r2, r7
	mov	r3, r6
	mov	r0, r5
	ldr	r1, .L18+24
	ldr	r4, [ip]
	bl	sscanf
	cmp	r0, #3
	rsbne	r4, r4, #0
	beq	.L17
.L5:
	mov	r0, r6
	bl	kfree
.L3:
	mov	r0, r7
	bl	kfree
	b	.L1
.L17:
	mov	r0, r7
	bl	strlen
	add	r2, sp, #28
	add	r1, r0, #1
	mov	r0, r7
	bl	security_context_to_sid
	subs	r4, r0, #0
	blt	.L5
	mov	r0, r6
	bl	strlen
	add	r2, sp, #32
	add	r1, r0, #1
	mov	r0, r6
	bl	security_context_to_sid
	subs	r4, r0, #0
	blt	.L5
	add	r0, sp, #28
	ldm	r0, {r0, r1, r2}
	add	r3, sp, #40
	bl	security_compute_av_user
	mvn	r3, #0
	ldr	r2, [sp, #48]
	str	r3, [sp]
	ldr	lr, [sp, #40]
	ldr	r3, [sp, #52]
	ldr	ip, [sp, #44]
	ldr	r1, .L18+28
	mov	r0, r5
	ldr	r1, [r1]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r2, .L18+32
	ldr	r3, [sp, #56]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	bl	scnprintf
	mov	r4, r0
	b	.L5
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	current
	.word	SECURITY__COMPUTE_AV
	.word	.LC2
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EINVAL
	.word	.LC0
	.word	SIMPLE_TRANSACTION_LIMIT
	.word	.LC1
	.size	sel_write_access, .-sel_write_access
	.comm	current,4,4
	.comm	SIMPLE_TRANSACTION_LIMIT,4,4
	.comm	SECURITY__COMPUTE_AV,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
