	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ffp_blitter_blit
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ffp_blitter_blit:                      ## @ffp_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movl	48(%rbp), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	40(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %r12
	movq	%rcx, %rdi
	callq	_surface_get_sub_resource_idx
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	(%rbx), %r15
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	movq	(%r12), %rcx
	movq	8(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %rdx
	leaq	24(%rcx), %r8
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	32(%rcx), %r12
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movq	%r14, %r13
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_ffp_blit_supported
	testl	%eax, %eax
	je	LBB0_1
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %r14
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r15), %rax
	movq	%rax, -160(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_WINED3D_CKEY_SRC_BLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_wined3d_texture_set_color_key
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_wined3d_texture_load
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_context_apply_blit_state
	movq	_WINED3D_LOCATION_DRAWABLE@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	movq	%r12, %rdi
	jne	LBB0_3
## %bb.4:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movl	(%r13), %esi
	leaq	-100(%rbp), %rdx
	movq	%rdi, %r12
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_surface_translate_drawable_coords
	jmp	LBB0_5
LBB0_3:
	movq	%rdi, %r12
LBB0_5:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ORM_FBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, (%r14)
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %r14
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_wined3d_texture_get_gl_buffer
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_1:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.29:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %r14
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	movq	_GL_DRAW_FRAMEBUFFER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_context_apply_fbo_state_blit
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_context_set_draw_buffer
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_context_check_fbo_status
	movq	_STATE_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_context_invalidate_state
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movl	40(%r15), %edi
	callq	*24(%rbx)
	leaq	L_.str.3(%rip), %rdi
	callq	_checkGLcall
	movq	_WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST@GOTPCREL(%rip), %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.11:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14)
	jne	LBB0_13
LBB0_12:
	movq	_GL_ALPHA_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*24(%rbx)
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_13:
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.14:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_WINED3DFMT_P8_UINT@GOTPCREL(%rip), %rdx
	movq	16(%rbx), %rax
	movq	_GL_NOTEQUAL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	xorps	%xmm0, %xmm0
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:
	xorps	%xmm0, %xmm0
	cvtsi2ssq	16(%r15), %xmm0
	divss	LCPI0_0(%rip), %xmm0
LBB0_16:
	callq	*%rax
	leaq	L_.str.5(%rip), %rdi
	callq	_checkGLcall
LBB0_17:
	movq	%r15, %rdi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	-96(%rbp), %r9d                 ## 4-byte Reload
	callq	_draw_textured_quad
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_19
## %bb.18:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14)
	jne	LBB0_20
LBB0_19:
	movq	_GL_ALPHA_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*8(%rbx)
	leaq	L_.str.6(%rip), %rdi
	callq	_checkGLcall
LBB0_20:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*8(%rbx)
	leaq	L_.str.7(%rip), %rdi
	callq	_checkGLcall
	movq	32(%rbx), %rax
	movq	_ARB_TEXTURE_CUBE_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_22
## %bb.21:
	movq	_GL_TEXTURE_CUBE_MAP_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*8(%rbx)
	leaq	L_.str.8(%rip), %rdi
	callq	_checkGLcall
	movq	32(%rbx), %rax
LBB0_22:
	movq	_ARB_TEXTURE_RECTANGLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_24
## %bb.23:
	movq	_GL_TEXTURE_RECTANGLE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*8(%rbx)
	leaq	L_.str.9(%rip), %rdi
	callq	_checkGLcall
LBB0_24:
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_25
LBB0_27:
	xorl	%eax, %eax
	callq	*(%rbx)
LBB0_28:
	movq	_WINED3D_CKEY_SRC_BLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	testl	%esi, -44(%rbp)                 ## 4-byte Folded Reload
	leaq	-160(%rbp), %rdx
	cmoveq	%rax, %rdx
	movq	%r15, %rdi
	callq	_wined3d_texture_set_color_key
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_28
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Blt from surface %p to rendertarget %p\n"

	.comm	_WINED3D_CKEY_SRC_BLT,4,2       ## @WINED3D_CKEY_SRC_BLT
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3D_LOCATION_DRAWABLE,4,2  ## @WINED3D_LOCATION_DRAWABLE
	.comm	_wined3d_settings,16,3          ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
