	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function create_camera_component
LCPI0_0:
	.long	166                             ## 0xa6
	.long	1000                            ## 0x3e8
	.long	999                             ## 0x3e7
	.long	1000                            ## 0x3e8
LCPI0_1:
	.long	50                              ## 0x32
	.long	1000                            ## 0x3e8
	.long	166                             ## 0xa6
	.long	1000                            ## 0x3e8
LCPI0_2:
	.long	167                             ## 0xa7
	.long	1000                            ## 0x3e8
	.long	999                             ## 0x3e7
	.long	1000                            ## 0x3e8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_camera_component:               ## @create_camera_component
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	_MMAL_COMPONENT_DEFAULT_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_mmal_component_create
	movq	%rax, %r13
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	leaq	52(%r12), %r15
	movq	%r15, %rsi
	callq	_raspicamcontrol_set_stereo_mode
	movq	%rax, %r14
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rdi
	movq	%r15, %rsi
	callq	_raspicamcontrol_set_stereo_mode
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movq	16(%rax), %rdi
	movq	%r15, %rsi
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r14
	callq	_raspicamcontrol_set_stereo_mode
	movq	%rax, %r13
	addq	%rbx, %r13
	cmpq	(%r14), %r13
	jne	LBB0_4
## %bb.6:
	movq	_MMAL_PARAMETER_CAMERA_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -168(%rbp)
	movl	20(%r12), %eax
	movl	%eax, -164(%rbp)
	movq	$0, -160(%rbp)
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	leaq	-168(%rbp), %rsi
	callq	_mmal_port_parameter_set
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_9
## %bb.10:
	movq	(%rax), %rdi
	movq	_MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %edx
	callq	_mmal_port_parameter_set_uint32
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.12:
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movq	_MMAL_CAMERA_PREVIEW_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_MMAL_CAMERA_VIDEO_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movq	_MMAL_CAMERA_CAPTURE_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	_default_camera_control_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_port_enable
	cmpq	(%r14), %rax
	jne	LBB0_13
