	.file	"extr_dsl_dataset.c_dsl_dataset_space.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dsl_dataset_space
	.type	dsl_dataset_space, @function
dsl_dataset_space:
.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, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	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, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	dsl_dataset_phys@PLT
	mov	edi, DWORD PTR 20[rbp]
	mov	ecx, DWORD PTR TRUE[rip]
	xor	edx, edx
	mov	rax, QWORD PTR [rax]
	xor	esi, esi
	mov	QWORD PTR 0[r13], rax
	call	dsl_dir_space_available@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	mov	r15, QWORD PTR 0[rbp]
	call	dsl_dataset_phys@PLT
	cmp	r15, QWORD PTR 8[rax]
	jg	.L10
.L2:
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	je	.L3
	mov	rax, QWORD PTR 0[r13]
	cmp	rsi, rax
	jg	.L11
	mov	QWORD PTR [rbx], 0
.L3:
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR RW_READER[rip]
	lea	r13, 16[rbp]
	mov	rdi, r13
	call	rrw_enter@PLT
	mov	rdi, rbp
	call	dsl_dataset_phys@PLT
	lea	rdi, 16[rax]
	call	BP_GET_FILL@PLT
	mov	esi, DWORD PTR FTAG[rip]
	mov	rdi, r13
	mov	QWORD PTR [r12], rax
	call	rrw_exit@PLT
	mov	rax, QWORD PTR DN_MAX_OBJECT[rip]
	sub	rax, QWORD PTR [r12]
	mov	QWORD PTR [r14], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r15, QWORD PTR 0[rbp]
	call	dsl_dataset_phys@PLT
	sub	r15, QWORD PTR 8[rax]
	add	QWORD PTR [rbx], r15
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR [rbx]
	sub	rsi, rax
	call	MIN@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dsl_dataset_space, .-dsl_dataset_space
	.comm	TRUE,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	DN_MAX_OBJECT,8,8
	.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_dsl_dataset.c_dsl_dataset_space.c"
	.text
	.align	2
	.global	dsl_dataset_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_dataset_space, %function
dsl_dataset_space:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [sp, #32]
	mov	r4, r0
	mov	r7, r1
	mov	r5, r2
	mov	r6, r3
	bl	dsl_dataset_phys
	mov	r2, #0
	ldr	r1, [r0]
	ldr	r3, .L12
	str	r1, [r7]
	ldr	r3, [r3]
	mov	r1, r2
	ldr	r0, [r4, #12]
	bl	dsl_dir_space_available
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5]
	ldr	r9, [r4]
	bl	dsl_dataset_phys
	ldr	r3, [r0, #4]
	cmp	r9, r3
	bgt	.L10
.L2:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r1, [r7]
	cmp	r3, r1
	movle	r3, #0
	strle	r3, [r5]
	bgt	.L11
.L3:
	ldr	r3, .L12+4
	ldr	r7, .L12+8
	add	r5, r4, #8
	ldr	r1, [r3]
	ldr	r2, [r7]
	mov	r0, r5
	bl	rrw_enter
	mov	r0, r4
	bl	dsl_dataset_phys
	add	r0, r0, #8
	bl	BP_GET_FILL
	ldr	r1, [r7]
	str	r0, [r6]
	mov	r0, r5
	bl	rrw_exit
	ldr	r3, .L12+12
	ldr	r2, [r6]
	ldr	r3, [r3]
	sub	r3, r3, r2
	str	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r4
	ldr	r9, [r4]
	bl	dsl_dataset_phys
	ldr	r2, [r0, #4]
	ldr	r3, [r5]
	sub	r9, r9, r2
	add	r3, r3, r9
	str	r3, [r5]
	b	.L2
.L11:
	ldr	r0, [r5]
	sub	r1, r3, r1
	bl	MIN
	str	r0, [r5]
	b	.L3
.L13:
	.align	2
.L12:
	.word	TRUE
	.word	RW_READER
	.word	FTAG
	.word	DN_MAX_OBJECT
	.size	dsl_dataset_space, .-dsl_dataset_space
	.comm	TRUE,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	DN_MAX_OBJECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
