	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ClipboardReadMetafile
_ClipboardReadMetafile:                 ## @ClipboardReadMetafile
	.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
	movl	%edx, %r14d
	callq	_ClipboardReadMemoryBlock
	movq	_FALSE@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GlobalLock
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SetMetaFileBitsEx
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_GlobalUnlock
	movl	%ebx, %edi
	callq	_GlobalFree
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movq	_CF_METAFILEPICT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_SetClipboardData
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_2:
	movl	%ebx, %edi
	callq	_GlobalFree
	jmp	LBB0_8
LBB0_4:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	jmp	LBB0_8
LBB0_7:
	movl	%r14d, %edi
	callq	_DeleteMetaFile
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERROR_OUTOFMEMORY,4,2          ## @ERROR_OUTOFMEMORY
	.comm	_CF_METAFILEPICT,4,2            ## @CF_METAFILEPICT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ClipboardReadMetafile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ClipboardReadMetafile
_ClipboardReadMetafile:                 ; @ClipboardReadMetafile
	.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	x20, x2
	bl	_ClipboardReadMemoryBlock
	cbz	w0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_GlobalLock
	cbz	w0, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_SetMetaFileBitsEx
	mov	x20, x0
	mov	x0, x19
	bl	_GlobalUnlock
	mov	x0, x19
	bl	_GlobalFree
	cbz	w20, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _CF_METAFILEPICT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CF_METAFILEPICT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_SetClipboardData
	cbz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_GlobalFree
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_SetLastError
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_DeleteMetaFile
LBB0_8:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERROR_OUTOFMEMORY,4,2          ; @ERROR_OUTOFMEMORY
	.comm	_CF_METAFILEPICT,4,2            ; @CF_METAFILEPICT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ClipboardReadMetafile
.subsections_via_symbols
