	.file	"extr_NtGdiDoPalette.c_Test_NtGdiDoPalette_GdiPalSetEntries.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Test_NtGdiDoPalette_GdiPalSetEntries
	.type	Test_NtGdiDoPalette_GdiPalSetEntries, @function
Test_NtGdiDoPalette_GdiPalSetEntries:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	ecx, 20
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 344
	.cfi_def_cfa_offset 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 328[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	mov	r12, rsp
	rep stosq
	mov	DWORD PTR 40[rsp], 255
	movabs	rax, 1095216660735
	mov	QWORD PTR 32[rsp], rax
	movabs	rax, 438086664243
	mov	QWORD PTR 64[rsp], rax
	movabs	rax, 566935683109
	mov	QWORD PTR 96[rsp], rax
	movabs	rax, 223338299410
	mov	QWORD PTR 128[rsp], rax
	movabs	rax, 73014444118
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 72[rsp], 153
	mov	DWORD PTR 104[rsp], 20
	call	CreateTestPalette@PLT
	mov	edi, DWORD PTR ERROR_SUCCESS[rip]
	mov	rbp, rax
	call	SetLastError@PLT
	mov	rcx, r12
	mov	edx, 1
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	edi, 23
	call	NtGdiDoPalette@PLT
	xor	esi, esi
	mov	edi, eax
	call	ok_long@PLT
	mov	r13d, DWORD PTR ERROR_SUCCESS[rip]
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, eax
	mov	esi, r13d
	call	ok_long@PLT
	mov	edi, DWORD PTR DEFAULT_PALETTE[rip]
	mov	r14d, DWORD PTR TRUE[rip]
	mov	r13d, DWORD PTR GdiPalSetEntries[rip]
	call	GetStockObject@PLT
	mov	r9d, r14d
	mov	rcx, r12
	mov	edx, 1
	mov	r8d, r13d
	xor	esi, esi
	mov	rdi, rax
	call	NtGdiDoPalette@PLT
	xor	esi, esi
	mov	edi, eax
	call	ok_long@PLT
	mov	r13d, DWORD PTR ERROR_SUCCESS[rip]
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, eax
	mov	esi, r13d
	lea	r13, 160[rsp]
	call	ok_long@PLT
	mov	rcx, r12
	mov	edx, 1
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 1
	mov	edi, eax
	call	ok_long@PLT
	mov	rcx, r12
	mov	edx, 2
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 2
	mov	edi, eax
	call	ok_long@PLT
	mov	rcx, r12
	mov	edx, 3
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 3
	mov	edi, eax
	call	ok_long@PLT
	mov	rcx, r12
	mov	edx, 5
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 5
	mov	edi, eax
	call	ok_long@PLT
	xor	esi, esi
	mov	rcx, r12
	mov	edx, 6
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 5
	mov	edi, eax
	call	ok_long@PLT
	mov	rcx, r12
	mov	edx, 6
	mov	rdi, rbp
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	esi, 3
	call	NtGdiDoPalette@PLT
	mov	esi, 2
	mov	edi, eax
	call	ok_long@PLT
	mov	rcx, r12
	mov	edx, 5
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	rdi, r13
	mov	esi, 160
	call	ZeroMemory@PLT
	mov	rcx, r13
	mov	edx, 5
	xor	esi, esi
	mov	r9d, DWORD PTR FALSE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 5
	mov	edi, eax
	call	ok_long@PLT
	mov	edx, 160
	mov	rdi, r13
	mov	rsi, r12
	call	memcmp@PLT
	xor	esi, esi
	mov	edi, eax
	call	ok_int@PLT
	mov	rdi, r13
	mov	esi, 160
	call	ZeroMemory@PLT
	mov	rcx, r13
	mov	edx, 5
	xor	esi, esi
	mov	r9d, DWORD PTR FALSE[rip]
	mov	r8d, DWORD PTR GdiPalGetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 5
	mov	edi, eax
	call	ok_long@PLT
	mov	edx, 160
	mov	rdi, r13
	mov	rsi, r12
	call	memcmp@PLT
	xor	esi, esi
	mov	edi, eax
	call	ok_int@PLT
	mov	rcx, r13
	mov	edx, 4
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	esi, 4
	mov	edi, eax
	call	ok_long@PLT
	mov	ebp, DWORD PTR ERROR_SUCCESS[rip]
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, eax
	mov	esi, ebp
	call	ok_long@PLT
	xor	eax, eax
	call	CreateTestPalette@PLT
	xor	esi, esi
	mov	rcx, r12
	mov	edx, 5
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	NtGdiDoPalette@PLT
	mov	rcx, r13
	mov	edx, 5
	xor	esi, esi
	mov	r9d, DWORD PTR FALSE[rip]
	mov	r8d, DWORD PTR GdiPalGetEntries[rip]
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	mov	edi, DWORD PTR 188[rsp]
	xor	esi, esi
	call	ok_int@PLT
	mov	edi, DWORD PTR 184[rsp]
	xor	esi, esi
	call	ok_int@PLT
	mov	edi, DWORD PTR 180[rsp]
	xor	esi, esi
	call	ok_int@PLT
	mov	edi, DWORD PTR 176[rsp]
	xor	esi, esi
	call	ok_int@PLT
	xor	edi, edi
	call	CreateCompatibleDC@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	edi, eax
	mov	r13d, eax
	call	SelectPalette@PLT
	mov	rcx, r12
	mov	edx, 4
	xor	esi, esi
	mov	r9d, DWORD PTR TRUE[rip]
	mov	r8d, DWORD PTR GdiPalSetEntries[rip]
	mov	rdi, rbp
	mov	r14, rax
	call	NtGdiDoPalette@PLT
	mov	esi, 4
	mov	edi, eax
	call	ok_long@PLT
	xor	edx, edx
	mov	rsi, r14
	mov	edi, r13d
	call	SelectPalette@PLT
	mov	r9d, DWORD PTR TRUE[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	r8d, DWORD PTR GdiPalGetEntries[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	NtGdiDoPalette@PLT
	xor	esi, esi
	mov	edi, eax
	call	ok_long@PLT
	mov	rax, QWORD PTR 328[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 344
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Test_NtGdiDoPalette_GdiPalSetEntries, .-Test_NtGdiDoPalette_GdiPalSetEntries
	.comm	TRUE,4,4
	.comm	GdiPalSetEntries,4,4
	.comm	GdiPalGetEntries,4,4
	.comm	FALSE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	DEFAULT_PALETTE,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_NtGdiDoPalette.c_Test_NtGdiDoPalette_GdiPalSetEntries.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Test_NtGdiDoPalette_GdiPalSetEntries
	.syntax unified
	.arm
	.fpu softvfp
	.type	Test_NtGdiDoPalette_GdiPalSetEntries, %function
Test_NtGdiDoPalette_GdiPalSetEntries:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L6
	sub	sp, sp, #340
	mov	r2, #160
	mov	r1, #0
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #332]
	mov	r3,#0
	mov	r8, #51
	bl	memset
	mov	r7, #102
	mov	lr, #20
	mov	ip, #18
	mov	r3, #255
	mov	r1, #86
	mov	r2, #17
	mov	r6, #153
	mov	r5, #37
	mov	r4, #132
	mov	r0, #52
	str	lr, [sp, #116]
	str	ip, [sp, #140]
	str	r3, [sp, #44]
	str	r3, [sp, #48]
	str	r3, [sp, #52]
	str	r1, [sp, #148]
	str	r2, [sp, #152]
	str	r8, [sp, #76]
	str	r7, [sp, #80]
	str	r6, [sp, #84]
	str	r5, [sp, #108]
	str	r4, [sp, #112]
	str	r0, [sp, #144]
	bl	CreateTestPalette
	mov	r6, r0
	ldr	r7, .L6+4
	ldr	r4, .L6+8
	ldr	r5, .L6+12
	ldr	r0, [r7]
	bl	SetLastError
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #1
	add	r3, sp, #12
	mov	r0, #23
	bl	NtGdiDoPalette
	mov	r1, #0
	bl	ok_long
	bl	GetLastError
	ldr	r1, [r7]
	bl	ok_long
	ldr	r3, .L6+16
	ldr	r9, .L6+20
	ldr	r0, [r3]
	bl	GetStockObject
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #1
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #0
	bl	ok_long
	bl	GetLastError
	ldr	r1, [r7]
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #1
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #1
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #2
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #2
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #3
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #3
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #5
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #5
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #6
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #5
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #3
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #6
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #2
	bl	ok_long
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #5
	add	r3, sp, #12
	bl	NtGdiDoPalette
	mov	r1, #160
	add	r0, sp, #172
	bl	ZeroMemory
	ldr	r3, [r9]
	ldr	r2, [r5]
	mov	r0, r6
	stm	sp, {r2, r3}
	mov	r1, #0
	add	r3, sp, #172
	mov	r2, #5
	bl	NtGdiDoPalette
	mov	r1, #5
	bl	ok_long
	mov	r2, #160
	add	r1, sp, #12
	add	r0, sp, #172
	bl	memcmp
	ldr	r8, .L6+24
	mov	r1, #0
	bl	ok_int
	mov	r1, #160
	add	r0, sp, #172
	bl	ZeroMemory
	ldr	r2, [r9]
	ldr	r3, [r8]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #5
	add	r3, sp, #172
	bl	NtGdiDoPalette
	mov	r1, #5
	bl	ok_long
	mov	r2, #160
	add	r1, sp, #12
	add	r0, sp, #172
	bl	memcmp
	mov	r1, #0
	bl	ok_int
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #4
	add	r3, sp, #172
	bl	NtGdiDoPalette
	mov	r1, #4
	bl	ok_long
	bl	GetLastError
	ldr	r1, [r7]
	bl	ok_long
	bl	CreateTestPalette
	mov	r6, r0
	ldr	r2, [r4]
	ldr	r3, [r5]
	mov	r1, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #5
	add	r3, sp, #12
	bl	NtGdiDoPalette
	ldr	r3, [r9]
	ldr	r2, [r8]
	mov	r1, #0
	str	r3, [sp, #4]
	str	r2, [sp]
	add	r3, sp, #172
	mov	r2, #5
	mov	r0, r6
	bl	NtGdiDoPalette
	mov	r1, #0
	ldr	r0, [sp, #200]
	bl	ok_int
	mov	r1, #0
	ldr	r0, [sp, #196]
	bl	ok_int
	mov	r1, #0
	ldr	r0, [sp, #192]
	bl	ok_int
	mov	r1, #0
	ldr	r0, [sp, #188]
	bl	ok_int
	mov	r0, #0
	bl	CreateCompatibleDC
	mov	r1, r6
	mov	r2, #0
	mov	r7, r0
	bl	SelectPalette
	mov	r9, r0
	ldr	r3, [r5]
	ldr	r2, [r4]
	mov	r1, #0
	str	r3, [sp]
	str	r2, [sp, #4]
	add	r3, sp, #12
	mov	r2, #4
	mov	r0, r6
	bl	NtGdiDoPalette
	mov	r1, #4
	bl	ok_long
	mov	r1, r9
	mov	r2, #0
	mov	r0, r7
	bl	SelectPalette
	mov	r3, #0
	ldr	r1, [r4]
	ldr	r2, [r8]
	mov	r0, r6
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r3
	mov	r2, #1
	bl	NtGdiDoPalette
	mov	r1, #0
	bl	ok_long
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #332]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #340
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	ERROR_SUCCESS
	.word	TRUE
	.word	GdiPalSetEntries
	.word	DEFAULT_PALETTE
	.word	FALSE
	.word	GdiPalGetEntries
	.size	Test_NtGdiDoPalette_GdiPalSetEntries, .-Test_NtGdiDoPalette_GdiPalSetEntries
	.comm	TRUE,4,4
	.comm	GdiPalSetEntries,4,4
	.comm	GdiPalGetEntries,4,4
	.comm	FALSE,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	DEFAULT_PALETTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
