	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_playback
_mmal_playback:                         ## @mmal_playback
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_options@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	32(%rdi), %eax
	movl	%eax, -32(%rbp)
	movl	28(%rdi), %eax
	movl	%eax, -36(%rbp)
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movl	24(%rbx), %edi
	leaq	-40(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_mmalplay_create
	movq	%rax, %r15
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	cmpl	$0, -40(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_mmalplay_play
	movl	%eax, -28(%rbp)
LBB0_3:
	movq	_unclean_exit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movq	%r15, %rdi
	callq	_mmalplay_destroy
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
LBB0_5:
	movl	4(%rbx), %esi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_options,12,2                   ## @options
	.comm	_unclean_exit,8,3               ## @unclean_exit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Thread %s terminating, result %d"

	.no_dead_strip	_mmal_playback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_playback
_mmal_playback:                         ; @mmal_playback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _options@GOTPAGE
Lloh1:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldur	d0, [x0, #28]
	stur	d0, [sp, #20]
	add	x20, x0, #8
	mov	x0, x20
	bl	_vcos_mutex_lock
	ldr	w0, [x19, #24]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_mmalplay_create
	mov	x21, x0
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_vcos_mutex_unlock
	cbz	x21, LBB0_5
; %bb.1:
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_mmalplay_play
	str	w0, [sp, #12]
LBB0_3:
Lloh3:
	adrp	x8, _unclean_exit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _unclean_exit@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_vcos_mutex_lock
	mov	x0, x21
	bl	_mmalplay_destroy
	str	xzr, [x19, #16]
	mov	x0, x20
	bl	_vcos_mutex_unlock
LBB0_5:
	ldr	w1, [x19, #4]
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	ldr	w8, [sp, #12]
	str	w8, [x19]
	mov	x0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_options,12,2                   ; @options
	.comm	_unclean_exit,8,3               ; @unclean_exit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Thread %s terminating, result %d"

	.no_dead_strip	_mmal_playback
.subsections_via_symbols
