	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_handle_vblank              ## -- Begin function drm_handle_vblank
	.p2align	4, 0x90
_drm_handle_vblank:                     ## @drm_handle_vblank
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_WARN_ON_ONCE
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	xorl	%edi, %edi
	cmpl	%r12d, (%rbx)
	setbe	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movl	%r12d, %r13d
	leaq	4(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	leaq	16(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	shlq	$4, %r13
	cmpl	$0, 12(%r14,%r13)
	je	LBB0_3
## %bb.4:
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_drm_update_vblank_count
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	callq	_wake_up
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.5:
	movq	_drm_vblank_offdelay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_8
## %bb.6:
	leaq	(%r14,%r13), %rdi
	addq	$4, %rdi
	callq	_atomic_read
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_drm_handle_vblank_events
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.7:
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	callq	_vblank_disable_fn
	jmp	LBB0_10
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_drm_handle_vblank_events
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_handle_vblank              ; -- Begin function drm_handle_vblank
	.p2align	2
_drm_handle_vblank:                     ; @drm_handle_vblank
	.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, x1
	mov	x20, x0
	ldr	x23, [x0, #24]
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, ls
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	mov	w24, w19
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x22, x20, #16
	mov	x0, x22
	bl	_spin_lock
	add	x25, x23, x24, lsl #4
	ldr	w8, [x25, #12]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_drm_update_vblank_count
	mov	x0, x22
	bl	_spin_unlock
	add	x0, x25, #8
	bl	_wake_up
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.6:
Lloh0:
	adrp	x8, _drm_vblank_offdelay@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drm_vblank_offdelay@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.7:
	add	x22, x23, x24, lsl #4
	add	x0, x22, #4
	bl	_atomic_read
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_drm_handle_vblank_events
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbnz	w23, LBB0_11
; %bb.8:
	mov	x0, x22
	bl	_vblank_disable_fn
	b	LBB0_11
LBB0_9:
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_3
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_drm_handle_vblank_events
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_11:
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_vblank_offdelay,8,3        ; @drm_vblank_offdelay
.subsections_via_symbols
