	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix2winfn                     ## -- Begin function unix2winfn
	.p2align	4, 0x90
_unix2winfn:                            ## @unix2winfn
	.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
	movl	%r8d, %r14d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WIN_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	testq	%r15, %r15
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	jne	LBB0_2
LBB0_1:
	movq	%r13, %rcx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%r15
	je	LBB0_1
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx,%r15), %eax
	cmpb	$46, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$32, %al
	je	LBB0_4
## %bb.5:
	movq	%r13, %rcx
LBB0_6:
	movslq	-52(%rbp), %r14                 ## 4-byte Folded Reload
	leaq	-1(%r14), %rax
	movq	_WIN_CHARS@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %r13
	imulq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r8, %rbx
	movq	%r8, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_char8ucs2str
	movl	%eax, %r15d
	movq	_WIN_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ucs2pad
	movq	%r12, %rdi
	movl	$255, %esi
	movl	$48, %edx
	callq	_memset
	movl	%r14d, (%r12)
	movq	_ATTR_WIN95@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	leaq	(%rbx,%r13,4), %rsi
	movl	16(%r12), %edi
	movl	$4, %edx
	callq	_memcpy
	leaq	(%rbx,%r13,4), %rsi
	addq	$4, %rsi
	movl	12(%r12), %edi
	movl	$4, %edx
	callq	_memcpy
	leaq	(%rbx,%r13,4), %rsi
	addq	$8, %rsi
	movl	8(%r12), %edi
	movl	$4, %edx
	callq	_memcpy
	movq	_WIN_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%r13d, %ecx
	movl	$1, %eax
	cmpl	%ecx, %r15d
	jg	LBB0_8
## %bb.7:
	movq	_WIN_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WIN_MAXLEN,4,2                 ## @WIN_MAXLEN
	.comm	_WIN_CHARS,4,2                  ## @WIN_CHARS
	.comm	_ATTR_WIN95,4,2                 ## @ATTR_WIN95
	.comm	_WIN_LAST,4,2                   ## @WIN_LAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unix2winfn                     ; -- Begin function unix2winfn
	.p2align	2
_unix2winfn:                            ; @unix2winfn
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _WIN_MAXLEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WIN_MAXLEN@GOTPAGEOFF]
	ldr	w3, [x24]
	lsl	x8, x3, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cbz	x1, LBB0_5
; %bb.1:
	sub	x8, x0, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	x1, x1, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8, x1]
	cmp	w9, #46
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #32
	b.eq	LBB0_2
LBB0_5:
	sub	w8, w21, #1
Lloh7:
	adrp	x25, _WIN_CHARS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _WIN_CHARS@GOTPAGEOFF]
	ldr	w9, [x25]
	mul	w26, w9, w8
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_char8ucs2str
	mov	x23, x0
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x23
	bl	_ucs2pad
	mov	x0, x19
	mov	w1, #255
	mov	w2, #48
	bl	_memset
Lloh9:
	adrp	x8, _ATTR_WIN95@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATTR_WIN95@GOTPAGEOFF]
	stp	w21, w20, [x19]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	add	x20, x22, w26, sxtw #2
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x1, x20, #4
	ldr	w0, [x19, #12]
	mov	w2, #4
	bl	_memcpy
	add	x1, x20, #8
	ldr	w0, [x19, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x25]
	add	w8, w8, w26
	cmp	w23, w8
	b.le	LBB0_7
; %bb.6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh12:
	adrp	x8, _WIN_LAST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WIN_LAST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WIN_MAXLEN,4,2                 ; @WIN_MAXLEN
	.comm	_WIN_CHARS,4,2                  ; @WIN_CHARS
	.comm	_ATTR_WIN95,4,2                 ; @ATTR_WIN95
	.comm	_WIN_LAST,4,2                   ; @WIN_LAST
.subsections_via_symbols
