	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svp_create                     ## -- Begin function svp_create
	.p2align	4, 0x90
_svp_create:                            ## @svp_create
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	testq	%rdi, %rdi
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rdi, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	movl	4(%rbx), %edi
	callq	_vcos_assert
	movl	(%rbx), %edi
	callq	_vcos_assert
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	movl	$88, %esi
	callq	_vcos_calloc
	movq	%rax, %r13
	testq	%rax, %rax
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r14
	movq	%r14, %rax
	cmoveq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_CHECK_STATUS
	movl	(%r15), %eax
	movl	%eax, 84(%r13)
	movq	(%rbx), %rax
	movq	%rax, 76(%r13)
	leaq	72(%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_vcos_semaphore_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rbx
	movq	%rbx, %rax
	cmoveq	%r14, %rax
	movq	(%rax), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_CHECK_STATUS
	movq	_SVP_CREATED_SEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r13)
	leaq	68(%r13), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_vcos_mutex_create
	cmpq	(%r15), %rax
	movq	%rbx, %rax
	cmoveq	%r14, %rax
	movq	(%rax), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_CHECK_STATUS
	movq	_SVP_CREATED_MUTEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r13)
	leaq	64(%r13), %rdi
	movq	_svp_timer_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rcx
	callq	_vcos_timer_create
	cmpq	(%r15), %rax
	movq	%rbx, %rax
	cmoveq	%r14, %rax
	movq	(%rax), %rdi
	leaq	L_.str.9(%rip), %rbx
	movq	%rbx, %rsi
	callq	_CHECK_STATUS
	movq	_SVP_CREATED_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r13)
	leaq	60(%r13), %rdi
	movq	_svp_watchdog_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rcx
	callq	_vcos_timer_create
	cmpq	(%r15), %rax
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	cmoveq	%r14, %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_CHECK_STATUS
	movq	_SVP_CREATED_WD_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r13)
	movups	%xmm0, 24(%r13)
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	leaq	48(%r13), %rbx
	movq	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mmal_component_create
	leaq	L_.str.11(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	(%rbx), %rdi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rsi
	callq	_svp_setup_reader
	cmpq	(%r14), %rax
	jne	LBB0_13
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%r13), %rbx
	movq	48(%r13), %rdi
	callq	_mmal_component_enable
	leaq	L_.str.12(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	48(%r13), %rax
	movl	16(%rax), %esi
	movq	_svp_bh_control_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_svp_port_enable
	leaq	L_.str.13(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mmal_component_create
	leaq	L_.str.14(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	40(%r13), %r12
	movq	8(%r12), %rax
	movq	(%rax), %r15
	movq	%r12, %rdi
	callq	_mmal_component_enable
	leaq	L_.str.15(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movl	16(%r12), %esi
	movq	_svp_bh_control_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_svp_port_enable
	leaq	L_.str.16(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	jmp	LBB0_4
LBB0_3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r13), %rsi
	movq	_MMAL_COMPONENT_DEFAULT_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mmal_component_create
	leaq	L_.str.17(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	32(%r13), %rdi
	callq	_mmal_component_enable
	leaq	L_.str.18(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	32(%r13), %rax
	movl	16(%rax), %esi
	movq	_svp_bh_control_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_svp_port_enable
	leaq	L_.str.19(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	32(%r13), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r15
	xorl	%r12d, %r12d
LBB0_4:
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set_boolean
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rax
LBB0_6:
	leaq	L_.str.20(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.7:
	leaq	24(%r13), %rdi
	movq	-56(%rbp), %rsi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	_MMAL_CONNECTION_FLAG_TUNNELLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mmal_connection_create
	leaq	L_.str.21(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	_MMAL_ENCODING_OPAQUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, 16(%rcx)
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	callq	_svp_destroy
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_8:
	movq	_MMAL_ENCODING_OPAQUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, 16(%rcx)
	movq	(%rcx), %rax
	movq	8(%rcx), %rbx
	movq	_MMAL_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %r12
	jne	LBB0_9
## %bb.10:
	movq	%r14, %rax
	jmp	LBB0_11
LBB0_9:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rdi
	leaq	L_.str.22(%rip), %rsi
	callq	_CHECK_STATUS
	movq	_SVP_CAMERA_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_SVP_CAMERA_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	%eax, 20(%rbx)
	movl	%ecx, 16(%rbx)
	movq	_SVP_CAMERA_FRAMERATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
LBB0_12:
	movq	%r15, %rdi
	callq	_mmal_port_format_commit
	leaq	L_.str.23(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movl	%esi, 4(%r15)
	movl	%edx, (%r15)
	movq	%r15, %rdi
	callq	_mmal_port_pool_create
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	movq	%r14, %rax
	cmoveq	%r12, %rax
	movq	(%rax), %rdi
	leaq	L_.str.24(%rip), %rsi
	callq	_CHECK_STATUS
	xorl	%eax, %eax
	callq	_mmal_queue_create
	testq	%r13, %r13
	movl	%eax, 8(%r13)
	cmoveq	%r12, %r14
	movq	(%r14), %rdi
	leaq	L_.str.25(%rip), %rsi
	callq	_CHECK_STATUS
	movq	%r15, (%r13)
LBB0_14:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Creating player for %s"

L_.str.1:                               ## @.str.1
	.asciz	"camera preview"

L_.str.2:                               ## @.str.2
	.asciz	"svp"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate context"

L_.str.4:                               ## @.str.4
	.asciz	"svp-sem"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
L_.str.5:                               ## @.str.5
	.asciz	"Failed to create semaphore"

	.comm	_SVP_CREATED_SEM,4,2            ## @SVP_CREATED_SEM
L_.str.6:                               ## @.str.6
	.asciz	"svp-mutex"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to create mutex"

	.comm	_SVP_CREATED_MUTEX,4,2          ## @SVP_CREATED_MUTEX
L_.str.8:                               ## @.str.8
	.asciz	"svp-timer"

	.comm	_svp_timer_cb,4,2               ## @svp_timer_cb
L_.str.9:                               ## @.str.9
	.asciz	"Failed to create timer"

	.comm	_SVP_CREATED_TIMER,4,2          ## @SVP_CREATED_TIMER
L_.str.10:                              ## @.str.10
	.asciz	"svp-wd-timer"

	.comm	_svp_watchdog_cb,4,2            ## @svp_watchdog_cb
	.comm	_SVP_CREATED_WD_TIMER,4,2       ## @SVP_CREATED_WD_TIMER
	.comm	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER,4,2 ## @MMAL_COMPONENT_DEFAULT_CONTAINER_READER
L_.str.11:                              ## @.str.11
	.asciz	"Failed to create container reader"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to enable container reader"

	.comm	_svp_bh_control_cb,4,2          ## @svp_bh_control_cb
L_.str.13:                              ## @.str.13
	.asciz	"Failed to enable container reader control port"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER,4,2 ## @MMAL_COMPONENT_DEFAULT_VIDEO_DECODER
L_.str.14:                              ## @.str.14
	.asciz	"Failed to create video decoder"

L_.str.15:                              ## @.str.15
	.asciz	"Failed to enable video decoder"

L_.str.16:                              ## @.str.16
	.asciz	"Failed to enable video decoder control port"

	.comm	_MMAL_COMPONENT_DEFAULT_CAMERA,4,2 ## @MMAL_COMPONENT_DEFAULT_CAMERA
L_.str.17:                              ## @.str.17
	.asciz	"Failed to create camera"

L_.str.18:                              ## @.str.18
	.asciz	"Failed to enable camera"

L_.str.19:                              ## @.str.19
	.asciz	"Failed to enable camera control port"

	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ## @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_TRUE,4,2                  ## @MMAL_TRUE
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.20:                              ## @.str.20
	.asciz	"Failed to enable zero copy"

	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ## @MMAL_CONNECTION_FLAG_TUNNELLING
L_.str.21:                              ## @.str.21
	.asciz	"Failed to create connection"

	.comm	_MMAL_ENCODING_OPAQUE,4,2       ## @MMAL_ENCODING_OPAQUE
	.comm	_MMAL_ES_TYPE_VIDEO,8,3         ## @MMAL_ES_TYPE_VIDEO
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
L_.str.22:                              ## @.str.22
	.asciz	"Output port isn't video format"

	.comm	_SVP_CAMERA_WIDTH,4,2           ## @SVP_CAMERA_WIDTH
	.comm	_SVP_CAMERA_HEIGHT,4,2          ## @SVP_CAMERA_HEIGHT
	.comm	_SVP_CAMERA_FRAMERATE,4,2       ## @SVP_CAMERA_FRAMERATE
L_.str.23:                              ## @.str.23
	.asciz	"Failed to set output port format"

L_.str.24:                              ## @.str.24
	.asciz	"Error allocating pool"

L_.str.25:                              ## @.str.25
	.asciz	"Error allocating queue"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svp_create                     ; -- Begin function svp_create
	.p2align	2
_svp_create:                            ; @svp_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x8, x0, eq
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	ldr	w0, [x22, #4]
	bl	_vcos_assert
	ldr	w0, [x22]
	bl	_vcos_assert
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	w1, #88
	bl	_vcos_calloc
	mov	x19, x0
Lloh6:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	adrp	x25, _MMAL_ENOMEM@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MMAL_ENOMEM@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x25, x24, eq
	ldr	x0, [x8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_STATUS
	ldr	w8, [x21]
	str	w8, [x19, #84]
	ldr	x8, [x22]
	stur	x8, [x19, #76]
	add	x0, x19, #72
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #0
	bl	_vcos_semaphore_create
Lloh14:
	adrp	x22, _VCOS_SUCCESS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	csel	x8, x24, x25, eq
	ldr	x0, [x8]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_CHECK_STATUS
Lloh18:
	adrp	x8, _SVP_CREATED_SEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SVP_CREATED_SEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
	add	x0, x19, #68
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_vcos_mutex_create
	ldr	x8, [x22]
	cmp	x0, x8
	csel	x8, x24, x25, eq
	ldr	x0, [x8]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_CHECK_STATUS
Lloh25:
	adrp	x8, _SVP_CREATED_MUTEX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SVP_CREATED_MUTEX@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
	add	x0, x19, #64
Lloh28:
	adrp	x8, _svp_timer_cb@GOTPAGE
Lloh29:
	ldr	x8, [x8, _svp_timer_cb@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x3, x19
	bl	_vcos_timer_create
	ldr	x8, [x22]
	cmp	x0, x8
	csel	x8, x24, x25, eq
	ldr	x0, [x8]
Lloh33:
	adrp	x21, l_.str.9@PAGE
Lloh34:
	add	x21, x21, l_.str.9@PAGEOFF
	mov	x1, x21
	bl	_CHECK_STATUS
Lloh35:
	adrp	x8, _SVP_CREATED_TIMER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SVP_CREATED_TIMER@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
	add	x0, x19, #60
Lloh38:
	adrp	x8, _svp_watchdog_cb@GOTPAGE
Lloh39:
	ldr	x8, [x8, _svp_watchdog_cb@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x3, x19
	bl	_vcos_timer_create
	ldr	x8, [x22]
	cmp	x0, x8
	csel	x8, x24, x25, eq
	ldr	x0, [x8]
	mov	x1, x21
	bl	_CHECK_STATUS
Lloh43:
	adrp	x8, _SVP_CREATED_WD_TIMER@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SVP_CREATED_WD_TIMER@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
	movi.2d	v0, #0000000000000000
	mov	x22, x19
	str	q0, [x22, #40]!
	mov	x21, x19
	str	q0, [x21, #24]!
	cbz	x20, LBB0_3
; %bb.1:
	add	x23, x19, #48
Lloh46:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_mmal_component_create
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x0, [x23]
	add	x2, sp, #8
	mov	x1, x20
	bl	_svp_setup_reader
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	x0, [x19, #48]
	bl	_mmal_component_enable
Lloh51:
	adrp	x1, l_.str.12@PAGE
Lloh52:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [x19, #48]
	ldr	w1, [x8, #16]
Lloh53:
	adrp	x26, _svp_bh_control_cb@GOTPAGE
Lloh54:
	ldr	x26, [x26, _svp_bh_control_cb@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_svp_port_enable
Lloh55:
	adrp	x1, l_.str.13@PAGE
Lloh56:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_CHECK_STATUS
Lloh57:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_mmal_component_create
Lloh60:
	adrp	x1, l_.str.14@PAGE
Lloh61:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x23, [x19, #40]
	ldr	x8, [x23, #8]
	ldr	x22, [x8]
	mov	x0, x23
	bl	_mmal_component_enable
Lloh62:
	adrp	x1, l_.str.15@PAGE
Lloh63:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_CHECK_STATUS
	ldr	w1, [x23, #16]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_svp_port_enable
Lloh64:
	adrp	x1, l_.str.16@PAGE
Lloh65:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_CHECK_STATUS
	b	LBB0_4
LBB0_3:
	add	x1, x19, #32
Lloh66:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CAMERA@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CAMERA@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
	bl	_mmal_component_create
Lloh69:
	adrp	x1, l_.str.17@PAGE
Lloh70:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x0, [x19, #32]
	bl	_mmal_component_enable
Lloh71:
	adrp	x1, l_.str.18@PAGE
Lloh72:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #16]
Lloh73:
	adrp	x8, _svp_bh_control_cb@GOTPAGE
Lloh74:
	ldr	x8, [x8, _svp_bh_control_cb@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_svp_port_enable
Lloh76:
	adrp	x1, l_.str.19@PAGE
Lloh77:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_CHECK_STATUS
	mov	x23, #0
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	ldr	x22, [x8]
LBB0_4:
Lloh78:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh82:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_mmal_port_parameter_set_boolean
Lloh84:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
	ldr	x9, [x24]
	cmp	x0, x8
	csel	x0, x9, x0, eq
Lloh87:
	adrp	x1, l_.str.20@PAGE
Lloh88:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_CHECK_STATUS
	cbz	x20, LBB0_7
; %bb.5:
	ldr	x1, [sp, #8]
	ldr	x8, [x23]
	ldr	w2, [x8]
Lloh89:
	adrp	x8, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGE
Lloh90:
	ldr	x8, [x8, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGEOFF]
Lloh91:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_mmal_connection_create
Lloh92:
	adrp	x1, l_.str.21@PAGE
Lloh93:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_CHECK_STATUS
Lloh94:
	adrp	x8, _MMAL_ENCODING_OPAQUE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _MMAL_ENCODING_OPAQUE@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	ldr	x9, [x22, #16]
	str	w8, [x9, #16]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_svp_destroy
	mov	x19, #0
	b	LBB0_9
LBB0_7:
Lloh97:
	adrp	x8, _MMAL_ENCODING_OPAQUE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _MMAL_ENCODING_OPAQUE@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	ldr	x9, [x22, #16]
	str	w8, [x9, #16]
	ldp	x8, x20, [x9]
Lloh100:
	adrp	x9, _MMAL_ES_TYPE_VIDEO@GOTPAGE
Lloh101:
	ldr	x9, [x9, _MMAL_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
Lloh103:
	adrp	x10, _MMAL_EINVAL@GOTPAGE
Lloh104:
	ldr	x10, [x10, _MMAL_EINVAL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x24, x10, eq
	ldr	x0, [x8]
Lloh105:
	adrp	x1, l_.str.22@PAGE
Lloh106:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_CHECK_STATUS
Lloh107:
	adrp	x8, _SVP_CAMERA_WIDTH@GOTPAGE
Lloh108:
	ldr	x8, [x8, _SVP_CAMERA_WIDTH@GOTPAGEOFF]
Lloh109:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh110:
	adrp	x9, _SVP_CAMERA_HEIGHT@GOTPAGE
Lloh111:
	ldr	x9, [x9, _SVP_CAMERA_HEIGHT@GOTPAGEOFF]
Lloh112:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	stp	xzr, xzr, [x20, #24]
	stp	w9, w8, [x20, #16]
Lloh113:
	adrp	x8, _SVP_CAMERA_FRAMERATE@GOTPAGE
Lloh114:
	ldr	x8, [x8, _SVP_CAMERA_FRAMERATE@GOTPAGEOFF]
Lloh115:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x20]
LBB0_8:
	mov	x0, x22
	bl	_mmal_port_format_commit
Lloh116:
	adrp	x1, l_.str.23@PAGE
Lloh117:
	add	x1, x1, l_.str.23@PAGEOFF
	bl	_CHECK_STATUS
	ldp	w2, w1, [x22, #8]
	stp	w2, w1, [x22]
	mov	x0, x22
	bl	_mmal_port_pool_create
	str	x0, [x19, #16]
	cmp	x0, #0
	csel	x8, x25, x24, eq
	ldr	x0, [x8]
Lloh118:
	adrp	x1, l_.str.24@PAGE
Lloh119:
	add	x1, x1, l_.str.24@PAGEOFF
	bl	_CHECK_STATUS
	bl	_mmal_queue_create
	str	w0, [x19, #8]
	cmp	x19, #0
	csel	x8, x25, x24, eq
	ldr	x0, [x8]
Lloh120:
	adrp	x1, l_.str.25@PAGE
Lloh121:
	add	x1, x1, l_.str.25@PAGEOFF
	bl	_CHECK_STATUS
	str	x22, [x19]
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpAdd	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating player for %s"

l_.str.1:                               ; @.str.1
	.asciz	"camera preview"

l_.str.2:                               ; @.str.2
	.asciz	"svp"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate context"

l_.str.4:                               ; @.str.4
	.asciz	"svp-sem"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"Failed to create semaphore"

	.comm	_SVP_CREATED_SEM,4,2            ; @SVP_CREATED_SEM
l_.str.6:                               ; @.str.6
	.asciz	"svp-mutex"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to create mutex"

	.comm	_SVP_CREATED_MUTEX,4,2          ; @SVP_CREATED_MUTEX
l_.str.8:                               ; @.str.8
	.asciz	"svp-timer"

	.comm	_svp_timer_cb,4,2               ; @svp_timer_cb
l_.str.9:                               ; @.str.9
	.asciz	"Failed to create timer"

	.comm	_SVP_CREATED_TIMER,4,2          ; @SVP_CREATED_TIMER
l_.str.10:                              ; @.str.10
	.asciz	"svp-wd-timer"

	.comm	_svp_watchdog_cb,4,2            ; @svp_watchdog_cb
	.comm	_SVP_CREATED_WD_TIMER,4,2       ; @SVP_CREATED_WD_TIMER
	.comm	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER,4,2 ; @MMAL_COMPONENT_DEFAULT_CONTAINER_READER
l_.str.11:                              ; @.str.11
	.asciz	"Failed to create container reader"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to enable container reader"

	.comm	_svp_bh_control_cb,4,2          ; @svp_bh_control_cb
l_.str.13:                              ; @.str.13
	.asciz	"Failed to enable container reader control port"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER,4,2 ; @MMAL_COMPONENT_DEFAULT_VIDEO_DECODER
l_.str.14:                              ; @.str.14
	.asciz	"Failed to create video decoder"

l_.str.15:                              ; @.str.15
	.asciz	"Failed to enable video decoder"

l_.str.16:                              ; @.str.16
	.asciz	"Failed to enable video decoder control port"

	.comm	_MMAL_COMPONENT_DEFAULT_CAMERA,4,2 ; @MMAL_COMPONENT_DEFAULT_CAMERA
l_.str.17:                              ; @.str.17
	.asciz	"Failed to create camera"

l_.str.18:                              ; @.str.18
	.asciz	"Failed to enable camera"

l_.str.19:                              ; @.str.19
	.asciz	"Failed to enable camera control port"

	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ; @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_TRUE,4,2                  ; @MMAL_TRUE
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.20:                              ; @.str.20
	.asciz	"Failed to enable zero copy"

	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ; @MMAL_CONNECTION_FLAG_TUNNELLING
l_.str.21:                              ; @.str.21
	.asciz	"Failed to create connection"

	.comm	_MMAL_ENCODING_OPAQUE,4,2       ; @MMAL_ENCODING_OPAQUE
	.comm	_MMAL_ES_TYPE_VIDEO,8,3         ; @MMAL_ES_TYPE_VIDEO
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
l_.str.22:                              ; @.str.22
	.asciz	"Output port isn't video format"

	.comm	_SVP_CAMERA_WIDTH,4,2           ; @SVP_CAMERA_WIDTH
	.comm	_SVP_CAMERA_HEIGHT,4,2          ; @SVP_CAMERA_HEIGHT
	.comm	_SVP_CAMERA_FRAMERATE,4,2       ; @SVP_CAMERA_FRAMERATE
l_.str.23:                              ; @.str.23
	.asciz	"Failed to set output port format"

l_.str.24:                              ; @.str.24
	.asciz	"Error allocating pool"

l_.str.25:                              ; @.str.25
	.asciz	"Error allocating queue"

.subsections_via_symbols
