	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_bh_control_cb
_mmalplay_bh_control_cb:                ## @mmalplay_bh_control_cb
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r15, %r8
	callq	_LOG_TRACE
	movq	(%r15), %rax
	movq	_MMAL_EVENT_ERROR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_MMAL_EVENT_EOS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rdx, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rcx, %rax
	jne	LBB0_7
LBB0_2:
	cmpq	%rdx, %rax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %ebx
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_mmal_status_to_string
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_LOG_INFO
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_4:
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_INFO
LBB0_6:
	movq	%r14, %rdi
	callq	_mmalplay_stop
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_buffer_header_release     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s(%p),%p,%4.4s"

	.comm	_MMAL_EVENT_ERROR,8,3           ## @MMAL_EVENT_ERROR
	.comm	_MMAL_EVENT_EOS,8,3             ## @MMAL_EVENT_EOS
L_.str.1:                               ## @.str.1
	.asciz	"error event from %s: %s"

L_.str.2:                               ## @.str.2
	.asciz	"%s: EOS received"

	.no_dead_strip	_mmalplay_bh_control_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalplay_bh_control_cb
_mmalplay_bh_control_cb:                ; @mmalplay_bh_control_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	mov	x4, x19
	bl	_LOG_TRACE
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MMAL_EVENT_ERROR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_EVENT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x9]
Lloh5:
	adrp	x9, _MMAL_EVENT_EOS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMAL_EVENT_EOS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_6
; %bb.1:
	cmp	x8, x10
	b.ne	LBB0_3
; %bb.2:
	ldr	w21, [x21]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mmal_status_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_LOG_INFO
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_5
LBB0_3:
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x21]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_INFO
LBB0_5:
	mov	x0, x20
	bl	_mmalplay_stop
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_mmal_buffer_header_release
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s(%p),%p,%4.4s"

	.comm	_MMAL_EVENT_ERROR,8,3           ; @MMAL_EVENT_ERROR
	.comm	_MMAL_EVENT_EOS,8,3             ; @MMAL_EVENT_EOS
l_.str.1:                               ; @.str.1
	.asciz	"error event from %s: %s"

l_.str.2:                               ; @.str.2
	.asciz	"%s: EOS received"

	.no_dead_strip	_mmalplay_bh_control_cb
.subsections_via_symbols
