	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce8_line_buffer_adjust
_dce8_line_buffer_adjust:               ## @dce8_line_buffer_adjust
	.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	$40, %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, %r13
	movslq	(%rsi), %r12
	shlq	$5, %r12
	xorl	%esi, %esi
	movl	$1, %edi
	movl	$3840, %ecx                     ## imm = 0xF00
	testq	%rdx, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.2:
	movl	(%rdx), %eax
	movl	$2, %esi
	cmpl	$1920, %eax                     ## imm = 0x780
	jl	LBB0_8
## %bb.3:
	cmpl	$2560, %eax                     ## imm = 0xA00
	jae	LBB0_5
## %bb.4:
	movl	$2, %edi
	movl	$5120, %ecx                     ## imm = 0x1400
	movl	$2, %esi
	jmp	LBB0_8
LBB0_5:
	cmpl	$4096, %eax                     ## imm = 0x1000
	jb	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, (%r13)
	sete	%cl
	leaq	(%rcx,%rcx), %rsi
	addq	$2, %rsi
	movl	$8192, %ecx                     ## imm = 0x2000
	xorl	%edi, %edi
LBB0_8:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_LB_MEMORY_CTRL@GOTPCREL(%rip), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	addq	(%rax), %r14
	callq	_LB_MEMORY_CONFIG
	movl	%eax, %r15d
	movl	$1712, %edi                     ## imm = 0x6B0
	callq	_LB_MEMORY_SIZE
	orl	%eax, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_PIPE0_DMIF_BUFFER_CONTROL@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	addq	%r12, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_DMIF_BUFFERS_ALLOCATED
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32
	cmpq	$0, 8(%r13)
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	movq	_DMIF_BUFFERS_ALLOCATED_COMPLETED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_RREG32
	testl	%eax, (%r15)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	callq	_udelay
	incq	%rbx
	cmpq	8(%r13), %rbx
	jl	LBB0_10
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%rcx, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	cmoveq	%rcx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mode too big for LB!\n"

	.comm	_LB_MEMORY_CTRL,8,3             ## @LB_MEMORY_CTRL
	.comm	_PIPE0_DMIF_BUFFER_CONTROL,8,3  ## @PIPE0_DMIF_BUFFER_CONTROL
	.comm	_DMIF_BUFFERS_ALLOCATED_COMPLETED,4,2 ## @DMIF_BUFFERS_ALLOCATED_COMPLETED
	.no_dead_strip	_dce8_line_buffer_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce8_line_buffer_adjust
_dce8_line_buffer_adjust:               ; @dce8_line_buffer_adjust
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	ldrsw	x8, [x1]
	lsl	x25, x8, #5
	mov	w0, #1
	mov	w26, #3840
	cbz	x2, LBB0_9
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1920
	b.ge	LBB0_4
; %bb.3:
	mov	w22, #2
	mov	w0, #1
	mov	w26, #3840
	b	LBB0_9
LBB0_4:
	cmp	w8, #2560
	b.hs	LBB0_6
; %bb.5:
	mov	w0, #2
	mov	w26, #5120
	mov	w22, #2
	b	LBB0_9
LBB0_6:
	cmp	w8, #1, lsl #12                 ; =4096
	b.lo	LBB0_8
; %bb.7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_8:
	mov	x0, #0
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _RADEON_IS_IGP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #2
	mov	w9, #4
	csel	x22, x9, x8, eq
	mov	w26, #8192
LBB0_9:
Lloh5:
	adrp	x8, _LB_MEMORY_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LB_MEMORY_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	add	x23, x9, x8
	bl	_LB_MEMORY_CONFIG
	mov	x24, x0
	mov	w0, #1712
	bl	_LB_MEMORY_SIZE
	orr	w1, w0, w24
	mov	x0, x23
	bl	_WREG32
Lloh8:
	adrp	x24, _PIPE0_DMIF_BUFFER_CONTROL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PIPE0_DMIF_BUFFER_CONTROL@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x23, x8, x25
	mov	x0, x22
	bl	_DMIF_BUFFERS_ALLOCATED
	mov	x1, x0
	mov	x0, x23
	bl	_WREG32
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x22, #0
Lloh10:
	adrp	x23, _DMIF_BUFFERS_ALLOCATED_COMPLETED@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DMIF_BUFFERS_ALLOCATED_COMPLETED@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x0, x8, x25
	bl	_RREG32
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
	bl	_udelay
	add	x22, x22, #1
	ldr	x8, [x21, #8]
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_13:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	ccmp	x19, #0, #4, ne
	csel	x0, x26, xzr, ne
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mode too big for LB!\n"

	.comm	_LB_MEMORY_CTRL,8,3             ; @LB_MEMORY_CTRL
	.comm	_PIPE0_DMIF_BUFFER_CONTROL,8,3  ; @PIPE0_DMIF_BUFFER_CONTROL
	.comm	_DMIF_BUFFERS_ALLOCATED_COMPLETED,4,2 ; @DMIF_BUFFERS_ALLOCATED_COMPLETED
	.no_dead_strip	_dce8_line_buffer_adjust
.subsections_via_symbols
