	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_oos_page
_sync_oos_page:                         ## @sync_oos_page
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r15
	movl	(%rdi), %edi
	movl	8(%rsi), %edx
	movl	24(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rcx
	callq	_trace_oos_change
	movl	24(%r15), %edi
	callq	_get_entry_type
	movl	%eax, -64(%rbp)
	movl	%eax, -88(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -96(%rbp)
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movb	8(%rbx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_I915_GTT_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movzbl	8(%rcx), %ecx
	sarl	%cl, %eax
	cmpl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	leaq	-96(%rbp), %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	movq	%r12, %r13
	movq	%r15, %r12
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	*8(%r15)
	movl	8(%r12), %r8d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %r8d
	xorl	%edi, %edi
	leaq	-72(%rbp), %r14
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	$1, %ecx
	movq	%r13, %r9
	callq	*8(%r15)
	movq	%r12, %r15
	movq	%r13, %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r8
	cmpq	%r8, -96(%rbp)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r15), %esi
	movl	%ebx, %edi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r8
	leaq	-72(%rbp), %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	8(%r13), %esi
	movl	24(%r15), %ecx
	movq	%r15, %rdx
	movl	%ebx, %r9d
	callq	_trace_oos_sync
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_ppgtt_populate_shadow_entry
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	jmp	LBB0_7
LBB0_8:
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_list_del_init
	xorl	%eax, %eax
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sync"

	.comm	_I915_GTT_PAGE_SIZE,4,2         ## @I915_GTT_PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_sync_oos_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_oos_page
_sync_oos_page:                         ; @sync_oos_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	x24, [x23]
	ldr	x19, [x1, #16]
	ldr	w0, [x0]
	ldr	w2, [x1, #8]
	ldr	w4, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_trace_oos_change
	ldr	w0, [x19, #24]
	bl	_get_entry_type
	str	w0, [sp, #8]
	str	w0, [sp, #24]
	str	xzr, [sp]
	str	xzr, [sp, #16]
Lloh2:
	adrp	x25, _I915_GTT_PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _I915_GTT_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x23, #8]
	asr	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w22, #0
Lloh4:
	adrp	x26, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PAGE_SHIFT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldr	w8, [x25]
	ldr	w9, [x23, #8]
	asr	w8, w8, w9
	cmp	w22, w8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	x0, [x20]
	add	x1, sp, #16
	mov	x2, x22
	mov	w3, #0
	mov	w4, #0
	mov	x5, x21
	blr	x8
	ldr	x8, [x24, #8]
	ldr	w9, [x19, #8]
	ldr	w10, [x26]
	lsl	w4, w9, w10
	mov	x1, sp
	mov	x0, #0
	mov	x2, x22
	mov	w3, #1
	mov	x5, x21
	blr	x8
	ldr	x8, [sp, #16]
	ldr	x4, [sp]
	cmp	x8, x4
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x19, #32]
	mov	x0, x22
	bl	_test_and_clear_bit
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x4, [sp]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x20, #8]
	ldr	w3, [x19, #24]
	mov	x2, x19
	mov	x5, x22
	bl	_trace_oos_sync
	mov	x3, sp
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_ppgtt_populate_shadow_entry
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	x0, [x20]
	mov	x1, sp
	mov	x2, x22
	mov	w3, #0
	mov	w4, #0
	mov	x5, x21
	blr	x8
	b	LBB0_2
LBB0_8:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_list_del_init
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sync"

	.comm	_I915_GTT_PAGE_SIZE,4,2         ; @I915_GTT_PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_sync_oos_page
.subsections_via_symbols
