	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_drm_init                  ## -- Begin function vsp1_drm_init
	.p2align	4, 0x90
_vsp1_drm_init:                         ## @vsp1_drm_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	%rdi, %r15
	movl	48(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_mutex_init
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movl	$40, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movl	(%rax), %ecx
	addq	$48, %rbx
	cmpq	%rcx, %r12
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movq	(%rax), %r13
	leaq	(%rbx,%r13), %r14
	addq	$-24, %r14
	leaq	(%rbx,%r13), %rdi
	addq	$-32, %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	callq	_vsp1_pipeline_init
	movq	_vsp1_du_pipeline_frame_end@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13,%rbx)
	movq	32(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	movq	%rdi, -8(%r13,%rbx)
	movq	24(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	%rax, -16(%r13,%rbx)
	movq	%r14, 24(%rdi)
	movq	%rax, 16(%rdi)
	movq	$0, 8(%rdi)
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	-16(%r13,%rbx), %rdi
	movq	%r14, 8(%rdi)
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	8(%r15), %rax
	movl	4(%rax), %ecx
	cmpq	%rcx, %r12
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rcx, -40(%r13,%rbx)
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, 8(%rax)
	je	LBB0_8
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_INIT_LIST_HEAD
	incq	%rbx
	movq	8(%r15), %rax
	movl	8(%rax), %eax
	cmpq	%rax, %rbx
	jb	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vsp1_du_pipeline_frame_end,4,2 ## @vsp1_du_pipeline_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_drm_init                  ; -- Begin function vsp1_drm_init
	.p2align	2
_vsp1_drm_init:                         ; @vsp1_drm_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0, #48]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.1:
	add	x0, x0, #8
	bl	_mutex_init
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh3:
	adrp	x23, _vsp1_du_pipeline_frame_end@GOTPAGE
Lloh4:
	ldr	x23, [x23, _vsp1_du_pipeline_frame_end@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	w9, [x8]
	add	x21, x21, #48
	cmp	x22, x9
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x24, [x8]
	add	x25, x24, x21
	add	x20, x25, #16
	add	x0, x25, #8
	bl	_init_waitqueue_head
	mov	x0, x20
	bl	_vsp1_pipeline_init
	ldr	w8, [x23]
	str	w8, [x25, #40]
	lsl	x8, x22, #3
	ldp	x10, x9, [x19, #24]
	ldr	x0, [x9, x8]
	str	x0, [x25, #32]
	ldr	x8, [x10, x8]
	str	x8, [x25, #24]
	stp	x8, x20, [x0, #16]
	str	xzr, [x0, #8]
	mov	x1, x20
	bl	_list_add_tail
	ldr	x0, [x25, #24]
	str	x20, [x0, #8]
	mov	x1, x20
	bl	_list_add_tail
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
	cmp	x22, x9
	b.hs	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x22, lsl #3]
	str	x9, [x24, x21]
	b	LBB0_3
LBB0_6:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x20, lsl #3]
	bl	_INIT_LIST_HEAD
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #8]
	cmp	x20, x8
	b.lo	LBB0_8
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vsp1_du_pipeline_frame_end,4,2 ; @vsp1_du_pipeline_frame_end
.subsections_via_symbols
