	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wceex_findnext                 ## -- Begin function wceex_findnext
	.p2align	4, 0x90
_wceex_findnext:                        ## @wceex_findnext
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	-56(%rbp), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_FindNextFile
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rax
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	movl	$0, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, (%rbx)
	leaq	-32(%rbp), %rdi
	callq	_wceex_filetime_to_time
	movq	%rax, 32(%rbx)
	leaq	-36(%rbp), %rdi
	callq	_wceex_filetime_to_time
	movq	%rax, 24(%rbx)
	leaq	-40(%rbp), %rdi
	callq	_wceex_filetime_to_time
	movq	%rax, 16(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %r15d
	movl	-48(%rbp), %ebx
	movl	%ebx, %edi
	callq	_wcslen
	leaq	1(%rax), %rdx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_wcstombs
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_findnext                 ; -- Begin function wceex_findnext
	.p2align	2
_wceex_findnext:                        ; @wceex_findnext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, sp
	mov	x1, sp
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_FindNextFile
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
	ldr	x9, [sp]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x8, xzr, x9, eq
	str	x8, [x19]
	add	x0, x20, #24
	bl	_wceex_filetime_to_time
	str	x0, [x19, #32]
	add	x0, x20, #20
	bl	_wceex_filetime_to_time
	str	x0, [x19, #24]
	add	x0, x20, #16
	bl	_wceex_filetime_to_time
	str	x0, [x19, #16]
	ldp	w20, w8, [sp, #8]
	str	w8, [x19, #12]
	ldr	w19, [x19, #8]
	mov	x0, x20
	bl	_wcslen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_wcstombs
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	bl	_GetLastError
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FILE_ATTRIBUTE_NORMAL,8,3      ; @FILE_ATTRIBUTE_NORMAL
.subsections_via_symbols
