	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fatInit                        ## -- Begin function fatInit
	.p2align	4, 0x90
_fatInit:                               ## @fatInit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__FAT_disc_interfaces@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movl	%edi, %r15d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	$-1, %ebx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	incl	%r14d
	cmpq	$0, 16(%rax,%r13)
	leaq	16(%r13), %r13
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%r13), %rdi
	movq	_DEFAULT_SECTORS_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rax, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_fatMount
	testl	%ebx, %ebx
	movl	%ebx, %ecx
	cmovsl	%r14d, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	jmp	LBB0_2
LBB0_6:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.7:
	movl	$1, %r15d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.8:
	movq	%rsp, %r13
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r12), %rax
	movl	%ebx, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	%r14, %rdi
	callq	_chdir
	movq	%r13, %rsp
	jmp	LBB0_11
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__FAT_disc_interfaces,8,3       ## @_FAT_disc_interfaces
	.comm	_DEFAULT_SECTORS_PAGE,4,2       ## @DEFAULT_SECTORS_PAGE
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":/"

	.comm	_ARGV_MAGIC,8,3                 ## @ARGV_MAGIC
	.comm	___system_argv,8,3              ## @__system_argv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fatInit                        ; -- Begin function fatInit
	.p2align	2
_fatInit:                               ; @fatInit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, __FAT_disc_interfaces@GOTPAGE
Lloh4:
	ldr	x21, [x21, __FAT_disc_interfaces@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w23, #0
	mov	x24, #0
	mov	w22, #-1
Lloh5:
	adrp	x25, _DEFAULT_SECTORS_PAGE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _DEFAULT_SECTORS_PAGE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	add	x9, x8, x24
	ldr	x9, [x9, #16]
	add	x24, x24, #16
	add	w23, w23, #1
	cbz	x9, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	blr	x8
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x0, [x8, x24]
	ldr	w4, [x25]
	mov	w2, #0
	mov	x3, x20
	bl	_fatMount
	cmp	w22, #0
	ccmp	x0, #0, #4, lt
	csel	w22, w23, w22, ne
	b	LBB0_2
LBB0_6:
	tbnz	w22, #31, LBB0_9
; %bb.7:
	cbz	w19, LBB0_12
; %bb.8:
	mov	x20, sp
Lloh7:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	x8, [x21]
	mov	w9, w22
	lsl	x9, x9, #4
	ldr	x1, [x8, x9]
	mov	x0, x19
	bl	_strcpy
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcat
	mov	x0, x19
	bl	_chdir
	mov	w0, #1
	mov	sp, x20
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #1
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	__FAT_disc_interfaces,8,3       ; @_FAT_disc_interfaces
	.comm	_DEFAULT_SECTORS_PAGE,4,2       ; @DEFAULT_SECTORS_PAGE
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":/"

	.comm	_ARGV_MAGIC,8,3                 ; @ARGV_MAGIC
	.comm	___system_argv,8,3              ; @__system_argv
.subsections_via_symbols
