	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v8_0_afmt_enable
_dce_v8_0_afmt_enable:                  ## @dce_v8_0_afmt_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_to_amdgpu_encoder
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	(%rax), %ecx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.4:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_8
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.6:
	movq	8(%rax), %rsi
	leaq	L_.str.2(%rip), %r12
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_dce_v8_0_audio_enable
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
LBB0_8:
	movl	%r14d, (%rax)
	movl	4(%rax), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sabling AFMT interface @ 0x%04X for encoder 0x%x\n"

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

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

	.no_dead_strip	_dce_v8_0_afmt_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v8_0_afmt_enable
_dce_v8_0_afmt_enable:                  ; @dce_v8_0_afmt_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_to_amdgpu_encoder
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_10
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	w9, [x8]
	cbz	w19, LBB0_5
; %bb.3:
	cbnz	w9, LBB0_10
; %bb.4:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	cbz	w9, LBB0_10
; %bb.6:
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	w2, #0
	bl	_dce_v8_0_audio_enable
	ldr	x8, [x22]
	str	xzr, [x8, #8]
LBB0_8:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	str	w19, [x8]
	ldr	w2, [x8, #4]
	ldr	w3, [x20]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DRM_DEBUG
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sabling AFMT interface @ 0x%04X for encoder 0x%x\n"

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

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

	.no_dead_strip	_dce_v8_0_afmt_enable
.subsections_via_symbols
