	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_pin_to_display_plane ## -- Begin function i915_gem_object_pin_to_display_plane
	.p2align	4, 0x90
_i915_gem_object_pin_to_display_plane:  ## @i915_gem_object_pin_to_display_plane
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	%rdx, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_i915_gem_object_sync
	testl	%eax, %eax
	jne	LBB0_5
LBB0_2:
	movq	_I915_CACHE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_set_cache_level
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_i915_gem_object_pin
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_i915_gem_object_flush_cpu_write_domain
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	movq	$0, 8(%rbx)
	movq	_I915_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	%rsi, %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_trace_i915_gem_object_change_domain
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_CACHE_NONE,4,2            ## @I915_CACHE_NONE
	.comm	_I915_GEM_DOMAIN_GTT,8,3        ## @I915_GEM_DOMAIN_GTT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_pin_to_display_plane ; -- Begin function i915_gem_object_pin_to_display_plane
	.p2align	2
_i915_gem_object_pin_to_display_plane:  ; @i915_gem_object_pin_to_display_plane
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cmp	x8, x2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x2
	bl	_i915_gem_object_sync
	cbnz	w0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _I915_CACHE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_CACHE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i915_gem_object_set_cache_level
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_i915_gem_object_pin
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_i915_gem_object_flush_cpu_write_domain
	ldp	x1, x2, [x19]
Lloh3:
	adrp	x8, _I915_GEM_DOMAIN_GTT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	orr	x8, x8, x1
	stp	x8, xzr, [x19]
	mov	x0, x19
	bl	_trace_i915_gem_object_change_domain
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_CACHE_NONE,4,2            ; @I915_CACHE_NONE
	.comm	_I915_GEM_DOMAIN_GTT,8,3        ; @I915_GEM_DOMAIN_GTT
.subsections_via_symbols
