	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function surface_cpu_blt_colour_fill
_surface_cpu_blt_colour_fill:           ## @surface_cpu_blt_colour_fill
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	16(%rax), %r13
	movq	%rsi, %rdi
	callq	_debug_box
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_debug_color
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_TRACE
	movq	_WINED3DFMT_FLAG_BLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movq	(%rcx), %rdi
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.65:
	callq	_debug_d3dformat
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_1:
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_3
## %bb.2:
	callq	_debug_d3dformat
	movl	%eax, %ebx
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_debug_d3dformat
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_FIXME
	movq	8(%r15), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	_WINED3D_RTYPE_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.66:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_4:
	cmpq	$0, (%r13)
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_context_acquire
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	movq	%r14, %rsi
	callq	_wined3d_format_convert_from_float
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rdi
	movq	16(%r15), %rax
	movl	8(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %r14d
	movl	12(%r12), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	callq	_texture_from_resource
	movq	%rax, %r13
	movl	16(%rax), %ebx
	movl	4(%r15), %esi
	movq	%rax, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_wined3d_texture_load_location
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %edi
	callq	_wined3d_debug_location
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
LBB0_9:
	movl	4(%r15), %esi
	movl	%ebx, %edx
	notl	%edx
	movq	%r13, %rdi
	callq	_wined3d_texture_invalidate_location
	movl	4(%r15), %eax
	cltd
	idivl	(%r13)
	leaq	-84(%rbp), %rcx
	leaq	-88(%rbp), %rax
	movq	%r13, %rdi
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_wined3d_texture_get_pitch
	movl	4(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_wined3d_texture_get_memory
	movq	8(%r13), %rax
	movslq	4(%r15), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_GL_PIXEL_UNPACK_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WINED3D_MAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r13
	leaq	-48(%rbp), %rsi
	callq	_context_map_bo_address
	movq	%rax, %r9
	movslq	16(%r12), %rax
	movslq	-84(%rbp), %rdi
	imulq	%rax, %rdi
	leaq	(%r9,%rdi,4), %rcx
	movl	4(%r12), %esi
	movl	12(%r12), %eax
	movq	16(%r15), %rbx
	cltd
	idivl	12(%rbx)
	movslq	-88(%rbp), %rdx
	movslq	%eax, %r10
	imulq	%rdx, %r10
	movl	%esi, %eax
	cltd
	idivl	16(%rbx)
	leaq	(%rcx,%r10,4), %rcx
	movslq	20(%rbx), %rdx
	movslq	%eax, %r11
	imulq	%rdx, %r11
	leaq	(%rcx,%r11,4), %rsi
	movq	%rsi, -80(%rbp)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leal	-1(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_63
## %bb.10:
	movl	-96(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %r15d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	subl	%ebx, %r15d
	subl	-92(%rbp), %r14d                ## 4-byte Folded Reload
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_50:
	cmpl	%ebx, %r8d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
## %bb.51:
	movl	%r15d, %edx
	cmpl	$8, %r15d
	jae	LBB0_53
## %bb.52:
	xorl	%r8d, %r8d
	jmp	LBB0_61
LBB0_30:
	cmpl	%ebx, %r8d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_24
## %bb.31:
	movzbl	%dl, %eax
	movzbl	%dh, %ecx
	shrl	$16, %edx
	movzbl	%dl, %edx
	notl	%ebx
	addl	%r8d, %ebx
	movq	%rsi, %rdi
	cmpl	$3, %ebx
	jb	LBB0_34
## %bb.32:
	movl	%r15d, %ebx
	andl	$-4, %ebx
	movq	%rsi, %rdi
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdi)
	movl	%ecx, 4(%rdi)
	movl	%edx, 8(%rdi)
	movl	%eax, 12(%rdi)
	movl	%ecx, 16(%rdi)
	movl	%edx, 20(%rdi)
	movl	%eax, 24(%rdi)
	movl	%ecx, 28(%rdi)
	movl	%edx, 32(%rdi)
	movl	%eax, 36(%rdi)
	movl	%ecx, 40(%rdi)
	movl	%edx, 44(%rdi)
	addq	$48, %rdi
	addl	$-4, %ebx
	jne	LBB0_33
LBB0_34:
	testb	$3, %r15b
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
## %bb.35:
	subb	%bl, %r8b
	movzbl	%r8b, %ebx
	andl	$3, %ebx
	shlq	$2, %rbx
	leaq	(%rbx,%rbx,2), %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdi,%rbx)
	movl	%ecx, 4(%rdi,%rbx)
	movl	%edx, 8(%rdi,%rbx)
	addq	$12, %rbx
	cmpl	%ebx, %r8d
	jne	LBB0_36
	jmp	LBB0_24
LBB0_11:
	cmpl	%ebx, %r8d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
## %bb.12:
	movl	%r15d, %edx
	cmpl	$8, %r15d
	jae	LBB0_14
## %bb.13:
	xorl	%r8d, %r8d
	jmp	LBB0_22
LBB0_63:
	leaq	L_.str.5(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_FIXME
	movq	8(%r15), %rdi
	movslq	4(%r15), %rsi
	callq	_wined3d_resource_unmap
	jmp	LBB0_64
LBB0_37:
	cmpl	%ebx, %r8d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
## %bb.38:
	movl	%r15d, %edx
	cmpl	$8, %r15d
	jae	LBB0_40
## %bb.39:
	xorl	%r8d, %r8d
	jmp	LBB0_48
LBB0_53:
	movl	%edx, %r8d
	andl	$-8, %r8d
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %r12d
	andl	$7, %r12d
	cmpq	$56, %rax
	jae	LBB0_55
## %bb.54:
	xorl	%eax, %eax
	jmp	LBB0_57
LBB0_14:
	movl	%edx, %r8d
	andl	$-8, %r8d
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %r12d
	andl	$7, %r12d
	cmpq	$56, %rax
	jae	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_40:
	movl	%edx, %r8d
	andl	$-8, %r8d
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %r12d
	andl	$7, %r12d
	cmpq	$56, %rax
	jae	LBB0_42
## %bb.41:
	xorl	%eax, %eax
	jmp	LBB0_44
LBB0_55:
	andq	$-8, %rcx
	leaq	(%rdi,%r11), %rax
	addq	%r10, %rax
	leaq	(%r9,%rax,4), %rbx
	addq	$240, %rbx
	xorl	%eax, %eax
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -240(%rbx,%rax,4)
	movdqu	%xmm0, -224(%rbx,%rax,4)
	movdqu	%xmm0, -208(%rbx,%rax,4)
	movdqu	%xmm0, -192(%rbx,%rax,4)
	movdqu	%xmm0, -176(%rbx,%rax,4)
	movdqu	%xmm0, -160(%rbx,%rax,4)
	movdqu	%xmm0, -144(%rbx,%rax,4)
	movdqu	%xmm0, -128(%rbx,%rax,4)
	movdqu	%xmm0, -112(%rbx,%rax,4)
	movdqu	%xmm0, -96(%rbx,%rax,4)
	movdqu	%xmm0, -80(%rbx,%rax,4)
	movdqu	%xmm0, -64(%rbx,%rax,4)
	movdqu	%xmm0, -48(%rbx,%rax,4)
	movdqu	%xmm0, -32(%rbx,%rax,4)
	movdqu	%xmm0, -16(%rbx,%rax,4)
	movdqu	%xmm0, (%rbx,%rax,4)
	addq	$64, %rax
	addq	$-8, %rcx
	jne	LBB0_56
LBB0_57:
	testq	%r12, %r12
	je	LBB0_60
## %bb.58:
	addq	%rdi, %rax
	addq	%r11, %rax
	addq	%r10, %rax
	leaq	(%r9,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r12
	xorl	%ecx, %ecx
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rax,%rcx)
	movdqu	%xmm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_59
LBB0_60:
	cmpq	%rdx, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
LBB0_61:
	addq	%r8, %rdi
	addq	%r11, %rdi
	addq	%r10, %rdi
	leaq	(%r9,%rdi,4), %rax
	subq	%r8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_62:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_62
	jmp	LBB0_24
LBB0_16:
	andq	$-8, %rcx
	leaq	(%rdi,%r11), %rax
	addq	%r10, %rax
	leaq	(%r9,%rax,4), %rbx
	addq	$240, %rbx
	xorl	%eax, %eax
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -240(%rbx,%rax,4)
	movdqu	%xmm0, -224(%rbx,%rax,4)
	movdqu	%xmm0, -208(%rbx,%rax,4)
	movdqu	%xmm0, -192(%rbx,%rax,4)
	movdqu	%xmm0, -176(%rbx,%rax,4)
	movdqu	%xmm0, -160(%rbx,%rax,4)
	movdqu	%xmm0, -144(%rbx,%rax,4)
	movdqu	%xmm0, -128(%rbx,%rax,4)
	movdqu	%xmm0, -112(%rbx,%rax,4)
	movdqu	%xmm0, -96(%rbx,%rax,4)
	movdqu	%xmm0, -80(%rbx,%rax,4)
	movdqu	%xmm0, -64(%rbx,%rax,4)
	movdqu	%xmm0, -48(%rbx,%rax,4)
	movdqu	%xmm0, -32(%rbx,%rax,4)
	movdqu	%xmm0, -16(%rbx,%rax,4)
	movdqu	%xmm0, (%rbx,%rax,4)
	addq	$64, %rax
	addq	$-8, %rcx
	jne	LBB0_17
LBB0_18:
	testq	%r12, %r12
	je	LBB0_21
## %bb.19:
	addq	%rdi, %rax
	addq	%r11, %rax
	addq	%r10, %rax
	leaq	(%r9,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r12
	xorl	%ecx, %ecx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rax,%rcx)
	movdqu	%xmm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_20
LBB0_21:
	cmpq	%rdx, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
LBB0_22:
	addq	%r8, %rdi
	addq	%r11, %rdi
	addq	%r10, %rdi
	leaq	(%r9,%rdi,4), %rax
	subq	%r8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_23
	jmp	LBB0_24
LBB0_42:
	andq	$-8, %rcx
	leaq	(%rdi,%r11), %rax
	addq	%r10, %rax
	leaq	(%r9,%rax,4), %rbx
	addq	$240, %rbx
	xorl	%eax, %eax
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -240(%rbx,%rax,4)
	movdqu	%xmm0, -224(%rbx,%rax,4)
	movdqu	%xmm0, -208(%rbx,%rax,4)
	movdqu	%xmm0, -192(%rbx,%rax,4)
	movdqu	%xmm0, -176(%rbx,%rax,4)
	movdqu	%xmm0, -160(%rbx,%rax,4)
	movdqu	%xmm0, -144(%rbx,%rax,4)
	movdqu	%xmm0, -128(%rbx,%rax,4)
	movdqu	%xmm0, -112(%rbx,%rax,4)
	movdqu	%xmm0, -96(%rbx,%rax,4)
	movdqu	%xmm0, -80(%rbx,%rax,4)
	movdqu	%xmm0, -64(%rbx,%rax,4)
	movdqu	%xmm0, -48(%rbx,%rax,4)
	movdqu	%xmm0, -32(%rbx,%rax,4)
	movdqu	%xmm0, -16(%rbx,%rax,4)
	movdqu	%xmm0, (%rbx,%rax,4)
	addq	$64, %rax
	addq	$-8, %rcx
	jne	LBB0_43
LBB0_44:
	testq	%r12, %r12
	je	LBB0_47
## %bb.45:
	addq	%rdi, %rax
	addq	%r11, %rax
	addq	%r10, %rax
	leaq	(%r9,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r12
	xorl	%ecx, %ecx
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rax,%rcx)
	movdqu	%xmm0, (%rax,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_46
LBB0_47:
	cmpq	%rdx, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_24
LBB0_48:
	addq	%r8, %rdi
	addq	%r11, %rdi
	addq	%r10, %rdi
	leaq	(%r9,%rdi,4), %rax
	subq	%r8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_49
LBB0_24:
	cmpl	$2, %r14d
	jb	LBB0_28
## %bb.25:
	imull	%r12d, %r15d
	movslq	-88(%rbp), %rax
	leaq	(%rsi,%rax,4), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	cmpl	$2, %r14d
	je	LBB0_28
## %bb.26:
	addl	$-2, %r14d
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rsi
	movslq	-88(%rbp), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	decl	%r14d
	jne	LBB0_27
LBB0_28:
	movq	_GL_PIXEL_UNPACK_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_context_unmap_bo_address
	testq	%r13, %r13
	je	LBB0_64
## %bb.29:
	movq	%r13, %rdi
	callq	_context_release
LBB0_64:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_50, LBB0_50-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_50
	.long	L0_0_set_37
	.long	L0_0_set_30
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"view %p, box %s, colour %s.\n"

	.comm	_WINED3DFMT_FLAG_BLOCKS,4,2     ## @WINED3DFMT_FLAG_BLOCKS
L_.str.1:                               ## @.str.1
	.asciz	"Not implemented for format %s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"View format %s doesn't match resource format %s.\n"

	.comm	_WINED3D_RTYPE_BUFFER,8,3       ## @WINED3D_RTYPE_BUFFER
L_.str.3:                               ## @.str.3
	.asciz	"Not implemented for buffers.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to load the sub-resource into %s.\n"

	.comm	_GL_PIXEL_UNPACK_BUFFER,4,2     ## @GL_PIXEL_UNPACK_BUFFER
	.comm	_WINED3D_MAP_WRITE,4,2          ## @WINED3D_MAP_WRITE
L_.str.5:                               ## @.str.5
	.asciz	"Not implemented for bpp %u.\n"

	.no_dead_strip	_surface_cpu_blt_colour_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function surface_cpu_blt_colour_fill
_surface_cpu_blt_colour_fill:           ; @surface_cpu_blt_colour_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, #16]
	mov	x0, x1
	bl	_debug_box
	mov	x23, x0
	mov	x0, x20
	bl	_debug_color
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_TRACE
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _WINED3DFMT_FLAG_BLOCKS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WINED3DFMT_FLAG_BLOCKS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	x10, [x21, #16]
	ldr	x0, [x10]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	bl	_debug_d3dformat
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	ldr	x8, [x21, #8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_5
; %bb.4:
	bl	_debug_d3dformat
	mov	x23, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_debug_d3dformat
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	ldr	x8, [x21, #8]
LBB0_5:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _WINED3D_RTYPE_BUFFER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINED3D_RTYPE_BUFFER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_FIXME
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_context_acquire
	mov	x19, x0
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	ldr	x0, [x21, #16]
	mov	x1, x20
	bl	_wined3d_format_convert_from_float
	mov	x20, x0
	ldp	x0, x8, [x21, #8]
	ldr	w26, [x8, #8]
	ldp	w27, w28, [x22]
	ldp	w8, w25, [x22, #8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	bl	_texture_from_resource
	mov	x23, x0
	ldr	w24, [x0, #16]
	ldr	w1, [x21, #4]
	mov	x2, x19
	mov	x3, x24
	bl	_wined3d_texture_load_location
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x24
	bl	_wined3d_debug_location
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERR
LBB0_12:
	ldr	w1, [x21, #4]
	mvn	w2, w24
	mov	x0, x23
	bl	_wined3d_texture_invalidate_location
	ldr	w8, [x21, #4]
	ldr	w9, [x23]
	sdiv	w10, w8, w9
	msub	w1, w10, w9, w8
	add	x8, sp, #24
	orr	x3, x8, #0x4
	add	x2, sp, #24
	mov	x0, x23
	bl	_wined3d_texture_get_pitch
	ldr	w1, [x21, #4]
	add	x2, sp, #40
	mov	x0, x23
	mov	x3, x24
	bl	_wined3d_texture_get_memory
	ldr	x8, [x23, #8]
	ldrsw	x9, [x21, #4]
	ldr	w2, [x8, x9, lsl #2]
Lloh16:
	adrp	x23, _GL_PIXEL_UNPACK_BUFFER@GOTPAGE
Lloh17:
	ldr	x23, [x23, _GL_PIXEL_UNPACK_BUFFER@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh18:
	adrp	x8, _WINED3D_MAP_WRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WINED3D_MAP_WRITE@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	add	x1, sp, #40
	mov	x0, x19
	bl	_context_map_bo_address
	ldp	w10, w8, [x22, #12]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	ldpsw	x11, x9, [sp, #24]
	mul	x9, x9, x8
	ldr	x8, [x21, #16]
	ldp	w12, w13, [x8, #12]
	sdiv	w10, w10, w12
	sxtw	x10, w10
	mul	x10, x11, x10
	add	x11, x0, x9, lsl #2
	add	x12, x11, x10, lsl #2
	ldr	w11, [x22, #4]
	sdiv	w11, w11, w13
	ldrsw	x8, [x8, #20]
	sxtw	x11, w11
	mul	x11, x8, x11
	add	x1, x12, x11, lsl #2
	str	x1, [sp, #32]
	sub	w12, w26, #1
	cmp	w12, #3
	b.hi	LBB0_23
; %bb.13:
	sub	w8, w27, w28
	ldr	w13, [sp, #20]                  ; 4-byte Folded Reload
	sub	w22, w13, w25
Lloh21:
	adrp	x13, lJTI0_0@PAGE
Lloh22:
	add	x13, x13, lJTI0_0@PAGEOFF
	adr	x14, LBB0_14
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_14:
	cmp	w27, w28
	b.eq	LBB0_47
; %bb.15:
	cmp	w8, #16
	b.hs	LBB0_27
; %bb.16:
	mov	x12, #0
	b	LBB0_30
LBB0_17:
	cmp	w27, w28
	b.eq	LBB0_47
; %bb.18:
	and	w12, w20, #0xff
	ubfx	w13, w20, #8, #8
	ubfx	w14, w20, #16, #8
	mvn	w15, w28
	add	w15, w27, w15
	cmp	w15, #15
	b.hs	LBB0_32
; %bb.19:
	mov	w16, #0
	mov	x15, x1
	b	LBB0_35
LBB0_20:
	cmp	w27, w28
	b.eq	LBB0_47
; %bb.21:
	cmp	w8, #16
	b.hs	LBB0_37
; %bb.22:
	mov	x12, #0
	b	LBB0_40
LBB0_23:
	str	x26, [sp]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_FIXME
	ldr	x0, [x21, #8]
	ldrsw	x1, [x21, #4]
	bl	_wined3d_resource_unmap
	b	LBB0_2
LBB0_24:
	cmp	w27, w28
	b.eq	LBB0_47
; %bb.25:
	cmp	w8, #16
	b.hs	LBB0_42
; %bb.26:
	mov	x12, #0
	b	LBB0_45
LBB0_27:
	dup.4s	v0, w20
	and	x12, x8, #0xfffffff0
	add	x13, x11, x10
	add	x13, x13, x9
	add	x13, x0, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x12
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_28
; %bb.29:
	cmp	x12, x8
	b.eq	LBB0_47
LBB0_30:
	add	x11, x12, x11
	add	x10, x11, x10
	add	x9, x10, x9
	add	x9, x0, x9, lsl #2
	sub	x10, x8, x12
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_31
	b	LBB0_47
LBB0_32:
	add	x17, x15, #1
	and	x16, x17, #0x1fffffff0
	mov	w15, #12
	dup.4s	v0, w12
	dup.4s	v1, w13
	dup.4s	v2, w14
	madd	x15, x16, x15, x1
	add	x10, x11, x10
	add	x9, x10, x9
	add	x9, x0, x9, lsl #2
	add	x10, x9, #96
	mov	x9, x16
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	sub	x11, x10, #96
	sub	x0, x10, #48
	st3.4s	{ v0, v1, v2 }, [x11]
	st3.4s	{ v0, v1, v2 }, [x0]
	add	x11, x10, #192
	st3.4s	{ v0, v1, v2 }, [x10], #48
	st3.4s	{ v0, v1, v2 }, [x10]
	mov	x10, x11
	subs	x9, x9, #16
	b.ne	LBB0_33
; %bb.34:
	cmp	x17, x16
	b.eq	LBB0_47
LBB0_35:
	add	w9, w16, w28
	sub	w9, w9, w27
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	stp	w12, w13, [x15]
	str	w14, [x15, #8]
	add	x15, x15, #12
	adds	w9, w9, #1
	b.lo	LBB0_36
	b	LBB0_47
LBB0_37:
	dup.4s	v0, w20
	and	x12, x8, #0xfffffff0
	add	x13, x11, x10
	add	x13, x13, x9
	add	x13, x0, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x12
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_38
; %bb.39:
	cmp	x12, x8
	b.eq	LBB0_47
LBB0_40:
	add	x11, x12, x11
	add	x10, x11, x10
	add	x9, x10, x9
	add	x9, x0, x9, lsl #2
	sub	x10, x8, x12
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_41
	b	LBB0_47
LBB0_42:
	dup.4s	v0, w20
	and	x12, x8, #0xfffffff0
	add	x13, x11, x10
	add	x13, x13, x9
	add	x13, x0, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x12
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_43
; %bb.44:
	cmp	x12, x8
	b.eq	LBB0_47
LBB0_45:
	add	x11, x12, x11
	add	x10, x11, x10
	add	x9, x10, x9
	add	x9, x0, x9, lsl #2
	sub	x10, x8, x12
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_46
LBB0_47:
	cmp	w22, #2
	b.lo	LBB0_50
; %bb.48:
	mul	w20, w8, w26
	ldrsw	x8, [sp, #24]
	add	x21, x1, x8, lsl #2
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	subs	w22, w22, #2
	b.eq	LBB0_50
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #32]
	ldrsw	x8, [sp, #24]
	add	x21, x21, x8, lsl #2
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	subs	w22, w22, #1
	b.ne	LBB0_49
LBB0_50:
	ldr	w2, [x23]
	add	x1, sp, #40
	mov	x0, x19
	bl	_context_unmap_bo_address
	cbz	x19, LBB0_2
; %bb.51:
	mov	x0, x19
	bl	_context_release
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"view %p, box %s, colour %s.\n"

	.comm	_WINED3DFMT_FLAG_BLOCKS,4,2     ; @WINED3DFMT_FLAG_BLOCKS
l_.str.1:                               ; @.str.1
	.asciz	"Not implemented for format %s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"View format %s doesn't match resource format %s.\n"

	.comm	_WINED3D_RTYPE_BUFFER,8,3       ; @WINED3D_RTYPE_BUFFER
l_.str.3:                               ; @.str.3
	.asciz	"Not implemented for buffers.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to load the sub-resource into %s.\n"

	.comm	_GL_PIXEL_UNPACK_BUFFER,4,2     ; @GL_PIXEL_UNPACK_BUFFER
	.comm	_WINED3D_MAP_WRITE,4,2          ; @WINED3D_MAP_WRITE
l_.str.5:                               ; @.str.5
	.asciz	"Not implemented for bpp %u.\n"

	.no_dead_strip	_surface_cpu_blt_colour_fill
.subsections_via_symbols
