	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gem_evict_entry
_omap_gem_evict_entry:                  ## @omap_gem_evict_entry
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_to_omap_bo
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movslq	(%rax,%rcx,4), %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_omap_gem_mmap_offset
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	addl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r12d, %ecx
	shll	%cl, %edi
	movl	(%r14), %esi
	callq	_DIV_ROUND_UP
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.2:
	movl	%eax, %r12d
	movl	(%r14), %eax
	incl	%r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edi
	movslq	%eax, %rdx
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_unmap_mapping_range
	movl	(%r14), %eax
	movl	%eax, %ecx
	imull	%r12d, %ecx
	addl	%ecx, %ebx
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	imulq	%r13, %rdx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_unmap_mapping_range
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_omap_gem_evict_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_gem_evict_entry
_omap_gem_evict_entry:                  ; @omap_gem_evict_entry
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_to_omap_bo
	mov	x23, x0
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldrsw	x25, [x8, w22, uxtw #2]
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldrsw	x26, [x24]
	mov	x0, x20
	bl	_omap_gem_mmap_offset
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	add	w21, w8, w0
	ldr	w8, [x23]
	lsl	w0, w8, w22
	ldr	w1, [x24]
	bl	_DIV_ROUND_UP
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	w8, [x24]
	add	w23, w25, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	w0, [x9]
	sxtw	x2, w8
	mov	x1, x21
	mov	w3, #1
	bl	_unmap_mapping_range
	ldr	w8, [x24]
	madd	w21, w8, w22, w21
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_3
	b	LBB0_5
LBB0_4:
	mul	x2, x26, x25
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x21
	mov	w3, #1
	bl	_unmap_mapping_range
LBB0_5:
	str	xzr, [x19, #8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_omap_gem_evict_entry
.subsections_via_symbols
