	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish_current_sequence
_finish_current_sequence:               ## @finish_current_sequence
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.3:
	movl	76(%r14), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	movl	72(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_12:
	callq	_DRM_DEBUG
LBB0_13:
	movq	_no_sequence@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, 68(%r14)
	je	LBB0_13
## %bb.5:
	movq	8(%r14), %rcx
	movq	16(%r14), %rax
	movl	(%rcx,%rax,4), %esi
	movq	24(%r14), %rcx
	movl	(%rcx,%rax,4), %ecx
	cmpl	$9, %ecx
	movl	$9, %edx
	cmovael	%edx, %ecx
	cmpl	$9, %esi
	cmovbl	%esi, %edx
	cmpl	%ecx, %edx
	jbe	LBB0_7
## %bb.6:
	movq	$-1, %rsi
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_7:
	movq	56(%r14), %rsi
	movl	(%rsi,%rax,4), %r8d
	movq	48(%r14), %rsi
	movq	(%rsi,%rax,8), %r9
	movl	%edx, %ebx
	movq	32(%r14), %rdx
	movq	40(%r14), %rsi
	movq	(%rsi,%rax,8), %r10
	movq	(%rdx,%rax,8), %r11
	movl	%ecx, %r15d
	incq	%r15
	movq	$-1, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rbx,8), %r12
	cmpq	%rsi, %r12
	cmovbq	%r12, %rsi
	movq	(%r9,%rbx,8), %rax
	movq	(%r10,%rbx,8), %rcx
	movq	%rcx, %rdi
	imulq	%rax, %rdi
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	testl	%r8d, %r8d
	cmoveq	%rax, %rdi
	testl	%ebx, %ebx
	cmovneq	%rax, %rdi
	addq	%r12, %rdi
	cmpq	%rdx, %rdi
	cmovaq	%rdi, %rdx
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_8
LBB0_9:
	subq	%rsi, %rdx
	movl	64(%r14), %ecx
	movq	%r14, %rdi
	callq	_via_drm_lookup_agp_map
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movl	$2, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Z Buffer start address is 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Destination start address is 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"AGP texture is not in allowed map\n"

	.comm	_no_sequence,4,2                ## @no_sequence
	.no_dead_strip	_finish_current_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function finish_current_sequence
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_finish_current_sequence:               ; @finish_current_sequence
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [x19, #76]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19, #72]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_DEBUG
LBB0_6:
	mov	w0, #0
Lloh4:
	adrp	x8, _no_sequence@GOTPAGE
Lloh5:
	ldr	x8, [x8, _no_sequence@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x19, #68]
	cbz	w8, LBB0_6
; %bb.9:
	ldp	x8, x9, [x19, #8]
	lsl	x10, x9, #2
	ldr	w8, [x8, x10]
	ldr	x11, [x19, #24]
	ldr	w10, [x11, x10]
	mov	w11, #9
	cmp	w10, #9
	csel	w13, w10, w11, lo
	cmp	w8, #9
	csel	w17, w8, w11, lo
	subs	w12, w13, w17
	b.hs	LBB0_11
; %bb.10:
	mov	x16, #0
	mov	x1, #-1
	b	LBB0_18
LBB0_11:
	ldp	x10, x8, [x19, #48]
	ldr	w8, [x8, x9, lsl #2]
	lsl	x11, x9, #3
	ldr	x0, [x10, x11]
	lsl	x16, x17, #3
	ldp	x14, x9, [x19, #32]
	ldr	x1, [x9, x11]
	add	x9, x0, x16
	add	x10, x1, x16
	ldr	x2, [x14, x11]
	add	x11, x2, x16
	cmp	w12, #3
	b.hs	LBB0_13
; %bb.12:
	mov	x16, #0
	mov	x1, #-1
	mov	x12, x17
	b	LBB0_16
LBB0_13:
	add	x14, x12, #1
	cmp	w8, #0
	cset	w3, ne
	and	x15, x14, #0x1fffffffc
	add	w12, w17, w15
	lsl	x4, x15, #3
	add	x9, x9, x4
	dup.2s	v0, w17
	add	x10, x10, x4
Lloh7:
	adrp	x17, lCPI0_0@PAGE
Lloh8:
	ldr	d1, [x17, lCPI0_0@PAGEOFF]
	add.2s	v1, v0, v1
	dup.2s	v2, w3
	add	x11, x11, x4
	add	x3, x16, #16
	add	x16, x2, x3
	add	x17, x0, x3
	add	x0, x1, x3
	movi.2d	v3, #0xffffffffffffffff
	movi.2d	v0, #0000000000000000
	mvni.2s	v5, #1
	movi.2s	v6, #4
	mov	x1, x15
	movi.2d	v4, #0000000000000000
	movi.2d	v7, #0xffffffffffffffff
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q16, q17, [x16, #-16]
	cmhi.2d	v18, v3, v16
	bit.16b	v3, v16, v18
	cmhi.2d	v18, v7, v17
	bit.16b	v7, v17, v18
	cmeq.2s	v18, v1, #0
	cmeq.2s	v19, v1, v5
	and.8b	v18, v18, v2
	ushll.2d	v18, v18, #0
	shl.2d	v18, v18, #63
	cmlt.2d	v18, v18, #0
	and.8b	v19, v19, v2
	ushll.2d	v19, v19, #0
	shl.2d	v19, v19, #63
	cmlt.2d	v19, v19, #0
	ldp	q20, q21, [x17, #-16]
	ldur	q22, [x0, #-16]
	mov.d	x2, v20[1]
	mov.d	x3, v22[1]
	mul	x2, x3, x2
	ushl.2d	v23, v20, v22
	fmov	x3, d20
	fmov	x4, d22
	mul	x3, x4, x3
	fmov	d20, x3
	mov.d	v20[1], x2
	mov.d	x2, v21[1]
	ldr	q22, [x0], #32
	mov.d	x3, v22[1]
	mul	x2, x3, x2
	ushl.2d	v24, v21, v22
	fmov	x3, d21
	fmov	x4, d22
	mul	x3, x4, x3
	fmov	d21, x3
	mov.d	v21[1], x2
	bsl.16b	v18, v20, v23
	bsl.16b	v19, v21, v24
	add.2d	v16, v18, v16
	add.2d	v17, v19, v17
	cmhi.2d	v18, v16, v0
	bit.16b	v0, v16, v18
	cmhi.2d	v16, v17, v4
	bit.16b	v4, v17, v16
	add.2s	v1, v1, v6
	add	x16, x16, #32
	add	x17, x17, #32
	subs	x1, x1, #4
	b.ne	LBB0_14
; %bb.15:
	cmhi.2d	v1, v7, v3
	bsl.16b	v1, v3, v7
	ext.16b	v2, v1, v1, #8
	cmhi	d3, d2, d1
	bif.8b	v1, v2, v3
	fmov	x1, d1
	cmhi.2d	v1, v0, v4
	bif.16b	v0, v4, v1
	ext.16b	v1, v0, v0, #8
	cmhi	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x16, d0
	cmp	x14, x15
	b.eq	LBB0_18
LBB0_16:
	add	w13, w13, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11], #8
	cmp	x14, x1
	csel	x1, x14, x1, lo
	cmp	w8, #0
	ccmp	w12, #0, #0, ne
	ldr	x15, [x9], #8
	ldr	x17, [x10], #8
	mul	x0, x17, x15
	lsl	x15, x15, x17
	csel	x15, x0, x15, eq
	add	x14, x15, x14
	cmp	x14, x16
	csel	x16, x14, x16, hi
	add	w12, w12, #1
	cmp	w13, w12
	b.ne	LBB0_17
LBB0_18:
	sub	x2, x16, x1
	ldr	w3, [x19, #64]
	mov	x0, x19
	bl	_via_drm_lookup_agp_map
	cbnz	w0, LBB0_6
; %bb.19:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #2
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Z Buffer start address is 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Destination start address is 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"AGP texture is not in allowed map\n"

	.comm	_no_sequence,4,2                ; @no_sequence
	.no_dead_strip	_finish_current_sequence
.subsections_via_symbols
