	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalplay_create                ## -- Begin function mmalplay_create
	.p2align	4, 0x90
_mmalplay_create:                       ## @mmalplay_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_LOG_TRACE
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_2:
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r13, %rdi
	addq	$36, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_vcos_semaphore_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r12, (%r13)
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movl	(%r15), %edi
	movl	%edi, 32(%r13)
	jmp	LBB0_8
LBB0_4:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_27
LBB0_6:
	movl	32(%r13), %edi
LBB0_8:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	movl	$1, %esi
	callq	_MMAL_MAX
	movl	%eax, 32(%r13)
	movq	_MMALPLAY_MAX_RENDERERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MMAL_MIN
	movl	%eax, 32(%r13)
	movl	$0, -88(%rbp)
	movq	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_mmalplay_component_create
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:
	movl	28(%r13), %esi
	leaq	-96(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_mmalplay_pipeline_video_create
	movq	%rax, %r15
	movl	24(%r13), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_mmalplay_pipeline_audio_create
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mmalplay_pipeline_clock_create
	movq	%rax, %rcx
	movq	(%r12), %rax
	cmpq	%rax, %r15
	je	LBB0_12
## %bb.10:
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.11:
	cmpq	%rax, %rcx
	je	LBB0_12
## %bb.22:
	movq	%r15, -48(%rbp)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
LBB0_23:
	movq	%r13, %rdi
	callq	_mmalplay_destroy
	movq	-48(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_25
## %bb.24:
	movq	_MMAL_ENOSPC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
LBB0_25:
	testq	%r14, %r14
	je	LBB0_27
## %bb.26:
	movq	%rax, (%r14)
LBB0_27:
	xorl	%r13d, %r13d
LBB0_28:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$0, -88(%rbp)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	je	LBB0_16
## %bb.13:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movl	(%rax,%rbx), %esi
	movl	-8(%rax,%rbx), %ecx
	movl	-4(%rax,%rbx), %edx
	movq	%r13, %rdi
	callq	_mmalplay_connection_create
	movq	%rax, -48(%rbp)
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	movl	-88(%rbp), %ecx
	addq	$12, %rbx
	cmpq	%rcx, %r15
	jb	LBB0_14
LBB0_16:
	cmpl	$0, 12(%r13)
	je	LBB0_20
## %bb.17:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	-8(%rax,%rbx), %rdi
	movl	(%rax,%rbx), %esi
	callq	_mmal_connection_enable
	movq	%rax, -48(%rbp)
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r15
	movl	12(%r13), %ecx
	addq	$12, %rbx
	cmpq	%rcx, %r15
	jb	LBB0_19
LBB0_20:
	testq	%r14, %r14
	je	LBB0_28
## %bb.21:
	movq	%rax, (%r14)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"MMALTest"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_MMALPLAY_MAX_RENDERERS,4,2     ## @MMALPLAY_MAX_RENDERERS
	.comm	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER,4,2 ## @MMAL_COMPONENT_DEFAULT_CONTAINER_READER
	.comm	_MMAL_ENOSPC,8,3                ## @MMAL_ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmalplay_create                ; -- Begin function mmalplay_create
	.p2align	2
_mmalplay_create:                       ; @mmalplay_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #40]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_LOG_TRACE
	cbz	x19, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
	mov	w0, #40
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_17
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, x20, #36
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_vcos_semaphore_create
Lloh9:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	str	x22, [x20]
	cbz	x21, LBB0_7
; %bb.5:
	ldr	w0, [x21]
	str	w0, [x20, #32]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x20, #0
	b	LBB0_17
LBB0_7:
	ldr	w0, [x20, #32]
LBB0_8:
	mov	w1, #1
	bl	_MMAL_MAX
	str	w0, [x20, #32]
Lloh12:
	adrp	x8, _MMALPLAY_MAX_RENDERERS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMALPLAY_MAX_RENDERERS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_MMAL_MIN
	str	w0, [x20, #32]
	str	wzr, [sp, #8]
Lloh15:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_CONTAINER_READER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x20
	bl	_mmalplay_component_create
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w1, [x20, #28]
	mov	x2, sp
	mov	x0, x20
	bl	_mmalplay_pipeline_video_create
	mov	x21, x0
	ldr	w1, [x20, #24]
	mov	x2, sp
	mov	x0, x20
	bl	_mmalplay_pipeline_audio_create
	mov	x22, x0
	mov	x1, sp
	mov	x0, x20
	bl	_mmalplay_pipeline_clock_create
	mov	x8, x0
	ldr	x0, [x23]
	cmp	x21, x0
	b.eq	LBB0_18
; %bb.10:
	cmp	x22, x0
	b.eq	LBB0_18
; %bb.11:
	cmp	x8, x0
	b.eq	LBB0_18
; %bb.12:
	str	x21, [sp, #40]
LBB0_13:
	mov	x0, x20
	bl	_mmalplay_destroy
	ldr	x8, [sp, #40]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _MMAL_ENOSPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MMAL_ENOSPC@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp, #40]
LBB0_15:
	mov	x20, #0
	cbz	x19, LBB0_17
; %bb.16:
	str	x8, [x19]
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_22
; %bb.19:
	mov	x21, #0
	mov	x22, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	add	x8, x8, x21
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	mov	x0, x20
	bl	_mmalplay_connection_create
	str	x0, [sp, #40]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	ldr	w8, [sp, #8]
	add	x21, x21, #12
	cmp	x22, x8
	b.lo	LBB0_20
LBB0_22:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_26
; %bb.23:
	mov	x22, #0
	mov	x24, #0
                                        ; implicit-def: $x21
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x22
	ldr	x0, [x8]
	ldr	w8, [x8, #8]
	and	x9, x21, #0xffffffff00000000
	orr	x21, x9, x8
	mov	x1, x21
	bl	_mmal_connection_enable
	str	x0, [sp, #40]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x24, x24, #1
	ldr	w8, [x20, #12]
	add	x22, x22, #12
	cmp	x24, x8
	b.lo	LBB0_24
LBB0_26:
	cbz	x19, LBB0_17
; %bb.27:
	str	x0, [x19]
	b	LBB0_17
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"MMALTest"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_MMALPLAY_MAX_RENDERERS,4,2     ; @MMALPLAY_MAX_RENDERERS
	.comm	_MMAL_COMPONENT_DEFAULT_CONTAINER_READER,4,2 ; @MMAL_COMPONENT_DEFAULT_CONTAINER_READER
	.comm	_MMAL_ENOSPC,8,3                ; @MMAL_ENOSPC
.subsections_via_symbols
