	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v11_0_line_buffer_adjust
_dce_v11_0_line_buffer_adjust:          ## @dce_v11_0_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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	xorl	%r12d, %r12d
	movl	$1, %r14d
	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, %r12d
	cmpl	$1920, %eax                     ## imm = 0x780
	jl	LBB0_8
## %bb.3:
	cmpl	$2560, %eax                     ## imm = 0xA00
	jae	LBB0_5
## %bb.4:
	movl	$5120, %ecx                     ## imm = 0x1400
	movl	$2, %r12d
	movl	$2, %r14d
	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	_AMD_IS_APU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, (%rdx)
	sete	%cl
	leaq	(%rcx,%rcx), %r12
	addq	$2, %r12
	movl	$8192, %ecx                     ## imm = 0x2000
	xorl	%r14d, %r14d
LBB0_8:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_mmLB_MEMORY_CTRL@GOTPCREL(%rip), %r15
	movq	8(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_LB_MEMORY_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_LB_MEMORY_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r14, %rcx
	callq	_REG_SET_FIELD
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	addq	(%r15), %rdi
	movq	%rax, %rsi
	callq	_WREG32
	movq	_mmPIPE0_DMIF_BUFFER_CONTROL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r13, %rdi
	callq	_RREG32
	movq	_PIPE0_DMIF_BUFFER_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DMIF_BUFFERS_ALLOCATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r12, %rcx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	%r13, %rdi
	movq	%rax, %rsi
	callq	_WREG32
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	jle	LBB0_12
## %bb.9:
	xorl	%r12d, %r12d
	movq	_DMIF_BUFFERS_ALLOCATION_COMPLETED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	%r13, %rdi
	callq	_RREG32
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rax, %rdi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	callq	_udelay
	incq	%r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %r12
	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	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mode too big for LB!\n"

	.comm	_mmLB_MEMORY_CTRL,8,3           ## @mmLB_MEMORY_CTRL
	.comm	_LB_MEMORY_CTRL,4,2             ## @LB_MEMORY_CTRL
	.comm	_LB_MEMORY_CONFIG,4,2           ## @LB_MEMORY_CONFIG
	.comm	_mmPIPE0_DMIF_BUFFER_CONTROL,8,3 ## @mmPIPE0_DMIF_BUFFER_CONTROL
	.comm	_PIPE0_DMIF_BUFFER_CONTROL,4,2  ## @PIPE0_DMIF_BUFFER_CONTROL
	.comm	_DMIF_BUFFERS_ALLOCATED,4,2     ## @DMIF_BUFFERS_ALLOCATED
	.comm	_DMIF_BUFFERS_ALLOCATION_COMPLETED,4,2 ## @DMIF_BUFFERS_ALLOCATION_COMPLETED
	.no_dead_strip	_dce_v11_0_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 dce_v11_0_line_buffer_adjust
_dce_v11_0_line_buffer_adjust:          ; @dce_v11_0_line_buffer_adjust
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	ldr	x24, [x1]
	mov	w23, #1
	mov	w25, #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	w23, #1
	mov	w25, #3840
	mov	w22, #2
	b	LBB0_9
LBB0_4:
	cmp	w8, #2560
	b.hs	LBB0_6
; %bb.5:
	mov	w25, #5120
	mov	w22, #2
	mov	w23, #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	x23, #0
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _AMD_IS_APU@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMD_IS_APU@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #2
	mov	w9, #4
	csel	x22, x9, x8, eq
	mov	w25, #8192
LBB0_9:
Lloh5:
	adrp	x26, _mmLB_MEMORY_CTRL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _mmLB_MEMORY_CTRL@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	bl	_RREG32
Lloh7:
	adrp	x8, _LB_MEMORY_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LB_MEMORY_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _LB_MEMORY_CONFIG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LB_MEMORY_CONFIG@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x3, x23
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x26]
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	bl	_WREG32
Lloh13:
	adrp	x23, _mmPIPE0_DMIF_BUFFER_CONTROL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _mmPIPE0_DMIF_BUFFER_CONTROL@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x24
	bl	_RREG32
Lloh15:
	adrp	x26, _PIPE0_DMIF_BUFFER_CONTROL@GOTPAGE
Lloh16:
	ldr	x26, [x26, _PIPE0_DMIF_BUFFER_CONTROL@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh17:
	adrp	x8, _DMIF_BUFFERS_ALLOCATED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMIF_BUFFERS_ALLOCATED@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x3, x22
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x23]
	add	x0, x8, x24
	bl	_WREG32
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x22, #0
Lloh20:
	adrp	x27, _DMIF_BUFFERS_ALLOCATION_COMPLETED@GOTPAGE
Lloh21:
	ldr	x27, [x27, _DMIF_BUFFERS_ALLOCATION_COMPLETED@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x24
	bl	_RREG32
	ldr	w1, [x26]
	ldr	w2, [x27]
	bl	_REG_GET_FIELD
	cbnz	x0, 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, x25, xzr, ne
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mode too big for LB!\n"

	.comm	_mmLB_MEMORY_CTRL,8,3           ; @mmLB_MEMORY_CTRL
	.comm	_LB_MEMORY_CTRL,4,2             ; @LB_MEMORY_CTRL
	.comm	_LB_MEMORY_CONFIG,4,2           ; @LB_MEMORY_CONFIG
	.comm	_mmPIPE0_DMIF_BUFFER_CONTROL,8,3 ; @mmPIPE0_DMIF_BUFFER_CONTROL
	.comm	_PIPE0_DMIF_BUFFER_CONTROL,4,2  ; @PIPE0_DMIF_BUFFER_CONTROL
	.comm	_DMIF_BUFFERS_ALLOCATED,4,2     ; @DMIF_BUFFERS_ALLOCATED
	.comm	_DMIF_BUFFERS_ALLOCATION_COMPLETED,4,2 ; @DMIF_BUFFERS_ALLOCATION_COMPLETED
	.no_dead_strip	_dce_v11_0_line_buffer_adjust
.subsections_via_symbols
