	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -96(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_vcos_countof
	cmpl	$1, %ebx
	jg	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_30
LBB0_2:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_bcm_host_init
	movq	_context@GOTPCREL(%rip), %r15
	leaq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	$1, %edx
	callq	_vcos_semaphore_create
	movq	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_mmal_component_create
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-80(%rbp), %rax
	movq	16(%rax), %rax
	movq	%r15, (%rax)
	movq	-80(%rbp), %rax
	movq	16(%rax), %rdi
	movq	_control_callback@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_mmal_port_enable
	leaq	L_.str.3(%rip), %r13
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_CHECK_STATUS
	movq	-80(%rbp), %rdi
	callq	_mmal_component_enable
	leaq	L_.str.4(%rip), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_CHECK_STATUS
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_mmal_component_create
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-72(%rbp), %rax
	movq	16(%rax), %rax
	movq	%r15, (%rax)
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	movl	(%r14), %esi
	callq	_mmal_port_enable
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_CHECK_STATUS
	movq	-72(%rbp), %rdi
	callq	_mmal_component_enable
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_CHECK_STATUS
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	callq	_mmal_component_create
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-96(%rbp), %rax
	movq	16(%rax), %rax
	movq	%r15, (%rax)
	movq	-96(%rbp), %rax
	movq	16(%rax), %rdi
	movl	(%r14), %esi
	callq	_mmal_port_enable
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_CHECK_STATUS
	movq	-96(%rbp), %rdi
	callq	_mmal_component_enable
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_CHECK_STATUS
	movq	-80(%rbp), %rax
	movq	16(%rax), %rdi
	movq	8(%r12), %rsi
	callq	_mmal_util_port_set_uri
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-80(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_mmal_connection_create
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-64(%rbp), %rax
	movq	%r15, 32(%rax)
	movq	_connection_callback@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rcx, 24(%rax)
	leaq	-56(%rbp), %rdi
	movq	-72(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_mmal_connection_create
	leaq	L_.str.9(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-56(%rbp), %rax
	movq	%r15, 32(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, 24(%rax)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.10(%rip), %r14
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp,%rbx,8), %rdi
	callq	_mmal_connection_enable
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_CHECK_STATUS
	decq	%rbx
	jne	LBB0_4
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_fprintf
	movq	_MMAL_CONNECTION_FLAG_TUNNELLING@GOTPCREL(%rip), %r12
	leaq	L_.str.13(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpl	$500, %eax                      ## imm = 0x1F4
	je	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_13 Depth 3
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_vcos_semaphore_wait
	movq	_context@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_CHECK_STATUS
	cmpq	$0, 16(%r14)
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r14
	cmpq	%r15, %r14
	je	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_13 Depth 3
	movq	-64(%rbp,%r14,8), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=3
	movq	-64(%rbp,%r14,8), %rcx
	movl	12(%rcx), %edi
	movq	%rax, %rsi
	callq	_mmal_port_send_buffer
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_CHECK_STATUS
	movq	-64(%rbp,%r14,8), %rax
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=3
	movq	-64(%rbp,%r14,8), %rcx
	movl	4(%rcx), %edi
	movq	%rax, %rsi
	callq	_mmal_port_send_buffer
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_CHECK_STATUS
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-64(%rbp,%r14,8), %rax
	movl	8(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_14
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	callq	_fprintf
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.17:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp,%r14,8), %rdi
	callq	_mmal_connection_disable
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_18
## %bb.19:
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r14
	cmpq	%r14, %r15
	je	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	callq	_mmal_connection_destroy
	jmp	LBB0_22
LBB0_23:
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_mmal_component_destroy
LBB0_25:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_mmal_component_destroy
LBB0_27:
	movq	-96(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_mmal_component_destroy
LBB0_29:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_vcos_semaphore_delete
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rbx
	setne	%al
	negl	%eax
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_32
## %bb.31:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments\n"

	.comm	_context,24,3                   ## @context
L_.str.1:                               ## @.str.1
	.asciz	"example"

	.comm	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER,4,2 ## @MMAL_COMPONENT_DEFAULT_CONTAINER_READER
L_.str.2:                               ## @.str.2
	.asciz	"failed to create reader"

	.comm	_control_callback,4,2           ## @control_callback
L_.str.3:                               ## @.str.3
	.asciz	"failed to enable control port"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable component"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER,4,2 ## @MMAL_COMPONENT_DEFAULT_VIDEO_DECODER
L_.str.5:                               ## @.str.5
	.asciz	"failed to create decoder"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,4,2 ## @MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
L_.str.6:                               ## @.str.6
	.asciz	"failed to create renderer"

L_.str.7:                               ## @.str.7
	.asciz	"failed to set uri"

L_.str.8:                               ## @.str.8
	.asciz	"failed to create connection between reader / decoder"

	.comm	_connection_callback,8,3        ## @connection_callback
L_.str.9:                               ## @.str.9
	.asciz	"failed to create connection between decoder / renderer"

L_.str.10:                              ## @.str.10
	.asciz	"failed to enable connection"

L_.str.11:                              ## @.str.11
	.asciz	"start playback\n"

L_.str.12:                              ## @.str.12
	.asciz	"error during playback"

	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ## @MMAL_CONNECTION_FLAG_TUNNELLING
L_.str.13:                              ## @.str.13
	.asciz	"failed to send buffer"

L_.str.14:                              ## @.str.14
	.asciz	"stop playback\n"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
.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, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #16]
	stp	xzr, xzr, [sp, #40]
	add	x24, sp, #40
	add	x0, sp, #40
	bl	_vcos_countof
	cmp	w21, #1
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_31
LBB0_2:
	mov	x19, x0
	bl	_bcm_host_init
Lloh8:
	adrp	x23, _context@GOTPAGE
Lloh9:
	ldr	x23, [x23, _context@GOTPAGEOFF]
	add	x0, x23, #8
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_vcos_semaphore_create
Lloh12:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, sp, #32
	bl	_mmal_component_create
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #32]
	ldr	x8, [x8, #16]
	str	x23, [x8]
	ldr	x8, [sp, #32]
	ldr	x0, [x8, #16]
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
Lloh17:
	adrp	x25, _control_callback@GOTPAGE
Lloh18:
	ldr	x25, [x25, _control_callback@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_mmal_port_enable
Lloh19:
	adrp	x21, l_.str.3@PAGE
Lloh20:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_CHECK_STATUS
	ldr	x0, [sp, #32]
	bl	_mmal_component_enable
Lloh21:
	adrp	x22, l_.str.4@PAGE
Lloh22:
	add	x22, x22, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_CHECK_STATUS
Lloh23:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_mmal_component_create
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #16]
	str	x23, [x8]
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #16]
	ldr	w1, [x25]
	bl	_mmal_port_enable
	mov	x1, x21
	bl	_CHECK_STATUS
	ldr	x0, [sp, #24]
	bl	_mmal_component_enable
	mov	x1, x22
	bl	_CHECK_STATUS
Lloh28:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_mmal_component_create
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #16]
	ldr	x8, [x8, #16]
	str	x23, [x8]
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	ldr	w1, [x25]
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	bl	_mmal_port_enable
	mov	x1, x21
	bl	_CHECK_STATUS
	ldr	x0, [sp, #16]
	bl	_mmal_component_enable
	mov	x1, x22
	bl	_CHECK_STATUS
	ldr	x8, [sp, #32]
	ldr	x0, [x8, #16]
	ldr	x1, [x20, #8]
	bl	_mmal_util_port_set_uri
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #32]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	ldr	w2, [x8]
	add	x0, sp, #40
	mov	w3, #0
	bl	_mmal_connection_create
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #40]
Lloh37:
	adrp	x19, _connection_callback@GOTPAGE
Lloh38:
	ldr	x19, [x19, _connection_callback@GOTPAGEOFF]
	ldr	x9, [x19]
	stp	x9, x23, [x8, #24]
	add	x0, x24, #8
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	w3, #0
	bl	_mmal_connection_create
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #48]
	ldr	x9, [x19]
	stp	x9, x23, [x8, #24]
	cbz	w25, LBB0_5
; %bb.3:
	mov	w8, w25
	lsl	x19, x8, #3
	add	x8, sp, #40
	sub	x21, x8, #8
Lloh41:
	adrp	x20, l_.str.10@PAGE
Lloh42:
	add	x20, x20, l_.str.10@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, x19]
	bl	_mmal_connection_enable
	mov	x1, x20
	bl	_CHECK_STATUS
	subs	x19, x19, #8
	b.ne	LBB0_4
LBB0_5:
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_fprintf
	mov	w26, #0
Lloh48:
	adrp	x21, l_.str.12@PAGE
Lloh49:
	add	x21, x21, l_.str.12@PAGEOFF
	mov	w24, w25
	add	x27, sp, #40
Lloh50:
	adrp	x28, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGE
Lloh51:
	ldr	x28, [x28, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGEOFF]
Lloh52:
	adrp	x22, l_.str.13@PAGE
Lloh53:
	add	x22, x22, l_.str.13@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w26, w26, #1
	cmp	w26, #500
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	b.eq	LBB0_17
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
	add	x0, x23, #8
	bl	_vcos_semaphore_wait
	ldr	x20, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_CHECK_STATUS
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w25, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x25, x25, #1
	cmp	x25, x24
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
	ldr	x8, [x27, x25, lsl #3]
	ldr	w9, [x8]
	ldr	w10, [x28]
	tst	w10, w9
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	mov	x1, x0
	lsl	x19, x25, #3
	cbz	x0, LBB0_14
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x27, x19]
	ldr	w0, [x8, #12]
	bl	_mmal_port_send_buffer
	mov	x20, x0
	mov	x1, x22
	bl	_CHECK_STATUS
	ldr	x8, [x27, x19]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	mov	x1, x0
	cbnz	x0, LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x27, x25, lsl #3]
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x8, #8]
	bl	_mmal_queue_get
	mov	x1, x0
	cbz	x0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	x8, [x27, x19]
	ldr	w0, [x8, #4]
	bl	_mmal_port_send_buffer
	mov	x20, x0
	mov	x1, x22
	bl	_CHECK_STATUS
	ldr	x8, [x27, x19]
	b	LBB0_15
LBB0_17:
Lloh54:
	adrp	x8, _stderr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.14@PAGE
Lloh58:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_fprintf
	cbz	w25, LBB0_24
; %bb.18:
	add	x19, sp, #40
	mov	x21, x24
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	bl	_mmal_connection_disable
	subs	x21, x21, #1
	b.ne	LBB0_19
; %bb.20:
	add	x19, sp, #40
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x19, x19, #8
	subs	x24, x24, #1
	b.eq	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_mmal_connection_destroy
	b	LBB0_21
LBB0_24:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_26
; %bb.25:
	bl	_mmal_component_destroy
LBB0_26:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_28
; %bb.27:
	bl	_mmal_component_destroy
LBB0_28:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_30
; %bb.29:
	bl	_mmal_component_destroy
LBB0_30:
	add	x0, x23, #8
	bl	_vcos_semaphore_delete
Lloh59:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	cmp	x20, x8
	csetm	w0, ne
LBB0_31:
	ldr	x8, [sp, #56]
Lloh62:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh63:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments\n"

	.comm	_context,24,3                   ; @context
l_.str.1:                               ; @.str.1
	.asciz	"example"

	.comm	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER,4,2 ; @MMAL_COMPONENT_DEFAULT_CONTAINER_READER
l_.str.2:                               ; @.str.2
	.asciz	"failed to create reader"

	.comm	_control_callback,4,2           ; @control_callback
l_.str.3:                               ; @.str.3
	.asciz	"failed to enable control port"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable component"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER,4,2 ; @MMAL_COMPONENT_DEFAULT_VIDEO_DECODER
l_.str.5:                               ; @.str.5
	.asciz	"failed to create decoder"

	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,4,2 ; @MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
l_.str.6:                               ; @.str.6
	.asciz	"failed to create renderer"

l_.str.7:                               ; @.str.7
	.asciz	"failed to set uri"

l_.str.8:                               ; @.str.8
	.asciz	"failed to create connection between reader / decoder"

	.comm	_connection_callback,8,3        ; @connection_callback
l_.str.9:                               ; @.str.9
	.asciz	"failed to create connection between decoder / renderer"

l_.str.10:                              ; @.str.10
	.asciz	"failed to enable connection"

l_.str.11:                              ; @.str.11
	.asciz	"start playback\n"

l_.str.12:                              ; @.str.12
	.asciz	"error during playback"

	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ; @MMAL_CONNECTION_FLAG_TUNNELLING
l_.str.13:                              ; @.str.13
	.asciz	"failed to send buffer"

l_.str.14:                              ; @.str.14
	.asciz	"stop playback\n"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
.subsections_via_symbols
