	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FAT_setAttr                    ## -- Begin function FAT_setAttr
	.p2align	4, 0x90
_FAT_setAttr:                           ## @FAT_setAttr
	.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	%rdi, %rbx
	movl	%esi, -44(%rbp)
	callq	__FAT_partition_getPartitionFromPath
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	leaq	1(%rax), %r12
	testq	%rax, %rax
	cmoveq	%rbx, %r12
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%r13d, %r13d
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	__FAT_directory_entryFromPath
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movslq	-80(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx
	movl	-64(%rbp), %r15d
	movq	%r14, %rdi
	callq	__FAT_lock
	movl	4(%r14), %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	__FAT_fat_clusterToSector
	addq	%rax, %rbx
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	imulq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	_DIR_ENTRY_attributes@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	leaq	-44(%rbp), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movl	$1, %r8d
	callq	__FAT_cache_writePartialSector
	movl	4(%r14), %edi
	callq	__FAT_cache_flush
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	__FAT_unlock
	cmpl	$1, %ebx
	sbbl	%r13d, %r13d
	movl	%r13d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.comm	_DIR_ENTRY_attributes,8,3       ## @DIR_ENTRY_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FAT_setAttr                    ; -- Begin function FAT_setAttr
	.p2align	2
_FAT_setAttr:                           ; @FAT_setAttr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	str	w1, [sp, #28]
	bl	__FAT_partition_getPartitionFromPath
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cmp	x0, #0
	csinc	x20, x20, x0, eq
	mov	x0, x20
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x1, sp
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	bl	__FAT_directory_entryFromPath
	cbz	w0, LBB0_2
; %bb.5:
	ldrsw	x22, [sp]
	ldr	x23, [sp, #8]
	ldr	w20, [sp, #16]
	mov	x0, x19
	bl	__FAT_lock
	ldr	w21, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	__FAT_fat_clusterToSector
Lloh0:
	adrp	x8, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
	add	x2, x0, x23
Lloh2:
	ldrsw	x8, [x8]
Lloh3:
	adrp	x9, _DIR_ENTRY_attributes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIR_ENTRY_attributes@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	madd	x3, x8, x22, x9
	add	x1, sp, #28
	mov	x0, x21
	mov	w4, #1
	bl	__FAT_cache_writePartialSector
	ldr	w0, [x19, #4]
	bl	__FAT_cache_flush
	mov	x20, x0
	mov	x0, x19
	bl	__FAT_unlock
	cmp	w20, #0
	csetm	w0, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.comm	_DIR_ENTRY_attributes,8,3       ; @DIR_ENTRY_attributes
.subsections_via_symbols
