	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_full_res_bounds_check
_vc4_full_res_bounds_check:             ## @vc4_full_res_bounds_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movl	8(%r15), %edi
	movl	$32, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %edi
	movq	(%rbx), %r8
	movq	(%r14), %rcx
	movq	%rcx, %rax
	subq	%r8, %rax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r8d, %esi
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_7
LBB0_2:
	movq	_VC4_TILE_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rsi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	imull	%edx, %edi
	addl	%esi, %edi
	movslq	%edi, %rdi
	xorl	%ebx, %ebx
	cmpq	%rdi, %rax
	jge	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"surface offset %d > BO size %zd\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VC4_TILE_BUFFER_SIZE,4,2       ## @VC4_TILE_BUFFER_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"MSAA tile %d, %d out of bounds (bo size %zd, offset %d).\n"

	.no_dead_strip	_vc4_full_res_bounds_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_full_res_bounds_check
_vc4_full_res_bounds_check:             ; @vc4_full_res_bounds_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w0, [x21, #8]
	mov	w1, #32
	bl	_DIV_ROUND_UP
	ldr	x1, [x19]
	ldr	x2, [x20]
	subs	x8, x2, x1
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x9, _VC4_TILE_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VC4_TILE_BUFFER_SIZE@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	sdiv	x10, x8, x9
	ldp	w8, w9, [x21]
	madd	w11, w8, w0, w9
	cmp	x10, w11, sxtw
	b.ge	LBB0_5
; %bb.3:
	stp	x2, x1, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x9
	mov	x2, x8
LBB0_4:
	bl	_DRM_DEBUG
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"surface offset %d > BO size %zd\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VC4_TILE_BUFFER_SIZE,4,2       ; @VC4_TILE_BUFFER_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"MSAA tile %d, %d out of bounds (bo size %zd, offset %d).\n"

	.no_dead_strip	_vc4_full_res_bounds_check
.subsections_via_symbols
