	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pipe_update_end          ## -- Begin function intel_pipe_update_end
	.p2align	4, 0x90
_intel_pipe_update_end:                 ## @intel_pipe_update_end
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_intel_get_crtc_scanline
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_intel_crtc_get_vblank_counter
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%r15), %rdi
	callq	_to_i915
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edx
	callq	_trace_i915_pipe_update_end
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	leaq	32(%r15), %r14
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_get
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_WARN_ON
	movq	(%r14), %rdi
	callq	_spin_lock
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_drm_crtc_arm_vblank_event
	movq	(%r14), %rdi
	callq	_spin_unlock
	movq	$0, (%r12)
LBB0_2:
	xorl	%eax, %eax
	callq	_local_irq_enable
	movq	%r13, %rdi
	callq	_intel_vgpu_active
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	addq	$24, %rsp
	jmp	LBB0_7
LBB0_3:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_pipe_name
	movl	%eax, %r14d
	movq	8(%r15), %r12
	movl	16(%r15), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ktime_us_delta
	movl	28(%r15), %r9d
	movl	20(%r15), %r10d
	movl	24(%r15), %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	%rbx
	callq	_DRM_ERROR
	addq	$56, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Atomic update failure on pipe %c (start=%u end=%u) time %lld us, min %d, max %d, scanline start %d, end %d\n"

	.comm	_VBLANK_EVASION_TIME_US,8,3     ## @VBLANK_EVASION_TIME_US
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pipe_update_end          ; -- Begin function intel_pipe_update_end
	.p2align	2
_intel_pipe_update_end:                 ; @intel_pipe_update_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w22, [x0]
	bl	_intel_get_crtc_scanline
	mov	x20, x0
	mov	x0, x19
	bl	_intel_crtc_get_vblank_counter
	mov	x21, x0
	bl	_ktime_get
	mov	x23, x0
	mov	x26, x19
	ldr	x0, [x26, #32]!
	bl	_to_i915
	mov	x25, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_trace_i915_pipe_update_end
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x26
	bl	_drm_crtc_vblank_get
	cmp	x0, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	x0, [x26]
	bl	_spin_lock
	ldr	x1, [x24]
	mov	x0, x26
	bl	_drm_crtc_arm_vblank_event
	ldr	x0, [x26]
	bl	_spin_unlock
	str	xzr, [x24]
LBB0_2:
	bl	_local_irq_enable
	mov	x0, x25
	bl	_intel_vgpu_active
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	x8, x21, #4, ne
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_pipe_name
	mov	x22, x0
	ldr	x24, [x19, #8]
	ldr	w1, [x19, #16]
	mov	x0, x23
	bl	_ktime_us_delta
	mov	x4, x0
	ldp	w6, w5, [x19, #24]
	ldr	w7, [x19, #20]
	str	w20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x24
	mov	x3, x21
	bl	_DRM_ERROR
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Atomic update failure on pipe %c (start=%u end=%u) time %lld us, min %d, max %d, scanline start %d, end %d\n"

	.comm	_VBLANK_EVASION_TIME_US,8,3     ; @VBLANK_EVASION_TIME_US
.subsections_via_symbols
