	.file	"extr_mount.c_tomoyo_mount_permission.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"<NULL>"
	.text
	.p2align 4
	.globl	tomoyo_mount_permission
	.type	tomoyo_mount_permission, @function
tomoyo_mount_permission:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR TOMOYO_MAC_FILE_MOUNT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r15, 20[rsp]
	mov	rdi, r15
	call	tomoyo_init_request_info@PLT
	cmp	rax, QWORD PTR TOMOYO_CONFIG_DISABLED[rip]
	je	.L1
	mov	rax, QWORD PTR MS_MGC_MSK[rip]
	mov	rdx, rax
	and	rdx, rbx
	cmp	rdx, QWORD PTR MS_MGC_VAL[rip]
	jne	.L3
	not	rax
	and	rbx, rax
.L3:
	mov	rax, QWORD PTR MS_REMOUNT[rip]
	test	rax, rbx
	je	.L4
	mov	rcx, QWORD PTR TOMOYO_MOUNT_REMOUNT[rip]
	mov	rdx, QWORD PTR tomoyo_mounts[rip]
	not	rax
	and	rbx, rax
	mov	r12, QWORD PTR [rdx+rcx*8]
.L5:
	test	r12, r12
	lea	rax, .LC0[rip]
	cmove	r12, rax
	xor	eax, eax
	call	tomoyo_read_lock@PLT
	mov	rdi, r15
	mov	r8, rbx
	mov	rdx, r14
	mov	rcx, r12
	mov	rsi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	tomoyo_mount_acl@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	r13d, eax
	mov	edi, r9d
	call	tomoyo_read_unlock@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR MS_BIND[rip]
	test	rax, rbx
	jne	.L22
	mov	rax, QWORD PTR MS_SHARED[rip]
	mov	rdx, QWORD PTR MS_PRIVATE[rip]
	mov	rsi, QWORD PTR MS_SLAVE[rip]
	mov	r8, QWORD PTR MS_UNBINDABLE[rip]
	test	rax, rbx
	je	.L7
	or	rdx, rsi
	or	rdx, r8
	test	rdx, rbx
	jne	.L10
	mov	rcx, QWORD PTR TOMOYO_MOUNT_MAKE_SHARED[rip]
	mov	rdx, QWORD PTR tomoyo_mounts[rip]
	not	rax
	and	rbx, rax
	mov	r12, QWORD PTR [rdx+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rcx, QWORD PTR TOMOYO_MOUNT_BIND[rip]
	mov	rdx, QWORD PTR tomoyo_mounts[rip]
	not	rax
	and	rbx, rax
	mov	r12, QWORD PTR [rdx+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	test	rbx, rdx
	jne	.L23
	test	rbx, rsi
	je	.L11
	or	rdx, rax
	or	rdx, r8
	test	rdx, rbx
	jne	.L10
	mov	rax, QWORD PTR tomoyo_mounts[rip]
	mov	rdx, QWORD PTR TOMOYO_MOUNT_MAKE_SLAVE[rip]
	mov	r12, QWORD PTR [rax+rdx*8]
	mov	rax, rsi
	not	rax
	and	rbx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	or	rax, rsi
	or	rax, r8
	test	rax, rbx
	jne	.L10
	mov	rcx, QWORD PTR TOMOYO_MOUNT_MAKE_PRIVATE[rip]
	mov	rax, QWORD PTR tomoyo_mounts[rip]
	not	rdx
	and	rbx, rdx
	mov	r12, QWORD PTR [rax+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	test	rbx, r8
	je	.L12
	or	rax, rdx
	mov	rcx, rax
	or	rcx, rsi
	test	rcx, rbx
	jne	.L10
	mov	rdx, QWORD PTR TOMOYO_MOUNT_MAKE_UNBINDABLE[rip]
	mov	rax, QWORD PTR tomoyo_mounts[rip]
	mov	r12, QWORD PTR [rax+rdx*8]
	mov	rdx, r8
	not	rdx
	and	rbx, rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR MS_MOVE[rip]
	test	rax, rbx
	je	.L5
	mov	rcx, QWORD PTR TOMOYO_MOUNT_MOVE[rip]
	mov	rdx, QWORD PTR tomoyo_mounts[rip]
	not	rax
	and	rbx, rax
	mov	r12, QWORD PTR [rdx+rcx*8]
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tomoyo_mount_permission, .-tomoyo_mount_permission
	.comm	tomoyo_mounts,8,8
	.comm	TOMOYO_MOUNT_REMOUNT,8,8
	.comm	TOMOYO_MOUNT_MOVE,8,8
	.comm	TOMOYO_MOUNT_MAKE_UNBINDABLE,8,8
	.comm	TOMOYO_MOUNT_MAKE_SLAVE,8,8
	.comm	TOMOYO_MOUNT_MAKE_SHARED,8,8
	.comm	TOMOYO_MOUNT_MAKE_PRIVATE,8,8
	.comm	TOMOYO_MOUNT_BIND,8,8
	.comm	TOMOYO_MAC_FILE_MOUNT,4,4
	.comm	TOMOYO_CONFIG_DISABLED,8,8
	.comm	MS_UNBINDABLE,8,8
	.comm	MS_SLAVE,8,8
	.comm	MS_SHARED,8,8
	.comm	MS_REMOUNT,8,8
	.comm	MS_PRIVATE,8,8
	.comm	MS_MOVE,8,8
	.comm	MS_MGC_VAL,8,8
	.comm	MS_MGC_MSK,8,8
	.comm	MS_BIND,8,8
	.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_mount.c_tomoyo_mount_permission.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"<NULL>\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tomoyo_mount_permission
	.syntax unified
	.arm
	.fpu softvfp
	.type	tomoyo_mount_permission, %function
tomoyo_mount_permission:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r2
	ldr	r2, .L25
	sub	sp, sp, #20
	mov	r4, r3
	ldr	r3, .L25+4
	mov	r6, r0
	mov	r7, r1
	ldr	r2, [r2]
	mov	r1, #0
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	tomoyo_init_request_info
	ldr	r3, .L25+8
	ldr	r3, [r3]
	cmp	r0, r3
	moveq	r4, #0
	beq	.L1
	ldr	r3, .L25+12
	ldr	r2, .L25+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r1, r3, r4
	cmp	r1, r2
	biceq	r4, r4, r3
	ldr	r3, .L25+20
	ldr	r3, [r3]
	tst	r3, r4
	beq	.L4
	ldr	r1, .L25+24
.L20:
	ldr	r2, .L25+28
	ldr	r1, [r1]
	ldr	r2, [r2]
	bic	r4, r4, r3
	ldr	r5, [r2, r1, lsl #2]
.L5:
	ldr	r3, .L25+32
	cmp	r5, #0
	moveq	r5, r3
	bl	tomoyo_read_lock
	mov	r3, r5
	str	r4, [sp]
	mov	r5, r0
	mov	r2, r7
	mov	r1, r6
	add	r0, sp, #8
	bl	tomoyo_mount_acl
	mov	r4, r0
	mov	r0, r5
	bl	tomoyo_read_unlock
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	ldr	r3, .L25+36
	ldr	r3, [r3]
	tst	r3, r4
	bne	.L23
	ldr	r3, .L25+40
	ldr	ip, .L25+44
	ldr	r2, [r3]
	ldr	r0, .L25+48
	ldr	r1, .L25+52
	tst	r2, r4
	ldr	ip, [ip]
	ldr	r3, [r0]
	ldr	r1, [r1]
	beq	.L7
	orr	r3, ip, r3
	orr	r1, r3, r1
	tst	r1, r4
	bne	.L10
	ldr	r1, .L25+56
	ldr	r3, .L25+28
	ldr	r1, [r1]
	ldr	r3, [r3]
	bic	r4, r4, r2
	ldr	r5, [r3, r1, lsl #2]
	b	.L5
.L23:
	ldr	r1, .L25+60
	b	.L20
.L7:
	tst	r4, ip
	bne	.L24
	tst	r4, r3
	beq	.L11
	orr	r2, r2, ip
	orr	r1, r2, r1
	tst	r1, r4
	ldreq	r1, .L25+64
	beq	.L20
.L10:
	ldr	r3, .L25+68
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L24:
	orr	r3, r2, r3
	orr	r1, r3, r1
	tst	r1, r4
	bne	.L10
	ldr	r2, .L25+72
	ldr	r3, .L25+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	bic	r4, r4, ip
	ldr	r5, [r3, r2, lsl #2]
	b	.L5
.L11:
	tst	r4, r1
	beq	.L12
	orr	r2, r2, ip
	orr	r3, r2, r3
	tst	r3, r4
	bne	.L10
	ldr	r2, .L25+76
	ldr	r3, .L25+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	bic	r4, r4, r1
	ldr	r5, [r3, r2, lsl #2]
	b	.L5
.L12:
	ldr	r3, .L25+80
	ldr	r3, [r3]
	tst	r3, r4
	beq	.L5
	ldr	r1, .L25+84
	b	.L20
.L22:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	TOMOYO_MAC_FILE_MOUNT
	.word	.LC1
	.word	TOMOYO_CONFIG_DISABLED
	.word	MS_MGC_MSK
	.word	MS_MGC_VAL
	.word	MS_REMOUNT
	.word	TOMOYO_MOUNT_REMOUNT
	.word	tomoyo_mounts
	.word	.LC0
	.word	MS_BIND
	.word	MS_SHARED
	.word	MS_PRIVATE
	.word	MS_SLAVE
	.word	MS_UNBINDABLE
	.word	TOMOYO_MOUNT_MAKE_SHARED
	.word	TOMOYO_MOUNT_BIND
	.word	TOMOYO_MOUNT_MAKE_SLAVE
	.word	EINVAL
	.word	TOMOYO_MOUNT_MAKE_PRIVATE
	.word	TOMOYO_MOUNT_MAKE_UNBINDABLE
	.word	MS_MOVE
	.word	TOMOYO_MOUNT_MOVE
	.size	tomoyo_mount_permission, .-tomoyo_mount_permission
	.comm	tomoyo_mounts,4,4
	.comm	TOMOYO_MOUNT_REMOUNT,4,4
	.comm	TOMOYO_MOUNT_MOVE,4,4
	.comm	TOMOYO_MOUNT_MAKE_UNBINDABLE,4,4
	.comm	TOMOYO_MOUNT_MAKE_SLAVE,4,4
	.comm	TOMOYO_MOUNT_MAKE_SHARED,4,4
	.comm	TOMOYO_MOUNT_MAKE_PRIVATE,4,4
	.comm	TOMOYO_MOUNT_BIND,4,4
	.comm	TOMOYO_MAC_FILE_MOUNT,4,4
	.comm	TOMOYO_CONFIG_DISABLED,4,4
	.comm	MS_UNBINDABLE,4,4
	.comm	MS_SLAVE,4,4
	.comm	MS_SHARED,4,4
	.comm	MS_REMOUNT,4,4
	.comm	MS_PRIVATE,4,4
	.comm	MS_MOVE,4,4
	.comm	MS_MGC_VAL,4,4
	.comm	MS_MGC_MSK,4,4
	.comm	MS_BIND,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
