	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_fake_agp_insert_entries
_intel_fake_agp_insert_entries:         ## @intel_fake_agp_insert_entries
	.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, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movq	_intel_private@GOTPCREL(%rip), %r13
	subl	(%rax), %ebx
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	4(%r13), %eax
	movl	8(%r13), %esi
	cltd
	idivl	(%rcx)
	subl	%eax, %esi
	movl	%eax, %edi
	callq	_intel_gtt_clear_range
	movl	$0, (%r13)
LBB0_2:
	movq	_INTEL_GTT_GEN@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_AGP_DCACHE_MEMORY@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i810_insert_dcache_entries     ## TAILCALL
LBB0_4:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	addq	%r15, %rax
	cmpq	16(%r13), %rax
	jg	LBB0_15
## %bb.6:
	cmpl	%r12d, 8(%r14)
	jne	LBB0_15
## %bb.7:
	movq	32(%r13), %rax
	movl	%r12d, %edi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	cmpl	$0, 12(%r14)
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_global_cache_flush
LBB0_10:
	cmpq	$0, 24(%r13)
	je	LBB0_13
## %bb.11:
	movl	16(%r14), %edi
	movq	(%r14), %rsi
	leaq	-48(%rbp), %rdx
	callq	_intel_gtt_map_memory
	testl	%eax, %eax
	je	LBB0_12
## %bb.16:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	(%r14), %rsi
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	callq	_intel_gtt_insert_pages
	jmp	LBB0_14
LBB0_12:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_intel_gtt_insert_sg_entries
	movl	-44(%rbp), %eax
	movl	%eax, 24(%r14)
	movl	-48(%rbp), %eax
	movl	%eax, 20(%r14)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movl	$1, 12(%r14)
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_intel_private,40,3             ## @intel_private
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_INTEL_GTT_GEN,4,2              ## @INTEL_GTT_GEN
	.comm	_AGP_DCACHE_MEMORY,4,2          ## @AGP_DCACHE_MEMORY
	.no_dead_strip	_intel_fake_agp_insert_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_fake_agp_insert_entries
_intel_fake_agp_insert_entries:         ; @intel_fake_agp_insert_entries
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _intel_private@GOTPAGE
Lloh4:
	ldr	x23, [x23, _intel_private@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w9, w10, [x23, #4]
	sdiv	w0, w9, w8
	sub	w1, w10, w0
	bl	_intel_gtt_clear_range
	str	wzr, [x23]
LBB0_2:
Lloh8:
	adrp	x8, _INTEL_GTT_GEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTEL_GTT_GEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _AGP_DCACHE_MEMORY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AGP_DCACHE_MEMORY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w9, w20, #0, eq
	b.eq	LBB0_12
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.4:
	neg	w22, w22
	ldr	x9, [x23, #16]
	add	x8, x8, x21
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.5:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_15
; %bb.6:
	ldr	x8, [x23, #32]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_15
; %bb.7:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_global_cache_flush
LBB0_9:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w0, [x19, #16]
	ldr	x1, [x19]
	add	x2, sp, #8
	bl	_intel_gtt_map_memory
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.11:
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_intel_gtt_insert_sg_entries
	ldr	d0, [sp, #8]
	stur	d0, [x19, #20]
	b	LBB0_15
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_i810_insert_dcache_entries
LBB0_13:
	ldr	x1, [x19]
	ldr	w2, [x19, #16]
	mov	x0, x21
	mov	x3, x20
	bl	_intel_gtt_insert_pages
LBB0_14:
	mov	w22, #0
LBB0_15:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_intel_private,40,3             ; @intel_private
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_INTEL_GTT_GEN,4,2              ; @INTEL_GTT_GEN
	.comm	_AGP_DCACHE_MEMORY,4,2          ; @AGP_DCACHE_MEMORY
	.no_dead_strip	_intel_fake_agp_insert_entries
.subsections_via_symbols
