	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_COMDLG32_SplitFileNames        ## -- Begin function COMDLG32_SplitFileNames
	.p2align	4, 0x90
_COMDLG32_SplitFileNames:               ## @COMDLG32_SplitFileNames
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	leal	8(,%r12,4), %edi
	callq	_heap_alloc
	movq	%rax, (%rbx)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%r14)
	testl	%r12d, %r12d
	js	LBB0_1
## %bb.2:
	movl	%r12d, %r10d
	leal	1(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	1(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	negq	%r10
	xorl	%r11d, %r11d
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%edx, %esi
	subl	%edx, %eax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rcx
	movslq	%eax, %rdx
	incl	%eax
	movb	$0, (%rcx,%rdx)
	incl	%r11d
	movl	%esi, %edx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rdx), %ecx
	cmpl	%r12d, %edx
	movl	%ecx, %edx
	jge	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movslq	%edx, %rdi
	cmpb	$34, (%r15,%rdi)
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rdx), %esi
	cmpl	%r12d, %edx
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rcx
	leal	(%rax,%r12), %r13d
	subl	%edx, %r13d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rdi), %r14
	addq	%r10, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14), %r8d
	cmpb	$34, %r8b
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rbx), %r9
	movb	%r8b, (%r9,%rcx)
	incq	%rcx
	decq	%rdx
	incq	%r14
	cmpq	%rdx, %rdi
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_12:
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.13:
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_lstrcpyW
	movq	%r15, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	incl	%eax
	movl	$1, %r11d
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	xorl	%r11d, %r11d
LBB0_15:
	movq	(%rbx), %rcx
	movslq	%eax, %rdx
	incl	%eax
	movb	$0, (%rcx,%rdx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	%r11d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_COMDLG32_SplitFileNames        ; -- Begin function COMDLG32_SplitFileNames
	.p2align	2
_COMDLG32_SplitFileNames:               ; @COMDLG32_SplitFileNames
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	lsl	w8, w1, #2
	add	w0, w8, #8
	bl	_heap_alloc
	str	x0, [x20]
	str	wzr, [x19]
	tbnz	w22, #31, LBB0_14
; %bb.1:
	mov	w0, #0
	mov	w8, #0
	mov	w13, #0
	add	w9, w22, #1
	add	x10, x21, #1
	mov	w11, w22
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x15
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x20]
	strb	wzr, [x13, w8, sxtw]
	add	w8, w8, #1
	add	w0, w0, #1
	mov	x13, x12
                                        ; kill: def $w8 killed $w8 def $x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w12, w13, #1
	cmp	w13, w22
	mov	x13, x12
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	sxtw	x14, w13
	ldrb	w12, [x21, x14]
	cmp	w12, #34
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w12, w13, #1
	cmp	w13, w22
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x15, w8
	add	w8, w8, w22
	sub	w8, w8, w13
	add	x13, x10, x14
	sub	x14, x11, x14
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w16, [x13]
	cmp	w16, #34
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x17, [x20]
	strb	w16, [x17, x15]
	add	x15, x15, #1
	add	w12, w12, #1
	add	x13, x13, #1
	subs	x14, x14, #1
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x12, x9
	b	LBB0_3
LBB0_11:
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.12:
	cbnz	w8, LBB0_15
; %bb.13:
	ldr	x0, [x20]
	mov	x1, x21
	bl	_lstrcpyW
	mov	x0, x21
	bl	_lstrlenW
	add	w8, w0, #1
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	w8, #0
	mov	w0, #0
LBB0_15:
	ldr	x9, [x20]
	add	w10, w8, #1
	strb	wzr, [x9, w8, sxtw]
	str	w10, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
