	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_plane_dcc_attributes
_fill_plane_dcc_attributes:             ## @fill_plane_dcc_attributes
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %ebx
	movq	(%rdi), %r13
	movq	_DCC_OFFSET_256B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_AMDGPU_TILING_GET
	movq	%rax, %r15
	movq	_DCC_INDEPENDENT_64B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_AMDGPU_TILING_GET
	movq	%rax, %rbx
	testq	%rax, %rax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	testq	%r15, %r15
	je	LBB0_14
## %bb.1:
	movq	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jbe	LBB0_14
## %bb.2:
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movl	%r12d, -104(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	(%r14), %eax
	movl	%eax, -76(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_ROTATION_ANGLE_0@GOTPCREL(%rip), %rdx
	movq	_SCAN_DIRECTION_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, (%rdx)
	je	LBB0_8
## %bb.5:
	movq	_ROTATION_ANGLE_180@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	je	LBB0_8
## %bb.6:
	movq	_ROTATION_ANGLE_90@GOTPCREL(%rip), %rdx
	movq	_SCAN_DIRECTION_VERTICAL@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_ROTATION_ANGLE_270@GOTPCREL(%rip), %rdx
	cmpl	%esi, (%rdx)
	jne	LBB0_9
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
LBB0_9:
	leaq	-104(%rbp), %rsi
	leaq	-144(%rbp), %rdx
	movq	%r13, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_3
## %bb.10:
	cmpl	$0, -128(%rbp)
	je	LBB0_3
## %bb.11:
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.12:
	cmpq	$0, -136(%rbp)
	je	LBB0_13
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	movq	32(%rbp), %r14
	movq	24(%rbp), %r12
	movl	$1, (%r12)
	movq	_DCC_PITCH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbp), %r15d
	movl	%r15d, %edi
	callq	_AMDGPU_TILING_GET
	incq	%rax
	movq	%rax, 16(%r12)
	movq	%rbx, 8(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_get_dcc_address
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lower_32_bits
	movl	%eax, 4(%r14)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, (%r14)
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCC_OFFSET_256B,4,2            ## @DCC_OFFSET_256B
	.comm	_DCC_INDEPENDENT_64B,4,2        ## @DCC_INDEPENDENT_64B
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ## @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ROTATION_ANGLE_0,4,2           ## @ROTATION_ANGLE_0
	.comm	_ROTATION_ANGLE_180,4,2         ## @ROTATION_ANGLE_180
	.comm	_SCAN_DIRECTION_HORIZONTAL,4,2  ## @SCAN_DIRECTION_HORIZONTAL
	.comm	_ROTATION_ANGLE_90,4,2          ## @ROTATION_ANGLE_90
	.comm	_ROTATION_ANGLE_270,4,2         ## @ROTATION_ANGLE_270
	.comm	_SCAN_DIRECTION_VERTICAL,4,2    ## @SCAN_DIRECTION_VERTICAL
	.comm	_DCC_PITCH_MAX,4,2              ## @DCC_PITCH_MAX
	.no_dead_strip	_fill_plane_dcc_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_plane_dcc_attributes
_fill_plane_dcc_attributes:             ; @fill_plane_dcc_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x20, x7
	mov	x19, x6
	mov	x25, x5
	mov	x27, x4
	mov	x24, x3
	mov	x26, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _DCC_OFFSET_256B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCC_OFFSET_256B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x6
	bl	_AMDGPU_TILING_GET
	mov	x28, x0
Lloh3:
	adrp	x8, _DCC_INDEPENDENT_64B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCC_INDEPENDENT_64B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AMDGPU_TILING_GET
	mov	x23, x0
	cmp	x0, #0
	cset	w21, ne
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	w0, #0
Lloh6:
	adrp	x8, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x28, #0
	ccmp	w8, w26, #0, ne
	b.ls	LBB0_12
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	d0, [x27]
	stur	d0, [sp, #84]
	ldr	w9, [x25]
	str	w26, [sp, #56]
	str	w9, [sp, #80]
Lloh9:
	adrp	x9, _ROTATION_ANGLE_0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ROTATION_ANGLE_0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _ROTATION_ANGLE_180@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ROTATION_ANGLE_180@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w24
	ccmp	w10, w24, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh15:
	adrp	x9, _SCAN_DIRECTION_HORIZONTAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SCAN_DIRECTION_HORIZONTAL@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	str	w9, [sp, #76]
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x9, _ROTATION_ANGLE_90@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ROTATION_ANGLE_90@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x9]
Lloh20:
	adrp	x9, _SCAN_DIRECTION_VERTICAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SCAN_DIRECTION_VERTICAL@GOTPAGEOFF]
	cmp	w10, w24
	b.eq	LBB0_4
; %bb.6:
Lloh22:
	adrp	x10, _ROTATION_ANGLE_270@GOTPAGE
Lloh23:
	ldr	x10, [x10, _ROTATION_ANGLE_270@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w10, w24
	b.eq	LBB0_4
LBB0_7:
	add	x1, sp, #56
	add	x2, sp, #16
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_11
; %bb.8:
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_11
; %bb.9:
	cbnz	x23, LBB0_13
; %bb.10:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_13
LBB0_11:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_13:
	ldr	x22, [x29, #16]
	mov	w8, #1
	str	w8, [x20]
Lloh28:
	adrp	x8, _DCC_PITCH_MAX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DCC_PITCH_MAX@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AMDGPU_TILING_GET
	add	x8, x0, #1
	stp	x21, x8, [x20, #8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	mov	x1, x19
	bl	_get_dcc_address
	mov	x19, x0
	bl	_lower_32_bits
	str	w0, [x22, #4]
	mov	x0, x19
	bl	_upper_32_bits
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DCC_OFFSET_256B,4,2            ; @DCC_OFFSET_256B
	.comm	_DCC_INDEPENDENT_64B,4,2        ; @DCC_INDEPENDENT_64B
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ; @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ROTATION_ANGLE_0,4,2           ; @ROTATION_ANGLE_0
	.comm	_ROTATION_ANGLE_180,4,2         ; @ROTATION_ANGLE_180
	.comm	_SCAN_DIRECTION_HORIZONTAL,4,2  ; @SCAN_DIRECTION_HORIZONTAL
	.comm	_ROTATION_ANGLE_90,4,2          ; @ROTATION_ANGLE_90
	.comm	_ROTATION_ANGLE_270,4,2         ; @ROTATION_ANGLE_270
	.comm	_SCAN_DIRECTION_VERTICAL,4,2    ; @SCAN_DIRECTION_VERTICAL
	.comm	_DCC_PITCH_MAX,4,2              ; @DCC_PITCH_MAX
	.no_dead_strip	_fill_plane_dcc_attributes
.subsections_via_symbols
