	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eb_pin_vma
_eb_pin_vma:                            ## @eb_pin_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, %r13
	movq	%rsi, %r15
	movq	(%rdx), %rax
	movl	(%rax), %r14d
	cmpq	$0, 24(%rdx)
	je	LBB0_2
## %bb.1:
	movl	16(%r13), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_PIN_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r15), %ebx
LBB0_3:
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movq	_PIN_NOEVICT@GOTPCREL(%rip), %rcx
	movq	_PIN_OFFSET_FIXED@GOTPCREL(%rip), %rdx
	movq	_EXEC_OBJECT_NEEDS_GTT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	andl	%r14d, %edi
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	callq	_unlikely
	xorl	%r12d, %r12d
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	orl	%ecx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_i915_vma_pin
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	_EXEC_OBJECT_NEEDS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r13, %rdi
	callq	_i915_vma_pin_fence
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_i915_vma_unpin
	jmp	LBB0_12
LBB0_9:
	cmpq	$0, 8(%r13)
	je	LBB0_11
## %bb.10:
	movq	___EXEC_OBJECT_HAS_FENCE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_11:
	movq	___EXEC_OBJECT_HAS_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_eb_vma_misplaced
	xorl	%r12d, %r12d
	testl	%eax, %eax
	sete	%r12b
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_OFFSET_MASK,4,2            ## @PIN_OFFSET_MASK
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.comm	_PIN_NOEVICT,4,2                ## @PIN_NOEVICT
	.comm	_PIN_OFFSET_FIXED,4,2           ## @PIN_OFFSET_FIXED
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ## @EXEC_OBJECT_NEEDS_GTT
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ## @EXEC_OBJECT_NEEDS_FENCE
	.comm	___EXEC_OBJECT_HAS_FENCE,4,2    ## @__EXEC_OBJECT_HAS_FENCE
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ## @__EXEC_OBJECT_HAS_PIN
	.no_dead_strip	_eb_pin_vma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eb_pin_vma
_eb_pin_vma:                            ; @eb_pin_vma
	.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	x20, x1
	ldr	x8, [x2]
	ldr	w21, [x8]
	ldr	x8, [x2, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w22, [x19, #16]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _PIN_OFFSET_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIN_OFFSET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w22, w9, w8
LBB0_3:
Lloh3:
	adrp	x8, _PIN_USER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_USER@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _PIN_NOEVICT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIN_NOEVICT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PIN_OFFSET_FIXED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PIN_OFFSET_FIXED@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
Lloh11:
	ldr	w25, [x9]
Lloh12:
	adrp	x8, _EXEC_OBJECT_NEEDS_GTT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXEC_OBJECT_NEEDS_GTT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_unlikely
Lloh15:
	adrp	x8, _PIN_GLOBAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIN_GLOBAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w9, w23, w22
	orr	w9, w9, w24
	orr	w9, w9, w25
	orr	w3, w9, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	bl	_unlikely
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_10
; %bb.4:
Lloh18:
	adrp	x8, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EXEC_OBJECT_NEEDS_FENCE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_i915_vma_pin_fence
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_i915_vma_unpin
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, ___EXEC_OBJECT_HAS_FENCE@GOTPAGE
Lloh22:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_FENCE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_9:
Lloh24:
	adrp	x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGE
Lloh25:
	ldr	x8, [x8, ___EXEC_OBJECT_HAS_PIN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w8, w8, w21
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eb_vma_misplaced
	cmp	w0, #0
	cset	w0, eq
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_OFFSET_MASK,4,2            ; @PIN_OFFSET_MASK
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.comm	_PIN_NOEVICT,4,2                ; @PIN_NOEVICT
	.comm	_PIN_OFFSET_FIXED,4,2           ; @PIN_OFFSET_FIXED
	.comm	_EXEC_OBJECT_NEEDS_GTT,4,2      ; @EXEC_OBJECT_NEEDS_GTT
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_EXEC_OBJECT_NEEDS_FENCE,4,2    ; @EXEC_OBJECT_NEEDS_FENCE
	.comm	___EXEC_OBJECT_HAS_FENCE,4,2    ; @__EXEC_OBJECT_HAS_FENCE
	.comm	___EXEC_OBJECT_HAS_PIN,4,2      ; @__EXEC_OBJECT_HAS_PIN
	.no_dead_strip	_eb_pin_vma
.subsections_via_symbols
