	.file	"extr_vt_fb.c_vt_fb_setpixel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unmapped framebuffer"
	.text
	.p2align 4
	.globl	vt_fb_setpixel
	.type	vt_fb_setpixel, @function
vt_fb_setpixel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	ebx, DWORD PTR 8[rbp]
	mov	r14d, DWORD PTR [rax+rcx*4]
	call	FBTYPE_GET_BYTESPP@PLT
	mov	edx, DWORD PTR 12[rbp]
	test	DWORD PTR FB_FLAG_NOWRITE[rip], edx
	je	.L11
.L1:
	pop	rbx
	.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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	imul	eax, r12d
	xor	edi, edi
	lea	rsi, .LC0[rip]
	imul	ebx, r13d
	cmp	QWORD PTR 16[rbp], 0
	setne	dil
	lea	r12d, [rbx+rax]
	call	KASSERT@PLT
	mov	rdi, rbp
	call	FBTYPE_GET_BYTESPP@PLT
	cmp	eax, 3
	je	.L3
	jg	.L4
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	jne	.L1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	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
	jmp	vt_fb_mem_wr2@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	eax, 4
	jne	.L1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	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
	jmp	vt_fb_mem_wr4@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	sar	edx, 16
	movzx	edx, dl
	call	vt_fb_mem_wr1@PLT
	mov	eax, r14d
	lea	esi, 1[r12]
	mov	rdi, rbp
	movzx	edx, ah
	call	vt_fb_mem_wr1@PLT
	movzx	edx, r14b
	lea	esi, 2[r12]
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	vt_fb_mem_wr1@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, r14d
	mov	esi, r12d
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	vt_fb_setpixel, .-vt_fb_setpixel
	.comm	FB_FLAG_NOWRITE,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_vt_fb.c_vt_fb_setpixel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unmapped framebuffer\000"
	.text
	.align	2
	.global	vt_fb_setpixel
	.syntax unified
	.arm
	.fpu softvfp
	.type	vt_fb_setpixel, %function
vt_fb_setpixel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r6, r1
	ldr	r1, [r4]
	mov	r0, r4
	mov	r5, r2
	ldr	r8, [r1, r3, lsl #2]
	ldr	r7, [r4, #4]
	bl	FBTYPE_GET_BYTESPP
	ldr	r3, .L10
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	tst	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	mul	r3, r6, r0
	ldr	r0, [r4, #12]
	ldr	r1, .L10+4
	subs	r0, r0, #0
	movne	r0, #1
	mla	r5, r7, r5, r3
	bl	KASSERT
	mov	r0, r4
	bl	FBTYPE_GET_BYTESPP
	sub	r0, r0, #1
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L1:
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	vt_fb_mem_wr4
.L5:
	asr	r2, r8, #16
	mov	r1, r5
	mov	r0, r4
	and	r2, r2, #255
	bl	vt_fb_mem_wr1
	asr	r2, r8, #8
	add	r1, r5, #1
	mov	r0, r4
	and	r2, r2, #255
	bl	vt_fb_mem_wr1
	mov	r0, r4
	and	r2, r8, #255
	add	r1, r5, #2
	pop	{r4, r5, r6, r7, r8, lr}
	b	vt_fb_mem_wr1
.L6:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	vt_fb_mem_wr2
.L7:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	vt_fb_mem_wr1
.L11:
	.align	2
.L10:
	.word	FB_FLAG_NOWRITE
	.word	.LC0
	.size	vt_fb_setpixel, .-vt_fb_setpixel
	.comm	FB_FLAG_NOWRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
