	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_fake_dma_flush
_savage_fake_dma_flush:                 ## @savage_fake_dma_flush
	.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	%rdi, %r14
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rax
	cmpq	%rdx, %rsi
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_10
LBB0_2:
	movl	(%rax,%rdx,4), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	(%r14), %r12d
	cmpq	%r12, 8(%r14)
	jae	LBB0_3
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%r14), %rax
	movq	_SAVAGE_DMA_PAGE_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%rax,%r12,4)
	incl	%r12d
	cmpq	%r12, 8(%r14)
	jb	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%rax,%r12,4), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movl	(%r15), %r13d
	imull	%r12d, %r13d
	shlq	$2, %r13
	addq	(%rax), %r13
	callq	_BEGIN_BCI
	movq	16(%r14), %rax
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%rbx,4), %edi
	callq	_BCI_WRITE
	incq	%rbx
	movq	16(%r14), %rax
	movl	(%rax,%r12,4), %ecx
	cmpq	%rcx, %rbx
	jb	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BCI_LOCALS,4,2                 ## @BCI_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"first=%u, cur=%u, cur->used=%u\n"

	.comm	_SAVAGE_DMA_PAGE_SIZE,4,2       ## @SAVAGE_DMA_PAGE_SIZE
	.no_dead_strip	_savage_fake_dma_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_fake_dma_flush
_savage_fake_dma_flush:                 ; @savage_fake_dma_flush
	.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	x19, x0
	ldp	x1, x2, [x0]
	ldr	x8, [x0, #16]
	cmp	x1, x2
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x8, x1, lsl #2]
	cbz	w9, LBB0_4
LBB0_2:
	ldr	w3, [x8, x2, lsl #2]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w20, [x19]
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.hs	LBB0_5
LBB0_3:
	stp	xzr, xzr, [x19]
LBB0_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
	ret
LBB0_5:
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x21, _SAVAGE_DMA_PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SAVAGE_DMA_PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x8, x20, lsl #2]
	add	w20, w20, #1
	ldr	x9, [x19, #8]
	cmp	x9, x20
	b.lo	LBB0_3
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w0, [x8, x20, lsl #2]
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #24]
	ldr	x23, [x8]
	ldr	w24, [x21]
	bl	_BEGIN_BCI
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x20, lsl #2]
	cbz	w9, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
	mul	w8, w24, w20
	add	x23, x23, w8, uxtw #2
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23, x22, lsl #2]
	bl	_BCI_WRITE
	add	x22, x22, #1
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x20, lsl #2]
	cmp	x22, x9
	b.lo	LBB0_10
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BCI_LOCALS,4,2                 ; @BCI_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"first=%u, cur=%u, cur->used=%u\n"

	.comm	_SAVAGE_DMA_PAGE_SIZE,4,2       ; @SAVAGE_DMA_PAGE_SIZE
	.no_dead_strip	_savage_fake_dma_flush
.subsections_via_symbols
