	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_relocate_entry
_eb_relocate_entry:                     ## @eb_relocate_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	24(%rdx), %esi
	callq	_eb_get_vma
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	movl	(%r13), %eax
	leal	-1(%rax), %edi
	andl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	24(%r13), %esi
	movl	(%r13), %r8d
	movl	4(%r13), %edx
	movl	8(%r13), %ecx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movl	8(%r13), %eax
	orl	(%r13), %eax
	movq	_I915_GEM_GPU_DOMAINS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	24(%r13), %esi
	movl	(%r13), %r8d
	movl	4(%r13), %edx
	movl	8(%r13), %ecx
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, (%r13)
	je	LBB0_14
## %bb.11:
	movq	_EXEC_OBJECT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	orl	%eax, (%rcx)
	movl	(%r13), %eax
	movq	_I915_GEM_DOMAIN_INSTRUCTION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.12:
	movl	8(%r15), %edi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	24(%r12), %rax
	movl	(%rax), %esi
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_i915_vma_bind
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_WARN_ONCE
	testq	%rax, %rax
	jne	LBB0_9
LBB0_14:
	movq	_DBG_FORCE_RELOC@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movl	16(%r12), %edi
	callq	_gen8_canonical_addr
	xorl	%ebx, %ebx
	cmpq	16(%r13), %rax
	je	LBB0_9
LBB0_16:
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	cmpq	$0, (%r15)
	sete	%cl
	leal	(%rax,%rcx,4), %eax
	addl	$-8, %eax
	xorl	%edi, %edi
	cmpl	%eax, 4(%r13)
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	4(%r13), %edx
	movl	24(%r13), %esi
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_7
LBB0_18:
	movl	4(%r13), %edi
	andl	$3, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	4(%r13), %edx
	movl	24(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_7
LBB0_20:
	movq	_EXEC_OBJECT_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%r14), %rcx
	andl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_relocate_entry                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reloc with multiple write domains: target %d offset %d read %08x write %08x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I915_GEM_GPU_DOMAINS,4,2       ## @I915_GEM_GPU_DOMAINS
L_.str.1:                               ## @.str.1
	.asciz	"reloc with read/write non-GPU domains: target %d offset %d read %08x write %08x"

	.comm	_EXEC_OBJECT_WRITE,4,2          ## @EXEC_OBJECT_WRITE
	.comm	_I915_GEM_DOMAIN_INSTRUCTION,4,2 ## @I915_GEM_DOMAIN_INSTRUCTION
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
L_.str.2:                               ## @.str.2
	.asciz	"Unexpected failure to bind target VMA!"

	.comm	_DBG_FORCE_RELOC,4,2            ## @DBG_FORCE_RELOC
L_.str.3:                               ## @.str.3
	.asciz	"Relocation beyond object bounds: target %d offset %d size %d.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Relocation not 4-byte aligned: target %d offset %d.\n"

	.comm	_EXEC_OBJECT_ASYNC,4,2          ## @EXEC_OBJECT_ASYNC
	.no_dead_strip	_eb_relocate_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_relocate_entry
_eb_relocate_entry:                     ; @eb_relocate_entry
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x2, #24]
	bl	_eb_get_vma
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_18
LBB0_2:
	ldr	w8, [x19]
	sub	w9, w8, #1
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #24]
	ldp	w2, w8, [x19, #4]
	ldr	w9, [x19]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_4:
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
Lloh4:
	adrp	x9, _I915_GEM_GPU_DOMAINS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _I915_GEM_GPU_DOMAINS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bic	w0, w8, w9
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x19, #24]
	ldp	w2, w8, [x19, #4]
	ldr	w9, [x19]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _EXEC_OBJECT_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXEC_OBJECT_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _I915_GEM_DOMAIN_INSTRUCTION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I915_GEM_DOMAIN_INSTRUCTION@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
	ldr	w0, [x21, #8]
	mov	w1, #6
	bl	_IS_GEN
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x22, #24]
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _PIN_GLOBAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIN_GLOBAL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_i915_vma_bind
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_WARN_ONCE
	cbnz	x0, LBB0_19
LBB0_10:
Lloh20:
	adrp	x8, _DBG_FORCE_RELOC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DBG_FORCE_RELOC@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
; %bb.11:
	ldr	w0, [x22, #16]
	bl	_gen8_canonical_addr
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w23, #0
	b	LBB0_19
LBB0_13:
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	ldr	x10, [x21]
	cmp	x10, #0
	mov	w10, #-8
	mov	w11, #-4
	csel	w10, w11, w10, eq
	add	w9, w10, w9
	cmp	w8, w9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x19, #24]
	ldr	w2, [x19, #4]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	w8, [x19, #4]
	and	w0, w8, #0x3
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.16:
	ldr	w1, [x19, #24]
	ldr	w2, [x19, #4]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_17:
	bl	_DRM_DEBUG
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	mov	x0, x23
	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
LBB0_20:
Lloh29:
	adrp	x8, _EXEC_OBJECT_ASYNC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXEC_OBJECT_ASYNC@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, 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
	b	_relocate_entry
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reloc with multiple write domains: target %d offset %d read %08x write %08x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I915_GEM_GPU_DOMAINS,4,2       ; @I915_GEM_GPU_DOMAINS
l_.str.1:                               ; @.str.1
	.asciz	"reloc with read/write non-GPU domains: target %d offset %d read %08x write %08x"

	.comm	_EXEC_OBJECT_WRITE,4,2          ; @EXEC_OBJECT_WRITE
	.comm	_I915_GEM_DOMAIN_INSTRUCTION,4,2 ; @I915_GEM_DOMAIN_INSTRUCTION
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
l_.str.2:                               ; @.str.2
	.asciz	"Unexpected failure to bind target VMA!"

	.comm	_DBG_FORCE_RELOC,4,2            ; @DBG_FORCE_RELOC
l_.str.3:                               ; @.str.3
	.asciz	"Relocation beyond object bounds: target %d offset %d size %d.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Relocation not 4-byte aligned: target %d offset %d.\n"

	.comm	_EXEC_OBJECT_ASYNC,4,2          ; @EXEC_OBJECT_ASYNC
	.no_dead_strip	_eb_relocate_entry
.subsections_via_symbols
