	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ClipboardReadMemoryBlock
_ClipboardReadMemoryBlock:              ## @ClipboardReadMemoryBlock
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	_GHND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edx, %esi
	callq	_GlobalAlloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GlobalLock
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %r13d
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_GlobalUnlock
	jmp	LBB0_5
LBB0_4:
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	callq	_ReadFile
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_GlobalUnlock
	testl	%r14d, %r14d
	jne	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_GlobalFree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GHND,4,2                       ## @GHND
	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,8,3   ## @INVALID_SET_FILE_POINTER
	.no_dead_strip	_ClipboardReadMemoryBlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ClipboardReadMemoryBlock
_ClipboardReadMemoryBlock:              ; @ClipboardReadMemoryBlock
	.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	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GHND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GHND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x2
	bl	_GlobalAlloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_GlobalLock
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _FILE_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, #0
	bl	_SetFilePointer
Lloh6:
	adrp	x8, _INVALID_SET_FILE_POINTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INVALID_SET_FILE_POINTER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_GlobalUnlock
	b	LBB0_5
LBB0_4:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x4, #0
	bl	_ReadFile
	mov	x20, x0
	mov	x0, x19
	bl	_GlobalUnlock
	cbnz	w20, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_GlobalFree
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GHND,4,2                       ; @GHND
	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,8,3   ; @INVALID_SET_FILE_POINTER
	.no_dead_strip	_ClipboardReadMemoryBlock
.subsections_via_symbols
