	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mount_sd_fat                   ## -- Begin function mount_sd_fat
	.p2align	4, 0x90
_mount_sd_fat:                          ## @mount_sd_fat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.6:
	xorl	%eax, %eax
	callq	_FSInit
	movq	%r14, %rdi
	callq	_FSInitCmdBlock
	movl	$-1, %r12d
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_FSAddClient
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_MountFS
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_sd_fat_add_device
	movl	%eax, %r12d
	movq	-40(%rbp), %rdi
	jmp	LBB0_8
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	movl	$-2, %r12d
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
LBB0_8:
	callq	_free
LBB0_9:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mount_sd_fat                   ; -- Begin function mount_sd_fat
	.p2align	2
_mount_sd_fat:                          ; @mount_sd_fat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
	mov	w0, #4
	bl	_malloc
	mov	x20, x0
	mov	w0, #4
	bl	_malloc
	mov	x19, x0
	cbz	x20, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
	bl	_FSInit
	mov	x0, x19
	bl	_FSInitCmdBlock
	mov	w22, #-1
	mov	x0, x20
	mov	w1, #-1
	bl	_FSAddClient
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_MountFS
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_sd_fat_add_device
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_9
LBB0_4:
	cbz	x20, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_free
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	w22, #-2
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
