	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_invalidate_bo_range
_buffer_invalidate_bo_range:            ## @buffer_invalidate_bo_range
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
LBB0_4:
	subl	%r15d, %eax
	jb	LBB0_6
## %bb.5:
	cmpl	%r14d, %eax
	jb	LBB0_6
## %bb.7:
	leaq	8(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movl	(%rbx), %edx
	incl	%edx
	movl	$8, %ecx
	callq	_wined3d_array_reserve
	testl	%eax, %eax
	je	LBB0_8
## %bb.11:
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	%r15d, (%rax,%rcx,8)
	movl	%r14d, 4(%rax,%rcx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_10
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.3:
	movl	4(%rbx), %eax
	cmpl	%r14d, %eax
	jne	LBB0_4
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_9:
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movl	$0, (%rax)
	movl	4(%rbx), %ecx
	movl	%ecx, 4(%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid range specified, invalidating entire buffer.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate maps array, invalidating entire buffer.\n"

	.no_dead_strip	_buffer_invalidate_bo_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_invalidate_bo_range
_buffer_invalidate_bo_range:            ; @buffer_invalidate_bo_range
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
LBB0_2:
	subs	w8, w8, w21
	ccmp	w8, w20, #0, hs
	b.hs	LBB0_6
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_9
LBB0_4:
	cbz	w20, LBB0_9
; %bb.5:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.ne	LBB0_2
	b	LBB0_9
LBB0_6:
	add	x0, x19, #8
	mov	x1, x19
	ldr	w8, [x1], #16
	add	w2, w8, #1
	mov	w3, #8
	bl	_wined3d_array_reserve
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	stp	w21, w20, [x8]
	add	w8, w9, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	w9, [x19, #4]
	stp	wzr, w9, [x8]
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid range specified, invalidating entire buffer.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate maps array, invalidating entire buffer.\n"

	.no_dead_strip	_buffer_invalidate_bo_range
.subsections_via_symbols
