	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_handle_vblank
_vop_handle_vblank:                     ## @vop_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_put
	movq	$0, 8(%rbx)
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_VOP_PENDING_FB_UNREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_system_unbound_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_flip_work_commit           ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOP_PENDING_FB_UNREF,4,2       ## @VOP_PENDING_FB_UNREF
	.comm	_system_unbound_wq,4,2          ## @system_unbound_wq
	.no_dead_strip	_vop_handle_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vop_handle_vblank
_vop_handle_vblank:                     ; @vop_handle_vblank
	.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
	ldr	x20, [x0, #24]
	mov	x0, x20
	bl	_spin_lock
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
	add	x21, x19, #16
	mov	x0, x21
	bl	_drm_crtc_send_vblank_event
	mov	x0, x21
	bl	_drm_crtc_vblank_put
	str	xzr, [x19, #8]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock
Lloh0:
	adrp	x8, _VOP_PENDING_FB_UNREF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VOP_PENDING_FB_UNREF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_and_clear_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _system_unbound_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _system_unbound_wq@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_drm_flip_work_commit
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VOP_PENDING_FB_UNREF,4,2       ; @VOP_PENDING_FB_UNREF
	.comm	_system_unbound_wq,4,2          ; @system_unbound_wq
	.no_dead_strip	_vop_handle_vblank
.subsections_via_symbols
