	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv10_bo_update_tile_region
_nv10_bo_update_tile_region:            ## @nv10_bo_update_tile_region
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_nouveau_drm
	subq	8(%rax), %rbx
	shrq	$2, %rbx
	movq	%rax, %rdi
	callq	_nvxx_fb
	movq	%rax, %r14
	movq	(%rax), %r13
	movslq	%ebx, %r15
	leaq	(,%r15,8), %r12
	addq	%r13, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_nouveau_fence_unref
	cmpq	$0, (%r13,%r15,8)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_nvkm_fb_tile_fini
LBB0_2:
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	testl	%r8d, %r8d
	je	LBB0_4
## %bb.3:
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_nvkm_fb_tile_init
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_fb_tile_prog              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv10_bo_update_tile_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv10_bo_update_tile_region
_nv10_bo_update_tile_region:            ; @nv10_bo_update_tile_region
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x26, x1
	bl	_nouveau_drm
	ldr	x8, [x0, #8]
	sub	x8, x26, x8
	lsr	x23, x8, #2
	bl	_nvxx_fb
	mov	x24, x0
	ldr	x8, [x0]
	add	x25, x8, w23, sxtw #3
	mov	x0, x26
	bl	_nouveau_fence_unref
	ldr	x8, [x25]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	bl	_nvkm_fb_tile_fini
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	bl	_nvkm_fb_tile_init
LBB0_4:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nvkm_fb_tile_prog
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv10_bo_update_tile_region
.subsections_via_symbols
