	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_fat_stat_r
_sd_fat_stat_r:                         ## @sd_fat_stat_r
	.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, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_sd_fat_get_device_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	8(%rax), %edi
	callq	_OSLockMutex
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_sd_fat_real_path
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %esi
	movl	16(%r12), %edi
	leaq	-80(%rbp), %rcx
	movl	$-1, %ebx
	movq	%rax, %rdx
	movl	$-1, %r8d
	callq	_FSGetStat
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_free
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.6:
	cmpl	$0, -80(%rbp)
	js	LBB0_9
## %bb.7:
	movq	(%r12), %rdi
	callq	_strlen
	movq	%rax, %rbx
	incq	%rbx
	movq	%r13, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_9:
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	8(%r12), %edi
	callq	_OSUnlockMutex
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	jmp	LBB0_11
LBB0_8:
	movq	_S_IFREG@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movl	$1, (%r14)
	movl	-76(%rbp), %eax
	movl	%eax, 4(%r14)
	addl	$511, %eax                      ## imm = 0x1FF
	sarl	$9, %eax
	movl	%eax, 8(%r14)
	movl	-64(%rbp), %eax
	movl	%eax, 36(%r14)
	movl	-56(%rbp), %ecx
	movl	%ecx, 32(%r14)
	movl	-60(%rbp), %ecx
	movl	%ecx, 28(%r14)
	movq	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	pinsrd	$3, %eax, %xmm0
	movdqu	%xmm0, 12(%r14)
	xorl	%ebx, %ebx
LBB0_11:
	movl	8(%r12), %edi
	callq	_OSUnlockMutex
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.no_dead_strip	_sd_fat_stat_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_fat_stat_r
_sd_fat_stat_r:                         ; @sd_fat_stat_r
	.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, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_sd_fat_get_device_data
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_OSLockMutex
	mov	x0, x20
	mov	w1, #0
	mov	w2, #44
	bl	_memset
	mov	x0, x22
	mov	x1, x19
	bl	_sd_fat_real_path
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	ldp	w1, w0, [x19, #12]
	mov	x3, sp
	mov	x2, x22
	mov	w4, #-1
	bl	_FSGetStat
	mov	x23, x0
	mov	x0, x22
	bl	_free
	tbnz	w23, #31, LBB0_8
; %bb.3:
	ldr	w8, [sp]
Lloh0:
	adrp	x23, _S_IFDIR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _S_IFDIR@GOTPAGEOFF]
	tbnz	w8, #31, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_strlen
	add	x21, x0, #1
	mov	x0, x22
	bl	_strlen
Lloh2:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
	cmp	x21, x0
	csel	x23, x23, x8, eq
LBB0_5:
	mov	w21, #0
	ldr	w8, [x23]
	mov	w9, #1
	ldr	w10, [sp, #4]
	stp	w9, w10, [x20]
	add	w9, w10, #511
	asr	w9, w9, #9
	str	w9, [x20, #8]
	ldr	w9, [sp, #16]
	stp	w9, w8, [x20, #36]
	ldur	d0, [sp, #20]
	stur	d0, [x20, #28]
	ldr	d0, [sp, #8]
	mov.s	v0[2], v0[0]
	mov.s	v0[3], w9
	stur	q0, [x20, #12]
	b	LBB0_9
LBB0_6:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	w21, #-1
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w0, [x19, #8]
	bl	_OSUnlockMutex
	mov	w21, #-1
	b	LBB0_10
LBB0_8:
	str	w23, [x21]
	mov	w21, #-1
LBB0_9:
	ldr	w0, [x19, #8]
	bl	_OSUnlockMutex
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.no_dead_strip	_sd_fat_stat_r
.subsections_via_symbols
