	.file	"extr_hooks.c_selinux_file_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	selinux_file_ioctl, @function
selinux_file_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	current_cred@PLT
	lea	edx, -128[r12]
	mov	rdi, rax
	cmp	edx, 10
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L6-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR FILE__GETATTR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	file_has_perm@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	xor	edx, edx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	file_has_perm@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR CAP_OPT_NONE[rip]
	mov	esi, DWORD PTR CAP_SYS_TTY_CONFIG[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	ecx, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	cred_has_capability@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR FILE__SETATTR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	file_has_perm@PLT
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR FILE__IOCTL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	ecx, r12d
	mov	rsi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ioctl_has_perm@PLT
	.cfi_endproc
.LFE0:
	.size	selinux_file_ioctl, .-selinux_file_ioctl
	.comm	FILE__SETATTR,4,4
	.comm	FILE__IOCTL,4,4
	.comm	FILE__GETATTR,4,4
	.comm	CAP_SYS_TTY_CONFIG,4,4
	.comm	CAP_OPT_NONE,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_file_ioctl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	selinux_file_ioctl, %function
selinux_file_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	current_cred
	sub	r3, r4, #128
	cmp	r3, #10
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L7
	.word	.L6
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L5
	.word	.L5
	.word	.L3
	.word	.L3
.L3:
	ldr	r3, .L10
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r2, [r3]
	b	file_has_perm
.L5:
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	mov	r2, #0
	b	file_has_perm
.L7:
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #1
	pop	{r4, r5, r6, lr}
	b	cred_has_capability
.L6:
	ldr	r3, .L10+12
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r2, [r3]
	b	file_has_perm
.L2:
	ldr	r2, .L10+16
	mov	r3, r4
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r2, [r2]
	b	ioctl_has_perm
.L11:
	.align	2
.L10:
	.word	FILE__GETATTR
	.word	CAP_SYS_TTY_CONFIG
	.word	CAP_OPT_NONE
	.word	FILE__SETATTR
	.word	FILE__IOCTL
	.size	selinux_file_ioctl, .-selinux_file_ioctl
	.comm	FILE__SETATTR,4,4
	.comm	FILE__IOCTL,4,4
	.comm	FILE__GETATTR,4,4
	.comm	CAP_SYS_TTY_CONFIG,4,4
	.comm	CAP_OPT_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
