	.file	"extr_mft.c_SetNonResidentAttributeDataLength.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error looking up final large MCB entry!\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Highest VCN of record: %I64u\n"
.LC2:
	.string	"LastClusterInDataRun: %I64u\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Error: Unable to allocate requested clusters!\n"
	.align 8
.LC4:
	.string	"Error: Unable to add data run!\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Allocated Size: %I64u\n"
	.text
	.p2align 4
	.globl	SetNonResidentAttributeDataLength
	.type	SetNonResidentAttributeDataLength, @function
SetNonResidentAttributeDataLength:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r15, QWORD PTR [rdi]
	mov	edi, DWORD PTR [r8]
	mov	QWORD PTR [rsp], rdx
	mov	r13d, DWORD PTR STATUS_SUCCESS[rip]
	mov	QWORD PTR 24[rsp], r8
	mov	rsi, r15
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	ROUND_UP@PLT
	mov	rcx, QWORD PTR [r12]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR [rcx]
	mov	edi, DWORD PTR 24[rcx]
	cqo
	idiv	r15
	mov	QWORD PTR 8[rsp], rax
	mov	r14, rax
	call	ASSERT@PLT
	mov	rcx, QWORD PTR [r12]
	mov	rax, QWORD PTR 16[rsp]
	cmp	QWORD PTR [rcx], rax
	jge	.L2
	cqo
	mov	rsi, QWORD PTR 8[rsp]
	idiv	r15
	sub	rax, rsi
	mov	r14, rax
	test	rsi, rsi
	jne	.L3
	mov	QWORD PTR 56[rsp], 0
