	.file	"extr_dcn20_dwb_scl.c_wbscl_set_scaler_filter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wbscl_set_scaler_filter, @function
wbscl_set_scaler_filter:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, 1[rsi]
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, eax
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	shr	r14d, 31
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	add	r14d, eax
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sar	r14d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	cmp	DWORD PTR NUM_PHASES[rip], -1
	mov	DWORD PTR 12[rsp], edx
	mov	QWORD PTR 24[rsp], rcx
	mov	DWORD PTR 16[rsp], r14d
	jl	.L1
	mov	DWORD PTR 20[rsp], 0
	mov	r13d, esi
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L3:
	test	r13d, r13d
	jle	.L7
	movsx	rax, DWORD PTR 20[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	xor	ebx, ebx
	lea	rbp, [rdi+rax*8]
	.p2align 4,,10
	.p2align 3
.L5:
	lea	eax, 1[rbx+rbx]
	mov	r15, QWORD PTR 0[rbp]
	xor	r14d, r14d
	cmp	eax, r13d
	jge	.L4
	mov	r14, QWORD PTR 8[rbp]
.L4:
	mov	eax, DWORD PTR 12[rsp]
	mov	r8d, DWORD PTR WBSCL_COEF_RAM_PHASE[rip]
	mov	ecx, ebx
	mov	r9d, r12d
	mov	edx, DWORD PTR WBSCL_COEF_RAM_TAP_PAIR_IDX[rip]
	xor	esi, esi
	add	ebx, 1
	add	rbp, 16
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR WBSCL_COEF_RAM_FILTER_TYPE[rip]
	mov	edi, DWORD PTR WBSCL_COEF_RAM_SELECT[rip]
	push	rax
	.cfi_def_cfa_offset 112
	call	REG_SET_3@PLT
	mov	eax, DWORD PTR WBSCL_COEF_RAM_ODD_TAP_COEF_EN[rip]
	push	1
	.cfi_def_cfa_offset 120
	mov	rcx, r15
	mov	r8d, DWORD PTR WBSCL_COEF_RAM_EVEN_TAP_COEF_EN[rip]
	mov	edx, DWORD PTR WBSCL_COEF_RAM_EVEN_TAP_COEF[rip]
	mov	r9d, 1
	xor	esi, esi
	push	rax
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR WBSCL_COEF_RAM_ODD_TAP_COEF[rip]
	push	r14
	.cfi_def_cfa_offset 136
	mov	edi, DWORD PTR WBSCL_COEF_RAM_TAP_DATA[rip]
	push	rax
	.cfi_def_cfa_offset 144
	call	REG_SET_4@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 96
	cmp	DWORD PTR 16[rsp], ebx
	jg	.L5
.L7:
	mov	edx, DWORD PTR NUM_PHASES[rip]
	add	r12d, 1
	add	DWORD PTR 20[rsp], r13d
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	eax, r12d
	jge	.L3
.L1:
	add	rsp, 40
	.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
	.cfi_endproc
.LFE0:
	.size	wbscl_set_scaler_filter, .-wbscl_set_scaler_filter
	.comm	WBSCL_COEF_RAM_TAP_PAIR_IDX,4,4
	.comm	WBSCL_COEF_RAM_TAP_DATA,4,4
	.comm	WBSCL_COEF_RAM_SELECT,4,4
	.comm	WBSCL_COEF_RAM_PHASE,4,4
	.comm	WBSCL_COEF_RAM_ODD_TAP_COEF_EN,4,4
	.comm	WBSCL_COEF_RAM_ODD_TAP_COEF,4,4
	.comm	WBSCL_COEF_RAM_FILTER_TYPE,4,4
	.comm	WBSCL_COEF_RAM_EVEN_TAP_COEF_EN,4,4
	.comm	WBSCL_COEF_RAM_EVEN_TAP_COEF,4,4
	.comm	NUM_PHASES,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_dcn20_dwb_scl.c_wbscl_set_scaler_filter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wbscl_set_scaler_filter, %function
wbscl_set_scaler_filter:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L12
	sub	sp, sp, #60
	mov	ip, r1
	ldr	r0, [r0]
	str	r1, [sp, #36]
	add	r1, r1, #1
	add	r1, r1, r1, lsr #31
	str	r2, [sp, #44]
	cmn	r0, #1
	asr	r2, r1, #1
	str	r2, [sp, #40]
	blt	.L1
	str	r3, [sp, #28]
	lsl	r3, ip, #2
	str	r3, [sp, #52]
	mov	r3, #0
	ldr	r7, .L12+4
	ldr	fp, .L12+8
	str	r3, [sp, #32]
.L3:
	ldr	r3, [sp, #36]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	mov	r6, #1
	ldr	r3, [sp, #28]
	ldr	r10, .L12+12
	add	r3, r3, #4
	ldr	r9, .L12+16
	ldr	r8, .L12+20
	str	r3, [sp, #48]
.L5:
	ldr	r2, [sp, #36]
	lsl	r3, r4, #1
	add	r3, r3, #1
	cmp	r2, r3
	ldr	r3, [sp, #28]
	ldr	r1, [sp, #44]
	ldr	r5, [r3, r4, lsl #3]
	movle	r3, #0
	ldrgt	r3, [sp, #48]
	ldr	r2, [r7]
	ldrgt	r3, [r3, r4, lsl #3]
	str	r1, [sp, #12]
	ldr	r1, [sp, #32]
	str	r3, [sp, #24]
	stmib	sp, {r1, r2}
	ldr	r3, [fp]
	ldr	r2, .L12+24
	ldr	r0, .L12+28
	str	r3, [sp]
	mov	r1, #0
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	REG_SET_3
	ldr	r0, [r10]
	ldr	r2, [r8]
	ldr	r1, [r9]
	ldr	r3, [sp, #24]
	str	r0, [sp, #16]
	str	r2, [sp]
	ldr	r0, .L12+32
	ldr	r2, .L12+36
	str	r3, [sp, #12]
	str	r1, [sp, #8]
	str	r6, [sp, #20]
	str	r6, [sp, #4]
	mov	r3, r5
	mov	r1, #0
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	REG_SET_4
	ldr	r3, [sp, #40]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L7:
	ldr	r3, .L12
	ldr	r2, [sp, #32]
	ldr	r3, [r3]
	add	r2, r2, #1
	add	r3, r3, r3, lsr #31
	cmp	r2, r3, asr #1
	str	r2, [sp, #32]
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #52]
	add	r3, r3, r2
	str	r3, [sp, #28]
	ble	.L3
.L1:
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	NUM_PHASES
	.word	WBSCL_COEF_RAM_FILTER_TYPE
	.word	WBSCL_COEF_RAM_PHASE
	.word	WBSCL_COEF_RAM_ODD_TAP_COEF_EN
	.word	WBSCL_COEF_RAM_ODD_TAP_COEF
	.word	WBSCL_COEF_RAM_EVEN_TAP_COEF_EN
	.word	WBSCL_COEF_RAM_TAP_PAIR_IDX
	.word	WBSCL_COEF_RAM_SELECT
	.word	WBSCL_COEF_RAM_TAP_DATA
	.word	WBSCL_COEF_RAM_EVEN_TAP_COEF
	.size	wbscl_set_scaler_filter, .-wbscl_set_scaler_filter
	.comm	WBSCL_COEF_RAM_TAP_PAIR_IDX,4,4
	.comm	WBSCL_COEF_RAM_TAP_DATA,4,4
	.comm	WBSCL_COEF_RAM_SELECT,4,4
	.comm	WBSCL_COEF_RAM_PHASE,4,4
	.comm	WBSCL_COEF_RAM_ODD_TAP_COEF_EN,4,4
	.comm	WBSCL_COEF_RAM_ODD_TAP_COEF,4,4
	.comm	WBSCL_COEF_RAM_FILTER_TYPE,4,4
	.comm	WBSCL_COEF_RAM_EVEN_TAP_COEF_EN,4,4
	.comm	WBSCL_COEF_RAM_EVEN_TAP_COEF,4,4
	.comm	NUM_PHASES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
