	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_gem_init                   ## -- Begin function vc4_gem_init
	.p2align	4, 0x90
_vc4_gem_init:                          ## @vc4_gem_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_vc4_dev
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_dma_fence_context_alloc
	movl	%eax, 44(%rbx)
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %r14
	leaq	20(%rbx), %rdi
	movq	_vc4_reset_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_vc4_hangcheck_elapsed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	12(%rbx), %rdi
	movq	_vc4_job_done_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%rbx), %rdi
	callq	_mutex_init
	leaq	4(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_init                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vc4_reset_work,4,2             ## @vc4_reset_work
	.comm	_vc4_hangcheck_elapsed,4,2      ## @vc4_hangcheck_elapsed
	.comm	_vc4_job_done_work,4,2          ## @vc4_job_done_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_gem_init                   ; -- Begin function vc4_gem_init
	.p2align	2
_vc4_gem_init:                          ; @vc4_gem_init
	.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
	bl	_to_vc4_dev
	mov	x19, x0
	mov	w0, #1
	bl	_dma_fence_context_alloc
	str	w0, [x19, #44]
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x20, x19, #16
	add	x0, x19, #20
Lloh0:
	adrp	x8, _vc4_reset_work@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vc4_reset_work@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh3:
	adrp	x8, _vc4_hangcheck_elapsed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vc4_hangcheck_elapsed@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #12
Lloh6:
	adrp	x8, _vc4_job_done_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vc4_job_done_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #8
	bl	_mutex_init
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_init
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vc4_reset_work,4,2             ; @vc4_reset_work
	.comm	_vc4_hangcheck_elapsed,4,2      ; @vc4_hangcheck_elapsed
	.comm	_vc4_job_done_work,4,2          ; @vc4_job_done_work
.subsections_via_symbols
