	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_vblank_pre_modeset         ## -- Begin function drm_vblank_pre_modeset
	.p2align	4, 0x90
_drm_vblank_pre_modeset:                ## @drm_vblank_pre_modeset
	.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
	cmpl	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movslq	%esi, %r14
	cmpl	$0, (%rax,%r14,4)
	jne	LBB0_4
## %bb.2:
	movl	$1, (%rax,%r14,4)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_drm_vblank_get
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	orl	$2, (%rax,%r14,4)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_vblank_pre_modeset         ; -- Begin function drm_vblank_pre_modeset
	.p2align	2
_drm_vblank_pre_modeset:                ; @drm_vblank_pre_modeset
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8, w1, sxtw #2]
	cbnz	w9, LBB0_4
; %bb.2:
	sxtw	x20, w1
	mov	w9, #1
	str	w9, [x8, x20, lsl #2]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_drm_vblank_get
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, #0x2
	str	w10, [x8, x9]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
