	.file	"extr_hpfb.c_hpfb_fillrect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hpfb_fillrect, @function
hpfb_fillrect:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	ebp, BYTE PTR [rsi]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR BUSY[rip]
	add	rdi, QWORD PTR fb_regs[rip]
	call	in_8@PLT
	mov	esi, DWORD PTR fb_bitmask[rip]
	test	eax, esi
	jne	.L2
	mov	rdi, QWORD PTR TC_WEN[rip]
	and	esi, ebp
	add	rdi, QWORD PTR fb_regs[rip]
	call	out_8@PLT
	mov	esi, DWORD PTR RR_INVERT[rip]
	mov	rax, QWORD PTR ROP_COPY[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L4
	mov	esi, DWORD PTR RR_SET[rip]
.L4:
	mov	rdi, QWORD PTR WMRR[rip]
	add	rdi, QWORD PTR fb_regs[rip]
	call	out_8@PLT
	mov	esi, ebp
	mov	rdi, QWORD PTR TC_WEN[rip]
	add	rdi, QWORD PTR fb_regs[rip]
	not	esi
	and	esi, DWORD PTR fb_bitmask[rip]
	call	out_8@PLT
	mov	esi, DWORD PTR RR_NOOP[rip]
	mov	rax, QWORD PTR ROP_COPY[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L6
	mov	esi, DWORD PTR RR_CLEAR[rip]
.L6:
	mov	rdi, QWORD PTR WMRR[rip]
	add	rdi, QWORD PTR fb_regs[rip]
	call	out_8@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 28[rbx]
	mov	r9d, DWORD PTR 16[rbx]
	mov	r8d, DWORD PTR 20[rbx]
	push	-1
	.cfi_def_cfa_offset 48
	mov	ecx, esi
	mov	edx, edi
	call	topcat_blit@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hpfb_fillrect, .-hpfb_fillrect
	.comm	fb_regs,8,8
	.comm	fb_bitmask,4,4
	.comm	WMRR,8,8
	.comm	TC_WEN,8,8
	.comm	RR_SET,4,4
	.comm	RR_NOOP,4,4
	.comm	RR_INVERT,4,4
	.comm	RR_CLEAR,4,4
	.comm	ROP_COPY,8,8
	.comm	BUSY,8,8
	.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_hpfb.c_hpfb_fillrect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpfb_fillrect, %function
hpfb_fillrect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	ldr	r4, .L10
	ldrb	r7, [r1]	@ zero_extendqisi2
	ldr	r8, .L10+4
	ldr	r5, .L10+8
	sub	sp, sp, #16
.L2:
	ldr	r0, [r4]
	ldr	r3, [r8]
	add	r0, r0, r3
	bl	in_8
	ldr	r1, [r5]
	tst	r0, r1
	bne	.L2
	ldr	r10, .L10+12
	ldr	r0, [r4]
	ldr	r2, [r10]
	ldr	r9, .L10+16
	ldr	r8, .L10+20
	and	r1, r1, r7
	add	r0, r0, r2
	bl	out_8
	ldr	r2, [r9]
	ldr	r1, [r6, #4]
	ldr	r3, [r8]
	ldr	r0, [r4]
	cmp	r1, r2
	add	r0, r0, r3
	ldreq	r3, .L10+24
	ldrne	r3, .L10+28
	ldr	r1, [r3]
	bl	out_8
	ldr	r3, [r10]
	ldr	r1, [r5]
	ldr	r0, [r4]
	bic	r1, r1, r7
	add	r0, r0, r3
	bl	out_8
	ldr	r2, [r9]
	ldr	r1, [r6, #4]
	ldr	r3, [r8]
	ldr	r0, [r4]
	cmp	r1, r2
	add	r0, r0, r3
	ldreq	r3, .L10+32
	ldrne	r3, .L10+36
	ldr	r1, [r3]
	bl	out_8
	mvn	r1, #0
	ldr	r2, [r6, #20]
	ldr	r3, [r6, #16]
	ldr	lr, [r6, #8]
	ldr	ip, [r6, #12]
	mov	r0, r2
	str	r1, [sp, #8]
	stm	sp, {ip, lr}
	mov	r1, r3
	bl	topcat_blit
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	fb_regs
	.word	BUSY
	.word	fb_bitmask
	.word	TC_WEN
	.word	ROP_COPY
	.word	WMRR
	.word	RR_SET
	.word	RR_INVERT
	.word	RR_CLEAR
	.word	RR_NOOP
	.size	hpfb_fillrect, .-hpfb_fillrect
	.comm	fb_regs,4,4
	.comm	fb_bitmask,4,4
	.comm	WMRR,4,4
	.comm	TC_WEN,4,4
	.comm	RR_SET,4,4
	.comm	RR_NOOP,4,4
	.comm	RR_INVERT,4,4
	.comm	RR_CLEAR,4,4
	.comm	ROP_COPY,4,4
	.comm	BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
