	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2063_set_dnc_output_enable
_mt2063_set_dnc_output_enable:          ## @mt2063_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	(%r14), %rax
	movq	_MT2063_REG_DNC_GAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, %edx
	orl	$3, %edx
	movzbl	%dl, %edx
	jmp	LBB0_4
LBB0_10:
	movq	(%r14), %rax
	movq	_MT2063_REG_DNC_GAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, %edx
	orl	$3, %edx
	movzbl	%dl, %edx
	xorl	%r15d, %r15d
	cmpl	%edx, %ecx
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r15d
	movq	(%r14), %rax
LBB0_12:
	movq	_MT2063_REG_VGA_GAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$252, %edi
	movq	_DNC2GC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%r14), %rbx
	movl	(%rdx,%rbx,4), %edx
	andl	$3, %edx
	orl	%edi, %edx
	cmpl	%edx, %ecx
	je	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	callq	_mt2063_setreg
	orl	%eax, %r15d
	movq	(%r14), %rax
LBB0_17:
	movq	_MT2063_REG_RSVD_20@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %eax
	movl	%eax, %edx
	orl	$64, %edx
	cmpl	%edx, %eax
	jne	LBB0_19
	jmp	LBB0_20
LBB0_9:
	movq	(%r14), %rax
	movq	8(%r14), %rbx
	movq	_MT2063_REG_DNC_GAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$252, %edi
	movq	_DNC1GC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rbx,4), %edx
	andl	$3, %edx
	orl	%edi, %edx
LBB0_4:
	xorl	%r15d, %r15d
	cmpl	%edx, %ecx
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r15d
	movq	(%r14), %rax
LBB0_6:
	movq	_MT2063_REG_VGA_GAIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %ecx
	movl	%ecx, %edx
	orl	$3, %edx
	movzbl	%dl, %edx
	cmpl	%edx, %ecx
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_mt2063_setreg
	orl	%eax, %r15d
	movq	(%r14), %rax
LBB0_8:
	movq	_MT2063_REG_RSVD_20@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax,%rsi,4), %eax
	movl	%eax, %edx
	andl	$-65, %edx
	cmpl	%edx, %eax
	je	LBB0_20
LBB0_19:
	movq	%r14, %rdi
	callq	_mt2063_setreg
	orl	%eax, %r15d
	jmp	LBB0_20
LBB0_1:
	xorl	%r15d, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	_MT2063_REG_DNC_GAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rax,%rsi,4), %ebx
	movl	%ebx, %edi
	andl	$252, %edi
	movq	_DNC1GC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edx
	andl	$3, %edx
	orl	%edi, %edx
	xorl	%r15d, %r15d
	cmpl	%edx, %ebx
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	8(%r14), %rcx
LBB0_15:
	movq	_MT2063_REG_VGA_GAIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%rax,%rsi,4), %ebx
	movl	%ebx, %edi
	andl	$252, %edi
	movq	_DNC2GC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edx
	andl	$3, %edx
	orl	%edi, %edx
	cmpl	%edx, %ebx
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_9
	.end_data_region
                                        ## -- 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_REG_RSVD_20,8,3         ## @MT2063_REG_RSVD_20
	.comm	_DNC1GC,8,3                     ## @DNC1GC
	.comm	_DNC2GC,8,3                     ## @DNC2GC
	.no_dead_strip	_mt2063_set_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_set_dnc_output_enable
_mt2063_set_dnc_output_enable:          ; @mt2063_set_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _MT2063_REG_DNC_GAIN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MT2063_REG_DNC_GAIN@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
	and	w10, w9, #0xfc
	orr	w2, w10, #0x3
	cmp	w9, w2
	b.eq	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_mt2063_setreg
	mov	x20, x0
	ldr	x8, [x19]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _MT2063_REG_DNC_GAIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MT2063_REG_DNC_GAIN@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
	and	w10, w9, #0xfc
	orr	w2, w10, #0x3
	cmp	w9, w2
	b.ne	LBB0_14
; %bb.5:
	mov	w20, #0
	b	LBB0_15
