	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_bo_cpu_blit                ## -- Begin function vmw_bo_cpu_blit
	.p2align	4, 0x90
_vmw_bo_cpu_blit:                       ## @vmw_bo_cpu_blit
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	%rdx, %rcx
	movq	$0, -72(%rbp)
	movq	%rbx, %rax
	orq	%rdx, %rax
	shrq	$32, %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r13d
LBB0_3:
	movq	_TTM_PL_FLAG_NO_EVICT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rsi)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	testl	%eax, (%r15)
	jne	LBB0_7
LBB0_6:
	movl	16(%r15), %edi
	callq	_dma_resv_assert_held
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdi
	movq	_tt_unpopulated@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_10
## %bb.8:
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	leaq	-72(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.9:
	movq	(%r15), %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_10:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdi
	cmpq	%rax, (%rdi)
	jne	LBB0_13
## %bb.11:
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	leaq	-72(%rbp), %rsi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_13:
	movq	24(%rbp), %r15
	movq	$0, -144(%rbp)
	movq	$0, -128(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	8(%rsi), %rax
	movl	8(%rax), %eax
	movl	%eax, -100(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -104(%rbp)
	movl	4(%rsi), %eax
	movl	%eax, -108(%rbp)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %eax
	movl	%eax, -112(%rbp)
	movl	(%rsi), %edi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ttm_io_prot
	movq	%rax, -152(%rbp)
	movl	(%r14), %edi
	movq	_PAGE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ttm_io_prot
	movq	%rax, -136(%rbp)
	movq	32(%rbp), %rax
	movq	%rax, -120(%rbp)
	testq	%r15, %r15
	jle	LBB0_14
## %bb.15:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%rbp), %rax
	movq	%r13, 8(%rax)
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	32(%rbp), %rax
	movq	%rdx, (%rax)
	leaq	-152(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	16(%rbp), %rcx
	callq	_vmw_bo_cpu_blit_line
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	%rcx, %rbx
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	incq	%r13
	decq	%r15
	jne	LBB0_16
LBB0_21:
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movq	-136(%rbp), %rsi
	callq	_ttm_kunmap_atomic_prot
	jmp	LBB0_23
LBB0_4:
	movl	16(%rsi), %edi
	callq	_dma_resv_assert_held
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r14), %eax
	testl	%eax, (%r15)
	jne	LBB0_7
	jmp	LBB0_6
LBB0_14:
	xorl	%r14d, %r14d
LBB0_23:
	movq	-144(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	movq	-152(%rbp), %rsi
	callq	_ttm_kunmap_atomic_prot
LBB0_25:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_FLAG_NO_EVICT,4,2       ## @TTM_PL_FLAG_NO_EVICT
	.comm	_tt_unpopulated,8,3             ## @tt_unpopulated
	.comm	_PAGE_KERNEL,4,2                ## @PAGE_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_bo_cpu_blit                ; -- Begin function vmw_bo_cpu_blit
	.p2align	2
_vmw_bo_cpu_blit:                       ; @vmw_bo_cpu_blit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x25, x3
	mov	x23, x2
	mov	x24, x1
	mov	x26, x0
	str	xzr, [sp, #72]
	ldr	w9, [x0]
Lloh0:
	adrp	x27, _TTM_PL_FLAG_NO_EVICT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TTM_PL_FLAG_NO_EVICT@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x26, #16]
	bl	_dma_resv_assert_held
	ldr	w8, [x27]
LBB0_2:
	ldr	w9, [x25]
	tst	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x25, #16]
	bl	_dma_resv_assert_held
LBB0_4:
	ldr	x0, [x26, #8]
	ldr	x9, [x0]
Lloh2:
	adrp	x28, _tt_unpopulated@GOTPAGE
Lloh3:
	ldr	x28, [x28, _tt_unpopulated@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #72
	blr	x8
	mov	x27, x0
	cbnz	w0, LBB0_18
; %bb.6:
	ldr	x8, [x28]
LBB0_7:
	ldr	x0, [x25, #8]
	ldr	x9, [x0]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, sp, #72
	blr	x8
	mov	x27, x0
	cbnz	w0, LBB0_18
; %bb.9:
	ldr	x0, [x25, #8]
LBB0_10:
	ldr	x28, [x29, #16]
	str	xzr, [sp, #8]
	str	xzr, [sp, #24]
	stp	xzr, xzr, [sp, #56]
	ldr	x8, [x26, #8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #52]
	ldr	w10, [x0, #8]
	ldr	w8, [x25, #4]
	ldp	w0, w9, [x26]
	stp	w9, w10, [sp, #44]
	str	w8, [sp, #40]
Lloh4:
	adrp	x26, _PAGE_KERNEL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PAGE_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_ttm_io_prot
	str	x0, [sp]
	ldr	w0, [x25]
	ldr	w1, [x26]
	bl	_ttm_io_prot
	str	x0, [sp, #16]
	str	x28, [sp, #32]
	cmp	x19, #1
	b.lt	LBB0_19
; %bb.11:
	sdiv	x25, x24, x23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sdiv	x8, x24, x23
	msub	x8, x8, x23, x24
	stp	x8, x25, [x28]
	mov	x0, sp
	mov	x1, x24
	mov	x2, x22
	mov	x3, x20
	bl	_vmw_bo_cpu_blit_line
	mov	x27, x0
	cbnz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, x23
	add	x22, x22, x21
	add	x25, x25, #1
	subs	x19, x19, #1
	b.ne	LBB0_12
LBB0_14:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x1, [sp, #16]
	bl	_ttm_kunmap_atomic_prot
LBB0_16:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_18
LBB0_17:
	ldr	x1, [sp]
	bl	_ttm_kunmap_atomic_prot
LBB0_18:
	mov	x0, x27
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_19:
	mov	w27, #0
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_FLAG_NO_EVICT,4,2       ; @TTM_PL_FLAG_NO_EVICT
	.comm	_tt_unpopulated,8,3             ; @tt_unpopulated
	.comm	_PAGE_KERNEL,4,2                ; @PAGE_KERNEL
.subsections_via_symbols
