	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmain                          ## -- Begin function wmain
	.p2align	4, 0x90
_wmain:                                 ## @wmain
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_ConInitStdStreams
	cmpl	$2, %ebx
	jl	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	leaq	l_.str(%rip), %rsi
	callq	_wcscmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	cmpl	$3, %ebx
	jb	LBB0_8
## %bb.6:
	movq	_StdErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_ERROR_INVALID_PARAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rdx
	callq	_ConResPrintf
	jmp	LBB0_14
LBB0_3:
	cmpl	$1, %ebx
	je	LBB0_4
LBB0_8:
	movq	8(%r14), %rdi
	callq	__wtoi
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetConsoleCP
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SetConsoleCP
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_SetConsoleOutputCP
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:
	movq	_StdOut@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_STRING_CHCP_ERROR1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetConsoleOutputCP
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_ConResPrintf
	jmp	LBB0_15
LBB0_2:
	movq	_StdOut@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_CHCP_HELP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConResPuts
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	_StdErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_ERROR_INVALID_PARAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rdx
	callq	_ConResPrintf
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_SetConsoleCP
LBB0_13:
	movq	_StdErr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STRING_CHCP_ERROR4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ConResPuts
LBB0_14:
	movl	$1, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	47                              ## 0x2f
	.long	63                              ## 0x3f
	.long	0                               ## 0x0

	.comm	_StdOut,4,2                     ## @StdOut
	.comm	_STRING_CHCP_HELP,4,2           ## @STRING_CHCP_HELP
	.comm	_STRING_CHCP_ERROR1,4,2         ## @STRING_CHCP_ERROR1
	.comm	_StdErr,4,2                     ## @StdErr
	.comm	_STRING_ERROR_INVALID_PARAM_FORMAT,4,2 ## @STRING_ERROR_INVALID_PARAM_FORMAT
	.comm	_STRING_CHCP_ERROR4,4,2         ## @STRING_CHCP_ERROR4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmain                          ; -- Begin function wmain
	.p2align	2
_wmain:                                 ; @wmain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, x0
	bl	_ConInitStdStreams
	cmp	w20, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wcscmp
	cbz	x0, LBB0_9
; %bb.2:
	cmp	w20, #3
	b.lo	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _StdErr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _StdErr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _STRING_ERROR_INVALID_PARAM_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRING_ERROR_INVALID_PARAM_FORMAT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	bl	_ConResPrintf
	b	LBB0_13
LBB0_4:
	cmp	w20, #1
	b.eq	LBB0_8
LBB0_5:
	ldr	x0, [x19, #8]
	bl	__wtoi
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	bl	_GetConsoleCP
	mov	x19, x0
	mov	x0, x20
	bl	_SetConsoleCP
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x20
	bl	_SetConsoleOutputCP
	cbz	x0, LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _StdOut@GOTPAGE
Lloh9:
	ldr	x8, [x8, _StdOut@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _STRING_CHCP_ERROR1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STRING_CHCP_ERROR1@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_GetConsoleOutputCP
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ConResPrintf
	mov	w0, #0
	b	LBB0_14
LBB0_9:
Lloh14:
	adrp	x8, _StdOut@GOTPAGE
Lloh15:
	ldr	x8, [x8, _StdOut@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _STRING_CHCP_HELP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STRING_CHCP_HELP@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_ConResPuts
	mov	w0, #0
	b	LBB0_14
LBB0_10:
Lloh20:
	adrp	x8, _StdErr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _StdErr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _STRING_ERROR_INVALID_PARAM_FORMAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STRING_ERROR_INVALID_PARAM_FORMAT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_ConResPrintf
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_SetConsoleCP
LBB0_12:
Lloh26:
	adrp	x8, _StdErr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _StdErr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _STRING_CHCP_ERROR4@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STRING_CHCP_ERROR4@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_ConResPuts
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	47                              ; 0x2f
	.long	63                              ; 0x3f
	.long	0                               ; 0x0

	.comm	_StdOut,4,2                     ; @StdOut
	.comm	_STRING_CHCP_HELP,4,2           ; @STRING_CHCP_HELP
	.comm	_STRING_CHCP_ERROR1,4,2         ; @STRING_CHCP_ERROR1
	.comm	_StdErr,4,2                     ; @StdErr
	.comm	_STRING_ERROR_INVALID_PARAM_FORMAT,4,2 ; @STRING_ERROR_INVALID_PARAM_FORMAT
	.comm	_STRING_CHCP_ERROR4,4,2         ; @STRING_CHCP_ERROR4
.subsections_via_symbols
