	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ClipboardReadMemory
_ClipboardReadMemory:                   ## @ClipboardReadMemory
	.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	%r9, %r14
	movq	%r8, %r12
	movl	%esi, %ebx
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_ClipboardReadMemoryBlock
	movq	_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%eax, %r15d
	movl	%ebx, %eax
	andl	$-16384, %eax                   ## imm = 0xC000
	cmpl	$49152, %eax                    ## imm = 0xC000
	jne	LBB0_8
## %bb.2:
	movq	_CLIP_FMT_31@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_RegisterClipboardFormatA
	jmp	LBB0_7
LBB0_4:
	movq	_CLIP_FMT_NT@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_CLIP_FMT_BK@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_10
LBB0_6:
	movl	%r14d, %edi
	callq	_RegisterClipboardFormatW
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_8:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_SetClipboardData
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_10:
	movl	%r15d, %edi
	callq	_GlobalFree
LBB0_11:
	movl	(%r13), %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	_CLIP_FMT_31,8,3                ## @CLIP_FMT_31
	.comm	_CLIP_FMT_NT,8,3                ## @CLIP_FMT_NT
	.comm	_CLIP_FMT_BK,8,3                ## @CLIP_FMT_BK
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ClipboardReadMemory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ClipboardReadMemory
_ClipboardReadMemory:                   ; @ClipboardReadMemory
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x5
	mov	x21, x4
	mov	x22, x1
	mov	x1, x2
	mov	x2, x3
	bl	_ClipboardReadMemoryBlock
	cbz	w0, LBB0_9
; %bb.1:
	mov	x19, x0
	and	w8, w22, #0xffffc000
	cmp	w8, #12, lsl #12                ; =49152
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _CLIP_FMT_31@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLIP_FMT_31@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_RegisterClipboardFormatA
	mov	x22, x0
	cbnz	w0, LBB0_6
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _CLIP_FMT_NT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLIP_FMT_NT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _CLIP_FMT_BK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CLIP_FMT_BK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x21, #4, ne
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_RegisterClipboardFormatW
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x22
	mov	x1, x19
	bl	_SetClipboardData
	cbz	w0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_GlobalFree
LBB0_9:
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CLIP_FMT_31,8,3                ; @CLIP_FMT_31
	.comm	_CLIP_FMT_NT,8,3                ; @CLIP_FMT_NT
	.comm	_CLIP_FMT_BK,8,3                ; @CLIP_FMT_BK
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ClipboardReadMemory
.subsections_via_symbols
