	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_bo_cache_init              ## -- Begin function vc4_bo_cache_init
	.p2align	4, 0x90
_vc4_bo_cache_init:                     ## @vc4_bo_cache_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_vc4_dev
	movq	%rax, %r12
	movq	_VC4_BO_TYPE_COUNT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	_bo_type_names@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	setne	%dil
	callq	_BUILD_BUG_ON
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movq	24(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_4
LBB0_5:
	leaq	16(%r12), %rdi
	callq	_mutex_init
	movq	_vc4_bo_stats_debugfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_vc4_debugfs_add_file
	leaq	4(%r12), %r14
	leaq	12(%r12), %rdi
	callq	_INIT_LIST_HEAD
	addq	$8, %r12
	movq	_vc4_bo_cache_time_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_WORK
	movq	_vc4_bo_cache_time_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC4_BO_TYPE_COUNT,4,2          ## @VC4_BO_TYPE_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bo_type_names,8,3              ## @bo_type_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bo_stats"

	.comm	_vc4_bo_stats_debugfs,4,2       ## @vc4_bo_stats_debugfs
	.comm	_vc4_bo_cache_time_work,4,2     ## @vc4_bo_cache_time_work
	.comm	_vc4_bo_cache_time_timer,4,2    ## @vc4_bo_cache_time_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_bo_cache_init              ; -- Begin function vc4_bo_cache_init
	.p2align	2
_vc4_bo_cache_init:                     ; @vc4_bo_cache_init
	.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	x20, x0
	bl	_to_vc4_dev
	mov	x19, x0
Lloh0:
	adrp	x21, _VC4_BO_TYPE_COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VC4_BO_TYPE_COUNT@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	str	w8, [x19]
Lloh5:
	adrp	x22, _bo_type_names@GOTPAGE
Lloh6:
	ldr	x22, [x22, _bo_type_names@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, ne
	bl	_BUILD_BUG_ON
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x8, #0
	ldr	x9, [x22]
	ldr	x10, [x19, #24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_3
LBB0_4:
	add	x0, x19, #16
	bl	_mutex_init
Lloh7:
	adrp	x8, _vc4_bo_stats_debugfs@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vc4_bo_stats_debugfs@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, #0
	bl	_vc4_debugfs_add_file
	add	x20, x19, #4
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	add	x0, x19, #8
Lloh12:
	adrp	x8, _vc4_bo_cache_time_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vc4_bo_cache_time_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh15:
	adrp	x8, _vc4_bo_cache_time_timer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _vc4_bo_cache_time_timer@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VC4_BO_TYPE_COUNT,4,2          ; @VC4_BO_TYPE_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bo_type_names,8,3              ; @bo_type_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bo_stats"

	.comm	_vc4_bo_stats_debugfs,4,2       ; @vc4_bo_stats_debugfs
	.comm	_vc4_bo_cache_time_work,4,2     ; @vc4_bo_cache_time_work
	.comm	_vc4_bo_cache_time_timer,4,2    ; @vc4_bo_cache_time_timer
.subsections_via_symbols
