	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fstyp_msdosfs                  ## -- Begin function fstyp_msdosfs
	.p2align	4, 0x90
_fstyp_msdosfs:                         ## @fstyp_msdosfs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%esi, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_read_buf
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	$1, %r12d
	cmpl	$85, 2040(%rax)
	jne	LBB0_7
## %bb.2:
	cmpl	$170, 2044(%rbx)
	jne	LBB0_7
## %bb.3:
	movl	16(%rbx), %edi
	callq	_UINT16BYTES
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.12:
	movq	%r14, %r12
	movq	8(%rbx), %rdi
	movq	_LABEL_NO_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	8(%rbx), %r14
	jmp	LBB0_17
LBB0_6:
	movl	$1, %r12d
	jmp	LBB0_21
LBB0_9:
	movl	24(%rbx), %edi
	callq	_UINT32BYTES
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_15
LBB0_7:
	xorl	%r14d, %r14d
LBB0_20:
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_21:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	movq	_LABEL_NO_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movq	8(%rbx), %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_17:
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_MIN
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_strlcpy
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_rtrim
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_22:
	movl	28(%rbx), %edi
	callq	_UINT16BYTES
	movq	%rax, %r14
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	24(%rbx), %edi
	callq	_UINT32BYTES
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%eax, %r14d
	movl	20(%rbx), %edi
	callq	_UINT16BYTES
	imull	%eax, %r14d
	movq	%r13, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	movq	%rax, %r14
	movl	%r14d, %edx
	callq	_read_buf
	testq	%rax, %rax
	je	LBB0_7
## %bb.23:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r10
	movq	_FAT_DES_ATTR_LONG_NAME@GOTPCREL(%rip), %rcx
	movq	_FAT_DES_ATTR_VOLUME_ID@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movl	(%rcx), %r9d
	movl	(%rdx), %r8d
	leaq	(%rax,%r10,4), %r11
	movq	%rax, %rsi
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=2
	addq	$16, %rsi
	cmpq	%rsi, %r11
	jbe	LBB0_30
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rdx
	movl	(%rdx), %edi
	cmpl	$229, %edi
	je	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	testl	%edi, %edi
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	8(%rsi), %ecx
	movl	%ecx, %edi
	notl	%edi
	testl	%edi, %r9d
	je	LBB0_25
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	andl	%r8d, %ecx
	je	LBB0_25
	jmp	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%rax, %rdi
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	callq	_free
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %esi
	movq	%r13, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_read_buf
	movq	_FAT_DES_ATTR_VOLUME_ID@GOTPCREL(%rip), %rdx
	movq	_FAT_DES_ATTR_LONG_NAME@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_20
LBB0_32:
	movq	%rax, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_33:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$9, %esi
	movq	%rax, %r14
	movq	%rdx, %r13
	callq	_MIN
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strlcpy
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAT"

	.comm	_LABEL_NO_NAME,8,3              ## @LABEL_NO_NAME
	.comm	_FAT_DES_ATTR_LONG_NAME,4,2     ## @FAT_DES_ATTR_LONG_NAME
	.comm	_FAT_DES_ATTR_VOLUME_ID,4,2     ## @FAT_DES_ATTR_VOLUME_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fstyp_msdosfs                  ; -- Begin function fstyp_msdosfs
	.p2align	2
_fstyp_msdosfs:                         ; @fstyp_msdosfs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w1, #0
	mov	w2, #512
	bl	_read_buf
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #2040]
	cmp	w8, #85
	b.ne	LBB0_9
; %bb.2:
	ldr	w8, [x19, #2044]
	cmp	w8, #170
	b.ne	LBB0_9
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_UINT16BYTES
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _LABEL_NO_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LABEL_NO_NAME@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_13
	b	LBB0_14
LBB0_6:
	mov	w27, #1
	b	LBB0_11
LBB0_7:
	ldr	w0, [x19, #24]
	bl	_UINT32BYTES
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_12
LBB0_9:
	mov	x23, #0
	mov	w27, #1
LBB0_10:
	mov	x0, x19
	bl	_free
	mov	x0, x23
	bl	_free
LBB0_11:
	mov	x0, x27
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x8, _LABEL_NO_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LABEL_NO_NAME@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x8]
	mov	w2, #8
	bl	_strncmp
	cbz	x0, LBB0_16
LBB0_13:
	ldr	x22, [x19, #8]
	mov	x0, x20
	mov	w1, #9
	bl	_MIN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strlcpy
LBB0_14:
	mov	x23, #0
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	bl	_rtrim
	mov	w27, #0
	b	LBB0_10
LBB0_16:
	ldr	w0, [x19, #28]
	bl	_UINT16BYTES
	mov	x23, x0
	ldr	w24, [x19, #16]
	ldr	w0, [x19, #24]
	bl	_UINT32BYTES
	madd	w23, w0, w24, w23
	ldr	w0, [x19, #20]
	bl	_UINT16BYTES
	mov	x24, x0
	mul	w26, w23, w24
	mov	x0, x22
	mov	x1, x26
	mov	x2, x24
	bl	_read_buf
	cbz	x0, LBB0_9
; %bb.17:
	mov	x25, x0
	sxtw	x28, w24
Lloh10:
	adrp	x14, _FAT_DES_ATTR_LONG_NAME@GOTPAGE
Lloh11:
	ldr	x14, [x14, _FAT_DES_ATTR_LONG_NAME@GOTPAGEOFF]
Lloh12:
	adrp	x15, _FAT_DES_ATTR_VOLUME_ID@GOTPAGE
Lloh13:
	ldr	x15, [x15, _FAT_DES_ATTR_VOLUME_ID@GOTPAGEOFF]
	mov	w27, #1
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	w8, [x14]
	ldr	w9, [x15]
	add	x10, x25, x28, lsl #2
	mov	x11, x25
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x11, x11, #16
	cmp	x10, x11
	b.ls	LBB0_23
LBB0_20:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x23, [x11]
	ldr	w12, [x23]
	cmp	w12, #229
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	cbz	w12, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	w12, [x11, #8]
	bic	w13, w8, w12
	and	w12, w9, w12
	cmp	w13, #0
	ccmp	w12, #0, #4, ne
	b.eq	LBB0_19
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x25
	mov	x23, x14
	mov	x25, x15
	bl	_free
	add	w26, w26, w24
	mov	x0, x22
	mov	x1, x26
	mov	x2, x24
	bl	_read_buf
	mov	x15, x25
	mov	x14, x23
	mov	x25, x0
	mov	x23, #0
	cbnz	x0, LBB0_18
	b	LBB0_10
LBB0_24:
	mov	x0, x20
	mov	w1, #9
	bl	_MIN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_strlcpy
LBB0_25:
	mov	x23, x25
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAT"

	.comm	_LABEL_NO_NAME,8,3              ; @LABEL_NO_NAME
	.comm	_FAT_DES_ATTR_LONG_NAME,4,2     ; @FAT_DES_ATTR_LONG_NAME
	.comm	_FAT_DES_ATTR_VOLUME_ID,4,2     ; @FAT_DES_ATTR_VOLUME_ID
.subsections_via_symbols
