	.file	"extr_dce6_afmt.c_dce6_afmt_hdmi_write_speaker_allocation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dce6_afmt_hdmi_write_speaker_allocation
	.type	dce6_afmt_hdmi_write_speaker_allocation, @function
dce6_afmt_hdmi_write_speaker_allocation:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_radeon_encoder@PLT
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L1
	mov	eax, DWORD PTR 8[r13]
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR AZ_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER[rip]
	mov	edi, DWORD PTR [rax]
	call	RREG32_ENDPOINT@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR DP_CONNECTION[rip]
	or	eax, DWORD PTR SPEAKER_ALLOCATION_MASK[rip]
	not	eax
	and	eax, r8d
	or	eax, DWORD PTR HDMI_CONNECTION[rip]
	mov	r12d, eax
	test	ebx, ebx
	jne	.L13
	mov	edi, 5
	call	SPEAKER_ALLOCATION@PLT
	mov	edx, r12d
	or	edx, eax
.L4:
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR AZ_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER[rip]
	mov	edi, DWORD PTR [rax]
	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
	jmp	WREG32_ENDPOINT@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	SPEAKER_ALLOCATION@PLT
	mov	edx, r12d
	or	edx, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dce6_afmt_hdmi_write_speaker_allocation, .-dce6_afmt_hdmi_write_speaker_allocation
	.comm	SPEAKER_ALLOCATION_MASK,4,4
	.comm	HDMI_CONNECTION,4,4
	.comm	DP_CONNECTION,4,4
	.comm	AZ_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER,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_dce6_afmt.c_dce6_afmt_hdmi_write_speaker_allocation.c"
	.text
	.align	2
	.global	dce6_afmt_hdmi_write_speaker_allocation
	.syntax unified
	.arm
	.fpu softvfp
	.type	dce6_afmt_hdmi_write_speaker_allocation, %function
dce6_afmt_hdmi_write_speaker_allocation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r6, r2
	bl	to_radeon_encoder
	ldr	r4, [r0]
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r8, .L16
	ldr	r0, [r3]
	ldr	r1, [r8]
	bl	RREG32_ENDPOINT
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L16+12
	orr	r3, r3, r1
	ldr	r5, [r2]
	bic	r0, r0, r3
	cmp	r6, #0
	orr	r5, r0, r5
	ldrne	r0, [r7]
	moveq	r0, #5
	bl	SPEAKER_ALLOCATION
	ldr	r3, [r4]
	orr	r2, r5, r0
	ldr	r1, [r8]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	WREG32_ENDPOINT
.L17:
	.align	2
.L16:
	.word	AZ_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER
	.word	SPEAKER_ALLOCATION_MASK
	.word	DP_CONNECTION
	.word	HDMI_CONNECTION
	.size	dce6_afmt_hdmi_write_speaker_allocation, .-dce6_afmt_hdmi_write_speaker_allocation
	.comm	SPEAKER_ALLOCATION_MASK,4,4
	.comm	HDMI_CONNECTION,4,4
	.comm	DP_CONNECTION,4,4
	.comm	AZ_F0_CODEC_PIN_CONTROL_CHANNEL_SPEAKER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
