	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_apply_ctx_to_hw         ## -- Begin function dce110_apply_ctx_to_hw
	.p2align	4, 0x90
_dce110_apply_ctx_to_hw:                ## @dce110_apply_ctx_to_hw
	.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
	subq	$24, %rsp
	.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, %r12
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	callq	*40(%rdi)
	cmpq	$0, (%rbx)
	jle	LBB0_27
## %bb.1:
	movq	(%r14), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	*(%rax)
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	16(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.2:
	movl	$24, %ebx
	xorl	%r14d, %r14d
	movq	_PIPE_GATING_CONTROL_DISABLE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rax
	movq	(%rax), %rdx
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*32(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	16(%r12), %rax
	movslq	(%rax), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r8), %rax
	movq	(%rax,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -8(%rax,%rbx)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rdx,%rbx), %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-24(%rax,%rbx), %rsi
	cmpq	%rsi, -24(%rdx,%rbx)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	48(%r12), %edi
	movl	%r14d, %edx
	callq	_dce_crtc_switch_to_clk_src
	jmp	LBB0_9
LBB0_11:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_13:
	movq	%r12, %rdi
	movq	%r8, %rsi
	callq	_dce110_setup_audio_dto
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_24
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r14
	movq	16(%r12), %rax
	movslq	(%rax), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jge	LBB0_24
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %r15
	movq	24(%r15,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx), %rdi
	movq	24(%rdi,%rbx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	leaq	(%r15,%rbx), %r13
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_pipe_need_reprogram
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 16(%r15,%rbx)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 8(%r15,%rbx)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_apply_single_controller_ctx_to_hw
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_DC_OK@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_23
	jmp	LBB0_28
LBB0_24:
	cmpq	$0, 8(%r12)
	je	LBB0_26
## %bb.25:
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_enable_fbc
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	xorl	%esi, %esi
	callq	*(%rax)
LBB0_27:
	movq	_DC_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_OK,4,2                      ## @DC_OK
	.comm	_PIPE_GATING_CONTROL_DISABLE,4,2 ## @PIPE_GATING_CONTROL_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_apply_ctx_to_hw         ; -- Begin function dce110_apply_ctx_to_hw
	.p2align	2
_dce110_apply_ctx_to_hw:                ; @dce110_apply_ctx_to_hw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x19, [x8]
	ldr	x8, [x0, #40]
	blr	x8
	ldr	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_26
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x23, #0
	mov	x22, #0
Lloh0:
	adrp	x24, _PIPE_GATING_CONTROL_DISABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PIPE_GATING_CONTROL_DISABLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x9, x8, [x20, #24]
	ldr	x2, [x9]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x22
	blr	x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20, #16]
	ldrsw	x8, [x8]
	add	x23, x23, #32
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x10, x8, x23
	ldr	x9, [x10, #24]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x10, #16]
	cbnz	x10, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x20]
	ldr	x10, [x10]
	add	x11, x10, x23
	ldr	x11, [x11, #24]
	cmp	x9, x11
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x10, x23]
	ldr	x1, [x8, x23]
	cmp	x9, x1
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #48]
	mov	x2, x22
	bl	_dce_crtc_switch_to_clk_src
	b	LBB0_4
LBB0_10:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	bl	_dce110_setup_audio_dto
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh2:
	adrp	x23, _DC_OK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DC_OK@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.13:
	mov	x24, #0
	mov	x25, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x25, x25, #1
	ldr	x8, [x20, #16]
	ldrsw	x8, [x8]
	add	x24, x24, #32
	cmp	x25, x8
	b.ge	LBB0_23
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, #8]
	add	x22, x26, x24
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x24
	ldr	x9, [x0, #24]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x9, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x22
	bl	_pipe_need_reprogram
	cbz	w0, LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x26, x24
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_apply_single_controller_ctx_to_hw
	ldr	w8, [x23]
	cmp	w8, w0
	b.eq	LBB0_15
	b	LBB0_27
LBB0_23:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x1, [x20]
	mov	x0, x20
	bl	_enable_fbc
LBB0_25:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	w0, [x23]
	b	LBB0_27
LBB0_26:
Lloh4:
	adrp	x8, _DC_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
LBB0_27:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_OK,4,2                      ; @DC_OK
	.comm	_PIPE_GATING_CONTROL_DISABLE,4,2 ; @PIPE_GATING_CONTROL_DISABLE
.subsections_via_symbols
