	.file	"extr_libfat.c_fatInit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	":/"
	.text
	.p2align 4
	.globl	fatInit
	.type	fatInit, @function
fatInit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rcx, QWORD PTR _FAT_disc_interfaces[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR [rcx], 0
	je	.L8
	mov	r14d, edi
	mov	r15d, esi
	mov	rax, rcx
	xor	ebx, ebx
	mov	r13d, -1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	rdx
	mov	rsi, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR _FAT_disc_interfaces[rip]
	mov	r8d, DWORD PTR DEFAULT_SECTORS_PAGE[rip]
	xor	edx, edx
	mov	ecx, r14d
	mov	rdi, QWORD PTR [rax+r12]
	call	fatMount@PLT
	test	rax, rax
	je	.L4
	cmp	r13d, -1
	cmove	r13d, ebx
.L4:
	mov	rcx, QWORD PTR _FAT_disc_interfaces[rip]
	add	rbx, 1
	lea	rax, 16[rcx+r12]
	cmp	QWORD PTR [rax], 0
	je	.L6
.L2:
	mov	rdx, QWORD PTR 8[rax]
	mov	r12, rbx
	sal	r12, 4
	test	rdx, rdx
	jne	.L7
.L6:
	cmp	r13d, -1
	je	.L8
	mov	eax, 1
	test	r15d, r15d
	jne	.L33
.L1:
	mov	rdi, QWORD PTR -56[rbp]
	xor	rdi, QWORD PTR fs:40
	jne	.L34
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	movsx	rax, DWORD PTR PATH_MAX[rip]
	mov	rdi, rsp
	mov	rbx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
.L9:
	cmp	rsp, rax
	je	.L10
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	jmp	.L1
.L10:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L11:
	movsx	r13, r13d
	mov	rdi, rsp
	sal	r13, 4
	mov	rsi, QWORD PTR [rcx+r13]
	call	strcpy@PLT
	mov	rdi, rsp
	lea	rsi, .LC0[rip]
	call	strcat@PLT
	mov	rdi, rsp
	call	chdir@PLT
	mov	eax, 1
	mov	rsp, rbx
	jmp	.L1
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fatInit, .-fatInit
	.comm	__system_argv,8,8
	.comm	_FAT_disc_interfaces,8,8
	.comm	PATH_MAX,4,4
	.comm	DEFAULT_SECTORS_PAGE,4,4
	.comm	ARGV_MAGIC,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_libfat.c_fatInit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	":/\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fatInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatInit, %function
fatInit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r6, .L25
	mov	r9, r1
	ldr	r2, [r6]
	ldr	r1, .L25+4
	ldr	r3, [r2]
	ldr	r1, [r1]
	str	r1, [fp, #-40]
	mov	r1,#0
	cmp	r3, #0
	beq	.L7
	mov	r7, r0
	mov	r3, r2
	mov	r4, #0
	mvn	r5, #0
	ldr	r8, .L25+8
	b	.L2
.L6:
	blx	r3
	subs	r1, r0, #0
	beq	.L4
	ldr	r2, [r6]
	ldr	r3, [r8]
	ldr	r0, [r2, r10]
	str	r3, [sp]
	mov	r2, #0
	mov	r3, r7
	bl	fatMount
	cmn	r5, #1
	moveq	r3, #1
	movne	r3, #0
	cmp	r0, #0
	moveq	r3, #0
	cmp	r3, #0
	movne	r5, r4
.L4:
	ldr	r2, [r6]
	add	r3, r10, #8
	ldr	r1, [r2, r3]
	add	r4, r4, #1
	cmp	r1, #0
	add	r3, r2, r3
	beq	.L5
.L2:
	ldr	r3, [r3, #4]
	lsl	r10, r4, #3
	cmp	r3, #0
	bne	.L6
.L5:
	cmn	r5, #1
	beq	.L7
	cmp	r9, #0
	moveq	r0, #1
	bne	.L23
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, .L25+12
	mov	r6, sp
	ldr	r3, [r3]
	ldr	r1, [r2, r5, lsl #3]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r4, sp, #8
	mov	r0, r4
	bl	strcpy
	mov	r0, r4
	bl	strlen
	mov	r2, #3
	ldr	r1, .L25+16
	add	r0, r4, r0
	bl	memcpy
	mov	r0, r4
	bl	chdir
	mov	r0, #1
	mov	sp, r6
	b	.L1
.L7:
	mov	r0, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	_FAT_disc_interfaces
	.word	.LC1
	.word	DEFAULT_SECTORS_PAGE
	.word	PATH_MAX
	.word	.LC0
	.size	fatInit, .-fatInit
	.comm	__system_argv,4,4
	.comm	_FAT_disc_interfaces,4,4
	.comm	PATH_MAX,4,4
	.comm	DEFAULT_SECTORS_PAGE,4,4
	.comm	ARGV_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
