	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_vblank_init                ## -- Begin function drm_vblank_init
	.p2align	4, 0x90
_drm_vblank_init:                       ## @drm_vblank_init
	.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	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	addq	$96, %rdi
	movq	_vblank_disable_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_setup_timer
	leaq	92(%r12), %rdi
	callq	_spin_lock_init
	leaq	88(%r12), %rdi
	callq	_spin_lock_init
	movl	%r14d, (%r12)
	leal	(,%r14,4), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	(%r13), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	(%r13), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 72(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	(%r13), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 64(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	(%r13), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 56(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_DRM_VBLANKTIME_RBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%r14d, %edi
	movl	(%r13), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 48(%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	40(%r12), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_DRM_INFO
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.9:
	movl	%r14d, %r14d
	shlq	$2, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	callq	_init_waitqueue_head
	movq	24(%r12), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	addq	$4, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_10
LBB0_11:
	movq	$0, 8(%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_12:
	movq	%r12, %rdi
	callq	_drm_vblank_cleanup
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vblank_disable_fn,4,2          ## @vblank_disable_fn
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DRM_VBLANKTIME_RBSIZE,4,2      ## @DRM_VBLANKTIME_RBSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Supports vblank timestamp caching Rev 1 (10.10.2010).\n"

L_.str.1:                               ## @.str.1
	.asciz	"Driver supports precise vblank timestamp query.\n"

L_.str.2:                               ## @.str.2
	.asciz	"No driver support for vblank timestamp query.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_vblank_init                ; -- Begin function drm_vblank_init
	.p2align	2
_drm_vblank_init:                       ; @drm_vblank_init
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	add	x0, x0, #96
Lloh3:
	adrp	x8, _vblank_disable_fn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vblank_disable_fn@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_setup_timer
	add	x0, x19, #92
	bl	_spin_lock_init
	add	x0, x19, #88
	bl	_spin_lock_init
	str	w20, [x19]
	lsl	w21, w20, #2
Lloh6:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #72]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_12
; %bb.7:
Lloh8:
	adrp	x8, _DRM_VBLANKTIME_RBSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_VBLANKTIME_RBSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w0, w8, w20
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_12
; %bb.8:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, l_.str.1@PAGE
Lloh14:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh15:
	adrp	x10, l_.str.2@PAGE
Lloh16:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_DRM_INFO
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
	mov	w8, w20
	lsl	x20, x8, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_init_waitqueue_head
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	mov	w1, #0
	bl	_atomic_set
	add	x21, x21, #4
	cmp	x20, x21
	b.ne	LBB0_10
LBB0_11:
	mov	w20, #0
	str	xzr, [x19, #8]
	b	LBB0_13
LBB0_12:
	neg	w20, w22
	mov	x0, x19
	bl	_drm_vblank_cleanup
LBB0_13:
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vblank_disable_fn,4,2          ; @vblank_disable_fn
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DRM_VBLANKTIME_RBSIZE,4,2      ; @DRM_VBLANKTIME_RBSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Supports vblank timestamp caching Rev 1 (10.10.2010).\n"

l_.str.1:                               ; @.str.1
	.asciz	"Driver supports precise vblank timestamp query.\n"

l_.str.2:                               ; @.str.2
	.asciz	"No driver support for vblank timestamp query.\n"

.subsections_via_symbols
