	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FatDetermineFatType            ## -- Begin function FatDetermineFatType
	.p2align	4, 0x90
_FatDetermineFatType:                   ## @FatDetermineFatType
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	28(%r13), %edi
	callq	_SWAPW
	movl	%eax, %ebx
	shll	$5, %ebx
	movl	24(%r13), %edi
	callq	_SWAPW
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	decl	%ebx
	movl	24(%r13), %edi
	callq	_SWAPW
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movl	20(%r13), %edi
	callq	_SWAPW
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	20(%r13), %edi
	callq	_SWAPW
	jmp	LBB0_7
LBB0_1:
	movl	%r14d, %eax
	cltd
	idivl	(%r13)
	cmpl	$65525, %eax                    ## imm = 0xFFF5
	jge	LBB0_2
## %bb.3:
	movq	_FATX16@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_6:
	movl	(%r13), %edi
	callq	_SWAPD
LBB0_7:
	movl	%eax, %r15d
	movl	16(%r13), %edi
	callq	_SWAPW
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	16(%r13), %edi
	callq	_SWAPW
	jmp	LBB0_10
LBB0_9:
	movl	12(%r13), %edi
	callq	_SWAPD
LBB0_10:
	movl	%eax, %r12d
	movl	8(%r13), %edi
	callq	_SWAPW
	movl	4(%r13), %esi
	movq	_FAT12@GOTPCREL(%rip), %rcx
	testl	%esi, %esi
	je	LBB0_15
## %bb.11:
	imull	(%r13), %r15d
	addl	%eax, %r14d
	addl	%r15d, %r14d
	subl	%r14d, %r12d
	movl	%r12d, %eax
	cltd
	idivl	%esi
	cmpl	$4085, %eax                     ## imm = 0xFF5
	jl	LBB0_15
## %bb.12:
	cmpl	$65525, %eax                    ## imm = 0xFFF5
	jae	LBB0_13
## %bb.14:
	movq	_FAT16@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_2:
	movq	_FATX32@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_13:
	movq	_FAT32@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FATX"

	.comm	_FATX16,4,2                     ## @FATX16
	.comm	_FATX32,4,2                     ## @FATX32
	.comm	_FAT12,4,2                      ## @FAT12
	.comm	_FAT16,4,2                      ## @FAT16
	.comm	_FAT32,4,2                      ## @FAT32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FatDetermineFatType            ; -- Begin function FatDetermineFatType
	.p2align	2
_FatDetermineFatType:                   ; @FatDetermineFatType
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #28]
	bl	_SWAPW
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_SWAPW
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_SWAPW
	mov	x22, x0
	ldr	w0, [x19, #20]
	bl	_SWAPW
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_SWAPW
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _FATX32@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FATX32@GOTPAGEOFF]
	sdiv	w8, w20, w8
Lloh4:
	adrp	x10, _FATX16@GOTPAGE
Lloh5:
	ldr	x10, [x10, _FATX16@GOTPAGEOFF]
	mov	w11, #65525
	cmp	w8, w11
	csel	x8, x10, x9, lt
	b	LBB0_12
LBB0_4:
	ldr	w0, [x19]
	bl	_SWAPD
LBB0_5:
	mov	x23, x0
	ldr	w0, [x19, #16]
	bl	_SWAPW
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_SWAPW
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #12]
	bl	_SWAPD
LBB0_8:
	mov	x24, x0
	ldr	w0, [x19, #8]
	bl	_SWAPW
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.9:
	add	w9, w21, w20, lsl #5
	sub	w9, w9, #1
	sdiv	w9, w9, w22
	ldr	w10, [x19]
	add	w9, w9, w0
	madd	w9, w10, w23, w9
	sub	w9, w24, w9
	sdiv	w8, w9, w8
	cmp	w8, #4085
	b.ge	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _FAT12@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FAT12@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x9, _FAT32@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FAT32@GOTPAGEOFF]
Lloh10:
	adrp	x10, _FAT16@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FAT16@GOTPAGEOFF]
	mov	w11, #65525
	cmp	w8, w11
	csel	x8, x10, x9, lo
LBB0_12:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FATX"

	.comm	_FATX16,4,2                     ; @FATX16
	.comm	_FATX32,4,2                     ; @FATX32
	.comm	_FAT12,4,2                      ; @FAT12
	.comm	_FAT16,4,2                      ; @FAT16
	.comm	_FAT32,4,2                      ; @FAT32
.subsections_via_symbols
