	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_cs_emit_blt_sub_resource ## -- Begin function wined3d_cs_emit_blt_sub_resource
	.p2align	4, 0x90
_wined3d_cs_emit_blt_sub_resource:      ## @wined3d_cs_emit_blt_sub_resource
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	40(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	32(%rbp), %r13
	movl	24(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %r14
	movq	(%rdi), %rax
	movq	_WINED3D_CS_QUEUE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$56, %esi
	callq	*16(%rax)
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movq	_WINED3D_CS_OP_BLT_SUB_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%rdi, 40(%rbx)
	movl	%r15d, (%rbx)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, 24(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	(%r14), %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, 20(%rbx)
	movl	%r14d, 8(%rbx)
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movl	(%r13), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %r13
	movq	%rbx, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r13, %rdi
LBB0_3:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx)
	callq	_wined3d_resource_acquire
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_wined3d_resource_acquire
LBB0_5:
	movq	(%r12), %rax
	movq	_WINED3D_CS_QUEUE_DEFAULT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	_WINED3D_BLT_SYNCHRONOUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.7:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rbx), %esi
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_CS_QUEUE_DEFAULT,4,2   ## @WINED3D_CS_QUEUE_DEFAULT
	.comm	_WINED3D_CS_OP_BLT_SUB_RESOURCE,4,2 ## @WINED3D_CS_OP_BLT_SUB_RESOURCE
	.comm	_WINED3D_BLT_SYNCHRONOUS,4,2    ## @WINED3D_BLT_SYNCHRONOUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_cs_emit_blt_sub_resource ; -- Begin function wined3d_cs_emit_blt_sub_resource
	.p2align	2
_wined3d_cs_emit_blt_sub_resource:      ; @wined3d_cs_emit_blt_sub_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x7
	mov	x24, x6
	mov	x25, x5
	mov	x21, x4
	mov	x26, x3
	mov	x27, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x29, #24]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x28, [x29, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
Lloh0:
	adrp	x9, _WINED3D_CS_QUEUE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_CS_QUEUE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	w1, #56
	blr	x8
	mov	x23, x0
Lloh3:
	adrp	x8, _WINED3D_CS_OP_BLT_SUB_RESOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_CS_OP_BLT_SUB_RESOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	str	x22, [x0, #40]
	str	w27, [x0]
	ldr	w8, [x26]
	str	w8, [x0, #32]
	str	x21, [x0, #24]
	str	w25, [x0, #4]
	ldr	w8, [x24]
	str	w8, [x0, #20]
	str	w20, [x0, #8]
	cbz	x28, LBB0_2
; %bb.1:
	ldr	w8, [x28]
	str	w8, [x23, #16]
	b	LBB0_3
LBB0_2:
	add	x0, x23, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_3:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x23, #12]
	mov	x0, x22
	bl	_wined3d_resource_acquire
	cbz	x21, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_wined3d_resource_acquire
LBB0_5:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x21, _WINED3D_CS_QUEUE_DEFAULT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _WINED3D_CS_QUEUE_DEFAULT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	blr	x8
Lloh8:
	adrp	x8, _WINED3D_BLT_SYNCHRONOUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WINED3D_BLT_SYNCHRONOUS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	x2, [x8]
	ldr	w1, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	br	x2
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_CS_QUEUE_DEFAULT,4,2   ; @WINED3D_CS_QUEUE_DEFAULT
	.comm	_WINED3D_CS_OP_BLT_SUB_RESOURCE,4,2 ; @WINED3D_CS_OP_BLT_SUB_RESOURCE
	.comm	_WINED3D_BLT_SYNCHRONOUS,4,2    ; @WINED3D_BLT_SYNCHRONOUS
.subsections_via_symbols
