	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function dcn20_set_mcif_arb_params
LCPI0_0:
	.quad	0x4030000000000000              ## double 16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dcn20_set_mcif_arb_params
	.p2align	4, 0x90
_dcn20_set_mcif_arb_params:             ## @dcn20_set_mcif_arb_params
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	leaq	8(%rsi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %edi
	jge	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%rax), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_DWB_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$16, %r8d
	movl	$1, %edx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rcx), %rcx
	cmpl	$0, -16(%rcx,%r8)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	-8(%rcx,%r8), %rdx
	movq	_PACKED_444@GOTPCREL(%rip), %rax
	movq	_dwb_scaler_mode_yuv420@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rcx,%r8), %rcx
	movq	_PLANAR_420_10BPC@GOTPCREL(%rip), %rax
	movq	_DWB_OUTPUT_PIXEL_DEPTH_8BPC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_PLANAR_420_8BPC@GOTPCREL(%rip), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%r15), %rbx
	movslq	%edi, %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	(%rdi,%rdi,4), %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	callq	_get_wm_writeback_urgent
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	(%rbx,%r12,8), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_get_wm_writeback_dram_clock_change
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	8(%rbx,%r12,8), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_get_wm_writeback_urgent
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	(%rbx,%r12,8), %rcx
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	_get_wm_writeback_dram_clock_change
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	8(%rbx,%r12,8), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r15), %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	(%rax), %xmm0
	movsd	%xmm0, 16(%rbx,%r12,8)
	movabsq	$8589934624, %rax               ## imm = 0x200000020
	movq	%rax, 24(%rbx,%r12,8)
	movq	(%rbx,%r12,8), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_dcn20_calc_max_scaled_time
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, 32(%rbx,%r12,8)
	incl	%edi
	movq	_MAX_DWB_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	jge	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	addq	$24, %r8
	incq	%rdx
	jmp	LBB0_5
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DWB_PIPES,4,2              ## @MAX_DWB_PIPES
	.comm	_dwb_scaler_mode_yuv420,8,3     ## @dwb_scaler_mode_yuv420
	.comm	_DWB_OUTPUT_PIXEL_DEPTH_8BPC,8,3 ## @DWB_OUTPUT_PIXEL_DEPTH_8BPC
	.comm	_PLANAR_420_8BPC,4,2            ## @PLANAR_420_8BPC
	.comm	_PLANAR_420_10BPC,4,2           ## @PLANAR_420_10BPC
	.comm	_PACKED_444,4,2                 ## @PACKED_444
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dcn20_set_mcif_arb_params
lCPI0_0:
	.long	32                              ; 0x20
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dcn20_set_mcif_arb_params
	.p2align	2
_dcn20_set_mcif_arb_params:             ; @dcn20_set_mcif_arb_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	w3, [sp, #36]                   ; 4-byte Folded Spill
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x21, x1
	mov	x19, #0
	mov	w26, #0
	add	x9, x1, #8
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	fmov	d8, #16.00000000
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d9, [x9, lCPI0_0@PAGEOFF]
	ldp	x20, x23, [sp, #16]             ; 16-byte Folded Reload
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, w8
	b.ge	LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #1
	ldrsw	x9, [x8]
	cmp	x19, x9
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x21]
	ldr	x9, [x9, x19, lsl #3]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh2:
	adrp	x8, _MAX_DWB_PIPES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_DWB_PIPES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
	mov	w27, #1
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x9, #8]
	ldr	w10, [x9, x28]
	cbz	w10, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x9, x28
	ldr	x10, [x9, #8]
Lloh5:
	adrp	x8, _dwb_scaler_mode_yuv420@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dwb_scaler_mode_yuv420@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x8]
Lloh8:
	adrp	x8, _PACKED_444@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PACKED_444@GOTPAGEOFF]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x9, #16]
Lloh10:
	adrp	x9, _DWB_OUTPUT_PIXEL_DEPTH_8BPC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DWB_OUTPUT_PIXEL_DEPTH_8BPC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh13:
	adrp	x8, _PLANAR_420_10BPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PLANAR_420_10BPC@GOTPAGEOFF]
Lloh15:
	adrp	x9, _PLANAR_420_8BPC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PLANAR_420_8BPC@GOTPAGEOFF]
	csel	x8, x9, x8, eq
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x21, #16]
	sxtw	x10, w26
	ldr	w24, [x8]
	mov	w8, #40
	madd	x22, x10, x8, x9
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_get_wm_writeback_urgent
	mov	x19, x21
	mov	w21, #1000
	mul	w8, w0, w21
	ldr	x9, [x22]
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_get_wm_writeback_dram_clock_change
	mul	w8, w0, w21
	ldr	x9, [x22, #8]
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_get_wm_writeback_urgent
	mul	w8, w0, w21
	ldr	x9, [x22]
	str	w8, [x9, #4]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_get_wm_writeback_dram_clock_change
	mul	w8, w0, w21
	mov	x21, x19
	ldr	x9, [x19]
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x9, [x9, x19, lsl #3]
	ldp	x11, x10, [x22]
	str	w8, [x10, #4]
	ldr	d0, [x9]
	fdiv	d0, d8, d0
	stp	d0, d9, [x22, #16]
	ldr	w1, [x11]
	mov	x0, x24
	bl	_dcn20_calc_max_scaled_time
	str	w0, [x22, #32]
	add	w26, w26, #1
Lloh17:
	adrp	x8, _MAX_DWB_PIPES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_DWB_PIPES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ge	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x27, w8, sxtw
	b.ge	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x21]
	ldr	x9, [x9, x19, lsl #3]
	add	x28, x28, #24
	add	x27, x27, #1
	b	LBB0_8
LBB0_14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DWB_PIPES,4,2              ; @MAX_DWB_PIPES
	.comm	_dwb_scaler_mode_yuv420,8,3     ; @dwb_scaler_mode_yuv420
	.comm	_DWB_OUTPUT_PIXEL_DEPTH_8BPC,8,3 ; @DWB_OUTPUT_PIXEL_DEPTH_8BPC
	.comm	_PLANAR_420_8BPC,4,2            ; @PLANAR_420_8BPC
	.comm	_PLANAR_420_10BPC,4,2           ; @PLANAR_420_10BPC
	.comm	_PACKED_444,4,2                 ; @PACKED_444
.subsections_via_symbols
