	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_get_rcl                    ## -- Begin function vc4_get_rcl
	.p2align	4, 0x90
_vc4_get_rcl:                           ## @vc4_get_rcl
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, -52(%rbp)
	movdqa	%xmm0, -64(%rbp)
	movq	16(%rsi), %rbx
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rdx
	movq	32(%rbx), %r8
	cmpq	%rcx, %rsi
	jg	LBB0_2
## %bb.1:
	cmpq	%r8, %rdx
	jg	LBB0_2
## %bb.5:
	movq	%rdi, %r14
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.6:
	movq	(%r15), %rax
	movq	8(%r15), %r9
	cmpq	%rax, %rcx
	jg	LBB0_8
## %bb.7:
	cmpq	%r9, %r8
	jg	LBB0_8
LBB0_9:
	leaq	-52(%rbp), %rdx
	leaq	60(%rbx), %rcx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vc4_rcl_render_config_surface_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	leaq	-44(%rbp), %rsi
	leaq	56(%rbx), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_vc4_rcl_surface_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	leaq	-48(%rbp), %rsi
	leaq	52(%rbx), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_vc4_rcl_surface_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	leaq	-56(%rbp), %rsi
	leaq	48(%rbx), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_vc4_rcl_surface_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:
	leaq	-60(%rbp), %rsi
	leaq	44(%rbx), %rdx
	movq	%r15, %rdi
	callq	_vc4_rcl_msaa_surface_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	addq	$40, %rbx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vc4_rcl_msaa_surface_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movdqa	-64(%rbp), %xmm0
	ptest	%xmm0, %xmm0
	je	LBB0_16
## %bb.17:
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vc4_create_rcl_bo
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	movq	%rcx, %rsi
	movq	%r8, %rdx
	movq	%rax, %rcx
	movq	%r9, %r8
LBB0_3:
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad render tile set (%d,%d)-(%d,%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Render tiles (%d,%d) outside of bin config (%d,%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"RCL requires color or Z/S write\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_get_rcl                    ; -- Begin function vc4_get_rcl
	.p2align	2
_vc4_get_rcl:                           ; @vc4_get_rcl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	wzr, [sp, #72]
	stp	xzr, xzr, [sp, #56]
	str	xzr, [sp, #48]
	ldr	x21, [x1, #16]
	ldp	x10, x8, [x21, #8]
	ldp	x11, x9, [x21, #24]
	cmp	x10, x8
	ccmp	x11, x9, #0, le
	b.le	LBB0_2
; %bb.1:
	stp	x8, x9, [sp, #16]
	stp	x10, x11, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x10, [x21]
	cbz	x10, LBB0_6
; %bb.3:
	ldp	x10, x11, [x19]
	cmp	x8, x10
	ccmp	x9, x11, #0, le
	b.le	LBB0_6
; %bb.4:
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_DEBUG
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	add	x22, sp, #48
	orr	x2, x22, #0xc
	add	x3, x21, #60
	add	x1, sp, #48
	mov	x0, x19
	bl	_vc4_rcl_render_config_surface_setup
	cbnz	w0, LBB0_14
; %bb.7:
	add	x1, x22, #20
	add	x2, x21, #56
	mov	x0, x19
	mov	w3, #0
	bl	_vc4_rcl_surface_setup
	cbnz	w0, LBB0_14
; %bb.8:
	add	x22, sp, #48
	add	x1, x22, #16
	add	x2, x21, #52
	mov	x0, x19
	mov	w3, #0
	bl	_vc4_rcl_surface_setup
	cbnz	w0, LBB0_14
; %bb.9:
	orr	x1, x22, #0x8
	add	x2, x21, #48
	mov	x0, x19
	mov	w3, #1
	bl	_vc4_rcl_surface_setup
	cbnz	w0, LBB0_14
; %bb.10:
	add	x8, sp, #48
	orr	x1, x8, #0x4
	add	x2, x21, #44
	mov	x0, x19
	bl	_vc4_rcl_msaa_surface_setup
	cbnz	w0, LBB0_14
; %bb.11:
	add	x2, x21, #40
	add	x1, sp, #48
	mov	x0, x19
	bl	_vc4_rcl_msaa_surface_setup
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	q0, [sp, #48]
	cmtst.4s	v0, v0, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	tst	w8, #0xf
	b.eq	LBB0_15
; %bb.13:
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	bl	_vc4_create_rcl_bo
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad render tile set (%d,%d)-(%d,%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Render tiles (%d,%d) outside of bin config (%d,%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"RCL requires color or Z/S write\n"

.subsections_via_symbols
