	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fatGetVolumeLabel              ## -- Begin function fatGetVolumeLabel
	.p2align	4, 0x90
_fatGetVolumeLabel:                     ## @fatGetVolumeLabel
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.2:
	movq	%rdi, %r15
	callq	_strlen
	movl	%eax, %r12d
	leal	2(%r12), %edi
	callq	__FAT_mem_allocate
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movslq	%r12d, %rcx
	leaq	-1(%rcx), %rax
	cmpb	$47, -1(%r15,%rcx)
	jne	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	movb	$0, (%rbx,%rax)
	addl	$-2, %r12d
	movslq	%r12d, %rax
	movl	%ecx, %r12d
LBB0_4:
	cmpb	$58, (%r15,%rax)
	je	LBB0_6
## %bb.5:
	movslq	%r12d, %rax
	movw	$58, (%rbx,%rax)
LBB0_6:
	movq	%rbx, %rdi
	callq	_GetDeviceOpTab
	movq	%rax, %r15
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rdx), %eax
	testb	%al, %al
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$58, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	jmp	LBB0_7
LBB0_10:
	testq	%r15, %r15
	je	LBB0_18
## %bb.11:
	movl	16(%r15), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_18:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__FAT_mem_free                  ## TAILCALL
LBB0_12:
	movq	%rbx, %rdi
	callq	__FAT_mem_free
	movq	(%r15), %rax
	movq	_dotab_fat@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.13:
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	__FAT_directory_getVolumeLabel
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$11, %edx
	callq	_strncpy
	movb	$0, 11(%r14)
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movb	$0, (%r14)
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dotab_fat,8,3                  ## @dotab_fat
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NO NAME"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fatGetVolumeLabel              ; -- Begin function fatGetVolumeLabel
	.p2align	2
_fatGetVolumeLabel:                     ; @fatGetVolumeLabel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_17
; %bb.2:
	mov	x21, x0
	bl	_strlen
	mov	x22, x0
	add	w0, w0, #2
	bl	__FAT_mem_allocate
	mov	x20, x0
	mov	x1, x21
	bl	_strcpy
	sxtw	x8, w22
	sub	x8, x8, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #47
	b.ne	LBB0_4
; %bb.3:
	strb	wzr, [x20, x8]
	sub	w9, w22, #2
	mov	x0, x8
	mov	x22, x8
	sxtw	x8, w9
LBB0_4:
	ldrb	w8, [x21, x8]
	cmp	w8, #58
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #58
	strh	w8, [x20, w22, sxtw]
LBB0_6:
	mov	x0, x20
	bl	_GetDeviceOpTab
	mov	x21, x0
	mov	x2, #0
	ldrb	w8, [x20, x2]
	cbz	w8, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #58
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x2, x2, #1
	ldrb	w8, [x20, x2]
	cbnz	w8, LBB0_7
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	ldr	w1, [x21, #16]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strncasecmp
	cbz	x0, LBB0_12
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__FAT_mem_free
LBB0_12:
	mov	x0, x20
	bl	__FAT_mem_free
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _dotab_fat@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dotab_fat@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.13:
	ldr	x20, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	__FAT_directory_getVolumeLabel
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #11
	bl	_strncpy
	strb	wzr, [x19, #11]
LBB0_15:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #7
	bl	_strncmp
	cbnz	w0, LBB0_17
; %bb.16:
	strb	wzr, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dotab_fat,8,3                  ; @dotab_fat
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NO NAME"

.subsections_via_symbols
