	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce8_bandwidth_update          ## -- Begin function dce8_bandwidth_update
	.p2align	4, 0x90
_dce8_bandwidth_update:                 ## @dce8_bandwidth_update
	.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
	cmpl	$0, 16(%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	callq	_radeon_update_display_priority
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.2:
	movq	8(%r14), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_4:
	andl	$-4, %edx
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	8(%rcx,%rsi,8), %rbx
	cmpq	$1, 8(%rdi)
	sbbq	$-1, %r15
	cmpq	$1, 8(%rbx)
	sbbq	$-1, %r15
	movq	16(%rcx,%rsi,8), %rdi
	cmpq	$1, 8(%rdi)
	sbbq	$-1, %r15
	movq	24(%rcx,%rsi,8), %rdi
	cmpq	$1, 8(%rdi)
	sbbq	$-1, %r15
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_5
LBB0_6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpq	$1, 8(%rsi)
	sbbq	$-1, %r15
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_8
LBB0_9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_dce8_line_buffer_adjust
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_dce8_program_watermarks
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce8_bandwidth_update          ; -- Begin function dce8_bandwidth_update
	.p2align	2
_dce8_bandwidth_update:                 ; @dce8_bandwidth_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	bl	_radeon_update_display_priority
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.3:
	mov	x10, #0
	mov	x20, #0
	b	LBB0_7
LBB0_4:
	mov	x13, #0
	mov	x14, #0
	mov	x12, #0
	mov	x11, #0
	and	x10, x8, #0xfffffffc
	add	x15, x9, #16
	mov	x16, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x17, x0, [x15, #-16]
	ldp	x1, x2, [x15], #32
	ldr	x17, [x17, #8]
	ldr	x0, [x0, #8]
	ldr	x1, [x1, #8]
	ldr	x2, [x2, #8]
	cmp	x17, #0
	cinc	x13, x13, ne
	cmp	x0, #0
	cinc	x14, x14, ne
	cmp	x1, #0
	cinc	x12, x12, ne
	cmp	x2, #0
	cinc	x11, x11, ne
	subs	x16, x16, #4
	b.ne	LBB0_5
; %bb.6:
	add	x13, x14, x13
	add	x12, x12, x13
	add	x20, x11, x12
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	ldr	x10, [x10, #8]
	cmp	x10, #0
	cinc	x20, x20, ne
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x22, x21, #3
	ldr	x1, [x8, x22]
	mov	x0, x19
	mov	x2, x1
	bl	_dce8_line_buffer_adjust
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x22]
	mov	x0, x19
	mov	x3, x20
	bl	_dce8_program_watermarks
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