L_.str.1:                               ## @.str.1
	.asciz	"Destination surface %p is onscreen.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Destination surface %p is offscreen.\n"

	.comm	_GL_COLOR_ATTACHMENT0,4,2       ## @GL_COLOR_ATTACHMENT0
	.comm	_GL_DRAW_FRAMEBUFFER,4,2        ## @GL_DRAW_FRAMEBUFFER
	.comm	_STATE_FRAMEBUFFER,4,2          ## @STATE_FRAMEBUFFER
L_.str.3:                               ## @.str.3
	.asciz	"glEnable(target)"

	.comm	_WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST,4,2 ## @WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST
	.comm	_GL_ALPHA_TEST,4,2              ## @GL_ALPHA_TEST
L_.str.4:                               ## @.str.4
	.asciz	"glEnable(GL_ALPHA_TEST)"

	.comm	_WINED3DFMT_P8_UINT,8,3         ## @WINED3DFMT_P8_UINT
	.comm	_GL_NOTEQUAL,4,2                ## @GL_NOTEQUAL
L_.str.5:                               ## @.str.5
	.asciz	"glAlphaFunc"

L_.str.6:                               ## @.str.6
	.asciz	"glDisable(GL_ALPHA_TEST)"

	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
L_.str.7:                               ## @.str.7
	.asciz	"glDisable(GL_TEXTURE_2D)"

	.comm	_ARB_TEXTURE_CUBE_MAP,8,3       ## @ARB_TEXTURE_CUBE_MAP
	.comm	_GL_TEXTURE_CUBE_MAP_ARB,4,2    ## @GL_TEXTURE_CUBE_MAP_ARB
L_.str.8:                               ## @.str.8
	.asciz	"glDisable(GL_TEXTURE_CUBE_MAP_ARB)"

	.comm	_ARB_TEXTURE_RECTANGLE,8,3      ## @ARB_TEXTURE_RECTANGLE
	.comm	_GL_TEXTURE_RECTANGLE_ARB,4,2   ## @GL_TEXTURE_RECTANGLE_ARB
L_.str.9:                               ## @.str.9
	.asciz	"glDisable(GL_TEXTURE_RECTANGLE_ARB)"

	.no_dead_strip	_ffp_blitter_blit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffp_blitter_blit
