	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_STD_INPUT_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStdHandle
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_ConInitStdStreams
	cmpl	$2, %ebx
	jl	LBB0_4
## %bb.1:
	movq	8(%r15), %rdi
	leaq	l_.str(%rip), %rsi
	movl	$2, %edx
	callq	_wcsncmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movl	%r14d, %edi
	callq	_GetFileType
	movq	_FILE_TYPE_CHAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_StdOut@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDS_USAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_GMEM_MOVEABLE@GOTPCREL(%rip), %rax
	movq	_GMEM_ZEROINIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_GlobalAlloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_GlobalLock
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	%r15, %rax
	movl	%r14d, %r12d
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	leaq	-48(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_ReadFile
	movq	%rax, %r13
	movq	-48(%rbp), %r14
	movq	%rbx, %rdi
	callq	_GlobalUnlock
	movq	%rbx, %rdi
	callq	_GlobalSize
	leaq	4096(%rax), %rsi
	movq	_GMEM_ZEROINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_GlobalReAlloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rcx
	addq	%r14, %r15
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %r14d
	cmpq	$0, -48(%rbp)
	movq	%rcx, %rbx
	jg	LBB0_8
LBB0_12:
	addq	$4, %r15
	movq	_GMEM_ZEROINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %r14
	movq	%rcx, %rdi
	movq	%r15, %rsi
	callq	_GlobalReAlloc
	testq	%rax, %rax
	cmovneq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_OpenClipboard
	testl	%eax, %eax
	je	LBB0_13
## %bb.16:
	xorl	%eax, %eax
	callq	_EmptyClipboard
	movq	%r14, %r15
	movq	%r14, %rdi
	callq	_IsDataUnicode
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:
	movq	_CF_OEMTEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movq	_StdOut@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDS_HELP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_ConResPuts
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_13:
	movq	%r14, %rbx
LBB0_14:
	movq	%rbx, %rdi
	callq	_GlobalFree
LBB0_15:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_PrintError
	movl	$-1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_CF_UNICODETEXT@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_SetClipboardData
	xorl	%eax, %eax
	callq	_CloseClipboard
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_STD_INPUT_HANDLE,4,2           ## @STD_INPUT_HANDLE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	47                              ## 0x2f
	.long	63                              ## 0x3f
	.long	0                               ## 0x0

	.comm	_StdOut,4,2                     ## @StdOut
	.comm	_IDS_HELP,4,2                   ## @IDS_HELP
	.comm	_FILE_TYPE_CHAR,8,3             ## @FILE_TYPE_CHAR
	.comm	_IDS_USAGE,4,2                  ## @IDS_USAGE
	.comm	_GMEM_MOVEABLE,4,2              ## @GMEM_MOVEABLE
	.comm	_GMEM_ZEROINIT,4,2              ## @GMEM_ZEROINIT
	.comm	_CF_UNICODETEXT,4,2             ## @CF_UNICODETEXT
	.comm	_CF_OEMTEXT,4,2                 ## @CF_OEMTEXT
.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:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STD_INPUT_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STD_INPUT_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetStdHandle
	mov	x19, x0
	bl	_ConInitStdStreams
	cmp	w21, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_wcsncmp
	cbz	x0, LBB0_14
LBB0_2:
	mov	x0, x19
	bl	_GetFileType
Lloh5:
	adrp	x8, _FILE_TYPE_CHAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FILE_TYPE_CHAR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _StdOut@GOTPAGE
Lloh9:
	ldr	x8, [x8, _StdOut@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _IDS_USAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IDS_USAGE@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
Lloh13:
	adrp	x8, _GMEM_MOVEABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GMEM_MOVEABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x23, _GMEM_ZEROINIT@GOTPAGE
Lloh17:
	ldr	x23, [x23, _GMEM_ZEROINIT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w0, w9, w8
	mov	w1, #4096
	bl	_GlobalAlloc
	cbz	x0, LBB0_13
; %bb.5:
	mov	x20, x0
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GlobalLock
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x0, x24
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #4096
	mov	x4, #0
	bl	_ReadFile
	mov	x22, x0
	ldr	x25, [sp, #8]
	mov	x0, x20
	bl	_GlobalUnlock
	mov	x0, x20
	bl	_GlobalSize
	add	x1, x0, #1, lsl #12             ; =4096
	ldr	w2, [x23]
	mov	x0, x20
	bl	_GlobalReAlloc
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	add	x24, x25, x24
	cbz	x22, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	mov	x20, x21
	cmp	x8, #0
	b.gt	LBB0_6
LBB0_10:
	add	x1, x24, #4
	ldr	w2, [x23]
	mov	x0, x21
	bl	_GlobalReAlloc
	cmp	x0, #0
	csel	x20, x21, x0, eq
	mov	x0, #0
	bl	_OpenClipboard
	cbz	w0, LBB0_12
; %bb.11:
	bl	_EmptyClipboard
	mov	x0, x20
	bl	_IsDataUnicode
Lloh18:
	adrp	x8, _CF_OEMTEXT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CF_OEMTEXT@GOTPAGEOFF]
Lloh20:
	adrp	x9, _CF_UNICODETEXT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CF_UNICODETEXT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	mov	x1, x20
	bl	_SetClipboardData
	bl	_CloseClipboard
	b	LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_GlobalFree
LBB0_13:
	bl	_GetLastError
	bl	_PrintError
	mov	w0, #-1
	b	LBB0_17
LBB0_14:
Lloh22:
	adrp	x8, _StdOut@GOTPAGE
Lloh23:
	ldr	x8, [x8, _StdOut@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _IDS_HELP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IDS_HELP@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	bl	_ConResPuts
LBB0_16:
	mov	w0, #0
LBB0_17:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_STD_INPUT_HANDLE,4,2           ; @STD_INPUT_HANDLE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	47                              ; 0x2f
	.long	63                              ; 0x3f
	.long	0                               ; 0x0

	.comm	_StdOut,4,2                     ; @StdOut
	.comm	_IDS_HELP,4,2                   ; @IDS_HELP
	.comm	_FILE_TYPE_CHAR,8,3             ; @FILE_TYPE_CHAR
	.comm	_IDS_USAGE,4,2                  ; @IDS_USAGE
	.comm	_GMEM_MOVEABLE,4,2              ; @GMEM_MOVEABLE
	.comm	_GMEM_ZEROINIT,4,2              ; @GMEM_ZEROINIT
	.comm	_CF_UNICODETEXT,4,2             ; @CF_UNICODETEXT
	.comm	_CF_OEMTEXT,4,2                 ; @CF_OEMTEXT
.subsections_via_symbols
