	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_validate_vma
_eb_validate_vma:                       ## @eb_validate_vma
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	andl	(%rsi), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	callq	_is_power_of_2
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	movq	_EXEC_OBJECT_PINNED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.8:
	movl	4(%rbx), %r13d
	movq	_I915_GTT_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	callq	_gen8_canonical_addr
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	setne	%dil
	jmp	LBB0_9
LBB0_7:
	xorl	%edi, %edi
LBB0_9:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EXEC_OBJECT_PAD_TO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	16(%rbx), %rdi
	callq	_offset_in_page
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_13
LBB0_12:
	movq	$0, 16(%rbx)
LBB0_13:
	movl	(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	8(%rbx), %esi
	subq	24(%r14), %rbx
	shrq	$5, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_DRM_DEBUG
	jmp	LBB0_1
LBB0_15:
	movl	4(%rbx), %edi
	callq	_gen8_noncanonical_addr
	movl	%eax, 4(%rbx)
	cmpl	$0, 16(%r14)
	je	LBB0_16
## %bb.17:
	movl	(%rbx), %ecx
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_19
## %bb.18:
	cmpq	$0, 8(%r14)
	je	LBB0_23
LBB0_19:
	movl	4(%r15), %edi
	callq	_i915_gem_object_is_tiled
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	_EXEC_OBJECT_NEEDS_GTT@GOTPCREL(%rip), %rax
	movq	___EXEC_OBJECT_NEEDS_MAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	(%rbx), %ecx
	jmp	LBB0_22
LBB0_16:
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%rbx), %ecx
LBB0_22:
	movl	%ecx, (%rbx)
	jmp	LBB0_23
LBB0_20:
	movl	(%rbx), %ecx
LBB0_23:
	xorl	%eax, %eax
	testl	%ecx, (%r12)
	jne	LBB0_25
## %bb.24:
	orl	4(%r14), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EXEC_OBJECT_PINNED,4,2         ## @EXEC_OBJECT_PINNED
	.comm	_I915_GTT_PAGE_MASK,4,2         ## @I915_GTT_PAGE_MASK
	.comm	_EXEC_OBJECT_PAD_TO_SIZE,4,2    ## @EXEC_OBJECT_PAD_TO_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Object [handle %d, index %d] appears more than once in object list\n"

	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ## @EXEC_OBJECT_NEEDS_FENCE
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ## @EXEC_OBJECT_NEEDS_GTT
	.comm	___EXEC_OBJECT_NEEDS_MAP,4,2    ## @__EXEC_OBJECT_NEEDS_MAP
	.no_dead_strip	_eb_validate_vma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_validate_vma
_eb_validate_vma:                       ; @eb_validate_vma
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	ldr	w9, [x0]
	and	w0, w9, w8
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_is_power_of_2
	cmp	w0, #0
	cset	w0, eq
LBB0_3:
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _EXEC_OBJECT_PINNED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EXEC_OBJECT_PINNED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w23, [x19, #4]
Lloh2:
	adrp	x8, _I915_GTT_PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I915_GTT_PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w0, w8, w23
	bl	_gen8_canonical_addr
	cmp	w23, w0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_12
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_12
LBB0_7:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _EXEC_OBJECT_PAD_TO_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EXEC_OBJECT_PAD_TO_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	bl	_offset_in_page
	bl	_unlikely
	cbnz	x0, LBB0_12
	b	LBB0_10
LBB0_9:
	str	xzr, [x19, #16]
LBB0_10:
	ldr	w0, [x21]
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w1, [x19, #8]
	ldr	x8, [x20, #24]
	sub	x8, x19, x8
	lsr	x2, x8, #5
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_DRM_DEBUG
LBB0_12:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	ldr	w0, [x19, #4]
	bl	_gen8_noncanonical_addr
	str	w0, [x19, #4]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_19
; %bb.15:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_22
LBB0_17:
	ldr	w0, [x21, #4]
	bl	_i915_gem_object_is_tiled
	cbz	x0, LBB0_21
; %bb.18:
Lloh16:
	adrp	x8, _EXEC_OBJECT_NEEDS_GTT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXEC_OBJECT_NEEDS_GTT@GOTPAGEOFF]
Lloh18:
	adrp	x9, ___EXEC_OBJECT_NEEDS_MAP@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___EXEC_OBJECT_NEEDS_MAP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	b	LBB0_20
LBB0_19:
Lloh22:
	adrp	x8, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_20:
	str	w8, [x19]
	b	LBB0_22
LBB0_21:
	ldr	w8, [x19]
LBB0_22:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	mov	w0, #0
	b	LBB0_13
LBB0_24:
	mov	w0, #0
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EXEC_OBJECT_PINNED,4,2         ; @EXEC_OBJECT_PINNED
	.comm	_I915_GTT_PAGE_MASK,4,2         ; @I915_GTT_PAGE_MASK
	.comm	_EXEC_OBJECT_PAD_TO_SIZE,4,2    ; @EXEC_OBJECT_PAD_TO_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Object [handle %d, index %d] appears more than once in object list\n"

	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ; @EXEC_OBJECT_NEEDS_FENCE
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ; @EXEC_OBJECT_NEEDS_GTT
	.comm	___EXEC_OBJECT_NEEDS_MAP,4,2    ; @__EXEC_OBJECT_NEEDS_MAP
	.no_dead_strip	_eb_validate_vma
.subsections_via_symbols
