	.file	"extr_intel_audio.c_g4x_audio_codec_disable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Disable audio codec\n"
	.text
	.p2align 4
	.type	g4x_audio_codec_disable, @function
g4x_audio_codec_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, DWORD PTR [rdi]
	call	to_i915@PLT
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_KMS@PLT
	mov	edi, DWORD PTR G4X_AUD_VID_DID[rip]
	call	I915_READ@PLT
	cmp	DWORD PTR INTEL_AUDIO_DEVBLC[rip], eax
	je	.L2
	cmp	DWORD PTR INTEL_AUDIO_DEVCL[rip], eax
	mov	ebx, DWORD PTR G4X_ELDV_DEVCTG[rip]
	je	.L2
.L4:
	mov	edi, DWORD PTR G4X_AUD_CNTL_ST[rip]
	not	ebx
	call	I915_READ@PLT
	mov	esi, ebx
	mov	edi, DWORD PTR G4X_AUD_CNTL_ST[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	and	esi, eax
	jmp	I915_WRITE@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ebx, DWORD PTR G4X_ELDV_DEVCL_DEVBLC[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	g4x_audio_codec_disable, .-g4x_audio_codec_disable
	.comm	INTEL_AUDIO_DEVCL,4,4
	.comm	INTEL_AUDIO_DEVBLC,4,4
	.comm	G4X_ELDV_DEVCTG,4,4
	.comm	G4X_ELDV_DEVCL_DEVBLC,4,4
	.comm	G4X_AUD_VID_DID,4,4
	.comm	G4X_AUD_CNTL_ST,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_intel_audio.c_g4x_audio_codec_disable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Disable audio codec\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g4x_audio_codec_disable, %function
g4x_audio_codec_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, [r0]
	bl	to_i915
	ldr	r0, .L7
	bl	DRM_DEBUG_KMS
	ldr	r3, .L7+4
	ldr	r0, [r3]
	bl	I915_READ
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, r0
	ldrne	r3, .L7+16
	ldrne	r5, [r3]
	bne	.L4
.L2:
	ldr	r3, .L7+20
	ldr	r5, [r3]
.L4:
	ldr	r4, .L7+24
	ldr	r0, [r4]
	bl	I915_READ
	mov	r1, r0
	ldr	r0, [r4]
	bic	r1, r1, r5
	pop	{r4, r5, r6, lr}
	b	I915_WRITE
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	G4X_AUD_VID_DID
	.word	INTEL_AUDIO_DEVBLC
	.word	INTEL_AUDIO_DEVCL
	.word	G4X_ELDV_DEVCTG
	.word	G4X_ELDV_DEVCL_DEVBLC
	.word	G4X_AUD_CNTL_ST
	.size	g4x_audio_codec_disable, .-g4x_audio_codec_disable
	.comm	INTEL_AUDIO_DEVCL,4,4
	.comm	INTEL_AUDIO_DEVBLC,4,4
	.comm	G4X_ELDV_DEVCTG,4,4
	.comm	G4X_ELDV_DEVCL_DEVBLC,4,4
	.comm	G4X_AUD_VID_DID,4,4
	.comm	G4X_AUD_CNTL_ST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