_ffp_blitter_blit:                      ; @ffp_blitter_blit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x27, x7
	mov	x23, x6
	str	x5, [sp, #72]                   ; 8-byte Folded Spill
	mov	x22, x4
	mov	x26, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	ldr	w8, [x29, #32]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	ldp	x8, x28, [x29, #16]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x3
	bl	_surface_get_sub_resource_idx
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x20, [x26]
	ldr	x8, [x23]
	ldr	x9, [x24, #8]
	str	x9, [sp, #48]                   ; 8-byte Folded Spill
	add	x2, x20, #24
	add	x4, x8, #24
	stp	x2, x8, [sp, #24]               ; 16-byte Folded Spill
	ldr	x21, [x8, #32]
	str	w25, [sp, #80]                  ; 4-byte Folded Spill
	mov	x0, x25
	mov	x1, x24
	mov	x3, x22
	mov	x5, x27
	bl	_ffp_blit_supported
	cbz	w0, LBB0_7
LBB0_1:
	str	x23, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x26
	bl	_TRACE
	ldr	x8, [x20, #16]
	str	x8, [sp, #88]
	ldr	w26, [x20, #8]
Lloh2:
	adrp	x22, _WINED3D_CKEY_SRC_BLT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WINED3D_CKEY_SRC_BLT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x28
	bl	_wined3d_texture_set_color_key
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_wined3d_texture_load
	mov	x0, x24
	mov	x1, x21
	bl	_context_apply_blit_state
Lloh7:
	adrp	x19, _WINED3D_LOCATION_DRAWABLE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _WINED3D_LOCATION_DRAWABLE@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, w27
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	str	w8, [sp, #84]
	ldr	w1, [x24]
	add	x21, sp, #84
	add	x2, sp, #84
	mov	x0, x23
	bl	_surface_translate_drawable_coords
	ldr	x25, [sp, #48]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:
	ldp	x25, x21, [sp, #48]             ; 16-byte Folded Reload
LBB0_4:
Lloh9:
	adrp	x8, _wined3d_settings@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wined3d_settings@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ORM_FBO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ORM_FBO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, w27
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	mov	x26, x22
	mov	x22, x27
	b.ne	LBB0_9
; %bb.6:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_wined3d_texture_get_gl_buffer
	mov	x19, x0
	b	LBB0_10
LBB0_7:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_1
; %bb.8:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	str	w9, [x29, #32]
	str	x28, [x29, #24]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	str	x9, [x29, #16]
	ldr	w1, [sp, #80]                   ; 4-byte Folded Reload
	mov	x2, x24
	mov	x3, x26
	mov	x4, x22
	ldr	x5, [sp, #72]                   ; 8-byte Folded Reload
	mov	x6, x23
	mov	x7, x27
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	br	x8
LBB0_9:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_TRACE
Lloh19:
	adrp	x8, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
LBB0_10:
Lloh22:
	adrp	x27, _GL_DRAW_FRAMEBUFFER@GOTPAGE
Lloh23:
	ldr	x27, [x27, _GL_DRAW_FRAMEBUFFER@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x24
	mov	x2, x23
	mov	x3, #0
	mov	x4, x22
	bl	_context_apply_fbo_state_blit
	mov	x0, x24
	mov	x1, x19
	bl	_context_set_draw_buffer
	ldr	w1, [x27]
	mov	x27, x22
	mov	x0, x24
	bl	_context_check_fbo_status
Lloh24:
	adrp	x8, _STATE_FRAMEBUFFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STATE_FRAMEBUFFER@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_context_invalidate_state
	mov	x22, x26
	ldr	w26, [sp, #20]                  ; 4-byte Folded Reload
LBB0_11:
	ldr	x8, [x25, #24]
	ldr	w0, [x20, #40]
	blr	x8
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_checkGLcall
Lloh29:
	adrp	x23, _WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST@GOTPAGE
Lloh30:
	ldr	x23, [x23, _WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST@GOTPAGEOFF]
Lloh31:
	adrp	x19, _GL_ALPHA_TEST@GOTPAGE
Lloh32:
	ldr	x19, [x19, _GL_ALPHA_TEST@GOTPAGEOFF]
	cbnz	x28, LBB0_13
; %bb.12:
	ldr	w8, [x23]
	ldr	w9, [sp, #80]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_14
LBB0_13:
	ldr	x8, [x25, #24]
	ldr	w0, [x19]
	blr	x8
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_checkGLcall
LBB0_14:
	cbz	x28, LBB0_18
; %bb.15:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x8]
Lloh35:
	adrp	x8, _WINED3DFMT_P8_UINT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WINED3DFMT_P8_UINT@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x8]
	ldr	x8, [x25, #16]
Lloh38:
	adrp	x11, _GL_NOTEQUAL@GOTPAGE
Lloh39:
	ldr	x11, [x11, _GL_NOTEQUAL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x11]
	movi	d0, #0000000000000000
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.16:
	ldr	x9, [x20, #16]
	scvtf	s0, x9
	mov	w9, #1132396544
	fmov	s1, w9
	fdiv	s0, s0, s1
LBB0_17:
	blr	x8
Lloh41:
	adrp	x0, l_.str.5@PAGE
Lloh42:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_checkGLcall
LBB0_18:
	mov	x0, x20
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	mov	x2, x24
	ldr	x3, [sp, #72]                   ; 8-byte Folded Reload
	mov	x4, x21
	ldr	w5, [sp, #68]                   ; 4-byte Folded Reload
	bl	_draw_textured_quad
	cbnz	x28, LBB0_20
; %bb.19:
	ldr	w8, [x23]
	ldr	w9, [sp, #80]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_21
LBB0_20:
	ldr	x8, [x25, #8]
	ldr	w0, [x19]
	blr	x8
Lloh43:
	adrp	x0, l_.str.6@PAGE
Lloh44:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_checkGLcall
LBB0_21:
	ldr	x8, [x25, #8]
Lloh45:
	adrp	x9, _GL_TEXTURE_2D@GOTPAGE
Lloh46:
	ldr	x9, [x9, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x9]
	blr	x8
Lloh48:
	adrp	x0, l_.str.7@PAGE
Lloh49:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x25, #32]
Lloh50:
	adrp	x9, _ARB_TEXTURE_CUBE_MAP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ARB_TEXTURE_CUBE_MAP@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_23
; %bb.22:
	ldr	x8, [x25, #8]
Lloh53:
	adrp	x9, _GL_TEXTURE_CUBE_MAP_ARB@GOTPAGE
Lloh54:
	ldr	x9, [x9, _GL_TEXTURE_CUBE_MAP_ARB@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x9]
	blr	x8
Lloh56:
	adrp	x0, l_.str.8@PAGE
Lloh57:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x25, #32]
LBB0_23:
Lloh58:
	adrp	x19, _wined3d_settings@GOTPAGE
Lloh59:
	ldr	x19, [x19, _wined3d_settings@GOTPAGEOFF]
Lloh60:
	adrp	x9, _ARB_TEXTURE_RECTANGLE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _ARB_TEXTURE_RECTANGLE@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x8, [x25, #8]
Lloh63:
	adrp	x9, _GL_TEXTURE_RECTANGLE_ARB@GOTPAGE
Lloh64:
	ldr	x9, [x9, _GL_TEXTURE_RECTANGLE_ARB@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x9]
	blr	x8
Lloh66:
	adrp	x0, l_.str.9@PAGE
Lloh67:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_checkGLcall
LBB0_25:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_28
LBB0_26:
	ldr	x8, [x25]
	blr	x8
LBB0_27:
	ldr	w1, [x22]
	tst	w1, w26
	add	x8, sp, #88
	csel	x2, xzr, x8, eq
	mov	x0, x20
	bl	_wined3d_texture_set_color_key
	mov	x0, x27
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_28:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.29:
	ldr	x8, [x8]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_27
	b	LBB0_26
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Blt from surface %p to rendertarget %p\n"

	.comm	_WINED3D_CKEY_SRC_BLT,4,2       ; @WINED3D_CKEY_SRC_BLT
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3D_LOCATION_DRAWABLE,4,2  ; @WINED3D_LOCATION_DRAWABLE
	.comm	_wined3d_settings,16,3          ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
l_.str.1:                               ; @.str.1
	.asciz	"Destination surface %p is onscreen.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Destination surface %p is offscreen.\n"

	.comm	_GL_COLOR_ATTACHMENT0,4,2       ; @GL_COLOR_ATTACHMENT0
	.comm	_GL_DRAW_FRAMEBUFFER,4,2        ; @GL_DRAW_FRAMEBUFFER
	.comm	_STATE_FRAMEBUFFER,4,2          ; @STATE_FRAMEBUFFER
l_.str.3:                               ; @.str.3
	.asciz	"glEnable(target)"

	.comm	_WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST,4,2 ; @WINED3D_BLIT_OP_COLOR_BLIT_ALPHATEST
	.comm	_GL_ALPHA_TEST,4,2              ; @GL_ALPHA_TEST
l_.str.4:                               ; @.str.4
	.asciz	"glEnable(GL_ALPHA_TEST)"

	.comm	_WINED3DFMT_P8_UINT,8,3         ; @WINED3DFMT_P8_UINT
	.comm	_GL_NOTEQUAL,4,2                ; @GL_NOTEQUAL
l_.str.5:                               ; @.str.5
	.asciz	"glAlphaFunc"

l_.str.6:                               ; @.str.6
	.asciz	"glDisable(GL_ALPHA_TEST)"

	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
l_.str.7:                               ; @.str.7
	.asciz	"glDisable(GL_TEXTURE_2D)"

	.comm	_ARB_TEXTURE_CUBE_MAP,8,3       ; @ARB_TEXTURE_CUBE_MAP
	.comm	_GL_TEXTURE_CUBE_MAP_ARB,4,2    ; @GL_TEXTURE_CUBE_MAP_ARB
l_.str.8:                               ; @.str.8
	.asciz	"glDisable(GL_TEXTURE_CUBE_MAP_ARB)"

	.comm	_ARB_TEXTURE_RECTANGLE,8,3      ; @ARB_TEXTURE_RECTANGLE
	.comm	_GL_TEXTURE_RECTANGLE_ARB,4,2   ; @GL_TEXTURE_RECTANGLE_ARB
l_.str.9:                               ; @.str.9
	.asciz	"glDisable(GL_TEXTURE_RECTANGLE_ARB)"

	.no_dead_strip	_ffp_blitter_blit
.subsections_via_symbols
