	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vc4_kms_load
LCPI0_0:
	.long	2048                            ## 0x800
	.long	2048                            ## 0x800
	.long	24                              ## 0x18
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vc4_kms_load
	.p2align	4, 0x90
_vc4_kms_load:                          ## @vc4_kms_load
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_vc4_dev
	movq	%rax, %r14
	movl	$1, (%rax)
	leaq	16(%rax), %rdi
	movl	$1, %esi
	callq	_sema_init
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	movl	40(%r15), %esi
	movq	%r15, %rdi
	callq	_drm_vblank_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_vc4_mode_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2048,2048,24,1]
	movups	%xmm0, 8(%r15)
	movl	$1, 24(%r15)
	leaq	12(%r14), %rdi
	callq	_drm_modeset_lock_init
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	8(%r14), %rbx
	movq	_vc4_ctm_state_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_drm_atomic_private_obj_init
	movl	(%r12), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	addq	$4, %r14
	movq	_vc4_load_tracker_state_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_drm_atomic_private_obj_init
	movq	%r15, %rdi
	callq	_drm_mode_config_reset
	movq	%r15, %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	movl	48(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_drm_atomic_private_obj_fini
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize vblank\n"

	.comm	_vc4_mode_funcs,4,2             ## @vc4_mode_funcs
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vc4_ctm_state_funcs,4,2        ## @vc4_ctm_state_funcs
	.comm	_vc4_load_tracker_state_funcs,4,2 ## @vc4_load_tracker_state_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vc4_kms_load
lCPI0_0:
	.long	24                              ; 0x18
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vc4_kms_load
	.p2align	2
_vc4_kms_load:                          ; @vc4_kms_load
	.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
	bl	_to_vc4_dev
	mov	x20, x0
	mov	w22, #1
	str	w22, [x0], #16
	mov	w1, #1
	bl	_sema_init
	movi.2s	v0, #1
	str	d0, [x19]
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_drm_vblank_init
	tbnz	w0, #31, LBB0_4
; %bb.1:
	movi.2s	v0, #8, lsl #8
Lloh0:
	adrp	x8, _vc4_mode_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vc4_mode_funcs@GOTPAGEOFF]
	str	x8, [x19, #32]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	stp	d0, d1, [x19, #8]
	str	w22, [x19, #24]
	add	x0, x20, #12
	bl	_drm_modeset_lock_init
Lloh4:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x2, x0
	add	x21, x20, #8
Lloh6:
	adrp	x3, _vc4_ctm_state_funcs@GOTPAGE
Lloh7:
	ldr	x3, [x3, _vc4_ctm_state_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_drm_atomic_private_obj_init
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
	add	x1, x20, #4
Lloh8:
	adrp	x3, _vc4_load_tracker_state_funcs@GOTPAGE
Lloh9:
	ldr	x3, [x3, _vc4_load_tracker_state_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_atomic_private_obj_init
	mov	x0, x19
	bl	_drm_mode_config_reset
	mov	x0, x19
	bl	_drm_kms_helper_poll_init
	mov	w21, #0
	b	LBB0_7
LBB0_4:
	mov	x21, x0
	ldr	w0, [x19, #48]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_drm_atomic_private_obj_fini
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize vblank\n"

	.comm	_vc4_mode_funcs,4,2             ; @vc4_mode_funcs
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vc4_ctm_state_funcs,4,2        ; @vc4_ctm_state_funcs
	.comm	_vc4_load_tracker_state_funcs,4,2 ; @vc4_load_tracker_state_funcs
.subsections_via_symbols