## %bb.14:
	leaq	48(%r12), %rbx
	movabsq	$12884901889, %rax              ## imm = 0x300000001
	movq	%rax, -104(%rbp)
	leaq	-96(%rbp), %rsi
	movl	$0, -96(%rbp)
	movl	56(%r12), %eax
	movl	%eax, -92(%rbp)
	movl	60(%r12), %eax
	movl	%eax, -88(%rbp)
	movq	_MMAL_PARAM_TIMESTAMP_MODE_RESET_STC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	$0, -80(%rbp)
	movl	$0, -72(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -68(%rbp)
	movl	12(%r12), %ecx
	movl	%ecx, -64(%rbp)
	movq	$0, -60(%rbp)
	cmpq	$0, 64(%r12)
	je	LBB0_16
## %bb.15:
	movl	%ecx, -88(%rbp)
	movl	%eax, -92(%rbp)
LBB0_16:
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	callq	_mmal_port_parameter_set
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_raspicamcontrol_set_all_parameters
	movq	8(%r15), %rcx
	movq	_MMAL_ENCODING_OPAQUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	movq	_MMAL_ENCODING_I420@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	(%rbx), %eax
	cmpl	$6000001, %eax                  ## imm = 0x5B8D81
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	jl	LBB0_18
## %bb.17:
	movq	_MMAL_PARAMETER_FPS_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [50,1000,166,1000]
	jmp	LBB0_20
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_vcos_log_error
	jmp	LBB0_41
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_9:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	movq	%rax, %r13
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_13:
	movq	%rax, %r13
	leaq	L_.str.5(%rip), %rdi
LBB0_5:
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_vcos_log_error
LBB0_41:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_45
## %bb.42:
	callq	_mmal_component_destroy
LBB0_45:
	movq	%r13, %rax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	cmpl	$1000001, %eax                  ## imm = 0xF4241
	jl	LBB0_21
## %bb.19:
	movq	_MMAL_PARAMETER_FPS_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [166,1000,999,1000]
LBB0_20:
	movups	%xmm0, -100(%rbp)
	movq	$0, -84(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set
LBB0_21:
	movq	64(%r12), %rax
	testq	%rax, %rax
	movq	_FULL_RES_PREVIEW_FRAME_RATE_NUM@GOTPCREL(%rip), %rcx
	cmoveq	_PREVIEW_FRAME_RATE_NUM@GOTPCREL(%rip), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	_FULL_RES_PREVIEW_FRAME_RATE_DEN@GOTPCREL(%rip), %rbx
	cmoveq	_PREVIEW_FRAME_RATE_DEN@GOTPCREL(%rip), %rbx
	leaq	56(%r12), %rcx
	leaq	8(%r12), %r15
	testq	%rax, %rax
	cmoveq	%rcx, %r15
	leaq	60(%r12), %rcx
	leaq	12(%r12), %r14
	testq	%rax, %rax
	cmoveq	%rcx, %r14
	movl	(%r14), %edi
	movl	$32, %esi
	callq	_VCOS_ALIGN_UP
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	(%r13), %rcx
	movq	%rax, 40(%rcx)
	movl	(%r15), %edi
	movl	$16, %esi
	callq	_VCOS_ALIGN_UP
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx)
	movl	(%r14), %eax
	movl	%eax, 12(%rcx)
	movl	(%r15), %eax
	movl	%eax, 8(%rcx)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_mmal_port_format_commit
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_22
## %bb.23:
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_mmal_format_full_copy
	movq	%rbx, %rdi
	callq	_mmal_port_format_commit
	cmpq	(%r15), %rax
	jne	LBB0_24
## %bb.25:
	movq	_VIDEO_OUTPUT_BUFFERS_NUM@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_27
## %bb.26:
	movq	%rax, (%rbx)
LBB0_27:
	movq	-144(%rbp), %r13                ## 8-byte Reload
	movq	8(%r13), %rbx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$6000001, %eax                  ## imm = 0x5B8D81
	jl	LBB0_29
## %bb.28:
	movq	_MMAL_PARAMETER_FPS_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [50,1000,166,1000]
	jmp	LBB0_31
LBB0_22:
	movq	%rax, %r13
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_2
LBB0_24:
	movq	%rax, %r13
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_2
LBB0_29:
	cmpl	$1000001, %eax                  ## imm = 0xF4241
	jl	LBB0_32
## %bb.30:
	movq	_MMAL_PARAMETER_FPS_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [167,1000,999,1000]
LBB0_31:
	movups	%xmm0, -100(%rbp)
	movq	$0, -84(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mmal_port_parameter_set
LBB0_32:
	movq	_MMAL_ENCODING_OPAQUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	12(%r12), %edi
	movl	$32, %esi
	callq	_VCOS_ALIGN_UP
	movq	(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movl	8(%r12), %edi
	movl	$16, %esi
	callq	_VCOS_ALIGN_UP
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx)
	movl	12(%r12), %eax
	movl	%eax, 12(%rcx)
	movl	8(%r12), %eax
	movl	%eax, 8(%rcx)
	movq	_STILLS_FRAME_RATE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_STILLS_FRAME_RATE_DEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	_mmal_port_format_commit
	cmpq	(%r15), %rax
	jne	LBB0_33
## %bb.34:
	movq	%r13, %rcx
	movq	(%r14), %rax
	cmpq	%rax, (%r13)
	jge	LBB0_36
## %bb.35:
	movq	%rax, (%rcx)
LBB0_36:
	movq	-48(%rbp), %rdi
	callq	_mmal_component_enable
	movq	%rax, %r13
	cmpq	(%r15), %rax
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	jne	LBB0_37
## %bb.38:
	cmpq	$0, 40(%r12)
	je	LBB0_43
## %bb.39:
	leaq	32(%r12), %rdi
	callq	_raspitex_configure_preview_port
	movq	%rax, %r13
	cmpq	(%r15), %rax
	jne	LBB0_40
LBB0_43:
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r12)
	cmpq	$0, (%r12)
	je	LBB0_45
## %bb.44:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_45
LBB0_33:
	movq	%rax, %r13
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_2
LBB0_37:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_2
LBB0_40:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_CAMERA,4,2 ## @MMAL_COMPONENT_DEFAULT_CAMERA
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create camera component"

L_.str.1:                               ## @.str.1
	.asciz	"Could not set stereo mode : error %d"

	.comm	_MMAL_PARAMETER_CAMERA_NUM,4,2  ## @MMAL_PARAMETER_CAMERA_NUM
L_.str.2:                               ## @.str.2
	.asciz	"Could not select camera : error %d"

	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"Camera doesn't have output ports"

	.comm	_MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG,4,2 ## @MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG
L_.str.4:                               ## @.str.4
	.asciz	"Could not set sensor mode : error %d"

	.comm	_MMAL_CAMERA_PREVIEW_PORT,8,3   ## @MMAL_CAMERA_PREVIEW_PORT
	.comm	_MMAL_CAMERA_VIDEO_PORT,8,3     ## @MMAL_CAMERA_VIDEO_PORT
	.comm	_MMAL_CAMERA_CAPTURE_PORT,8,3   ## @MMAL_CAMERA_CAPTURE_PORT
	.comm	_default_camera_control_callback,4,2 ## @default_camera_control_callback
L_.str.5:                               ## @.str.5
	.asciz	"Unable to enable control port : error %d"

	.comm	_MMAL_PARAM_TIMESTAMP_MODE_RESET_STC,4,2 ## @MMAL_PARAM_TIMESTAMP_MODE_RESET_STC
	.comm	_MMAL_ENCODING_OPAQUE,8,3       ## @MMAL_ENCODING_OPAQUE
	.comm	_MMAL_ENCODING_I420,4,2         ## @MMAL_ENCODING_I420
	.comm	_MMAL_PARAMETER_FPS_RANGE,4,2   ## @MMAL_PARAMETER_FPS_RANGE
	.comm	_FULL_RES_PREVIEW_FRAME_RATE_NUM,4,2 ## @FULL_RES_PREVIEW_FRAME_RATE_NUM
	.comm	_FULL_RES_PREVIEW_FRAME_RATE_DEN,4,2 ## @FULL_RES_PREVIEW_FRAME_RATE_DEN
	.comm	_PREVIEW_FRAME_RATE_NUM,4,2     ## @PREVIEW_FRAME_RATE_NUM
	.comm	_PREVIEW_FRAME_RATE_DEN,4,2     ## @PREVIEW_FRAME_RATE_DEN
L_.str.6:                               ## @.str.6
	.asciz	"camera viewfinder format couldn't be set"

L_.str.7:                               ## @.str.7
	.asciz	"camera video format couldn't be set"

	.comm	_VIDEO_OUTPUT_BUFFERS_NUM,8,3   ## @VIDEO_OUTPUT_BUFFERS_NUM
	.comm	_STILLS_FRAME_RATE_NUM,4,2      ## @STILLS_FRAME_RATE_NUM
	.comm	_STILLS_FRAME_RATE_DEN,4,2      ## @STILLS_FRAME_RATE_DEN
L_.str.8:                               ## @.str.8
	.asciz	"camera still format couldn't be set"

L_.str.9:                               ## @.str.9
	.asciz	"camera component couldn't be enabled"

	.comm	_stderr,4,2                     ## @stderr
L_.str.10:                              ## @.str.10
	.asciz	"Failed to configure preview port for GL rendering"

L_.str.11:                              ## @.str.11
	.asciz	"Camera component done\n"

	.comm	_MMAL_PARAMETER_CAMERA_CONFIG,4,2 ## @MMAL_PARAMETER_CAMERA_CONFIG
	.no_dead_strip	_create_camera_component
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function create_camera_component
lCPI0_0:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	166                             ; 0xa6
	.long	1000                            ; 0x3e8
	.long	999                             ; 0x3e7
	.long	1000                            ; 0x3e8
lCPI0_2:
	.long	50                              ; 0x32
	.long	1000                            ; 0x3e8
	.long	166                             ; 0xa6
	.long	1000                            ; 0x3e8
lCPI0_3:
	.long	167                             ; 0xa7
	.long	1000                            ; 0x3e8
	.long	999                             ; 0x3e7
	.long	1000                            ; 0x3e8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_create_camera_component:               ; @create_camera_component
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x0
	str	xzr, [sp, #88]
Lloh0:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CAMERA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CAMERA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #88
	bl	_mmal_component_create
Lloh3:
	adrp	x26, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [sp, #88]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	add	x20, x19, #52
	mov	x1, x20
	bl	_raspicamcontrol_set_stereo_mode
	mov	x21, x0
	ldr	x8, [sp, #88]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #8]
	mov	x1, x20
	bl	_raspicamcontrol_set_stereo_mode
	add	x21, x0, x21
	ldr	x8, [sp, #88]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #16]
	mov	x1, x20
	bl	_raspicamcontrol_set_stereo_mode
	ldr	x8, [x26]
	add	x22, x21, x0
	cmp	x22, x8
	b.ne	LBB0_11
; %bb.2:
Lloh5:
	adrp	x8, _MMAL_PARAMETER_CAMERA_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_CAMERA_NUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	stp	w8, w9, [sp, #72]
	str	xzr, [sp, #80]
	ldr	x8, [sp, #88]
	ldr	x0, [x8]
	add	x1, sp, #72
	bl	_mmal_port_parameter_set
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [sp, #88]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_13
; %bb.4:
	ldr	x0, [x8]
Lloh8:
	adrp	x8, _MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	bl	_mmal_port_parameter_set_uint32
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.5:
	ldr	x8, [sp, #88]
Lloh11:
	adrp	x9, _MMAL_CAMERA_PREVIEW_PORT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MMAL_CAMERA_PREVIEW_PORT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldp	x0, x10, [x8]
	ldr	x20, [x10, x9, lsl #3]
Lloh14:
	adrp	x8, _MMAL_CAMERA_VIDEO_PORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMAL_CAMERA_VIDEO_PORT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x23, [x10, x8, lsl #3]
Lloh17:
	adrp	x8, _MMAL_CAMERA_CAPTURE_PORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMAL_CAMERA_CAPTURE_PORT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x21, [x10, x8, lsl #3]
Lloh20:
	adrp	x8, _default_camera_control_callback@GOTPAGE
Lloh21:
	ldr	x8, [x8, _default_camera_control_callback@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_mmal_port_enable
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.6:
	add	x24, x19, #48
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	add	x8, sp, #16
	add	x1, x8, #8
	str	wzr, [sp, #24]
	ldr	d0, [x19, #56]
Lloh25:
	adrp	x8, _MMAL_PARAM_TIMESTAMP_MODE_RESET_STC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MMAL_PARAM_TIMESTAMP_MODE_RESET_STC@GOTPAGEOFF]
	stur	d0, [sp, #28]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	str	xzr, [sp, #40]
	ldp	w8, w9, [x19, #8]
	stp	wzr, w8, [sp, #48]
	str	w9, [sp, #56]
	stur	xzr, [sp, #60]
	ldr	x10, [x19, #64]
	cbz	x10, LBB0_8
; %bb.7:
	stp	w8, w9, [sp, #28]
LBB0_8:
	mov	w22, #36224
	movk	w22, #91, lsl #16
	ldr	x8, [sp, #88]
	ldr	x0, [x8]
	bl	_mmal_port_parameter_set
	ldr	x0, [sp, #88]
	mov	x1, x24
	bl	_raspicamcontrol_set_all_parameters
	ldr	x25, [x20, #8]
Lloh28:
	adrp	x8, _MMAL_ENCODING_OPAQUE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MMAL_ENCODING_OPAQUE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x25, #8]
Lloh31:
	adrp	x8, _MMAL_ENCODING_I420@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MMAL_ENCODING_I420@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x25, #16]
	ldr	w8, [x24]
	cmp	w8, w22
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b.le	LBB0_16
; %bb.9:
Lloh34:
	adrp	x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh37:
	adrp	x8, lCPI0_2@PAGE
Lloh38:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_18
LBB0_10:
	mov	x22, x0
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_40
LBB0_11:
	str	x22, [sp]
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_40
LBB0_12:
	mov	x22, x0
	str	x0, [sp]
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_40
LBB0_13:
Lloh45:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh47:
	ldr	x22, [x8]
Lloh48:
	adrp	x0, l_.str.3@PAGE
Lloh49:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_40
LBB0_14:
	mov	x22, x0
	str	x0, [sp]
Lloh50:
	adrp	x0, l_.str.4@PAGE
Lloh51:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_40
LBB0_15:
	mov	x22, x0
	str	x0, [sp]
Lloh52:
	adrp	x0, l_.str.5@PAGE
Lloh53:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_40
LBB0_16:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	cmp	w8, w9
	b.le	LBB0_19
; %bb.17:
Lloh54:
	adrp	x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh57:
	adrp	x8, lCPI0_1@PAGE
Lloh58:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
LBB0_18:
	stur	q0, [sp, #20]
	stur	xzr, [sp, #36]
	add	x1, sp, #16
	mov	x0, x20
	bl	_mmal_port_parameter_set
LBB0_19:
	ldr	x8, [x19, #64]
	mov	w9, #12
	mov	w10, #60
	cmp	x8, #0
	csel	x22, x10, x9, eq
	mov	w8, #8
	mov	w9, #56
	csel	x27, x9, x8, eq
	ldr	w0, [x19, x22]
Lloh59:
	adrp	x8, _PREVIEW_FRAME_RATE_NUM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _PREVIEW_FRAME_RATE_NUM@GOTPAGEOFF]
Lloh61:
	adrp	x9, _FULL_RES_PREVIEW_FRAME_RATE_NUM@GOTPAGE
Lloh62:
	ldr	x9, [x9, _FULL_RES_PREVIEW_FRAME_RATE_NUM@GOTPAGEOFF]
Lloh63:
	adrp	x10, _PREVIEW_FRAME_RATE_DEN@GOTPAGE
Lloh64:
	ldr	x10, [x10, _PREVIEW_FRAME_RATE_DEN@GOTPAGEOFF]
	csel	x28, x8, x9, eq
Lloh65:
	adrp	x8, _FULL_RES_PREVIEW_FRAME_RATE_DEN@GOTPAGE
Lloh66:
	ldr	x8, [x8, _FULL_RES_PREVIEW_FRAME_RATE_DEN@GOTPAGEOFF]
	csel	x21, x10, x8, eq
	mov	w1, #32
	bl	_VCOS_ALIGN_UP
	ldr	x8, [x25]
	str	x0, [x8, #40]
	ldr	w0, [x19, x27]
	mov	w1, #16
	bl	_VCOS_ALIGN_UP
	ldr	x8, [x25]
	stp	xzr, x0, [x8, #24]
	str	xzr, [x8, #16]
	ldr	w9, [x19, x22]
	str	w9, [x8, #12]
	ldr	w9, [x19, x27]
	str	w9, [x8, #8]
	ldr	w9, [x28]
	str	w9, [x8, #4]
	ldr	w9, [x21]
	str	w9, [x8]
	mov	x0, x20
	bl	_mmal_port_format_commit
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.20:
	ldr	x0, [x23, #8]
	mov	x1, x25
	bl	_mmal_format_full_copy
	mov	x0, x23
	bl	_mmal_port_format_commit
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.21:
	ldr	x9, [x23]
Lloh67:
	adrp	x25, _VIDEO_OUTPUT_BUFFERS_NUM@GOTPAGE
Lloh68:
	ldr	x25, [x25, _VIDEO_OUTPUT_BUFFERS_NUM@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x9, x8
	b.ge	LBB0_23
; %bb.22:
	str	x8, [x23]
LBB0_23:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x22, [x21, #8]
	ldr	w8, [x24]
	mov	w9, #36224
	movk	w9, #91, lsl #16
	cmp	w8, w9
	b.le	LBB0_27
; %bb.24:
Lloh69:
	adrp	x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh72:
	adrp	x8, lCPI0_2@PAGE
Lloh73:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_29
LBB0_25:
	mov	x22, x0
Lloh74:
	adrp	x0, l_.str.6@PAGE
Lloh75:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_40
LBB0_26:
	mov	x22, x0
Lloh76:
	adrp	x0, l_.str.7@PAGE
Lloh77:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_40
LBB0_27:
	mov	w9, #16960
	movk	w9, #15, lsl #16
	cmp	w8, w9
	b.le	LBB0_30
; %bb.28:
Lloh78:
	adrp	x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MMAL_PARAMETER_FPS_RANGE@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh81:
	adrp	x8, lCPI0_3@PAGE
Lloh82:
	ldr	q0, [x8, lCPI0_3@PAGEOFF]
LBB0_29:
	stur	q0, [sp, #20]
	stur	xzr, [sp, #36]
	add	x1, sp, #16
	mov	x0, x21
	bl	_mmal_port_parameter_set
LBB0_30:
Lloh83:
	adrp	x8, _MMAL_ENCODING_OPAQUE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _MMAL_ENCODING_OPAQUE@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
	str	x8, [x22, #8]
	ldr	w0, [x19, #12]
	mov	w1, #32
	bl	_VCOS_ALIGN_UP
	ldr	x8, [x22]
	str	x0, [x8, #40]
	ldr	w0, [x19, #8]
	mov	w1, #16
	bl	_VCOS_ALIGN_UP
	ldr	x8, [x22]
	stp	xzr, x0, [x8, #24]
	str	xzr, [x8, #16]
	ldr	d0, [x19, #8]
	str	d0, [x8, #8]
Lloh86:
	adrp	x9, _STILLS_FRAME_RATE_NUM@GOTPAGE
Lloh87:
	ldr	x9, [x9, _STILLS_FRAME_RATE_NUM@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
Lloh89:
	adrp	x10, _STILLS_FRAME_RATE_DEN@GOTPAGE
Lloh90:
	ldr	x10, [x10, _STILLS_FRAME_RATE_DEN@GOTPAGEOFF]
Lloh91:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	mov	x0, x21
	bl	_mmal_port_format_commit
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_38
; %bb.31:
	ldr	x9, [x21]
	ldr	x8, [x25]
	cmp	x9, x8
	b.ge	LBB0_33
; %bb.32:
	str	x8, [x21]
LBB0_33:
	ldr	x0, [sp, #88]
	bl	_mmal_component_enable
	mov	x22, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_39
; %bb.34:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_36
; %bb.35:
	add	x0, x19, #32
	mov	x1, x20
	bl	_raspitex_configure_preview_port
	mov	x22, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_43
LBB0_36:
	ldr	x8, [sp, #88]
	str	x8, [x19, #24]
	ldr	x8, [x19]
	cbz	x8, LBB0_42
; %bb.37:
Lloh92:
	adrp	x8, _stderr@GOTPAGE
Lloh93:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
Lloh95:
	adrp	x1, l_.str.11@PAGE
Lloh96:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_fprintf
	b	LBB0_42
LBB0_38:
	mov	x22, x0
Lloh97:
	adrp	x0, l_.str.8@PAGE
Lloh98:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_40
LBB0_39:
Lloh99:
	adrp	x0, l_.str.9@PAGE
Lloh100:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_40:
	bl	_vcos_log_error
	ldr	x0, [sp, #88]
	cbz	x0, LBB0_42
LBB0_41:
	bl	_mmal_component_destroy
LBB0_42:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_43:
Lloh101:
	adrp	x8, _stderr@GOTPAGE
Lloh102:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh103:
	ldr	w0, [x8]
Lloh104:
	adrp	x1, l_.str.10@PAGE
Lloh105:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	ldr	x0, [sp, #88]
	cbnz	x0, LBB0_41
	b	LBB0_42
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdr	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdr	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdr	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdr	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_CAMERA,4,2 ; @MMAL_COMPONENT_DEFAULT_CAMERA
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create camera component"

l_.str.1:                               ; @.str.1
	.asciz	"Could not set stereo mode : error %d"

	.comm	_MMAL_PARAMETER_CAMERA_NUM,4,2  ; @MMAL_PARAMETER_CAMERA_NUM
l_.str.2:                               ; @.str.2
	.asciz	"Could not select camera : error %d"

	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"Camera doesn't have output ports"

	.comm	_MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG,4,2 ; @MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG
l_.str.4:                               ; @.str.4
	.asciz	"Could not set sensor mode : error %d"

	.comm	_MMAL_CAMERA_PREVIEW_PORT,8,3   ; @MMAL_CAMERA_PREVIEW_PORT
	.comm	_MMAL_CAMERA_VIDEO_PORT,8,3     ; @MMAL_CAMERA_VIDEO_PORT
	.comm	_MMAL_CAMERA_CAPTURE_PORT,8,3   ; @MMAL_CAMERA_CAPTURE_PORT
	.comm	_default_camera_control_callback,4,2 ; @default_camera_control_callback
l_.str.5:                               ; @.str.5
	.asciz	"Unable to enable control port : error %d"

	.comm	_MMAL_PARAM_TIMESTAMP_MODE_RESET_STC,4,2 ; @MMAL_PARAM_TIMESTAMP_MODE_RESET_STC
	.comm	_MMAL_ENCODING_OPAQUE,8,3       ; @MMAL_ENCODING_OPAQUE
	.comm	_MMAL_ENCODING_I420,4,2         ; @MMAL_ENCODING_I420
	.comm	_MMAL_PARAMETER_FPS_RANGE,4,2   ; @MMAL_PARAMETER_FPS_RANGE
	.comm	_FULL_RES_PREVIEW_FRAME_RATE_NUM,4,2 ; @FULL_RES_PREVIEW_FRAME_RATE_NUM
	.comm	_FULL_RES_PREVIEW_FRAME_RATE_DEN,4,2 ; @FULL_RES_PREVIEW_FRAME_RATE_DEN
	.comm	_PREVIEW_FRAME_RATE_NUM,4,2     ; @PREVIEW_FRAME_RATE_NUM
	.comm	_PREVIEW_FRAME_RATE_DEN,4,2     ; @PREVIEW_FRAME_RATE_DEN
l_.str.6:                               ; @.str.6
	.asciz	"camera viewfinder format couldn't be set"

l_.str.7:                               ; @.str.7
	.asciz	"camera video format couldn't be set"

	.comm	_VIDEO_OUTPUT_BUFFERS_NUM,8,3   ; @VIDEO_OUTPUT_BUFFERS_NUM
	.comm	_STILLS_FRAME_RATE_NUM,4,2      ; @STILLS_FRAME_RATE_NUM
	.comm	_STILLS_FRAME_RATE_DEN,4,2      ; @STILLS_FRAME_RATE_DEN
l_.str.8:                               ; @.str.8
	.asciz	"camera still format couldn't be set"

l_.str.9:                               ; @.str.9
	.asciz	"camera component couldn't be enabled"

	.comm	_stderr,4,2                     ; @stderr
l_.str.10:                              ; @.str.10
	.asciz	"Failed to configure preview port for GL rendering"

l_.str.11:                              ; @.str.11
	.asciz	"Camera component done\n"

	.comm	_MMAL_PARAMETER_CAMERA_CONFIG,4,2 ; @MMAL_PARAMETER_CAMERA_CONFIG
	.no_dead_strip	_create_camera_component
.subsections_via_symbols
