	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_VCOS_LOG_CATEGORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_register
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_test_signal_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_VIEWFINDER_LAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_camcorder_behaviour@GOTPCREL(%rip), %rbx
	movl	%eax, 52(%rbx)
	movq	_DEFAULT_VIDEO_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	$1, (%rbx)
	movq	_DEFAULT_BIT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_MMAL_PARAM_FOCUS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_DEFAULT_CAM_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_test_parse_cmdline
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	leaq	16(%rbx), %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_vcos_semaphore_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_vcos_assert
	leaq	-36(%rbp), %r15
	movq	%r15, %rdi
	callq	_vcos_thread_attr_init
	movq	_test_mmal_camcorder@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_camcorder_thread@GOTPCREL(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %r8
	callq	_vcos_thread_create
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_vcos_semaphore_wait
	movq	8(%rbx), %rsi
	movq	_MMALCAM_INIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
## %bb.5:
	movq	_sleepy_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_sleep
	movq	_stop@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movl	$-2, %r14d
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movl	8(%rbx), %r14d
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
	callq	_LOG_TRACE
	movq	_camcorder_thread@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_vcos_thread_join
	leaq	32(%rbx), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_test_mmalcam_dump_stats
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.8:
	leaq	20(%rbx), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_test_mmalcam_dump_stats
LBB0_9:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_vcos_semaphore_delete
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmalcam"

	.comm	_VCOS_LOG_CATEGORY,4,2          ## @VCOS_LOG_CATEGORY
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_test_signal_handler,4,2        ## @test_signal_handler
	.comm	_VIEWFINDER_LAYER,4,2           ## @VIEWFINDER_LAYER
	.comm	_camcorder_behaviour,56,3       ## @camcorder_behaviour
	.comm	_DEFAULT_VIDEO_FORMAT,4,2       ## @DEFAULT_VIDEO_FORMAT
	.comm	_DEFAULT_BIT_RATE,4,2           ## @DEFAULT_BIT_RATE
	.comm	_MMAL_PARAM_FOCUS_MAX,4,2       ## @MMAL_PARAM_FOCUS_MAX
	.comm	_DEFAULT_CAM_NUM,4,2            ## @DEFAULT_CAM_NUM
L_.str.2:                               ## @.str.2
	.asciz	"mmalcam-init"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_camcorder_thread,4,2           ## @camcorder_thread
L_.str.3:                               ## @.str.3
	.asciz	"mmal camcorder"

	.comm	_test_mmal_camcorder,4,2        ## @test_mmal_camcorder
L_.str.4:                               ## @.str.4
	.asciz	"Thread creation failure"

	.comm	_MMALCAM_INIT_SUCCESS,8,3       ## @MMALCAM_INIT_SUCCESS
L_.str.5:                               ## @.str.5
	.asciz	"Initialisation failed: %d"

	.comm	_sleepy_time,8,3                ## @sleepy_time
	.comm	_stop,4,2                       ## @stop
L_.str.6:                               ## @.str.6
	.asciz	"Waiting for camcorder thread to terminate"

L_.str.7:                               ## @.str.7
	.asciz	"Render"

L_.str.8:                               ## @.str.8
	.asciz	"Encoder"

L_str:                                  ## @str
	.asciz	"MMAL Camera Test App"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _VCOS_LOG_CATEGORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_LOG_CATEGORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_register
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh7:
	adrp	x8, _SIGINT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _test_signal_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _test_signal_handler@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_signal
Lloh13:
	adrp	x8, _VIEWFINDER_LAYER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VIEWFINDER_LAYER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x19, _camcorder_behaviour@GOTPAGE
Lloh17:
	ldr	x19, [x19, _camcorder_behaviour@GOTPAGEOFF]
	str	w8, [x19, #52]
Lloh18:
	adrp	x8, _DEFAULT_VIDEO_FORMAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEFAULT_VIDEO_FORMAT@GOTPAGEOFF]
	mov	w9, #1
	str	w9, [x19]
Lloh20:
	adrp	x9, _DEFAULT_BIT_RATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DEFAULT_BIT_RATE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
Lloh24:
	adrp	x8, _MMAL_PARAM_FOCUS_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MMAL_PARAM_FOCUS_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _DEFAULT_CAM_NUM@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DEFAULT_CAM_NUM@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #36]
	mov	x0, x21
	mov	x1, x20
	bl	_test_parse_cmdline
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #-1
	b	LBB0_9
LBB0_2:
	add	x20, x19, #16
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_vcos_semaphore_create
Lloh32:
	adrp	x21, _VCOS_SUCCESS@GOTPAGE
Lloh33:
	ldr	x21, [x21, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	bl	_vcos_assert
	add	x0, sp, #12
	bl	_vcos_thread_attr_init
Lloh34:
	adrp	x8, _test_mmal_camcorder@GOTPAGE
Lloh35:
	ldr	x8, [x8, _test_mmal_camcorder@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x0, _camcorder_thread@GOTPAGE
Lloh38:
	ldr	x0, [x0, _camcorder_thread@GOTPAGEOFF]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x4, x19
	bl	_vcos_thread_create
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_vcos_semaphore_wait
	ldr	x8, [x19, #8]
Lloh41:
	adrp	x9, _MMALCAM_INIT_SUCCESS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MMALCAM_INIT_SUCCESS@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh44:
	adrp	x8, _sleepy_time@GOTPAGE
Lloh45:
	ldr	x8, [x8, _sleepy_time@GOTPAGEOFF]
Lloh46:
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.5:
	bl	_sleep
	mov	w20, #0
Lloh47:
	adrp	x8, _stop@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stop@GOTPAGEOFF]
	mov	w9, #1
Lloh49:
	str	w9, [x8]
	b	LBB0_9
LBB0_6:
Lloh50:
	adrp	x0, l_.str.4@PAGE
Lloh51:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG_ERROR
	mov	w20, #-2
	b	LBB0_9
LBB0_7:
	str	x8, [sp]
Lloh52:
	adrp	x0, l_.str.5@PAGE
Lloh53:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_LOG_ERROR
	ldr	w20, [x19, #8]
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
Lloh54:
	adrp	x0, l_.str.6@PAGE
Lloh55:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_LOG_TRACE
Lloh56:
	adrp	x0, _camcorder_thread@GOTPAGE
Lloh57:
	ldr	x0, [x0, _camcorder_thread@GOTPAGEOFF]
	mov	x1, #0
	bl	_vcos_thread_join
	add	x1, x19, #32
Lloh58:
	adrp	x0, l_.str.7@PAGE
Lloh59:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_test_mmalcam_dump_stats
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.10:
	add	x1, x19, #20
Lloh60:
	adrp	x0, l_.str.8@PAGE
Lloh61:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_test_mmalcam_dump_stats
LBB0_11:
	add	x0, x19, #16
	bl	_vcos_semaphore_delete
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmalcam"

	.comm	_VCOS_LOG_CATEGORY,4,2          ; @VCOS_LOG_CATEGORY
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_test_signal_handler,4,2        ; @test_signal_handler
	.comm	_VIEWFINDER_LAYER,4,2           ; @VIEWFINDER_LAYER
	.comm	_camcorder_behaviour,56,3       ; @camcorder_behaviour
	.comm	_DEFAULT_VIDEO_FORMAT,4,2       ; @DEFAULT_VIDEO_FORMAT
	.comm	_DEFAULT_BIT_RATE,4,2           ; @DEFAULT_BIT_RATE
	.comm	_MMAL_PARAM_FOCUS_MAX,4,2       ; @MMAL_PARAM_FOCUS_MAX
	.comm	_DEFAULT_CAM_NUM,4,2            ; @DEFAULT_CAM_NUM
l_.str.2:                               ; @.str.2
	.asciz	"mmalcam-init"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_camcorder_thread,4,2           ; @camcorder_thread
l_.str.3:                               ; @.str.3
	.asciz	"mmal camcorder"

	.comm	_test_mmal_camcorder,4,2        ; @test_mmal_camcorder
l_.str.4:                               ; @.str.4
	.asciz	"Thread creation failure"

	.comm	_MMALCAM_INIT_SUCCESS,8,3       ; @MMALCAM_INIT_SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"Initialisation failed: %d"

	.comm	_sleepy_time,8,3                ; @sleepy_time
	.comm	_stop,4,2                       ; @stop
l_.str.6:                               ; @.str.6
	.asciz	"Waiting for camcorder thread to terminate"

l_.str.7:                               ; @.str.7
	.asciz	"Render"

l_.str.8:                               ; @.str.8
	.asciz	"Encoder"

l_str:                                  ; @str
	.asciz	"MMAL Camera Test App"

.subsections_via_symbols