LBB0_6:
Lloh10:
	adrp	x8, _MT2063_REG_DNC_GAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT2063_REG_DNC_GAIN@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	ldp	x8, x9, [x19]
	ldr	w10, [x8, x1, lsl #2]
Lloh13:
	adrp	x11, _DNC1GC@GOTPAGE
Lloh14:
	ldr	x11, [x11, _DNC1GC@GOTPAGEOFF]
	and	w2, w10, #0xfc
Lloh15:
	ldr	x11, [x11]
	ldr	w9, [x11, x9, lsl #2]
	bfxil	w2, w9, #0, #2
	cmp	w10, w2
	b.ne	LBB0_3
LBB0_7:
	mov	w20, #0
LBB0_8:
Lloh16:
	adrp	x9, _MT2063_REG_VGA_GAIN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MT2063_REG_VGA_GAIN@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
	and	w10, w9, #0xfc
	orr	w2, w10, #0x3
	cmp	w9, w2
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_mt2063_setreg
	orr	w20, w0, w20
	ldr	x8, [x19]
LBB0_10:
Lloh19:
	adrp	x9, _MT2063_REG_RSVD_20@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MT2063_REG_RSVD_20@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x9]
	ldr	w8, [x8, x1, lsl #2]
	and	w2, w8, #0xffffffbf
	cmp	w8, w2
	b.ne	LBB0_18
	b	LBB0_19
LBB0_11:
	mov	w20, #0
	b	LBB0_19
LBB0_12:
Lloh22:
	adrp	x8, _MT2063_REG_DNC_GAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MT2063_REG_DNC_GAIN@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	ldp	x8, x9, [x19]
	ldr	w10, [x8, x1, lsl #2]
Lloh25:
	adrp	x11, _DNC1GC@GOTPAGE
Lloh26:
	ldr	x11, [x11, _DNC1GC@GOTPAGEOFF]
	and	w2, w10, #0xfc
Lloh27:
	ldr	x11, [x11]
	ldr	w11, [x11, x9, lsl #2]
	bfxil	w2, w11, #0, #2
	cmp	w10, w2
	b.ne	LBB0_20
; %bb.13:
	mov	w20, #0
	b	LBB0_21
LBB0_14:
	mov	x0, x19
	bl	_mt2063_setreg
	mov	x20, x0
	ldr	x8, [x19]
LBB0_15:
Lloh28:
	adrp	x9, _MT2063_REG_VGA_GAIN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MT2063_REG_VGA_GAIN@GOTPAGEOFF]
Lloh30:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
	and	w2, w9, #0xfc
Lloh31:
	adrp	x10, _DNC2GC@GOTPAGE
Lloh32:
	ldr	x10, [x10, _DNC2GC@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	ldr	x11, [x19, #8]
	ldr	w10, [x10, x11, lsl #2]
	bfxil	w2, w10, #0, #2
	cmp	w9, w2
	b.eq	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_mt2063_setreg
	orr	w20, w0, w20
	ldr	x8, [x19]
LBB0_17:
Lloh34:
	adrp	x9, _MT2063_REG_RSVD_20@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MT2063_REG_RSVD_20@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x9]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, #0x40
	cmp	w8, w2
	b.eq	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_mt2063_setreg
	orr	w20, w0, w20
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x19
	bl	_mt2063_setreg
	mov	x20, x0
	ldp	x8, x9, [x19]
LBB0_21:
Lloh37:
	adrp	x10, _MT2063_REG_VGA_GAIN@GOTPAGE
Lloh38:
	ldr	x10, [x10, _MT2063_REG_VGA_GAIN@GOTPAGEOFF]
Lloh39:
	ldr	x1, [x10]
	ldr	w10, [x8, x1, lsl #2]
Lloh40:
	adrp	x11, _DNC2GC@GOTPAGE
Lloh41:
	ldr	x11, [x11, _DNC2GC@GOTPAGEOFF]
	and	w2, w10, #0xfc
Lloh42:
	ldr	x11, [x11]
	ldr	w9, [x11, x9, lsl #2]
	bfxil	w2, w9, #0, #2
	cmp	w10, w2
	b.ne	LBB0_16
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- 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_REG_RSVD_20,8,3         ; @MT2063_REG_RSVD_20
	.comm	_DNC1GC,8,3                     ; @DNC1GC
	.comm	_DNC2GC,8,3                     ; @DNC2GC
	.no_dead_strip	_mt2063_set_dnc_output_enable
.subsections_via_symbols
