	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_winChkName                     ## -- Begin function winChkName
	.p2align	4, 0x90
_winChkName:                            ## @winChkName
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WIN_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_WIN_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movl	(%rbx), %r14d
	movl	4(%rbx), %eax
	movq	_WIN_LAST@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %edx
	movl	$-1, %r15d
	cmpl	%edx, %eax
	movl	%edx, %eax
	jne	LBB0_7
LBB0_2:
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_WIN_CNT@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	decl	%r14d
	imull	%r13d, %r14d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_char8ucs2str
	movl	%eax, %ebx
	movq	_WIN_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ucs2pad
	subl	%r14d, %ebx
	jl	LBB0_7
## %bb.4:
	movq	_WIN_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, (%r12)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_WIN_CHARS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jg	LBB0_7
LBB0_6:
	movl	16(%r12), %esi
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	movl	$4, %edx
	movl	%eax, %r13d
	callq	_memcpy
	leaq	4(%rbx), %rdi
	movl	12(%r12), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	8(%r12), %esi
	movl	$4, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	_WIN_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_char8match
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	sbbl	%r15d, %r15d
	orl	%r13d, %r15d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WIN_MAXLEN,4,2                 ## @WIN_MAXLEN
	.comm	_WIN_CHARS,4,2                  ## @WIN_CHARS
	.comm	_WIN_LAST,4,2                   ## @WIN_LAST
	.comm	_WIN_CNT,4,2                    ## @WIN_CNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_winChkName                     ; -- Begin function winChkName
	.p2align	2
_winChkName:                            ; @winChkName
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x8, x3
	mov	x19, x2
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-88]
Lloh3:
	adrp	x25, _WIN_MAXLEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _WIN_MAXLEN@GOTPAGEOFF]
	ldr	w3, [x25]
	lsl	x12, x3, #2
	mov	x9, x12
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x20, x9, x10
	mov	sp, x20
Lloh7:
	adrp	x23, _WIN_CHARS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _WIN_CHARS@GOTPAGEOFF]
	ldr	w13, [x23]
	lsl	x12, x13, #2
	mov	x9, x12
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x21, x9, x10
	mov	sp, x21
Lloh11:
	adrp	x27, _WIN_LAST@GOTPAGE
Lloh12:
	ldr	x27, [x27, _WIN_LAST@GOTPAGEOFF]
	ldr	w10, [x27]
	ldp	w9, w24, [x2]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.1:
	cmp	w24, w8
	mov	x24, x8
	b.ne	LBB0_6
LBB0_2:
	cmn	w24, #1
	b.eq	LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _WIN_CNT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WIN_CNT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w9
	sub	w8, w8, #1
	mul	w26, w8, w13
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_char8ucs2str
	mov	x22, x0
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x22
	bl	_ucs2pad
	subs	w8, w22, w26
	b.lt	LBB0_6
; %bb.4:
	ldr	w9, [x19]
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.5:
	ldr	w9, [x23]
	cmp	w8, w9
	b.le	LBB0_9
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #4
	ldr	w1, [x19, #12]
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #8
	ldr	w1, [x19, #8]
	mov	w2, #4
	bl	_memcpy
	add	x0, x20, w26, sxtw #2
	ldr	w2, [x23]
	mov	x1, x21
	bl	_char8match
	cmp	w0, #0
	csinv	w0, w24, wzr, ne
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WIN_MAXLEN,4,2                 ; @WIN_MAXLEN
	.comm	_WIN_CHARS,4,2                  ; @WIN_CHARS
	.comm	_WIN_LAST,4,2                   ; @WIN_LAST
	.comm	_WIN_CNT,4,2                    ; @WIN_CNT
.subsections_via_symbols
