	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_DEDCN20_305_wa           ## -- Begin function apply_DEDCN20_305_wa
	.p2align	4, 0x90
_apply_DEDCN20_305_wa:                  ## @apply_DEDCN20_305_wa
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_TO_DCN20_MPC
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	_MPCC_OGAM_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%r12d, %rax
	movl	(%rdx,%rax,4), %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_2
LBB0_3:
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_LUT_BYPASS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_MPCC_OGAM_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%r12d, %rax
	movl	(%rdx,%rax,4), %edi
	movq	_LUT_RAM_A@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%r14d, (%rax)
	sete	%sil
	movl	$2, %ecx
	subl	%esi, %ecx
	xorl	%esi, %esi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_SET                        ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPCC_OGAM_MODE,8,3             ## @MPCC_OGAM_MODE
	.comm	_LUT_BYPASS,4,2                 ## @LUT_BYPASS
	.comm	_LUT_RAM_A,4,2                  ## @LUT_RAM_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_DEDCN20_305_wa           ; -- Begin function apply_DEDCN20_305_wa
	.p2align	2
_apply_DEDCN20_305_wa:                  ; @apply_DEDCN20_305_wa
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_TO_DCN20_MPC
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MPCC_OGAM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPCC_OGAM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	ldr	w0, [x2, w20, sxtw #2]
	mov	w1, #0
	mov	w3, #0
	b	LBB0_5
LBB0_2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LUT_BYPASS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LUT_BYPASS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w21, #0, ne
	b.eq	LBB0_4
; %bb.3:
	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
LBB0_4:
Lloh6:
	adrp	x8, _MPCC_OGAM_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPCC_OGAM_MODE@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	ldr	w0, [x2, w20, sxtw #2]
Lloh9:
	adrp	x8, _LUT_RAM_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LUT_RAM_A@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	mov	w8, #1
	cinc	w3, w8, ne
	mov	w1, #0
LBB0_5:
	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	_REG_SET
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MPCC_OGAM_MODE,8,3             ; @MPCC_OGAM_MODE
	.comm	_LUT_BYPASS,4,2                 ; @LUT_BYPASS
	.comm	_LUT_RAM_A,4,2                  ; @LUT_RAM_A
.subsections_via_symbols
