	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_audio_codec_disable
_g4x_audio_codec_disable:               ## @g4x_audio_codec_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %edi
	callq	_to_i915
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_G4X_AUD_VID_DID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_INTEL_AUDIO_DEVBLC@GOTPCREL(%rip), %rcx
	movq	_INTEL_AUDIO_DEVCL@GOTPCREL(%rip), %rdi
	movq	_G4X_ELDV_DEVCL_DEVBLC@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpl	(%rdi), %eax
	je	LBB0_2
## %bb.1:
	movq	_G4X_ELDV_DEVCTG@GOTPCREL(%rip), %rsi
LBB0_2:
	cmpl	(%rcx), %eax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %ebx
	movq	_G4X_AUD_CNTL_ST@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disable audio codec\n"

	.comm	_G4X_AUD_VID_DID,4,2            ## @G4X_AUD_VID_DID
	.comm	_INTEL_AUDIO_DEVBLC,4,2         ## @INTEL_AUDIO_DEVBLC
	.comm	_INTEL_AUDIO_DEVCL,4,2          ## @INTEL_AUDIO_DEVCL
	.comm	_G4X_ELDV_DEVCL_DEVBLC,4,2      ## @G4X_ELDV_DEVCL_DEVBLC
	.comm	_G4X_ELDV_DEVCTG,4,2            ## @G4X_ELDV_DEVCTG
	.comm	_G4X_AUD_CNTL_ST,4,2            ## @G4X_AUD_CNTL_ST
	.no_dead_strip	_g4x_audio_codec_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_audio_codec_disable
_g4x_audio_codec_disable:               ; @g4x_audio_codec_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w0, [x0]
	bl	_to_i915
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _G4X_AUD_VID_DID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _G4X_AUD_VID_DID@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh5:
	adrp	x8, _INTEL_AUDIO_DEVBLC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_AUDIO_DEVBLC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _INTEL_AUDIO_DEVCL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INTEL_AUDIO_DEVCL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w0, w9
Lloh11:
	adrp	x9, _G4X_ELDV_DEVCL_DEVBLC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _G4X_ELDV_DEVCL_DEVBLC@GOTPAGEOFF]
Lloh13:
	adrp	x10, _G4X_ELDV_DEVCTG@GOTPAGE
Lloh14:
	ldr	x10, [x10, _G4X_ELDV_DEVCTG@GOTPAGEOFF]
	ccmp	w0, w8, #4, ne
	csel	x8, x9, x10, eq
	ldr	w19, [x8]
Lloh15:
	adrp	x20, _G4X_AUD_CNTL_ST@GOTPAGE
Lloh16:
	ldr	x20, [x20, _G4X_AUD_CNTL_ST@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
	bic	w1, w0, w19
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disable audio codec\n"

	.comm	_G4X_AUD_VID_DID,4,2            ; @G4X_AUD_VID_DID
	.comm	_INTEL_AUDIO_DEVBLC,4,2         ; @INTEL_AUDIO_DEVBLC
	.comm	_INTEL_AUDIO_DEVCL,4,2          ; @INTEL_AUDIO_DEVCL
	.comm	_G4X_ELDV_DEVCL_DEVBLC,4,2      ; @G4X_ELDV_DEVCL_DEVBLC
	.comm	_G4X_ELDV_DEVCTG,4,2            ; @G4X_ELDV_DEVCTG
	.comm	_G4X_AUD_CNTL_ST,4,2            ; @G4X_AUD_CNTL_ST
	.no_dead_strip	_g4x_audio_codec_disable
.subsections_via_symbols
