	.file	"extr_machfb.c_machfb_putc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	machfb_putc, @function
machfb_putc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR MACHFB_DRAW_CHAR[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L2
	mov	esi, 8
	call	wait_for_fifo@PLT
	mov	rsi, QWORD PTR DP_WRITE_MASK[rip]
	mov	edx, 255
	mov	rdi, rbp
	call	regw@PLT
	mov	rsi, QWORD PTR DP_PIX_WIDTH[rip]
	mov	edx, DWORD PTR DST_8BPP[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR SRC_1BPP[rip]
	or	edx, DWORD PTR HOST_1BPP[rip]
	call	regw@PLT
	mov	rsi, QWORD PTR DP_SRC[rip]
	mov	edx, DWORD PTR MONO_SRC_HOST[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR BKGD_SRC_BKGD_CLR[rip]
	or	edx, DWORD PTR FRGD_SRC_FRGD_CLR[rip]
	call	regw@PLT
	mov	eax, DWORD PTR MIX_SRC[rip]
	mov	rsi, QWORD PTR DP_MIX[rip]
	mov	rdi, rbp
	mov	edx, eax
	sal	edx, 16
	or	edx, eax
	call	regw@PLT
	mov	rsi, QWORD PTR CLR_CMP_CNTL[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	regw@PLT
	mov	edx, DWORD PTR SRC_LINE_X_LEFT_TO_RIGHT[rip]
	mov	rsi, QWORD PTR SRC_CNTL[rip]
	mov	rdi, rbp
	call	regw@PLT
	mov	rsi, QWORD PTR DST_CNTL[rip]
	mov	edx, DWORD PTR DST_Y_TOP_TO_BOTTOM[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR DST_X_LEFT_TO_RIGHT[rip]
	call	regw@PLT
	mov	edx, DWORD PTR HOST_BYTE_ALIGN[rip]
	mov	rsi, QWORD PTR HOST_CNTL[rip]
	mov	rdi, rbp
	call	regw@PLT
	mov	rax, QWORD PTR MACHFB_DRAW_CHAR[rip]
	mov	QWORD PTR 0[rbp], rax
.L2:
	mov	esi, r13d
	mov	rdi, rbp
	sar	esi, 4
	and	esi, 15
	call	machfb_setbg@PLT
	mov	esi, r13d
	mov	rdi, rbp
	and	esi, 15
	call	machfb_setfg@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	cdq
	idiv	DWORD PTR 8[rbp]
	lea	esi, 4[rax]
	call	wait_for_fifo@PLT
	mov	rsi, QWORD PTR SRC_Y_X[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	regw@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	rsi, QWORD PTR SRC_WIDTH1[rip]
	mov	rdi, rbp
	call	regw@PLT
	mov	eax, ebx
	mov	rsi, QWORD PTR DST_Y_X[rip]
	mov	rdi, rbp
	cdq
	idiv	DWORD PTR 8[rbp]
	imul	edx, DWORD PTR 4[rbp]
	add	edx, DWORD PTR 12[rbp]
	imul	eax, DWORD PTR 0[rbp]
	sal	edx, 16
	add	eax, DWORD PTR 16[rbp]
	or	edx, eax
	call	regw@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	rsi, QWORD PTR DST_HEIGHT_WIDTH[rip]
	mov	rdi, rbp
	sal	edx, 16
	or	edx, DWORD PTR 0[rbp]
	call	regw@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 24[rbp]
	imul	r12d, eax
	imul	eax, edx
	imul	r12d, edx
	movsx	r12, r12d
	lea	r12, [rcx+r12*4]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR 12[r12+rbx*4]
	mov	eax, DWORD PTR 8[r12+rbx*4]
	mov	rdi, rbp
	mov	rsi, QWORD PTR HOST_DATA0[rip]
	sal	eax, 16
	sal	edx, 24
	or	edx, eax
	mov	eax, DWORD PTR 4[r12+rbx*4]
	or	edx, DWORD PTR [r12+rbx*4]
	add	rsi, rbx
	add	rbx, 4
	sal	eax, 8
	or	edx, eax
	call	regw@PLT
	mov	eax, DWORD PTR 0[rbp]
	imul	eax, DWORD PTR 8[rbp]
	cmp	eax, ebx
	jg	.L4
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	machfb_putc, .-machfb_putc
	.comm	SRC_Y_X,8,8
	.comm	SRC_WIDTH1,8,8
	.comm	SRC_LINE_X_LEFT_TO_RIGHT,4,4
	.comm	SRC_CNTL,8,8
	.comm	SRC_1BPP,4,4
	.comm	MONO_SRC_HOST,4,4
	.comm	MIX_SRC,4,4
	.comm	MACHFB_DRAW_CHAR,8,8
	.comm	HOST_DATA0,8,8
	.comm	HOST_CNTL,8,8
	.comm	HOST_BYTE_ALIGN,4,4
	.comm	HOST_1BPP,4,4
	.comm	FRGD_SRC_FRGD_CLR,4,4
	.comm	DST_Y_X,8,8
	.comm	DST_Y_TOP_TO_BOTTOM,4,4
	.comm	DST_X_LEFT_TO_RIGHT,4,4
	.comm	DST_HEIGHT_WIDTH,8,8
	.comm	DST_CNTL,8,8
	.comm	DST_8BPP,4,4
	.comm	DP_WRITE_MASK,8,8
	.comm	DP_SRC,8,8
	.comm	DP_PIX_WIDTH,8,8
	.comm	DP_MIX,8,8
	.comm	CLR_CMP_CNTL,8,8
	.comm	BKGD_SRC_BKGD_CLR,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_machfb.c_machfb_putc.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	machfb_putc, %function
machfb_putc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L8
	ldr	lr, [r0]
	ldr	ip, [r8]
	mov	r5, r0
	cmp	lr, ip
	mov	r7, r1
	mov	r4, r2
	mov	r6, r3
	beq	.L2
	mov	r1, #8
	bl	wait_for_fifo
	ldr	r3, .L8+4
	mov	r2, #255
	ldr	r1, [r3]
	mov	r0, r5
	bl	regw
	ldr	r1, .L8+8
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L8+20
	orr	r3, r3, r0
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r0, r5
	bl	regw
	ldr	r1, .L8+24
	ldr	r3, .L8+28
	ldr	r2, .L8+32
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L8+36
	orr	r3, r3, r0
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r0, r5
	bl	regw
	ldr	r2, .L8+40
	ldr	r3, .L8+44
	ldr	r2, [r2]
	ldr	r1, [r3]
	orr	r2, r2, r2, lsl #16
	mov	r0, r5
	bl	regw
	ldr	r3, .L8+48
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	regw
	ldr	r3, .L8+52
	ldr	r2, .L8+56
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	bl	regw
	ldr	r2, .L8+60
	ldr	r3, .L8+64
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L8+68
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	bl	regw
	ldr	r3, .L8+72
	ldr	r2, .L8+76
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r2, [r2]
	bl	regw
	ldr	r3, [r8]
	str	r3, [r5]
.L2:
	asr	r1, r6, #4
	and	r1, r1, #15
	mov	r0, r5
	bl	machfb_setbg
	and	r1, r6, #15
	mov	r0, r5
	bl	machfb_setfg
	ldm	r5, {r0, r1}
	bl	__aeabi_idiv
	mov	r1, r0
	mov	r0, r5
	add	r1, r1, #4
	bl	wait_for_fifo
	ldr	r3, .L8+80
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	regw
	ldr	r3, .L8+84
	ldr	r2, [r5, #4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	regw
	ldr	r6, [r5, #8]
	ldr	r3, .L8+88
	mov	r0, r7
	mov	r1, r6
	ldr	r7, [r3]
	bl	__aeabi_idivmod
	ldr	ip, [r5]
	ldr	r2, [r5, #4]
	ldr	r3, [r5, #12]
	mla	r2, r1, r2, r6
	mla	r3, ip, r0, r3
	mov	r1, r7
	orr	r2, r3, r2, lsl #16
	mov	r0, r5
	bl	regw
	ldr	r1, [r5, #4]
	ldr	r3, .L8+92
	ldr	r2, [r5]
	mov	r0, r5
	orr	r2, r2, r1, lsl #16
	ldr	r1, [r3]
	bl	regw
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	mul	r4, r3, r4
	mul	r3, r2, r3
	mul	r4, r2, r4
	ldr	r2, [r5, #16]
	cmp	r3, #0
	add	r4, r2, r4, lsl #2
	ble	.L3
	mov	r6, #0
	ldr	r7, .L8+96
.L4:
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	ldr	r0, [r4]
	lsl	r3, r3, #16
	ldr	r1, [r7]
	orr	r3, r3, r2, lsl #24
	ldr	r2, [r4, #4]
	orr	r3, r3, r0
	orr	r2, r3, r2, lsl #8
	add	r1, r6, r1
	mov	r0, r5
	bl	regw
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	add	r6, r6, #4
	mul	r3, r2, r3
	cmp	r3, r6
	add	r4, r4, #16
	bgt	.L4
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	MACHFB_DRAW_CHAR
	.word	DP_WRITE_MASK
	.word	SRC_1BPP
	.word	DST_8BPP
	.word	HOST_1BPP
	.word	DP_PIX_WIDTH
	.word	BKGD_SRC_BKGD_CLR
	.word	MONO_SRC_HOST
	.word	FRGD_SRC_FRGD_CLR
	.word	DP_SRC
	.word	MIX_SRC
	.word	DP_MIX
	.word	CLR_CMP_CNTL
	.word	SRC_CNTL
	.word	SRC_LINE_X_LEFT_TO_RIGHT
	.word	DST_Y_TOP_TO_BOTTOM
	.word	DST_X_LEFT_TO_RIGHT
	.word	DST_CNTL
	.word	HOST_CNTL
	.word	HOST_BYTE_ALIGN
	.word	SRC_Y_X
	.word	SRC_WIDTH1
	.word	DST_Y_X
	.word	DST_HEIGHT_WIDTH
	.word	HOST_DATA0
	.size	machfb_putc, .-machfb_putc
	.comm	SRC_Y_X,4,4
	.comm	SRC_WIDTH1,4,4
	.comm	SRC_LINE_X_LEFT_TO_RIGHT,4,4
	.comm	SRC_CNTL,4,4
	.comm	SRC_1BPP,4,4
	.comm	MONO_SRC_HOST,4,4
	.comm	MIX_SRC,4,4
	.comm	MACHFB_DRAW_CHAR,4,4
	.comm	HOST_DATA0,4,4
	.comm	HOST_CNTL,4,4
	.comm	HOST_BYTE_ALIGN,4,4
	.comm	HOST_1BPP,4,4
	.comm	FRGD_SRC_FRGD_CLR,4,4
	.comm	DST_Y_X,4,4
	.comm	DST_Y_TOP_TO_BOTTOM,4,4
	.comm	DST_X_LEFT_TO_RIGHT,4,4
	.comm	DST_HEIGHT_WIDTH,4,4
	.comm	DST_CNTL,4,4
	.comm	DST_8BPP,4,4
	.comm	DP_WRITE_MASK,4,4
	.comm	DP_SRC,4,4
	.comm	DP_PIX_WIDTH,4,4
	.comm	DP_MIX,4,4
	.comm	CLR_CMP_CNTL,4,4
	.comm	BKGD_SRC_BKGD_CLR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
