	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_blitter_blit
_cpu_blitter_blit:                      ## @cpu_blitter_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	16(%rbp), %r14
	movq	32(%rbp), %rax
	movdqu	(%rax), %xmm0
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqa	%xmm0, -128(%rbp)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -112(%rbp)
	movdqu	(%r9), %xmm0
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqa	%xmm0, -96(%rbp)
	movq	%rax, -80(%rbp)
	movq	%r14, %rdi
	callq	_surface_get_sub_resource_idx
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_surface_get_sub_resource_idx
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r14), %r12
	movq	(%rbx), %r14
	leaq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	40(%rbp), %rax
	movq	_WINED3D_BLT_SRC_CKEY_OVERRIDE@GOTPCREL(%rip), %rcx
	movq	_WINED3D_BLT_FX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_FIXME
	jmp	LBB0_5
LBB0_2:
	movq	_WINED3D_BLT_ALPHA_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	24(%rbp), %r13d
	subq	$8, %rsp
	leaq	-128(%rbp), %rdx
	leaq	-96(%rbp), %r9
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	48(%rbp), %eax
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_surface_cpu_blt
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_7:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_wined3d_texture_load_location
	movq	8(%r12), %rcx
	movl	%r15d, %edx
	movl	(%r12), %eax
	andl	(%rcx,%rdx,4), %eax
	orl	%r13d, %eax
	addq	$88, %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_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_WINED3D_BLT_ALPHA_TEST,4,2     ## @WINED3D_BLT_ALPHA_TEST
	.comm	_WINED3D_BLT_SRC_CKEY_OVERRIDE,4,2 ## @WINED3D_BLT_SRC_CKEY_OVERRIDE
	.comm	_WINED3D_BLT_FX,4,2             ## @WINED3D_BLT_FX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled op %#x.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to blit.\n"

	.no_dead_strip	_cpu_blitter_blit
.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 cpu_blitter_blit
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cpu_blitter_blit:                      ; @cpu_blitter_blit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x7
	mov	x22, x6
	mov	x24, x3
	mov	x20, x2
	mov	x25, x1
	ldr	w26, [x29, #32]
	ldr	x8, [x29, #16]
	ldr	q0, [x8]
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	str	q0, [sp, #48]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #64]
	ldr	q1, [x5]
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	str	q1, [sp, #16]
	str	d0, [sp, #32]
	mov	x0, x6
	bl	_surface_get_sub_resource_idx
	mov	x21, x0
	mov	x0, x24
	bl	_surface_get_sub_resource_idx
	mov	x23, x0
	ldr	x22, [x22]
	ldr	x24, [x24]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	sub	w8, w25, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	w6, #0
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x29, #24]
Lloh4:
	adrp	x9, _WINED3D_BLT_SRC_CKEY_OVERRIDE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WINED3D_BLT_SRC_CKEY_OVERRIDE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _WINED3D_BLT_FX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _WINED3D_BLT_FX@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w6, w10, w9
	ldr	w8, [x8]
	str	w8, [sp, #8]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_FIXME
	mov	w6, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _WINED3D_BLT_ALPHA_TEST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WINED3D_BLT_ALPHA_TEST@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
LBB0_5:
	str	w26, [sp]
	add	x2, sp, #48
	add	x5, sp, #16
	add	x7, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x3, x24
	mov	x4, x23
	bl	_surface_cpu_blt
	bl	_FAILED
	cbz	x0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_wined3d_texture_load_location
	ldr	x8, [x22, #8]
	ldr	w8, [x8, w21, uxtw #2]
	ldr	w9, [x22]
	and	w8, w9, w8
	orr	w0, w8, w19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_WINED3D_BLT_ALPHA_TEST,4,2     ; @WINED3D_BLT_ALPHA_TEST
	.comm	_WINED3D_BLT_SRC_CKEY_OVERRIDE,4,2 ; @WINED3D_BLT_SRC_CKEY_OVERRIDE
	.comm	_WINED3D_BLT_FX,4,2             ; @WINED3D_BLT_FX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled op %#x.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to blit.\n"

	.no_dead_strip	_cpu_blitter_blit
.subsections_via_symbols
