	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_cs_exec_add_dirty_texture_region
_wined3d_cs_exec_add_dirty_texture_region: ## @wined3d_cs_exec_add_dirty_texture_region
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	8(%rsi), %r12
	movl	(%rdi), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_context_acquire
	movq	%rax, %r14
	movl	(%r12), %r15d
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.1:
	imull	(%r13), %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %edi
	callq	_wined3d_debug_location
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %r13d
	movl	4(%r12), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_wined3d_texture_load_location
	movl	4(%r12), %edx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	notl	%edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_wined3d_texture_invalidate_location
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_context_release
	addq	$4, %r12
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wined3d_resource_release       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load location %s.\n"

	.no_dead_strip	_wined3d_cs_exec_add_dirty_texture_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_cs_exec_add_dirty_texture_region
_wined3d_cs_exec_add_dirty_texture_region: ; @wined3d_cs_exec_add_dirty_texture_region
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	ldr	x19, [x1, #8]
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #0
	bl	_context_acquire
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.1:
	mov	w23, #0
	ldr	w9, [x21]
	mul	w24, w8, w9
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_wined3d_debug_location
	mov	x1, x0
	mov	x0, x21
	bl	_ERR
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	w8, [x19]
	cmp	w23, w8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w24, w23
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_wined3d_texture_load_location
	mov	x8, x0
	ldr	w0, [x19, #4]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mvn	w2, w0
	mov	x0, x19
	mov	x1, x22
	bl	_wined3d_texture_invalidate_location
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	bl	_context_release
	add	x0, x19, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wined3d_resource_release
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load location %s.\n"

	.no_dead_strip	_wined3d_cs_exec_add_dirty_texture_region
.subsections_via_symbols
