	.file	"68887050.c"
	.intel_syntax noprefix
	.text
	.globl	makepixel
	.type	makepixel, @function
makepixel:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	BYTE PTR -4[rbp], dl
	mov	edx, ecx
	mov	BYTE PTR -8[rbp], dl
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	shr	al, 3
	movzx	eax, al
	sal	eax, 11
	mov	edx, eax
	movzx	eax, BYTE PTR -8[rbp]
	shr	al, 2
	movzx	eax, al
	sal	eax, 5
	or	edx, eax
	movzx	eax, BYTE PTR -12[rbp]
	shr	al, 3
	movzx	eax, al
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	makepixel, .-makepixel
	.section	.rodata
.LC0:
	.string	"/dev/fb2"
.LC1:
	.string	"fbdev open"
.LC2:
	.string	"fbdev ioctl"
.LC3:
	.string	"bpp is not 16\n"
.LC4:
	.string	"fbdev mmap"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	esi, 17920
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -192[rbp], eax
	cmp	DWORD PTR -192[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, 16
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR -172[rbp]
	imul	eax, edx
	sal	eax, 4
	shr	eax, 3
	mov	esi, eax
	mov	eax, DWORD PTR -196[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	makepixel
	mov	WORD PTR -206[rbp], ax
	mov	DWORD PTR -204[rbp], 0
	jmp	.L8
.L11:
	mov	DWORD PTR -200[rbp], 0
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR -204[rbp]
	imul	edx, eax
	mov	eax, DWORD PTR -200[rbp]
	add	eax, edx
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -184[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -206[rbp]
	mov	WORD PTR [rdx], ax
	add	DWORD PTR -200[rbp], 1
.L9:
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR -200[rbp]
	cmp	edx, eax
	ja	.L10
	add	DWORD PTR -204[rbp], 1
.L8:
	mov	edx, DWORD PTR -172[rbp]
	mov	eax, DWORD PTR -204[rbp]
	cmp	edx, eax
	ja	.L11
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR -172[rbp]
	imul	eax, edx
	sal	eax, 4
	shr	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"68887050.c"
	.text
	.align	2
	.global	makepixel
	.syntax unified
	.arm
	.fpu softvfp
	.type	makepixel, %function
makepixel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	mov	r3, r1
	strb	r3, [fp, #-6]
	mov	r3, r2
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	lsl	r3, r3, #11
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	lsl	r3, r3, #5
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	makepixel, .-makepixel
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/fb2\000"
	.align	2
.LC1:
	.ascii	"fbdev open\000"
	.align	2
.LC2:
	.ascii	"fbdev ioctl\000"
	.align	2
.LC3:
	.ascii	"bpp is not 16\012\000"
	.align	2
.LC4:
	.ascii	"fbdev mmap\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, .L14+4
	bl	open
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L14+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #168
	mov	r2, r3
	mov	r1, #17920
	ldr	r0, [fp, #-184]
	bl	ioctl
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L14+12
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-144]
	cmp	r3, #16
	beq	.L6
	ldr	r3, .L14+16
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L14+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-164]
	mul	r3, r2, r3
	lsl	r3, r3, #4
	lsr	r1, r3, #3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-184]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L14+24
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	makepixel
	mov	r3, r0
	strh	r3, [fp, #-194]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L8
.L11:
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L9
.L10:
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-192]
	mul	r2, r3, r2
	ldr	r3, [fp, #-188]
	add	r3, r2, r3
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	ldrh	r2, [fp, #-194]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L9:
	ldr	r2, [fp, #-168]
	ldr	r3, [fp, #-188]
	cmp	r2, r3
	bhi	.L10
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L8:
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	bhi	.L11
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-164]
	mul	r3, r2, r3
	lsl	r3, r3, #4
	lsr	r3, r3, #3
	mov	r1, r3
	ldr	r0, [fp, #-176]
	bl	munmap
	ldr	r0, [fp, #-184]
	bl	close
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
