	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_container_writer
_mmalplay_setup_container_writer:       ## @mmalplay_setup_container_writer
	.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
	pushq	%rax
	.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	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	callq	_MMAL_PARAM_UNUSED
	cmpl	$0, 12(%r15)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %r12
	leal	4(%rax), %r13d
	movl	%r13d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	_MMAL_PARAMETER_URI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r13d, (%rbx)
	movl	8(%rbx), %edi
	incq	%r12
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_vcos_safe_strcpy
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	callq	_mmal_port_parameter_set
	movq	%rax, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_7:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s doesn't have input ports"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
	.comm	_MMAL_PARAMETER_URI,4,2         ## @MMAL_PARAMETER_URI
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"could not open file %s"

	.no_dead_strip	_mmalplay_setup_container_writer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalplay_setup_container_writer
_mmalplay_setup_container_writer:       ; @mmalplay_setup_container_writer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
Lloh0:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	bl	_MMAL_PARAM_UNUSED
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	add	w23, w22, #4
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	mov	w1, #0
	mov	x2, x23
	bl	_memset
Lloh3:
	adrp	x8, _MMAL_PARAMETER_URI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_PARAMETER_URI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w23, w8, [x21]
	ldr	w0, [x21, #8]
	add	x2, x22, #1
	mov	x1, x19
	mov	w3, #0
	bl	_vcos_safe_strcpy
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_mmal_port_parameter_set
	mov	x22, x0
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
LBB0_4:
	mov	x0, x21
	bl	_free
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
Lloh15:
	adrp	x8, _MMAL_ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMAL_ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	x22, [x8]
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s doesn't have input ports"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
	.comm	_MMAL_PARAMETER_URI,4,2         ; @MMAL_PARAMETER_URI
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"could not open file %s"

	.no_dead_strip	_mmalplay_setup_container_writer
.subsections_via_symbols
