	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_timeline_pin             ## -- Begin function intel_timeline_pin
	.p2align	4, 0x90
_intel_timeline_pin:                    ## @intel_timeline_pin
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_atomic_add_unless
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	(%r15), %edi
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movq	_PIN_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_i915_vma_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%r15), %edi
	callq	_i915_ggtt_offset
	movq	%rax, %rbx
	movq	16(%r15), %rdi
	callq	_offset_in_page
	addq	%rbx, %rax
	movq	%rax, 16(%r15)
	movl	4(%r15), %edi
	callq	_cacheline_acquire
	movq	%r14, %rdi
	callq	_atomic_fetch_inc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %edi
	callq	_cacheline_release
	movl	(%r15), %edi
	callq	___i915_vma_unpin
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_PIN_HIGH,4,2                   ## @PIN_HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_timeline_pin             ; -- Begin function intel_timeline_pin
	.p2align	2
_intel_timeline_pin:                    ; @intel_timeline_pin
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_atomic_add_unless
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PIN_GLOBAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_GLOBAL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PIN_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIN_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #0
	mov	w2, #0
	bl	_i915_vma_pin
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_i915_ggtt_offset
	mov	x21, x0
	ldr	x0, [x19, #16]
	bl	_offset_in_page
	add	x8, x0, x21
	str	x8, [x19, #16]
	ldr	w0, [x19, #4]
	bl	_cacheline_acquire
	mov	x0, x20
	bl	_atomic_fetch_inc
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_cacheline_release
	ldr	w0, [x19]
	bl	___i915_vma_unpin
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_PIN_HIGH,4,2                   ; @PIN_HIGH
.subsections_via_symbols
