	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evergreen_line_buffer_adjust
_evergreen_line_buffer_adjust:          ## @evergreen_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rsi), %r12d
	movl	4(%rsi), %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rsi)
	setne	%al
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	setne	%dl
	andb	%al, %dl
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	leal	1(%rax), %ecx
	andb	%dl, %al
	movzbl	%al, %eax
	xorl	%ebx, %ebx
	testb	%dl, %dl
	cmovnel	%ecx, %ebx
	leal	(,%r12,4), %ecx
	andl	$4, %ecx
	leal	(%rcx,%rax,2), %esi
	movq	_DC_LB_MEMORY_SPLIT@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_WREG32
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE41
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE5
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	shll	$5, %r12d
	movq	_PIPE0_DMIF_BUFFER_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	addl	%r12d, %r15d
	movl	%ebx, %edi
	callq	_DMIF_BUFFERS_ALLOCATED
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_WREG32
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_DMIF_BUFFERS_ALLOCATED_COMPLETED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	addl	%r12d, %edi
	callq	_RREG32
	testl	%eax, (%r15)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.7:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	je	LBB0_11
## %bb.8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	$4, %eax
	movq	%r13, %rdi
	cmpl	$6, %eax
	jne	LBB0_9
## %bb.10:
	callq	_ASIC_IS_DCE5
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	shll	$10, %eax
	addl	$15360, %eax                    ## imm = 0x3C00
	jmp	LBB0_11
LBB0_9:
	callq	_ASIC_IS_DCE5
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	shll	$9, %eax
	addl	$7680, %eax                     ## imm = 0x1E00
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_LB_MEMORY_SPLIT,4,2         ## @DC_LB_MEMORY_SPLIT
	.comm	_PIPE0_DMIF_BUFFER_CONTROL,4,2  ## @PIPE0_DMIF_BUFFER_CONTROL
	.comm	_DMIF_BUFFERS_ALLOCATED_COMPLETED,4,2 ## @DMIF_BUFFERS_ALLOCATED_COMPLETED
	.no_dead_strip	_evergreen_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 evergreen_line_buffer_adjust
_evergreen_line_buffer_adjust:          ; @evergreen_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	cmp	x8, #0
	cset	w8, ne
	cmp	x2, #0
	cset	w9, ne
	cmp	x3, #0
	cset	w10, eq
	mov	w11, #1
	cinc	w11, w11, eq
	ands	w8, w9, w8
	csel	w23, w11, wzr, ne
	tst	w10, w8
	mov	w8, #2
	csel	w22, w8, wzr, ne
	ldp	w24, w8, [x1]
	bfi	w22, w24, #2, #1
Lloh0:
	adrp	x9, _DC_LB_MEMORY_SPLIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DC_LB_MEMORY_SPLIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w0, w8, w9
	mov	x1, x22
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_DCE41
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ASIC_IS_DCE5
	cbz	x0, LBB0_6
LBB0_2:
	lsl	w25, w24, #5
Lloh3:
	adrp	x26, _PIPE0_DMIF_BUFFER_CONTROL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PIPE0_DMIF_BUFFER_CONTROL@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w24, w8, w25
	mov	x0, x23
	bl	_DMIF_BUFFERS_ALLOCATED
	mov	x1, x0
	mov	x0, x24
	bl	_WREG32
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w23, #0
Lloh5:
	adrp	x24, _DMIF_BUFFERS_ALLOCATED_COMPLETED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DMIF_BUFFERS_ALLOCATED_COMPLETED@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	add	w0, w8, w25
	bl	_RREG32
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w23, w23, #1
	ldr	w8, [x19]
	cmp	w23, w8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	cbz	x21, LBB0_12
; %bb.7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_12
; %bb.8:
	orr	w8, w22, #0x4
	mov	x0, x19
	cmp	w8, #6
	b.ne	LBB0_10
; %bb.9:
	bl	_ASIC_IS_DCE5
	cmp	x0, #0
	mov	w8, #16384
	mov	w9, #15360
	b	LBB0_11
LBB0_10:
	bl	_ASIC_IS_DCE5
	cmp	x0, #0
	mov	w8, #8192
	mov	w9, #7680
LBB0_11:
	csel	w0, w9, w8, eq
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_LB_MEMORY_SPLIT,4,2         ; @DC_LB_MEMORY_SPLIT
	.comm	_PIPE0_DMIF_BUFFER_CONTROL,4,2  ; @PIPE0_DMIF_BUFFER_CONTROL
	.comm	_DMIF_BUFFERS_ALLOCATED_COMPLETED,4,2 ; @DMIF_BUFFERS_ALLOCATED_COMPLETED
	.no_dead_strip	_evergreen_line_buffer_adjust
.subsections_via_symbols
