	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_enable_accelerated_mode ## -- Begin function dce110_enable_accelerated_mode
	.p2align	4, 0x90
_dce110_enable_accelerated_mode:        ## @dce110_enable_accelerated_mode
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_get_edp_link_with_sink
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_get_edp_link
	movq	%rax, %r13
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_2:
	movq	%rbx, %rdi
	callq	_get_edp_stream
	testq	%r13, %r13
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_DCE_VERSION_8_0@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.4:
	movq	_DCE_VERSION_8_1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_10
## %bb.5:
	movq	_DCE_VERSION_8_3@GOTPCREL(%rip), %rsi
	movl	$0, %edx
	cmpq	(%rsi), %rax
	je	LBB0_11
## %bb.6:
	movq	(%r13), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	testq	%r12, %r12
	setne	%dl
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	testq	%r12, %r12
	je	LBB0_11
## %bb.8:
	movl	$1, (%r12)
	movb	$1, %cl
	movb	$1, %dl
	jmp	LBB0_11
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	xorl	%edx, %edx
LBB0_11:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.12:
	movq	8(%rbx), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_13
LBB0_15:
	testb	%cl, %cl
	jne	LBB0_19
## %bb.16:
	testq	%r14, %r14
	sete	%al
	orb	%dl, %al
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_power_down_all_hw_blocks
	movq	%r15, %rdi
	callq	_disable_vga_and_power_gate_all_controllers
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*16(%r15)
	movq	%r15, %rdi
	callq	_power_down_all_hw_blocks
	movq	%r15, %rdi
	callq	_disable_vga_and_power_gate_all_controllers
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*8(%r15)
LBB0_19:
	movq	(%r15), %rax
	movl	8(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bios_set_scratch_acc_mode_change ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCE_VERSION_8_0,8,3            ## @DCE_VERSION_8_0
	.comm	_DCE_VERSION_8_1,8,3            ## @DCE_VERSION_8_1
	.comm	_DCE_VERSION_8_3,8,3            ## @DCE_VERSION_8_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_enable_accelerated_mode ; -- Begin function dce110_enable_accelerated_mode
	.p2align	2
_dce110_enable_accelerated_mode:        ; @dce110_enable_accelerated_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_get_edp_link_with_sink
	mov	x20, x0
	mov	x0, x19
	bl	_get_edp_link
	mov	x22, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_2:
	mov	x0, x21
	bl	_get_edp_stream
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DCE_VERSION_8_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCE_VERSION_8_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DCE_VERSION_8_1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DCE_VERSION_8_1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _DCE_VERSION_8_3@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DCE_VERSION_8_3@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_12
LBB0_4:
	mov	w9, #0
	mov	w8, #0
LBB0_5:
	ldr	w10, [x21]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.6:
	ldr	x11, [x21, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldr	x12, [x12]
	cbnz	x12, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_9:
	tbnz	w9, #0, LBB0_15
; %bb.10:
	cmp	x20, #0
	cset	w9, eq
	orr	w8, w9, w8
	tbz	w8, #0, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_power_down_all_hw_blocks
	mov	x0, x19
	bl	_disable_vga_and_power_gate_all_controllers
	b	LBB0_15
LBB0_12:
	mov	x23, x0
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	cmp	x23, #0
	cset	w8, ne
	cmp	x0, #0
	ccmp	x23, #0, #4, ne
	b.ne	LBB0_16
; %bb.13:
	mov	w9, #0
	b	LBB0_5
LBB0_14:
	ldr	x8, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_power_down_all_hw_blocks
	mov	x0, x19
	bl	_disable_vga_and_power_gate_all_controllers
	ldr	x8, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	blr	x8
LBB0_15:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bios_set_scratch_acc_mode_change
LBB0_16:
	mov	w9, #1
	str	w9, [x23]
	mov	w8, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCE_VERSION_8_0,8,3            ; @DCE_VERSION_8_0
	.comm	_DCE_VERSION_8_1,8,3            ; @DCE_VERSION_8_1
	.comm	_DCE_VERSION_8_3,8,3            ; @DCE_VERSION_8_3
.subsections_via_symbols
