	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbo_blitter_blit
_fbo_blitter_blit:                      ## @fbo_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %r12d
	movq	16(%rbp), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rdx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r8
	movq	_WINED3D_BLIT_OP_RAW_BLIT@GOTPCREL(%rip), %rax
	movl	%esi, %r13d
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	8(%r8), %rax
	movq	(%rax), %rax
	movq	8(%rdx), %rcx
	movl	%r15d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	_WINED3DFMT_FLAG_DEPTH@GOTPCREL(%rip), %rax
	movq	_WINED3DFMT_FLAG_STENCIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r8)
	je	LBB0_4
## %bb.3:
	movq	_WINED3D_BLIT_OP_DEPTH_BLIT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_WINED3D_BLIT_OP_COLOR_BLIT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r13d
LBB0_6:
	movl	48(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	32(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movl	%r13d, %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	movl	%r12d, %r9d
	callq	_fbo_blitter_supported
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	_WINED3D_BLIT_OP_COLOR_BLIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_surface_blt_fbo
	addq	$32, %rsp
	jmp	LBB0_13
LBB0_10:
	movq	_WINED3D_BLIT_OP_DEPTH_BLIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	%r12d, %r9d
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_surface_depth_blt_fbo
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_7:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.14:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	callq	_ERR
LBB0_13:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_BLIT_OP_RAW_BLIT,4,2   ## @WINED3D_BLIT_OP_RAW_BLIT
	.comm	_WINED3DFMT_FLAG_DEPTH,4,2      ## @WINED3DFMT_FLAG_DEPTH
	.comm	_WINED3DFMT_FLAG_STENCIL,4,2    ## @WINED3DFMT_FLAG_STENCIL
	.comm	_WINED3D_BLIT_OP_DEPTH_BLIT,4,2 ## @WINED3D_BLIT_OP_DEPTH_BLIT
	.comm	_WINED3D_BLIT_OP_COLOR_BLIT,4,2 ## @WINED3D_BLIT_OP_COLOR_BLIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Colour blit.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Depth/stencil blit.\n"

L_.str.2:                               ## @.str.2
	.asciz	"This blitter does not implement blit op %#x.\n"

	.no_dead_strip	_fbo_blitter_blit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbo_blitter_blit
_fbo_blitter_blit:                      ; @fbo_blitter_blit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x0, x5, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	ldr	x2, [x3]
	str	x6, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x4, [x6]
Lloh0:
	adrp	x8, _WINED3D_BLIT_OP_RAW_BLIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_BLIT_OP_RAW_BLIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x28, x1
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x4, #8]
	ldr	x8, [x8]
	ldr	x9, [x2, #8]
	ldr	x9, [x9]
	mov	x28, x25
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x4]
Lloh3:
	adrp	x9, _WINED3DFMT_FLAG_DEPTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DFMT_FLAG_DEPTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WINED3DFMT_FLAG_STENCIL@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _WINED3D_BLIT_OP_DEPTH_BLIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WINED3D_BLIT_OP_DEPTH_BLIT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _WINED3D_BLIT_OP_COLOR_BLIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WINED3D_BLIT_OP_COLOR_BLIT@GOTPAGEOFF]
LBB0_5:
	ldr	w28, [x8]
LBB0_6:
	ldr	x21, [x4, #16]
	ldr	w26, [x29, #32]
	ldp	x27, x20, [x29, #16]
	ldr	w1, [x24]
	mov	x0, x28
	mov	x3, x22
	mov	x5, x19
	bl	_fbo_blitter_supported
	cbz	w0, LBB0_11
LBB0_7:
Lloh13:
	adrp	x8, _WINED3D_BLIT_OP_COLOR_BLIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3D_BLIT_OP_COLOR_BLIT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ne	LBB0_9
; %bb.8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	str	x27, [sp]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	mov	x3, x23
	mov	x4, x22
	ldp	x5, x6, [sp, #16]               ; 16-byte Folded Reload
	mov	x7, x19
	bl	_surface_blt_fbo
	b	LBB0_14
LBB0_9:
Lloh18:
	adrp	x8, _WINED3D_BLIT_OP_DEPTH_BLIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WINED3D_BLIT_OP_DEPTH_BLIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ne	LBB0_13
; %bb.10:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	ldp	x3, x4, [sp, #16]               ; 16-byte Folded Reload
	mov	x5, x19
	mov	x6, x27
	bl	_surface_depth_blt_fbo
	b	LBB0_14
LBB0_11:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.12:
	ldr	x8, [x0]
	ldr	x8, [x8]
	str	w26, [x29, #32]
	stp	x27, x20, [x29, #16]
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	ldp	x5, x6, [sp, #16]               ; 16-byte Folded Reload
	mov	x7, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	br	x8
LBB0_13:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_ERR
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_BLIT_OP_RAW_BLIT,4,2   ; @WINED3D_BLIT_OP_RAW_BLIT
	.comm	_WINED3DFMT_FLAG_DEPTH,4,2      ; @WINED3DFMT_FLAG_DEPTH
	.comm	_WINED3DFMT_FLAG_STENCIL,4,2    ; @WINED3DFMT_FLAG_STENCIL
	.comm	_WINED3D_BLIT_OP_DEPTH_BLIT,4,2 ; @WINED3D_BLIT_OP_DEPTH_BLIT
	.comm	_WINED3D_BLIT_OP_COLOR_BLIT,4,2 ; @WINED3D_BLIT_OP_COLOR_BLIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Colour blit.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Depth/stencil blit.\n"

l_.str.2:                               ; @.str.2
	.asciz	"This blitter does not implement blit op %#x.\n"

	.no_dead_strip	_fbo_blitter_blit
.subsections_via_symbols
