	.file	"extr_davinci-mcasp.c_davinci_mcasp_ch_constraint.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	davinci_mcasp_ch_constraint, @function
davinci_mcasp_ch_constraint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	rsi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	sal	rbp, 4
	mov	ebx, edx
	add	rbp, QWORD PTR 16[rdi]
	mov	r8, QWORD PTR [rax+rsi*8]
	mov	r12, QWORD PTR 8[rbp]
	test	r8, r8
	jne	.L2
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L8
.L13:
	mov	rsi, r12
	lea	edi, 1[rax]
	mov	ecx, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [rsi], ecx
	add	ecx, 1
	add	rsi, 4
	cmp	ecx, edi
	jne	.L5
	mov	edx, eax
.L4:
	cmp	ebx, 1
	jle	.L6
	movsx	r8, edx
	lea	edi, -2[rbx]
	lea	esi, [rax+rax]
	add	rdi, r8
	lea	rcx, [r12+r8*4]
	lea	rdi, 4[r12+rdi*4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rcx], esi
	add	rcx, 4
	add	esi, eax
	cmp	rcx, rdi
	jne	.L7
	lea	edx, -1[rdx+rbx]
.L6:
	mov	DWORD PTR 0[rbp], edx
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r8
	call	hweight32@PLT
	test	eax, eax
	jg	.L13
.L8:
	xor	edx, edx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	davinci_mcasp_ch_constraint, .-davinci_mcasp_ch_constraint
	.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_davinci-mcasp.c_davinci_mcasp_ch_constraint.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	davinci_mcasp_ch_constraint, %function
davinci_mcasp_ch_constraint:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldmib	r0, {r1, r7}
	mov	r3, r0
	ldr	r0, [r1, r6, lsl #2]
	add	r1, r7, r6, lsl #3
	cmp	r0, #0
	mov	r5, r2
	ldr	r4, [r1, #4]
	bne	.L2
	ldr	r0, [r3]
	cmp	r0, #0
	ble	.L8
.L13:
	mov	r3, #1
	mov	ip, r4
	add	r2, r0, r3
.L5:
	str	r3, [ip], #4
	add	r3, r3, #1
	cmp	r3, r2
	bne	.L5
	mov	r2, r0
.L4:
	cmp	r5, #1
	ble	.L6
	sub	r3, r4, #4
	add	lr, r2, r5
	add	lr, r3, lr, lsl #2
	lsl	ip, r0, #1
	add	r3, r4, r2, lsl #2
.L7:
	str	ip, [r3], #4
	cmp	r3, lr
	add	ip, ip, r0
	bne	.L7
	sub	r5, r5, #1
	add	r2, r5, r2
.L6:
	mov	r0, #0
	str	r2, [r7, r6, lsl #3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	hweight32
	cmp	r0, #0
	bgt	.L13
.L8:
	mov	r2, #0
	b	.L4
	.size	davinci_mcasp_ch_constraint, .-davinci_mcasp_ch_constraint
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
