	.file	"extr_iosuhax_devoptab.c_fs_dev_statvfs_r.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fs_dev_statvfs_r, @function
fs_dev_statvfs_r:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	fs_dev_get_device_data@PLT
	test	r13, r13
	je	.L8
	mov	rbp, rax
	test	rax, rax
	je	.L11
	test	rbx, rbx
	je	.L12
	mov	edi, DWORD PTR [rax]
	call	OSLockMutex@PLT
	mov	edx, 48
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	fs_dev_real_path@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
	mov	edi, DWORD PTR 4[rbp]
	xor	edx, edx
	lea	rcx, 4[rsp]
	mov	rsi, rax
	call	IOSUHAX_FSA_GetDeviceInfo@PLT
	mov	rdi, r12
	mov	r14d, eax
	call	free@PLT
	test	r14d, r14d
	js	.L14
	movabs	rax, 2199023256064
	mov	QWORD PTR 20[rbx], -1
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 28[rbx], ebp
	mov	edi, DWORD PTR 0[rbp]
	sar	eax, 9
	mov	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 8[rbx], eax
	mov	DWORD PTR 16[rbx], eax
	mov	DWORD PTR 12[rbx], eax
	mov	DWORD PTR 32[rbx], 255
	call	OSUnlockMutex@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR 0[r13], eax
	mov	eax, -1
	jmp	.L1
.L14:
	mov	DWORD PTR 0[r13], r14d
	mov	edi, DWORD PTR 0[rbp]
	call	OSUnlockMutex@PLT
	mov	eax, -1
	jmp	.L1
.L11:
	mov	eax, DWORD PTR ENODEV[rip]
	mov	DWORD PTR 0[r13], eax
	mov	eax, -1
	jmp	.L1
.L8:
	mov	eax, -1
	jmp	.L1
.L13:
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[r13], eax
	call	OSUnlockMutex@PLT
	mov	eax, -1
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fs_dev_statvfs_r, .-fs_dev_statvfs_r
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.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_iosuhax_devoptab.c_fs_dev_statvfs_r.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fs_dev_statvfs_r, %function
fs_dev_statvfs_r:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r3, .L16
	sub	sp, sp, #8
	mov	r0, r1
	mov	r6, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	fs_dev_get_device_data
	cmp	r7, #0
	beq	.L8
	cmp	r0, #0
	mov	r5, r0
	beq	.L11
	cmp	r4, #0
	beq	.L12
	ldr	r0, [r0]
	bl	OSLockMutex
	mov	r2, #40
	mov	r1, #0
	mov	r0, r4
	bl	memset
	mov	r0, r6
	mov	r1, r5
	bl	fs_dev_real_path
	subs	r6, r0, #0
	beq	.L13
	mov	r3, sp
	mov	r2, #0
	mov	r1, r6
	ldr	r0, [r5, #4]
	bl	IOSUHAX_FSA_GetDeviceInfo
	mov	r8, r0
	mov	r0, r6
	bl	free
	cmp	r8, #0
	blt	.L14
	mov	r1, #512
	mvn	r2, #0
	mov	r6, #0
	mov	ip, #255
	ldr	r3, [sp]
	ldr	r0, [r5]
	asr	r3, r3, #9
	str	r5, [r4, #28]
	str	r3, [r4, #8]
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	str	r1, [r4]
	str	r1, [r4, #4]
	str	r2, [r4, #20]
	str	r2, [r4, #24]
	str	r6, [r4, #36]
	str	ip, [r4, #32]
	bl	OSUnlockMutex
	mov	r0, r6
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L16+4
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	b	.L1
.L14:
	ldr	r0, [r5]
	str	r8, [r7]
	bl	OSUnlockMutex
	mvn	r0, #0
	b	.L1
.L11:
	ldr	r3, .L16+8
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	b	.L1
.L8:
	mvn	r0, #0
	b	.L1
.L13:
	ldr	r3, .L16+12
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [r7]
	bl	OSUnlockMutex
	mvn	r0, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	EINVAL
	.word	ENODEV
	.word	ENOMEM
	.size	fs_dev_statvfs_r, .-fs_dev_statvfs_r
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
