	.file	"extr_histogram_enc.c_VP8LHistogramAddSinglePixOrCopy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	VP8LHistogramAddSinglePixOrCopy
	.type	VP8LHistogramAddSinglePixOrCopy, @function
VP8LHistogramAddSinglePixOrCopy:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	PixOrCopyIsLiteral@PLT
	test	rax, rax
	je	.L2
	mov	r12, QWORD PTR 32[rbx]
	mov	esi, 3
	mov	rdi, rbp
	call	PixOrCopyLiteral@PLT
	mov	esi, 2
	mov	rdi, rbp
	add	DWORD PTR [r12+rax*4], 1
	mov	r12, QWORD PTR 24[rbx]
	call	PixOrCopyLiteral@PLT
	mov	esi, 1
	mov	rdi, rbp
	add	DWORD PTR [r12+rax*4], 1
	mov	r12, QWORD PTR 8[rbx]
	call	PixOrCopyLiteral@PLT
	mov	rbx, QWORD PTR 16[rbx]
	xor	esi, esi
	mov	rdi, rbp
	add	DWORD PTR [r12+rax*4], 1
	call	PixOrCopyLiteral@PLT
	add	DWORD PTR [rbx+rax*4], 1
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	PixOrCopyIsCacheIdx@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	mov	r12d, DWORD PTR NUM_LENGTH_CODES[rip]
	add	r12d, DWORD PTR NUM_LITERAL_CODES[rip]
	call	PixOrCopyCacheIdx@PLT
	mov	rdx, QWORD PTR 8[rbx]
	add	eax, r12d
	cdqe
	add	DWORD PTR [rdx+rax*4], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	lea	r15, 4[rsp]
	mov	r14, rsp
	call	PixOrCopyLength@PLT
	mov	rdx, r15
	mov	rsi, r14
	mov	edi, eax
	call	VP8LPrefixEncodeBits@PLT
	mov	eax, DWORD PTR [rsp]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdi, rbp
	add	eax, DWORD PTR NUM_LITERAL_CODES[rip]
	cdqe
	add	DWORD PTR [rdx+rax*4], 1
	test	r13, r13
	je	.L11
	call	PixOrCopyDistance@PLT
	mov	edi, r12d
	mov	esi, eax
	call	r13
	mov	rdx, r15
	mov	rsi, r14
	mov	edi, eax
	call	VP8LPrefixEncodeBits@PLT
.L6:
	movsx	rdx, DWORD PTR [rsp]
	mov	rax, QWORD PTR [rbx]
	add	DWORD PTR [rax+rdx*4], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	call	PixOrCopyDistance@PLT
	mov	rdx, r15
	mov	rsi, r14
	mov	edi, eax
	call	VP8LPrefixEncodeBits@PLT
	jmp	.L6
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	VP8LHistogramAddSinglePixOrCopy, .-VP8LHistogramAddSinglePixOrCopy
	.comm	NUM_LITERAL_CODES,4,4
	.comm	NUM_LENGTH_CODES,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_histogram_enc.c_VP8LHistogramAddSinglePixOrCopy.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	VP8LHistogramAddSinglePixOrCopy
	.syntax unified
	.arm
	.fpu softvfp
	.type	VP8LHistogramAddSinglePixOrCopy, %function
VP8LHistogramAddSinglePixOrCopy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L12
	sub	sp, sp, #20
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	PixOrCopyIsLiteral
	cmp	r0, #0
	beq	.L2
	mov	r1, #3
	mov	r0, r4
	ldr	r6, [r5, #16]
	bl	PixOrCopyLiteral
	ldr	r3, [r6, r0, lsl #2]
	mov	r1, #2
	add	r3, r3, #1
	str	r3, [r6, r0, lsl #2]
	mov	r0, r4
	ldr	r6, [r5, #12]
	bl	PixOrCopyLiteral
	mov	r1, #1
	ldr	r3, [r6, r0, lsl #2]
	add	r3, r3, r1
	str	r3, [r6, r0, lsl #2]
	mov	r0, r4
	ldr	r6, [r5, #4]
	bl	PixOrCopyLiteral
	mov	r3, r0
	ldr	r2, [r6, r0, lsl #2]
	mov	r1, #0
	add	r2, r2, #1
	mov	r0, r4
	str	r2, [r6, r3, lsl #2]
	ldr	r4, [r5, #8]
	bl	PixOrCopyLiteral
	ldr	r3, [r4, r0, lsl #2]
	add	r3, r3, #1
	str	r3, [r4, r0, lsl #2]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r4
	bl	PixOrCopyIsCacheIdx
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L12+4
	ldr	r2, .L12+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	add	r4, r3, r2
	bl	PixOrCopyCacheIdx
	ldr	r2, [r5, #4]
	add	r0, r4, r0
	ldr	r3, [r2, r0, lsl #2]
	add	r3, r3, #1
	str	r3, [r2, r0, lsl #2]
	b	.L1
.L4:
	mov	r0, r4
	bl	PixOrCopyLength
	add	r2, sp, #8
	add	r1, sp, #4
	bl	VP8LPrefixEncodeBits
	ldr	r3, .L12+4
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	ldr	r1, [r5, #4]
	add	r3, r3, r2
	ldr	r2, [r1, r3, lsl #2]
	cmp	r7, #0
	add	r2, r2, #1
	mov	r0, r4
	str	r2, [r1, r3, lsl #2]
	beq	.L11
	bl	PixOrCopyDistance
	mov	r1, r0
	mov	r0, r6
	blx	r7
	add	r2, sp, #8
	add	r1, sp, #4
	bl	VP8LPrefixEncodeBits
.L6:
	ldr	r2, [r5]
	ldr	r1, [sp, #4]
	ldr	r3, [r2, r1, lsl #2]
	add	r3, r3, #1
	str	r3, [r2, r1, lsl #2]
	b	.L1
.L11:
	bl	PixOrCopyDistance
	add	r2, sp, #8
	add	r1, sp, #4
	bl	VP8LPrefixEncodeBits
	b	.L6
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	NUM_LITERAL_CODES
	.word	NUM_LENGTH_CODES
	.size	VP8LHistogramAddSinglePixOrCopy, .-VP8LHistogramAddSinglePixOrCopy
	.comm	NUM_LITERAL_CODES,4,4
	.comm	NUM_LENGTH_CODES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
