	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r600_audio_engine_enable
_r600_audio_engine_enable:              ## @r600_audio_engine_enable
	.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	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE4
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	testl	%ebx, %ebx
	movl	$-1894776592, %esi              ## imm = 0x8F1000F0
	cmovel	%ebx, %esi
	movq	_EVERGREEN_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WREG32
	jmp	LBB0_3
LBB0_2:
	testl	%ebx, %ebx
	movq	_R600_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2130706432, %esi              ## imm = 0x81000000
	cmovel	%ebx, %esi
	movl	$2130706431, %edx               ## imm = 0x7EFFFFFF
	callq	_WREG32_P
LBB0_3:
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s audio support\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enabling"

L_.str.2:                               ## @.str.2
	.asciz	"Disabling"

	.comm	_EVERGREEN_AUDIO_ENABLE,4,2     ## @EVERGREEN_AUDIO_ENABLE
	.comm	_R600_AUDIO_ENABLE,4,2          ## @R600_AUDIO_ENABLE
	.no_dead_strip	_r600_audio_engine_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r600_audio_engine_enable
_r600_audio_engine_enable:              ; @r600_audio_engine_enable
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x1, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	x0, x20
	bl	_ASIC_IS_DCE4
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #240
	movk	w8, #36624, lsl #16
	cmp	w19, #0
	csel	w1, wzr, w8, eq
Lloh6:
	adrp	x8, _EVERGREEN_AUDIO_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVERGREEN_AUDIO_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_WREG32
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _R600_AUDIO_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R600_AUDIO_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w8, #-2130706432
	cmp	w19, #0
	csel	w1, wzr, w8, eq
	mov	w2, #2130706431
	bl	_WREG32_P
LBB0_3:
	str	w19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s audio support\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enabling"

l_.str.2:                               ; @.str.2
	.asciz	"Disabling"

	.comm	_EVERGREEN_AUDIO_ENABLE,4,2     ; @EVERGREEN_AUDIO_ENABLE
	.comm	_R600_AUDIO_ENABLE,4,2          ; @R600_AUDIO_ENABLE
	.no_dead_strip	_r600_audio_engine_enable
.subsections_via_symbols
