	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_entity_init               ## -- Begin function vsp1_entity_init
	.p2align	4, 0x90
_vsp1_entity_init:                      ## @vsp1_entity_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_vsp1_routes@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	(%rdi,%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi,%rbx), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_2
## %bb.5:
	addq	%rbx, %rdi
	movq	%rdi, 88(%r15)
	jmp	LBB0_7
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jne	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_9:
	leaq	80(%r15), %rdi
	callq	_mutex_init
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 72(%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leal	-1(%rsi), %r12d
	movl	%r12d, 16(%r15)
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_35
## %bb.10:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.11:
	cmpl	$4, %r12d
	jb	LBB0_12
## %bb.13:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rdx
	leaq	8(%rdx), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_16
## %bb.14:
	leaq	(%rax,%r14,8), %rcx
	cmpq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rcx
	jbe	LBB0_16
LBB0_12:
	xorl	%ecx, %ecx
LBB0_22:
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r14, %rdx
	movq	%r14, %rsi
	movq	%rbx, %r8
	andq	$3, %rsi
	je	LBB0_25
## %bb.23:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	movq	%rbx, (%rax,%rcx,8)
	incq	%rcx
	decq	%rsi
	jne	LBB0_24
LBB0_25:
	cmpq	$3, %rdx
	movq	%r8, %rbx
	jb	LBB0_28
## %bb.26:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, (%rax,%rcx,8)
	movq	(%rdx), %rsi
	movq	%rsi, 8(%rax,%rcx,8)
	movq	(%rdx), %rsi
	movq	%rsi, 16(%rax,%rcx,8)
	movq	(%rdx), %rsi
	movq	%rsi, 24(%rax,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r14
	jne	LBB0_27
	jmp	LBB0_28
LBB0_16:
	movq	%rbx, %r8
	movl	%r14d, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_39
## %bb.17:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movq	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm0, 16(%rax,%rdi,8)
	movdqu	%xmm0, 32(%rax,%rdi,8)
	movdqu	%xmm0, 48(%rax,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_18
## %bb.19:
	testb	$1, %bl
	je	LBB0_21
LBB0_20:
	movq	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm0, 16(%rax,%rdi,8)
LBB0_21:
	cmpq	%r14, %rcx
	movq	%r8, %rbx
	jne	LBB0_22
LBB0_28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_max
	movl	(%rbx), %ecx
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_35
## %bb.29:
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_31
## %bb.30:
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
LBB0_32:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	56(%r15), %rdx
	movq	%rax, (%rdx,%r14,8)
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_38
## %bb.33:
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_v4l2_subdev_init
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%r15)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	4(%rcx), %rax
	movq	%rax, 24(%r15)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%r15)
	movl	40(%r15), %r14d
	movl	(%rcx), %edi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	movq	%rbx, %r8
	callq	_snprintf
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vsp1_entity_init_cfg
	movq	%r12, %rdi
	callq	_v4l2_subdev_alloc_pad_config
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	jne	LBB0_37
## %bb.34:
	movq	%r12, %rdi
	callq	_media_entity_cleanup
LBB0_35:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_36:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_37:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movl	%eax, %r14d
	jmp	LBB0_37
LBB0_39:
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_vsp1_routes,8,3                ## @vsp1_routes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MEDIA_PAD_FL_SINK,8,3          ## @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ## @MEDIA_PAD_FL_SOURCE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_entity_init               ; -- Begin function vsp1_entity_init
	.p2align	2
_vsp1_entity_init:                      ; @vsp1_entity_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _vsp1_routes@GOTPAGE
Lloh1:
	ldr	x25, [x25, _vsp1_routes@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.1:
	mov	x27, #0
	mov	x26, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	add	x27, x27, #16
	cmp	x26, w0, uxtw
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	x8, [x0, x27]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x27
	ldr	x9, [x8, #8]
	ldr	x10, [x19, #8]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:
	str	x8, [x19, #88]
	b	LBB0_7
LBB0_6:
	mov	w26, #0
LBB0_7:
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w26, w0
	b.ne	LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_9:
	add	x0, x19, #80
	bl	_mutex_init
	str	x22, [x19, #72]
	sub	w25, w24, #1
	str	w25, [x19, #16]
	ldr	w0, [x22]
Lloh4:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x1, x24
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_24
; %bb.10:
Lloh6:
	adrp	x28, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
	cbz	w25, LBB0_19
; %bb.11:
	cmp	w25, #8
	b.lo	LBB0_16
; %bb.12:
	add	x8, x0, x25, lsl #3
	add	x9, x28, #8
	cmp	x0, x9
	ccmp	x8, x28, #0, lo
	b.hi	LBB0_16
; %bb.13:
	and	x8, x25, #0xfffffff8
	ld1r.2d	{ v0 }, [x28]
	add	x9, x0, #32
	mov	x10, x8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x9, #-32]
	stp	q0, q0, [x9], #64
	subs	x10, x10, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x8, x25
	b.ne	LBB0_17
	b	LBB0_19
LBB0_16:
	mov	x8, #0
LBB0_17:
	add	x9, x0, x8, lsl #3
	sub	x8, x25, x8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x28]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_18
LBB0_19:
	ldr	w26, [x22]
	mov	x0, x25
	mov	w1, #1
	bl	_max
	mov	x1, x0
	ldr	w3, [x27]
	mov	x0, x26
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_24
; %bb.20:
Lloh8:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
	cmp	w24, #1
	csel	x8, x8, x28, hi
	ldr	x8, [x8]
	ldr	x2, [x19, #56]
	str	x8, [x2, w25, uxtw #3]
	add	x25, x19, #24
	mov	x0, x25
	mov	x1, x24
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_26
; %bb.21:
	mov	x0, x25
	mov	x1, x23
	bl	_v4l2_subdev_init
	str	w21, [x19, #32]
	ldr	w0, [x22], #4
Lloh10:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
	str	x22, [x19, #24]
Lloh12:
	ldr	w8, [x8]
	ldp	w21, w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #44]
	bl	_dev_name
	mov	x3, x0
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	mov	x4, x20
	bl	_snprintf
	mov	x0, x25
	mov	x1, #0
	bl	_vsp1_entity_init_cfg
	mov	x0, x25
	bl	_v4l2_subdev_alloc_pad_config
	str	x0, [x19, #48]
	cbz	x0, LBB0_23
; %bb.22:
	mov	w0, #0
	b	LBB0_26
LBB0_23:
	mov	x0, x25
	bl	_media_entity_cleanup
LBB0_24:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_vsp1_routes,8,3                ; @vsp1_routes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MEDIA_PAD_FL_SINK,8,3          ; @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ; @MEDIA_PAD_FL_SOURCE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s"

.subsections_via_symbols
