	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2063_get_dnc_output_enable
_mt2063_get_dnc_output_enable:          ## @mt2063_get_dnc_output_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movq	(%rbx), %rax
	movq	_MT2063_REG_DNC_GAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_MT2063_REG_VGA_GAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %eax
	notl	%eax
	testb	$3, %al
	movq	_MT2063_DNC_2@GOTPCREL(%rip), %rax
	cmoveq	_MT2063_DNC_NONE@GOTPCREL(%rip), %rax
	movq	_MT2063_DNC_BOTH@GOTPCREL(%rip), %rdx
	cmoveq	_MT2063_DNC_1@GOTPCREL(%rip), %rdx
	notl	%ecx
	testb	$3, %cl
	cmoveq	%rax, %rdx
	movl	(%rdx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MT2063_REG_DNC_GAIN,8,3        ## @MT2063_REG_DNC_GAIN
	.comm	_MT2063_REG_VGA_GAIN,8,3        ## @MT2063_REG_VGA_GAIN
	.comm	_MT2063_DNC_NONE,4,2            ## @MT2063_DNC_NONE
	.comm	_MT2063_DNC_2,4,2               ## @MT2063_DNC_2
	.comm	_MT2063_DNC_1,4,2               ## @MT2063_DNC_1
	.comm	_MT2063_DNC_BOTH,4,2            ## @MT2063_DNC_BOTH
	.no_dead_strip	_mt2063_get_dnc_output_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2063_get_dnc_output_enable
_mt2063_get_dnc_output_enable:          ; @mt2063_get_dnc_output_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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MT2063_REG_DNC_GAIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MT2063_REG_DNC_GAIN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh5:
	adrp	x10, _MT2063_REG_VGA_GAIN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MT2063_REG_VGA_GAIN@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldr	w8, [x8, x10, lsl #2]
	and	w8, w8, #0x3
Lloh8:
	adrp	x10, _MT2063_DNC_NONE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MT2063_DNC_NONE@GOTPAGEOFF]
Lloh10:
	adrp	x11, _MT2063_DNC_2@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MT2063_DNC_2@GOTPAGEOFF]
	cmp	w8, #3
	csel	x8, x10, x11, eq
Lloh12:
	adrp	x10, _MT2063_DNC_1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MT2063_DNC_1@GOTPAGEOFF]
Lloh14:
	adrp	x11, _MT2063_DNC_BOTH@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MT2063_DNC_BOTH@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	mov	w11, #3
	bics	wzr, w11, w9
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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	"\n"

	.comm	_MT2063_REG_DNC_GAIN,8,3        ; @MT2063_REG_DNC_GAIN
	.comm	_MT2063_REG_VGA_GAIN,8,3        ; @MT2063_REG_VGA_GAIN
	.comm	_MT2063_DNC_NONE,4,2            ; @MT2063_DNC_NONE
	.comm	_MT2063_DNC_2,4,2               ; @MT2063_DNC_2
	.comm	_MT2063_DNC_1,4,2               ; @MT2063_DNC_1
	.comm	_MT2063_DNC_BOTH,4,2            ; @MT2063_DNC_BOTH
	.no_dead_strip	_mt2063_get_dnc_output_enable
.subsections_via_symbols
