	.file	"extr_scrub.c_pause_scrub.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pause_scrub
	.type	pause_scrub, @function
pause_scrub:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR SE_MANAGE_VOLUME_PRIVILEGE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	RtlConvertLongToLuid@PLT
	mov	esi, ebp
	mov	edi, eax
	call	SeSinglePrivilegeCheck@PLT
	test	eax, eax
	je	.L9
	mov	edx, DWORD PTR 24[rbx]
	test	edx, edx
	je	.L5
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L5
	mov	DWORD PTR [rbx], 1
	lea	rdi, 20[rbx]
	call	KeClearEvent@PLT
	mov	rdi, rsp
	call	KeQuerySystemTime@PLT
	mov	eax, DWORD PTR 16[rbx]
	add	eax, DWORD PTR [rsp]
	sub	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR STATUS_SUCCESS[rip]
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR STATUS_DEVICE_NOT_READY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR STATUS_PRIVILEGE_NOT_HELD[rip]
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pause_scrub, .-pause_scrub
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_PRIVILEGE_NOT_HELD,4,4
	.comm	STATUS_DEVICE_NOT_READY,4,4
	.comm	SE_MANAGE_VOLUME_PRIVILEGE,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_scrub.c_pause_scrub.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pause_scrub
	.syntax unified
	.arm
	.fpu softvfp
	.type	pause_scrub, %function
pause_scrub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r1
	ldr	r3, .L11
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r3, .L11+4
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	RtlConvertLongToLuid
	mov	r1, r5
	bl	SeSinglePrivilegeCheck
	cmp	r0, #0
	beq	.L9
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
	mov	r0, r4
	str	r3, [r0], #12
	bl	KeClearEvent
	mov	r0, sp
	bl	KeQuerySystemTime
	ldmib	r4, {r0, r3}
	ldr	r2, [sp]
	ldr	r1, .L11+8
	sub	r2, r2, r0
	add	r3, r3, r2
	ldr	r0, [r1]
	str	r3, [r4, #8]
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	b	.L1
.L9:
	ldr	r3, .L11+16
	ldr	r0, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SE_MANAGE_VOLUME_PRIVILEGE
	.word	.LC0
	.word	STATUS_SUCCESS
	.word	STATUS_DEVICE_NOT_READY
	.word	STATUS_PRIVILEGE_NOT_HELD
	.size	pause_scrub, .-pause_scrub
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_PRIVILEGE_NOT_HELD,4,4
	.comm	STATUS_DEVICE_NOT_READY,4,4
	.comm	SE_MANAGE_VOLUME_PRIVILEGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
