	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_stat                     ## -- Begin function wceex_stat
	.p2align	4, 0x90
_wceex_stat:                            ## @wceex_stat
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strpbrk
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mbstowcs
	leaq	-136(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_FindFirstFile
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	__stricmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:
	movq	_FILE_ATTRIBUTE_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -128(%rbp)
	movq	-136(%rbp), %rax
	movb	$0, (%rax)
	movq	_TM_YEAR_BASE@GOTPCREL(%rip), %rax
	movl	$1980, %edi                     ## imm = 0x7BC
	subq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wceex_local_to_time_r
	movq	%rax, 64(%r14)
	movq	%rax, 80(%r14)
	movq	%rax, 72(%r14)
	jmp	LBB0_16
LBB0_4:
	leaq	-80(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_FileTimeToLocalFileTime
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_FileTimeToSystemTime
	testl	%eax, %eax
	je	LBB0_19
## %bb.6:
	leaq	-56(%rbp), %rdi
	callq	_wceex_local_to_time
	movq	%rax, 64(%r14)
	movq	-88(%rbp), %rcx
	orq	-96(%rbp), %rcx
	je	LBB0_10
## %bb.7:
	leaq	-96(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_FileTimeToLocalFileTime
	testl	%eax, %eax
	je	LBB0_19
## %bb.8:
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_FileTimeToSystemTime
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	leaq	-56(%rbp), %rdi
	callq	_wceex_local_to_time
LBB0_10:
	movq	%rax, 80(%r14)
	movq	-104(%rbp), %rax
	orq	-112(%rbp), %rax
	je	LBB0_14
## %bb.11:
	leaq	-112(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_FileTimeToLocalFileTime
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_FileTimeToSystemTime
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	leaq	-56(%rbp), %rdi
	callq	_wceex_local_to_time
	jmp	LBB0_15
LBB0_19:
	movq	%rbx, %rdi
	callq	_FindClose
	jmp	LBB0_17
LBB0_14:
	movq	64(%r14), %rax
LBB0_15:
	movq	%rax, 72(%r14)
	movq	%rbx, %rdi
	callq	_FindClose
LBB0_16:
	movl	-120(%rbp), %esi
	movq	%r13, %rdi
	callq	___wceex_get_file_mode
	movl	%eax, 56(%r14)
	movq	-128(%rbp), %rax
	movq	%rax, 48(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movups	%xmm0, 8(%r14)
	movq	$0, 40(%r14)
	movl	$1, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?*"

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
L_.str.1:                               ## @.str.1
	.asciz	".\\"

	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_TM_YEAR_BASE,8,3               ## @TM_YEAR_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_stat                     ; -- Begin function wceex_stat
	.p2align	2
_wceex_stat:                            ; @wceex_stat
	.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
	sub	sp, sp, #96
	mov	x19, x1
	mov	x20, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strpbrk
	cbz	x0, LBB0_4
LBB0_1:
	mov	w0, #-1
LBB0_2:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.3:
	sub	sp, x29, #48
	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
LBB0_4:
	mov	x0, x20
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x21
	mov	x1, x20
	bl	_mbstowcs
	sub	x23, x29, #136
	sub	x1, x29, #136
	mov	x0, x21
	bl	_FindFirstFile
Lloh13:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	__stricmp
	cbnz	x0, LBB0_1
; %bb.6:
Lloh18:
	adrp	x8, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stur	w8, [x29, #-120]
	stur	xzr, [x29, #-64]
	stur	xzr, [x29, #-128]
	ldur	x8, [x29, #-136]
	strb	wzr, [x8]
Lloh21:
	adrp	x8, _TM_YEAR_BASE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TM_YEAR_BASE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	mov	w9, #1980
	sub	x0, x9, x8
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wceex_local_to_time_r
	stp	x0, x0, [x19, #72]
	str	x0, [x19, #64]
	b	LBB0_20
LBB0_7:
	mov	x21, x0
	add	x0, x23, #56
	sub	x1, x29, #144
	bl	_FileTimeToLocalFileTime
	cbz	w0, LBB0_17
; %bb.8:
	sub	x0, x29, #144
	sub	x1, x29, #140
	bl	_FileTimeToSystemTime
	cbz	w0, LBB0_17
; %bb.9:
	sub	x0, x29, #140
	bl	_wceex_local_to_time
	str	x0, [x19, #64]
	sub	x23, x29, #136
	ldp	x9, x8, [x29, #-96]
	orr	x8, x8, x9
	cbz	x8, LBB0_13
; %bb.10:
	add	x0, x23, #40
	sub	x1, x29, #144
	bl	_FileTimeToLocalFileTime
	cbz	w0, LBB0_17
; %bb.11:
	sub	x0, x29, #144
	sub	x1, x29, #140
	bl	_FileTimeToSystemTime
	cbz	w0, LBB0_17
; %bb.12:
	sub	x0, x29, #140
	bl	_wceex_local_to_time
LBB0_13:
	str	x0, [x19, #80]
	ldp	x9, x8, [x29, #-112]
	orr	x8, x8, x9
	cbz	x8, LBB0_18
; %bb.14:
	add	x0, x23, #24
	sub	x1, x29, #144
	bl	_FileTimeToLocalFileTime
	cbz	w0, LBB0_17
; %bb.15:
	sub	x0, x29, #144
	sub	x1, x29, #140
	bl	_FileTimeToSystemTime
	cbz	w0, LBB0_17
; %bb.16:
	sub	x0, x29, #140
	bl	_wceex_local_to_time
	b	LBB0_19
LBB0_17:
	mov	x0, x21
	bl	_FindClose
	b	LBB0_1
LBB0_18:
	ldr	x0, [x19, #64]
LBB0_19:
	str	x0, [x19, #72]
	mov	x0, x21
	bl	_FindClose
LBB0_20:
	ldur	w1, [x29, #-120]
	mov	x0, x20
	bl	___wceex_get_file_mode
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #56]
	ldur	x8, [x29, #-128]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	stp	xzr, x8, [x19, #40]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?*"

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
l_.str.1:                               ; @.str.1
	.asciz	".\\"

	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_TM_YEAR_BASE,8,3               ; @TM_YEAR_BASE
.subsections_via_symbols
