	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_vblank_on             ## -- Begin function drm_crtc_vblank_on
	.p2align	4, 0x90
_drm_crtc_vblank_on:                    ## @drm_crtc_vblank_on
	.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	(%rdi), %r13
	callq	_drm_crtc_index
	movl	%eax, %ebx
	movq	8(%r13), %r14
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %r15d
	leaq	(%r15,%r15,2), %rbx
	leaq	(%r14,%rbx,8), %r12
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	16(%r14,%rbx,8), %edx
	movq	8(%r14,%rbx,8), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_VBL
	cmpq	$0, 8(%r14,%rbx,8)
	je	LBB0_3
## %bb.2:
	leaq	(%r14,%rbx,8), %rbx
	addq	$8, %rbx
	movq	%r12, %rdi
	callq	_atomic_dec
	movq	$0, (%rbx)
LBB0_3:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_drm_reset_vblank_timestamp
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_drm_vblank_offdelay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_drm_vblank_enable
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crtc %d, vblank enabled %d, inmodeset %d\n"

	.comm	_drm_vblank_offdelay,8,3        ## @drm_vblank_offdelay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_crtc_vblank_on             ; -- Begin function drm_crtc_vblank_on
	.p2align	2
_drm_crtc_vblank_on:                    ; @drm_crtc_vblank_on
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	bl	_drm_crtc_index
	mov	x20, x0
	ldr	x23, [x19, #8]
	ldr	w8, [x19]
	cmp	w0, w8
	cset	w0, hs
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w21, w20
	mov	w8, #24
	umaddl	x22, w20, w8, x23
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #24
	madd	x23, x21, x8, x23
	ldr	x3, [x23, #8]!
	ldr	w2, [x23, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_VBL
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_atomic_dec
	str	xzr, [x23]
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_reset_vblank_timestamp
	mov	x0, x22
	bl	_atomic_read
Lloh2:
	adrp	x8, _drm_vblank_offdelay@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drm_vblank_offdelay@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_drm_vblank_enable
	bl	_WARN_ON
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crtc %d, vblank enabled %d, inmodeset %d\n"

	.comm	_drm_vblank_offdelay,8,3        ; @drm_vblank_offdelay
.subsections_via_symbols
