	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_findfirst                ## -- Begin function wceex_findfirst
	.p2align	4, 0x90
_wceex_findfirst:                       ## @wceex_findfirst
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%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
	movq	%r14, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbstowcs
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_FindFirstFile
	movq	%rax, %r14
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	$-1, %r14
	jmp	LBB0_3
LBB0_2:
	movq	-72(%rbp), %rax
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovneq	%rax, %rdx
	movq	%rdx, (%r15)
	leaq	-48(%rbp), %rdi
	callq	_wceex_filetime_to_time
	movq	%rax, 32(%r15)
	leaq	-52(%rbp), %rdi
	callq	_wceex_filetime_to_time
	movq	%rax, 24(%r15)
	leaq	-56(%rbp), %rdi
	callq	_wceex_filetime_to_time
	movq	%rax, 16(%r15)
	movl	-60(%rbp), %eax
	movl	%eax, 12(%r15)
	movl	8(%r15), %r15d
	movl	-64(%rbp), %ebx
	movl	%ebx, %edi
	callq	_wcslen
	leaq	1(%rax), %rdx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_wcstombs
LBB0_3:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FILE_ATTRIBUTE_NORMAL,8,3      ## @FILE_ATTRIBUTE_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_findfirst                ; -- Begin function wceex_findfirst
	.p2align	2
_wceex_findfirst:                       ; @wceex_findfirst
	.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, #48
	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
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x21
	mov	x1, x20
	bl	_mbstowcs
	sub	x23, x29, #88
	sub	x1, x29, #88
	mov	x0, x21
	bl	_FindFirstFile
Lloh8:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_GetLastError
	mov	x20, #-1
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh11:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
	ldur	x9, [x29, #-88]
Lloh13:
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x8, xzr, x9, eq
	str	x8, [x19]
	add	x0, x23, #24
	bl	_wceex_filetime_to_time
	str	x0, [x19, #32]
	add	x0, x23, #20
	bl	_wceex_filetime_to_time
	str	x0, [x19, #24]
	add	x0, x23, #16
	bl	_wceex_filetime_to_time
	str	x0, [x19, #16]
	ldp	w21, w8, [x29, #-80]
	str	w8, [x19, #12]
	ldr	w19, [x19, #8]
	mov	x0, x21
	bl	_wcslen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x21
	bl	_wcstombs
LBB0_3:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FILE_ATTRIBUTE_NORMAL,8,3      ; @FILE_ATTRIBUTE_NORMAL
.subsections_via_symbols
