	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ClipboardWriteMemory
_ClipboardWriteMemory:                  ## @ClipboardWriteMemory
	.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	%rcx, %r12
	movl	%edx, %r13d
	movl	%edi, %ebx
	movl	%esi, %edi
	callq	_GetClipboardData
	movq	_FALSE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %r15d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %edi
	callq	_GlobalLock
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_GlobalSize
	movl	%eax, (%r12)
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	callq	_GlobalUnlock
	jmp	LBB0_7
LBB0_4:
	movl	(%r12), %edx
	leaq	-48(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%r8d, %r8d
	callq	_WriteFile
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_GlobalUnlock
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.6:
	movq	_FALSE@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,8,3   ## @INVALID_SET_FILE_POINTER
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ClipboardWriteMemory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ClipboardWriteMemory
_ClipboardWriteMemory:                  ; @ClipboardWriteMemory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_GetClipboardData
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_GlobalLock
Lloh0:
	adrp	x24, _FALSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	bl	_GlobalSize
	str	w0, [x21]
Lloh2:
	adrp	x8, _FILE_BEGIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FILE_BEGIN@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	bl	_SetFilePointer
Lloh5:
	adrp	x8, _INVALID_SET_FILE_POINTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INVALID_SET_FILE_POINTER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_GlobalUnlock
LBB0_4:
Lloh8:
	adrp	x24, _FALSE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x4, #0
	bl	_WriteFile
	mov	x20, x0
	mov	x0, x19
	bl	_GlobalUnlock
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x24, x24, x8, eq
LBB0_6:
	ldr	w0, [x24]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,8,3   ; @INVALID_SET_FILE_POINTER
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ClipboardWriteMemory
.subsections_via_symbols
