	.file	"extr_dce110_hw_sequencer.c_build_audio_output.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	build_audio_output, @function
build_audio_output:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 32[rsi]
	mov	rbp, QWORD PTR 40[rsi]
	mov	eax, DWORD PTR [rax]
	mov	rdi, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR 8[rbp]
	mov	DWORD PTR 80[rdx], eax
	mov	rax, QWORD PTR 64[rbp]
	add	rax, QWORD PTR 72[rbp]
	add	rax, QWORD PTR 56[rbp]
	mov	DWORD PTR 32[rdx], ecx
	mov	QWORD PTR 72[rdx], rax
	mov	rax, QWORD PTR 40[rbp]
	add	rax, QWORD PTR 48[rbp]
	add	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR [rdx], rdi
	mov	QWORD PTR 64[rdx], rax
	mov	eax, DWORD PTR 24[rbp]
	imul	ecx, DWORD PTR 16[rbp]
	mov	DWORD PTR 36[rdx], 1
	mov	DWORD PTR 56[rdx], eax
	imul	eax, DWORD PTR 12[rbp], 100
	cdq
	idiv	ecx
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 52[rbx], eax
	mov	eax, DWORD PTR 16[rsi]
	mov	DWORD PTR 44[rbx], eax
	mov	DWORD PTR 48[rbx], eax
	call	dc_is_hdmi_signal@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 44[rbx]
	cmp	eax, DWORD PTR 12[rbp]
	je	.L10
.L2:
	mov	rax, QWORD PTR 40[r12]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR SIGNAL_TYPE_DISPLAY_PORT[rip]
	je	.L3
	cmp	rax, QWORD PTR SIGNAL_TYPE_DISPLAY_PORT_MST[rip]
	je	.L3
.L4:
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 20[rbx], eax
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [rax]
	add	rdi, 1
	call	translate_to_dto_source@PLT
	mov	DWORD PTR 8[rbx], 1
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 12[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[r13]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	mov	DWORD PTR 24[rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR PIXEL_ENCODING_YCBCR420[rip]
	cmp	QWORD PTR 24[r12], rsi
	jne	.L2
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	mov	edx, DWORD PTR 16[r12]
	sar	eax
	mov	DWORD PTR 44[rbx], eax
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR 48[rbx], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	build_audio_output, .-build_audio_output
	.comm	SIGNAL_TYPE_DISPLAY_PORT_MST,8,8
	.comm	SIGNAL_TYPE_DISPLAY_PORT,8,8
	.comm	PIXEL_ENCODING_YCBCR420,8,8
	.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_dce110_hw_sequencer.c_build_audio_output.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_audio_output, %function
build_audio_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	lr, #1
	mov	ip, r0
	ldr	r5, [r1, #24]
	ldr	r2, [r1, #20]
	ldr	r3, [r5, #40]
	mov	r6, r1
	ldr	r1, [r5, #44]
	ldr	r0, [r5, #32]
	add	r1, r1, r3
	ldr	r3, [r5, #36]
	ldr	r8, [r2]
	ldr	r2, [r5, #28]
	add	r3, r1, r3
	ldr	r7, [r5]
	ldr	r1, [r5, #4]
	add	r2, r0, r2
	ldr	r0, [r5, #8]
	str	r3, [r4, #56]
	ldr	r3, [r5, #24]
	str	r8, [r4, #60]
	add	r3, r2, r3
	ldr	r8, [r5, #12]
	add	r0, r0, r0, lsl #2
	str	r3, [r4, #52]
	ldr	r3, [r5, #20]
	add	r0, r0, r0, lsl #2
	str	r1, [r4, #24]
	str	lr, [r4, #28]
	mul	r1, r8, r1
	str	r3, [r4, #48]
	str	r7, [r4]
	lsl	r0, r0, #2
	mov	r8, ip
	bl	__aeabi_idiv
	mov	r1, r0
	ldr	r2, [r5, #16]
	ldr	r3, [r6, #12]
	mov	r0, r7
	str	r1, [r4, #32]
	str	r2, [r4, #44]
	str	r3, [r4, #36]
	str	r3, [r4, #40]
	bl	dc_is_hdmi_signal
	cmp	r0, #0
	beq	.L2
	ldr	r2, [r5, #8]
	ldr	r3, [r4, #36]
	cmp	r3, r2
	beq	.L10
.L2:
	ldr	r3, [r6, #24]
	ldr	r2, .L11
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L11+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
.L4:
	ldr	r2, [r6, #8]
	ldr	r3, [r6, #4]
	ldr	r0, [r2]
	str	r3, [r4, #16]
	add	r0, r0, #1
	bl	translate_to_dto_source
	mov	r3, #1
	ldr	r2, [r6]
	str	r0, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r0, [r8]
	ldr	r3, [r0]
	ldr	r3, [r3]
	blx	r3
	str	r0, [r4, #20]
	b	.L4
.L10:
	ldr	r2, .L11+8
	ldr	r1, [r6, #16]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L2
	ldr	r2, [r6, #12]
	add	r3, r3, r3, lsr #31
	add	r2, r2, r2, lsr #31
	asr	r3, r3, #1
	asr	r2, r2, #1
	str	r3, [r4, #36]
	str	r2, [r4, #40]
	b	.L2
.L12:
	.align	2
.L11:
	.word	SIGNAL_TYPE_DISPLAY_PORT
	.word	SIGNAL_TYPE_DISPLAY_PORT_MST
	.word	PIXEL_ENCODING_YCBCR420
	.size	build_audio_output, .-build_audio_output
	.comm	SIGNAL_TYPE_DISPLAY_PORT_MST,4,4
	.comm	SIGNAL_TYPE_DISPLAY_PORT,4,4
	.comm	PIXEL_ENCODING_YCBCR420,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
