	.file	"extr_ssstars.c_CreateStarBitmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CreateStarBitmap, @function
CreateStarBitmap:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR GWLP_HINSTANCE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	GetWindowLongPtr@PLT
	mov	edi, DWORD PTR IDB_STAR[rip]
	mov	r13d, DWORD PTR IMAGE_BITMAP[rip]
	mov	r12, rax
	mov	ebx, DWORD PTR LR_CREATEDIBSECTION[rip]
	or	ebx, DWORD PTR LR_DEFAULTSIZE[rip]
	call	MAKEINTRESOURCE@PLT
	mov	r9d, ebx
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, r13d
	mov	rdi, r12
	lea	rbx, 24[rsp]
	mov	esi, eax
	call	LoadImage@PLT
	lea	r12, 32[rsp]
	mov	rdx, rbx
	mov	esi, 8
	mov	rdi, rax
	mov	r14, rax
	call	GetObject@PLT
	mov	rdi, r12
	mov	esi, 24
	call	ZeroMemory@PLT
	mov	eax, DWORD PTR 24[rsp]
	lea	rcx, 16[rsp]
	mov	edi, ebp
	mov	edx, DWORD PTR DIB_RGB_COLORS[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rsi, r12
	mov	DWORD PTR 36[rsp], eax
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 32[rsp], 4
	neg	eax
	mov	DWORD PTR 40[rsp], eax
	movabs	rax, 137438953473
	mov	QWORD PTR 44[rsp], rax
	mov	eax, DWORD PTR BI_RGB[rip]
	mov	DWORD PTR 52[rsp], eax
	call	CreateDIBSection@PLT
	mov	edi, ebp
	mov	r12, rax
	call	CreateCompatibleDC@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	CreateCompatibleDC@PLT
	mov	rsi, r12
	mov	edi, r13d
	mov	ebp, eax
	call	SelectObject@PLT
	mov	rsi, r14
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], rax
	call	SelectObject@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	r9d, ebp
	xor	edx, edx
	mov	r15, rax
	mov	eax, DWORD PTR SRCCOPY[rip]
	xor	esi, esi
	mov	edi, r13d
	push	rax
	.cfi_def_cfa_offset 144
	push	0
	.cfi_def_cfa_offset 152
	push	0
	.cfi_def_cfa_offset 160
	mov	r8d, DWORD PTR 60[rsp]
	mov	ecx, DWORD PTR 56[rsp]
	call	BitBlt@PLT
	mov	r10, QWORD PTR 40[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 128
	mov	edi, r13d
	mov	rsi, r10
	call	SelectObject@PLT
	mov	rsi, r15
	mov	edi, ebp
	call	SelectObject@PLT
	mov	edi, r13d
	call	DeleteDC@PLT
	mov	edi, ebp
	call	DeleteDC@PLT
	mov	rdi, r14
	call	DeleteObject@PLT
	mov	rdx, rbx
	mov	esi, 8
	mov	rdi, r12
	call	GetObject@PLT
	mov	eax, DWORD PTR 24[rsp]
	imul	eax, DWORD PTR 28[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	test	eax, eax
	je	.L1
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rdx]
	add	rcx, 1
	add	rdx, 4
	mov	esi, eax
	sal	eax, 24
	and	esi, 16777215
	or	eax, esi
	mov	DWORD PTR -4[rdx], eax
	mov	eax, DWORD PTR 24[rsp]
	imul	eax, DWORD PTR 28[rsp]
	cdqe
	cmp	rax, rcx
	ja	.L3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CreateStarBitmap, .-CreateStarBitmap
	.comm	SRCCOPY,4,4
	.comm	LR_DEFAULTSIZE,4,4
	.comm	LR_CREATEDIBSECTION,4,4
	.comm	IMAGE_BITMAP,4,4
	.comm	IDB_STAR,4,4
	.comm	GWLP_HINSTANCE,4,4
	.comm	DIB_RGB_COLORS,4,4
	.comm	BI_RGB,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_ssstars.c_CreateStarBitmap.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CreateStarBitmap, %function
CreateStarBitmap:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L12
	mov	r6, r1
	ldr	r1, [r3]
	ldr	r3, .L12+4
	sub	sp, sp, #64
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bl	GetWindowLongPtr
	ldr	r3, .L12+8
	mov	r5, r0
	ldr	r0, [r3]
	bl	MAKEINTRESOURCE
	mov	r4, #0
	ldr	r2, .L12+12
	ldr	r3, .L12+16
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r2, .L12+20
	orr	r3, r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r4
	mov	r0, r5
	ldr	r2, [r2]
	bl	LoadImage
	mov	r9, #4
	mov	r7, #1
	mov	r5, #32
	add	r2, sp, #28
	mov	r1, #8
	mov	r8, r0
	bl	GetObject
	mov	r1, #24
	add	r0, sp, #36
	bl	ZeroMemory
	ldr	r3, .L12+24
	ldr	ip, [sp, #32]
	ldr	r3, [r3]
	ldr	r2, .L12+28
	ldr	lr, [sp, #28]
	str	r4, [sp, #4]
	str	r4, [sp]
	rsb	ip, ip, #0
	ldr	r2, [r2]
	add	r1, sp, #36
	mov	r0, r6
	str	r3, [sp, #56]
	add	r3, sp, #24
	str	ip, [sp, #44]
	str	lr, [sp, #40]
	str	r9, [sp, #36]
	str	r7, [sp, #48]
	str	r5, [sp, #52]
	bl	CreateDIBSection
	mov	r5, r0
	mov	r0, r6
	bl	CreateCompatibleDC
	mov	r7, r0
	mov	r0, r6
	bl	CreateCompatibleDC
	mov	r1, r5
	mov	r6, r0
	mov	r0, r7
	bl	SelectObject
	mov	r1, r8
	mov	r10, r0
	mov	r0, r6
	bl	SelectObject
	mov	r9, r0
	ldr	r2, .L12+32
	ldr	r3, [sp, #32]
	ldr	r2, [r2]
	mov	r1, r4
	str	r2, [sp, #16]
	str	r3, [sp]
	mov	r2, r4
	ldr	r3, [sp, #28]
	mov	r0, r7
	str	r6, [sp, #4]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	bl	BitBlt
	mov	r1, r10
	mov	r0, r7
	bl	SelectObject
	mov	r1, r9
	mov	r0, r6
	bl	SelectObject
	mov	r0, r7
	bl	DeleteDC
	mov	r0, r6
	bl	DeleteDC
	mov	r0, r8
	bl	DeleteObject
	mov	r1, #8
	add	r2, sp, #28
	mov	r0, r5
	bl	GetObject
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #32]
	ldr	r1, [sp, #24]
	muls	r0, r2, r3
	beq	.L1
	mov	r3, r4
.L3:
	ldr	r0, [r1]
	add	r3, r3, #1
	bic	r2, r0, #-16777216
	orr	r2, r2, r0, lsl #24
	str	r2, [r1], #4
	ldr	r2, [sp, #28]
	ldr	r0, [sp, #32]
	mul	r2, r0, r2
	cmp	r2, r3
	bhi	.L3
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	GWLP_HINSTANCE
	.word	.LC0
	.word	IDB_STAR
	.word	LR_DEFAULTSIZE
	.word	LR_CREATEDIBSECTION
	.word	IMAGE_BITMAP
	.word	BI_RGB
	.word	DIB_RGB_COLORS
	.word	SRCCOPY
	.size	CreateStarBitmap, .-CreateStarBitmap
	.comm	SRCCOPY,4,4
	.comm	LR_DEFAULTSIZE,4,4
	.comm	LR_CREATEDIBSECTION,4,4
	.comm	IMAGE_BITMAP,4,4
	.comm	IDB_STAR,4,4
	.comm	GWLP_HINSTANCE,4,4
	.comm	DIB_RGB_COLORS,4,4
	.comm	BI_RGB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
