	.file	"extr_huffyuvenc.c_sub_left_prediction.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sub_left_prediction, @function
sub_left_prediction:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movsx	r13, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	edi, r13d
	mov	r12, rsi
	mov	esi, 32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, r8d
	call	FFMIN@PLT
	cmp	DWORD PTR [r14], 8
	jle	.L2
	test	eax, eax
	jle	.L14
	lea	esi, -1[rax]
	xor	edx, edx
	mov	eax, ebx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, eax
	mov	eax, DWORD PTR 0[rbp+rdx*4]
	mov	edi, eax
	sub	edi, ecx
	mov	rcx, rdx
	mov	DWORD PTR [r12+rdx*4], edi
	add	rdx, 1
	cmp	rcx, rsi
	jne	.L8
.L4:
	cmp	r13d, 31
	jle	.L1
	mov	rax, QWORD PTR 8[r14]
	lea	rdx, 124[rbp]
	lea	r8d, -32[r13]
	lea	rsi, 128[rbp]
	lea	rdi, 128[r12]
	lea	rcx, -1[rax]
	call	[QWORD PTR 16[r14]]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR -4[rbp+r13*4]
	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
.L2:
	.cfi_restore_state
	test	eax, eax
	jle	.L9
	lea	esi, -1[rax]
	xor	edx, edx
	mov	eax, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, eax
	mov	eax, DWORD PTR 0[rbp+rdx*4]
	mov	ebx, eax
	sub	ebx, ecx
	mov	rcx, rdx
	mov	DWORD PTR [r12+rdx*4], ebx
	add	rdx, 1
	cmp	rsi, rcx
	jne	.L6
.L5:
	cmp	r13d, 31
	jle	.L1
	lea	ecx, -32[r13]
	lea	rdx, 124[rbp]
	lea	rsi, 128[rbp]
	lea	rdi, 128[r12]
	call	[QWORD PTR 24[r14]]
	mov	eax, DWORD PTR -4[rbp+r13*4]
.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
.L14:
	.cfi_restore_state
	mov	eax, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, ebx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	sub_left_prediction, .-sub_left_prediction
	.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_huffyuvenc.c_sub_left_prediction.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sub_left_prediction, %function
sub_left_prediction:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	sub	sp, sp, #12
	mov	r0, r3
	mov	r7, r1
	mov	r1, #32
	mov	r4, r3
	mov	r5, r2
	bl	FFMIN
	ldr	r3, [r6]
	mov	lr, r0
	cmp	r3, #8
	ldr	r0, [sp, #32]
	ble	.L2
	cmp	lr, #0
	subgt	r3, r5, #4
	addgt	lr, r3, lr, lsl #2
	subgt	r2, r7, #4
	ble	.L4
.L8:
	mov	ip, r0
	ldr	r0, [r3, #4]!
	sub	ip, r0, ip
	cmp	r3, lr
	str	ip, [r2, #4]!
	bne	.L8
.L4:
	cmp	r4, #31
	bgt	.L14
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	cmp	lr, #0
	ble	.L5
	sub	r3, r5, #4
	add	lr, r3, lr, lsl #2
	sub	r2, r7, #4
.L6:
	mov	ip, r0
	ldr	r0, [r3, #4]!
	sub	ip, r0, ip
	cmp	r3, lr
	str	ip, [r2, #4]!
	bne	.L6
.L5:
	cmp	r4, #31
	ble	.L1
	sub	r3, r4, #32
	ldr	r6, [r6, #12]
	add	r0, r7, #128
	add	r2, r5, #124
	add	r1, r5, #128
	blx	r6
	sub	r4, r4, #-1073741823
	ldr	r0, [r5, r4, lsl #2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r3, [r6, #4]
	sub	r2, r4, #32
	ldr	r6, [r6, #8]
	add	r0, r7, #128
	str	r2, [sp]
	sub	r3, r3, #1
	add	r2, r5, #124
	add	r1, r5, #128
	blx	r6
	sub	r4, r4, #-1073741823
	ldr	r0, [r5, r4, lsl #2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
	.size	sub_left_prediction, .-sub_left_prediction
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