.L4:
	lea	rdi, .LC2[rip]
	call	DPRINT@PLT
	mov	rax, QWORD PTR [r12]
	lea	rdi, .LC1[rip]
	mov	rsi, QWORD PTR 8[rax]
	call	DPRINT@PLT
	test	r14, r14
	jle	.L16
	lea	rax, 32[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	lea	r15, 40[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r9, QWORD PTR 40[rsp]
	mov	r8, QWORD PTR 32[rsp]
	mov	rdi, rbx
	mov	rcx, rbp
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r12
	call	AddRun@PLT
	mov	edi, eax
	mov	r13d, eax
	call	NT_SUCCESS@PLT
	test	eax, eax
	je	.L18
	mov	rsi, QWORD PTR 40[rsp]
	sub	r14, rsi
	add	rsi, QWORD PTR 32[rsp]
	sub	rsi, 1
	mov	QWORD PTR 48[rsp], rsi
	test	r14, r14
	jle	.L16
.L10:
	mov	rcx, QWORD PTR 8[rsp]
	add	rsi, 1
	mov	rdi, rbx
	mov	r8, r15
	mov	rdx, r14
	call	NtfsAllocateClusters@PLT
	mov	edi, eax
	mov	r13d, eax
	call	NT_SUCCESS@PLT
	test	eax, eax
	jne	.L8
	lea	rdi, .LC3[rip]
	call	DPRINT1@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	jg	.L19
.L11:
	mov	rax, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	lea	rdi, .LC5[rip]
	add	rbp, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR [rcx], rdx
	mov	rsi, rdx
	mov	DWORD PTR 20[rcx], eax
	mov	DWORD PTR 16[rcx], eax
	mov	DWORD PTR 20[rbp], eax
	mov	DWORD PTR 16[rbp], eax
	mov	rax, rdx
	mov	QWORD PTR 0[rbp], rdx
	cqo
	idiv	QWORD PTR [rbx]
	sub	rax, 1
	mov	QWORD PTR 8[rcx], rax
	mov	QWORD PTR 8[rbp], rax
	call	DPRINT@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 88
	.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
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, rbp
	mov	rsi, r12
	mov	rdi, rbx
	cqo
	idiv	r15
	mov	rdx, QWORD PTR [rsp]
	sub	r14, rax
	mov	r8, r14
	call	FreeClusters@PLT
	mov	r13d, eax
.L16:
	mov	rcx, QWORD PTR [r12]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdx, 56[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rsi, QWORD PTR 8[rcx]
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 160
	xor	ecx, ecx
	lea	rdi, 8[r12]
	xor	r8d, r8d
	call	FsRtlLookupLargeMcbEntry@PLT
	pop	rdx
	.cfi_def_cfa_offset 152
	pop	rcx
	.cfi_def_cfa_offset 144
	mov	rsi, QWORD PTR 56[rsp]
	test	eax, eax
	jne	.L4
	lea	rdi, .LC0[rip]
	call	DPRINT1@PLT
	mov	rax, QWORD PTR [r12]
	lea	rdi, .LC1[rip]
	mov	rsi, QWORD PTR 8[rax]
	xor	eax, eax
	call	DPRINT1@PLT
	mov	r13d, DWORD PTR STATUS_INVALID_PARAMETER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC4[rip]
	call	DPRINT1@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SetNonResidentAttributeDataLength, .-SetNonResidentAttributeDataLength
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INVALID_PARAMETER,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_mft.c_SetNonResidentAttributeDataLength.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error looking up final large MCB entry!\012\000"
	.align	2
.LC1:
	.ascii	"Highest VCN of record: %I64u\012\000"
	.align	2
.LC2:
	.ascii	"LastClusterInDataRun: %I64u\012\000"
	.align	2
.LC3:
	.ascii	"Error: Unable to allocate requested clusters!\012\000"
	.align	2
.LC4:
	.ascii	"Error: Unable to add data run!\012\000"
	.align	2
.LC5:
	.ascii	"Allocated Size: %I64u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SetNonResidentAttributeDataLength
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetNonResidentAttributeDataLength, %function
SetNonResidentAttributeDataLength:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #52
	mov	r7, r1
	ldr	r1, [sp, #88]
	ldr	r5, [r0]
	mov	r6, r0
	mov	r0, r1
	ldr	ip, .L22
	mov	r9, r3
	ldr	r3, .L22+4
	str	r1, [sp, #16]
	ldr	r0, [r0]
	mov	r1, r5
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r4, [ip]
	bl	ROUND_UP
	ldr	fp, [r7]
	mov	r10, r0
	mov	r1, r5
	ldr	r0, [fp]
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r0, [fp, #16]
	mov	fp, r3
	bl	ASSERT
	ldr	r2, [r7]
	ldr	r3, [r2]
	cmp	r3, r10
	bge	.L2
	mov	r1, r5
	mov	r0, r10
	str	r2, [sp, #20]
	bl	__aeabi_idiv
	cmp	fp, #0
	ldr	r2, [sp, #20]
	sub	r5, r0, fp
	streq	fp, [sp, #40]
	bne	.L18
.L4:
	mov	r1, fp
	ldr	r0, .L22+8
	bl	DPRINT
	ldr	r3, [r7]
	ldr	r0, .L22+12
	ldr	r1, [r3, #4]
	bl	DPRINT
	cmp	r5, #0
	ble	.L16
	ldr	r1, [sp, #36]
	add	fp, sp, #32
	b	.L10
.L8:
	ldr	r2, [sp, #32]
	ldr	r3, [sp, #28]
	mov	r1, r7
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r9
	mov	r0, r6
	bl	AddRun
	mov	r4, r0
	bl	NT_SUCCESS
	cmp	r0, #0
	beq	.L19
	ldr	r1, [sp, #32]
	ldr	r3, [sp, #28]
	sub	r5, r5, r1
	add	r1, r1, r3
	sub	r1, r1, #1
	cmp	r5, #0
	str	r1, [sp, #36]
	ble	.L16
.L10:
	mov	r2, r5
	add	r1, r1, #1
	add	r3, sp, #28
	mov	r0, r6
	str	fp, [sp]
	bl	NtfsAllocateClusters
	mov	r4, r0
	bl	NT_SUCCESS
	cmp	r0, #0
	bne	.L8
	ldr	r0, .L22+16
	bl	DPRINT1
	b	.L1
.L2:
	bgt	.L20
.L11:
	ldr	r3, [sp, #16]
	add	r5, r9, r8
	ldr	r3, [r3]
	ldr	r1, [r6]
	str	r3, [r2, #12]
	str	r3, [r2, #8]
	str	r10, [r2]
	mov	r0, r10
	str	r10, [r9, r8]
	str	r3, [r5, #12]
	str	r3, [r5, #8]
	str	r2, [sp, #16]
	bl	__aeabi_idiv
	ldr	r2, [sp, #16]
	sub	r0, r0, #1
	str	r0, [r2, #4]
	mov	r1, r10
	str	r0, [r5, #4]
	ldr	r0, .L22+20
	bl	DPRINT
.L1:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r1, r5
	mov	r0, r10
	bl	__aeabi_idiv
	sub	fp, fp, r0
	mov	r3, r9
	mov	r2, r8
	mov	r1, r7
	mov	r0, r6
	str	fp, [sp]
	bl	FreeClusters
	mov	r4, r0
.L16:
	ldr	r2, [r7]
	b	.L11
.L18:
	mov	r3, #0
	ldr	r1, [r2, #4]
	add	r0, r7, #4
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #40
	bl	FsRtlLookupLargeMcbEntry
	cmp	r0, #0
	ldrne	fp, [sp, #40]
	bne	.L4
	ldr	r0, .L22+24
	bl	DPRINT1
	ldr	r3, [r7]
	ldr	r0, .L22+12
	ldr	r1, [r3, #4]
	bl	DPRINT1
	ldr	r3, .L22+28
	ldr	r4, [r3]
	b	.L1
.L19:
	ldr	r0, .L22+32
	bl	DPRINT1
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	STATUS_SUCCESS
	.word	.LC6
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.word	.LC5
	.word	.LC0
	.word	STATUS_INVALID_PARAMETER
	.word	.LC4
	.size	SetNonResidentAttributeDataLength, .-SetNonResidentAttributeDataLength
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INVALID_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
