	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RealizeClipboardPalette        ## -- Begin function RealizeClipboardPalette
	.p2align	4, 0x90
_RealizeClipboardPalette:               ## @RealizeClipboardPalette
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_CF_PALETTE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_IsClipboardFormatAvailable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_GetClipboardData
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_SelectPalette
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_RealizePalette
	movq	_GDI_ERROR@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setne	%bl
	movl	(%r12), %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_SelectPalette
	jmp	LBB0_6
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CF_PALETTE,4,2                 ## @CF_PALETTE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GDI_ERROR,8,3                  ## @GDI_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RealizeClipboardPalette        ; -- Begin function RealizeClipboardPalette
	.p2align	2
_RealizeClipboardPalette:               ; @RealizeClipboardPalette
	.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	x19, x0
Lloh0:
	adrp	x20, _CF_PALETTE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CF_PALETTE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_IsClipboardFormatAvailable
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	bl	_GetClipboardData
Lloh2:
	adrp	x22, _FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w20, [x22]
	cbz	w0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_SelectPalette
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	bl	_RealizePalette
Lloh4:
	adrp	x8, _GDI_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GDI_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w20, ne
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_SelectPalette
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w20, [x22]
LBB0_6:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CF_PALETTE,4,2                 ; @CF_PALETTE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GDI_ERROR,8,3                  ; @GDI_ERROR
.subsections_via_symbols
