	.file	"extr_nuklear_gdi.h_nk_gdi_clipboard_paste.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nk_gdi_clipboard_paste, @function
nk_gdi_clipboard_paste:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR CF_UNICODETEXT[rip]
	call	IsClipboardFormatAvailable@PLT
	test	rax, rax
	jne	.L25
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xor	edi, edi
	call	OpenClipboard@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR CF_UNICODETEXT[rip]
	call	GetClipboardData@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L26
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	CloseClipboard@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdi, rax
	call	GlobalSize@PLT
	sub	eax, 1
	movsx	rbx, eax
	je	.L6
	mov	rdi, r12
	call	GlobalLock@PLT
	movsx	r13, eax
	test	r13, r13
	je	.L6
	push	0
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR CP_UTF8[rip]
	shr	rbx, 2
	xor	esi, esi
	push	0
	.cfi_def_cfa_offset 80
	mov	ecx, ebx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdx, r13
	call	WideCharToMultiByte@PLT
	pop	rcx
	.cfi_def_cfa_offset 72
	pop	rsi
	.cfi_def_cfa_offset 64
	mov	r14d, eax
	test	eax, eax
	jne	.L27
.L9:
	mov	rdi, r12
	call	GlobalUnlock@PLT
	jmp	.L6
.L27:
	mov	edi, eax
	call	malloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L9
	push	0
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR CP_UTF8[rip]
	mov	r9d, r14d
	mov	r8, rax
	push	0
	.cfi_def_cfa_offset 80
	mov	ecx, ebx
	mov	rdx, r13
	xor	esi, esi
	call	WideCharToMultiByte@PLT
	mov	edx, r14d
	mov	rsi, r15
	mov	rdi, rbp
	call	nk_textedit_paste@PLT
	mov	rdi, r15
	call	free@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	nk_gdi_clipboard_paste, .-nk_gdi_clipboard_paste
	.comm	CP_UTF8,4,4
	.comm	CF_UNICODETEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nuklear_gdi.h_nk_gdi_clipboard_paste.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nk_gdi_clipboard_paste, %function
nk_gdi_clipboard_paste:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L28
	sub	sp, sp, #20
	ldr	r0, [r4]
	mov	r5, r1
	bl	IsClipboardFormatAvailable
	cmp	r0, #0
	bne	.L25
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	mov	r0, #0
	bl	OpenClipboard
	cmp	r0, #0
	beq	.L1
	ldr	r0, [r4]
	bl	GetClipboardData
	subs	r4, r0, #0
	bne	.L26
.L6:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	CloseClipboard
.L26:
	bl	GlobalSize
	subs	r6, r0, #1
	beq	.L6
	mov	r0, r4
	bl	GlobalLock
	subs	r7, r0, #0
	beq	.L6
	mov	r8, #0
	ldr	r9, .L28+4
	lsr	r6, r6, #2
	mov	r3, r6
	mov	r1, r8
	mov	r2, r7
	ldr	r0, [r9]
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	str	r8, [sp, #4]
	str	r8, [sp]
	bl	WideCharToMultiByte
	subs	r10, r0, #0
	bne	.L27
.L9:
	mov	r0, r4
	bl	GlobalUnlock
	b	.L6
.L27:
	bl	malloc
	subs	fp, r0, #0
	beq	.L9
	mov	r3, r6
	mov	r2, r7
	mov	r1, r8
	ldr	r0, [r9]
	str	r8, [sp, #12]
	str	r8, [sp, #8]
	str	r10, [sp, #4]
	str	fp, [sp]
	bl	WideCharToMultiByte
	mov	r2, r10
	mov	r1, fp
	mov	r0, r5
	bl	nk_textedit_paste
	mov	r0, fp
	bl	free
	b	.L9
.L29:
	.align	2
.L28:
	.word	CF_UNICODETEXT
	.word	CP_UTF8
	.size	nk_gdi_clipboard_paste, .-nk_gdi_clipboard_paste
	.comm	CP_UTF8,4,4
	.comm	CF_UNICODETEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
