	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_Copy
_EDIT_WM_Copy:                          ## @EDIT_WM_Copy
	.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	%rdi, %r12
	movl	12(%rdi), %esi
	movl	16(%rdi), %edi
	callq	_min
	movq	%rax, %r15
	movl	12(%r12), %esi
	movl	16(%r12), %edi
	callq	_max
	movq	%rax, %rbx
	subq	%r15, %rbx
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_GMEM_MOVEABLE@GOTPCREL(%rip), %rax
	movq	_GMEM_DDESHARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	%rbx, %r14
	shlq	$32, %r14
	movabsq	$4294967296, %rsi               ## imm = 0x100000000
	addq	%r14, %rsi
	shrq	$30, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_GlobalAlloc
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_GlobalLock
	movq	%rax, %r13
	addq	(%r12), %r15
	shll	$2, %ebx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	sarq	$29, %r14
	movq	$0, (%r13,%r14)
	movq	%r13, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_GlobalUnlock
	movl	8(%r12), %edi
	callq	_OpenClipboard
	xorl	%eax, %eax
	callq	_EmptyClipboard
	movq	_CF_UNICODETEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_SetClipboardData
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CloseClipboard                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMEM_MOVEABLE,4,2              ## @GMEM_MOVEABLE
	.comm	_GMEM_DDESHARE,4,2              ## @GMEM_DDESHARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_CF_UNICODETEXT,4,2             ## @CF_UNICODETEXT
	.no_dead_strip	_EDIT_WM_Copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_Copy
_EDIT_WM_Copy:                          ; @EDIT_WM_Copy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #12]
	bl	_min
	mov	x20, x0
	ldp	w1, w0, [x19, #12]
	bl	_max
	subs	x23, x0, x20
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _GMEM_MOVEABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMEM_MOVEABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GMEM_DDESHARE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GMEM_DDESHARE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	lsl	x8, x23, #32
	mov	x9, #4294967296
	add	x8, x8, x9
	lsr	x1, x8, #30
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_GlobalAlloc
	mov	x21, x0
	bl	_GlobalLock
	mov	x22, x0
	ldr	x8, [x19]
	add	x1, x8, x20
	lsl	w2, w23, #2
	bl	_memcpy
	sbfiz	x8, x23, #3, #32
	str	xzr, [x22, x8]
	mov	x0, x22
	bl	_debugstr_w
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x21
	bl	_GlobalUnlock
	ldr	w0, [x19, #8]
	bl	_OpenClipboard
	bl	_EmptyClipboard
Lloh8:
	adrp	x8, _CF_UNICODETEXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CF_UNICODETEXT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_SetClipboardData
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CloseClipboard
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GMEM_MOVEABLE,4,2              ; @GMEM_MOVEABLE
	.comm	_GMEM_DDESHARE,4,2              ; @GMEM_DDESHARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_CF_UNICODETEXT,4,2             ; @CF_UNICODETEXT
	.no_dead_strip	_EDIT_WM_Copy
.subsections_via_symbols
