	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_view_invalidate_location
_wined3d_view_invalidate_location:      ## @wined3d_view_invalidate_location
	.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
	movl	%edx, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_WINED3D_RTYPE_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	%r13, %rdi
	callq	_buffer_from_resource
	movl	%eax, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wined3d_buffer_invalidate_location ## TAILCALL
LBB0_1:
	movq	%rsi, %r12
	movq	%r13, %rdi
	callq	_texture_from_resource
	movq	%rax, %r15
	movl	(%rax), %ebx
	imull	(%r12), %ebx
	addl	4(%r12), %ebx
	movq	(%r13), %rax
	movq	_WINED3D_RTYPE_TEXTURE_3D@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r12), %r13d
	testl	%r13d, %r13d
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_wined3d_texture_invalidate_location
	addl	(%r15), %ebx
	decl	%r13d
	jne	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_RTYPE_BUFFER,8,3       ## @WINED3D_RTYPE_BUFFER
	.comm	_WINED3D_RTYPE_TEXTURE_3D,8,3   ## @WINED3D_RTYPE_TEXTURE_3D
	.no_dead_strip	_wined3d_view_invalidate_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_view_invalidate_location
_wined3d_view_invalidate_location:      ; @wined3d_view_invalidate_location
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WINED3D_RTYPE_BUFFER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_RTYPE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_buffer_from_resource
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wined3d_buffer_invalidate_location
LBB0_2:
	mov	x21, x1
	mov	x0, x22
	bl	_texture_from_resource
	mov	x20, x0
	ldr	w8, [x0]
	ldp	w9, w10, [x21]
	ldr	x11, [x22]
Lloh3:
	adrp	x12, _WINED3D_RTYPE_TEXTURE_3D@GOTPAGE
Lloh4:
	ldr	x12, [x12, _WINED3D_RTYPE_TEXTURE_3D@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #1
	b	LBB0_5
LBB0_4:
	ldr	w22, [x21, #8]
	cbz	w22, LBB0_7
LBB0_5:
	madd	w21, w8, w9, w10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_wined3d_texture_invalidate_location
	ldr	w8, [x20]
	add	w21, w8, w21
	subs	w22, w22, #1
	b.ne	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_RTYPE_BUFFER,8,3       ; @WINED3D_RTYPE_BUFFER
	.comm	_WINED3D_RTYPE_TEXTURE_3D,8,3   ; @WINED3D_RTYPE_TEXTURE_3D
	.no_dead_strip	_wined3d_view_invalidate_location
.subsections_via_symbols
