	.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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -48(%rbp)
	cmpl	$1, %edi
	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_11
LBB0_2:
	movq	%rsi, %rbx
	xorl	%eax, %eax
	callq	_bcm_host_init
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_mmal_graph_create
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-24(%rbp), %rdi
	movq	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_mmal_graph_new_component
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-24(%rbp), %rdi
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_mmal_graph_new_component
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-24(%rbp), %rdi
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_mmal_graph_new_component
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-40(%rbp), %rax
	movl	16(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_mmal_util_port_set_uri
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-24(%rbp), %rdi
	movq	-40(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mmal_graph_new_connection
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	-24(%rbp), %rdi
	movq	-32(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mmal_graph_new_connection
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_fprintf
	movq	-24(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mmal_graph_enable
	movq	%rax, %rbx
	leaq	L_.str.9(%rip), %rsi
	movq	%rax, %rdi
	callq	_CHECK_STATUS
	movl	$5, %edi
	callq	_sleep
	movl	(%r14), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_fprintf
	movq	-24(%rbp), %rdi
	callq	_mmal_graph_disable
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_mmal_component_release
LBB0_4:
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_mmal_component_release
LBB0_6:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_mmal_component_release
LBB0_8:
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_mmal_graph_destroy
LBB0_10:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rbx
	setne	%al
	negl	%eax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to create graph"

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

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"failed to connect reader to decoder"

L_.str.7:                               ## @.str.7
	.asciz	"failed to connect decoder to renderer"

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

L_.str.9:                               ## @.str.9
	.asciz	"failed to enable graph"

L_.str.10:                              ## @.str.10
	.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, #64
	.cfi_def_cfa_offset 64
	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
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_11
LBB0_2:
	mov	x19, x1
	bl	_bcm_host_init
	add	x0, sp, #24
	mov	w1, #0
	bl	_mmal_graph_create
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x0, [sp, #24]
Lloh7:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_mmal_graph_new_component
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x0, [sp, #24]
Lloh12:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_DECODER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_mmal_graph_new_component
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x0, [sp, #24]
Lloh17:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_mmal_graph_new_component
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x8, [sp, #16]
	ldr	w0, [x8, #16]
	ldr	x1, [x19, #8]
	bl	_mmal_util_port_set_uri
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_CHECK_STATUS
	ldp	x8, x0, [sp, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	w3, #0
	mov	x4, #0
	bl	_mmal_graph_new_connection
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_CHECK_STATUS
	ldr	x0, [sp, #24]
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	ldr	x8, [sp]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	w3, #0
	mov	x4, #0
	bl	_mmal_graph_new_connection
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_CHECK_STATUS
Lloh28:
	adrp	x20, _stderr@GOTPAGE
Lloh29:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	ldr	x0, [sp, #24]
	mov	x1, #0
	mov	x2, #0
	bl	_mmal_graph_enable
	mov	x19, x0
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_CHECK_STATUS
	mov	w0, #5
	bl	_sleep
	ldr	w0, [x20]
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	ldr	x0, [sp, #24]
	bl	_mmal_graph_disable
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_mmal_component_release
LBB0_4:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_mmal_component_release
LBB0_6:
	ldr	x0, [sp]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_mmal_component_release
LBB0_8:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_mmal_graph_destroy
LBB0_10:
Lloh36:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x19, x8
	csetm	w0, ne
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to create graph"

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

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"failed to connect reader to decoder"

l_.str.7:                               ; @.str.7
	.asciz	"failed to connect decoder to renderer"

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

l_.str.9:                               ; @.str.9
	.asciz	"failed to enable graph"

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

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