	.file	"extr_cxddk.c_cx_compute_buf_len.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx_compute_buf_len, @function
cx_compute_buf_len:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR DMABUFSZ[rip]
	mov	rax, QWORD PTR M_ASYNC[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L6
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 8[rdi]
	mov	r8d, 4
	add	edx, 799
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1374389535
	sar	rax, 40
	sub	eax, edx
	add	eax, eax
	cmp	eax, 3
	jle	.L1
	cmp	DWORD PTR DMABUFSZ[rip], eax
	cmovle	eax, DWORD PTR DMABUFSZ[rip]
	mov	r8d, eax
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	cx_compute_buf_len, .-cx_compute_buf_len
	.comm	M_ASYNC,8,8
	.comm	DMABUFSZ,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_cxddk.c_cx_compute_buf_len.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx_compute_buf_len, %function
cx_compute_buf_len:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L7
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
	ldr	r3, .L7+4
	ldr	r0, [r3]
	bx	lr
.L6:
	ldr	r3, [r0, #4]
	ldr	r0, .L7+8
	add	r3, r3, #796
	add	r3, r3, #3
	smull	r1, r2, r0, r3
	asr	r0, r3, #31
	rsb	r0, r0, r2, asr #8
	lsl	r0, r0, #1
	cmp	r0, #3
	ble	.L4
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	r0, r3
	movge	r0, r3
	bx	lr
.L4:
	mov	r0, #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	M_ASYNC
	.word	DMABUFSZ
	.word	1374389535
	.size	cx_compute_buf_len, .-cx_compute_buf_len
	.comm	M_ASYNC,4,4
	.comm	DMABUFSZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
