	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_event_handle
_mmalplay_event_handle:                 ## @mmalplay_event_handle
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	12(%rsi), %esi
	movl	8(%rdx), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_LOG_INFO
	movq	(%r15), %rax
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_mmal_event_format_changed_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_INFO
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_log_format
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_INFO
	movl	16(%r12), %edi
	xorl	%esi, %esi
	callq	_log_format
	movl	12(%r12), %esi
	movl	8(%r12), %edx
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_INFO
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_INFO
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmal_connection_event_format_changed
	movl	%eax, %r12d
LBB0_5:
	movq	%r15, %rdi
	callq	_mmal_buffer_header_release
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s(%p) received event %4.4s (%i bytes)"

	.comm	_MMAL_EVENT_FORMAT_CHANGED,8,3  ## @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ## @MMAL_PORT_TYPE_OUTPUT
L_.str.1:                               ## @.str.1
	.asciz	"----------Port format changed----------"

L_.str.2:                               ## @.str.2
	.asciz	"-----------------to---------------------"

L_.str.3:                               ## @.str.3
	.asciz	" buffers num (opt %i, min %i), size (opt %i, min: %i)"

L_.str.4:                               ## @.str.4
	.asciz	"----------------------------------------"

	.no_dead_strip	_mmalplay_event_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalplay_event_handle
_mmalplay_event_handle:                 ; @mmalplay_event_handle
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x2, #8]
	ldr	w9, [x1, #12]
	stp	x2, x8, [sp, #16]
	stp	x9, x1, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_INFO
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_INFO
	ldr	w0, [x21, #8]
	mov	x1, x21
	bl	_log_format
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_INFO
	ldr	w0, [x22, #16]
	mov	x1, #0
	bl	_log_format
	ldp	w9, w8, [x22, #8]
	ldp	w11, w10, [x22]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_INFO
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG_INFO
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_mmal_connection_event_format_changed
	mov	x22, x0
LBB0_5:
	mov	x0, x19
	bl	_mmal_buffer_header_release
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s(%p) received event %4.4s (%i bytes)"

	.comm	_MMAL_EVENT_FORMAT_CHANGED,8,3  ; @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ; @MMAL_PORT_TYPE_OUTPUT
l_.str.1:                               ; @.str.1
	.asciz	"----------Port format changed----------"

l_.str.2:                               ; @.str.2
	.asciz	"-----------------to---------------------"

l_.str.3:                               ; @.str.3
	.asciz	" buffers num (opt %i, min %i), size (opt %i, min: %i)"

l_.str.4:                               ; @.str.4
	.asciz	"----------------------------------------"

	.no_dead_strip	_mmalplay_event_handle
.subsections_via_symbols
