	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function graph_port_event_handler
_graph_port_event_handler:              ## @graph_port_event_handler
	.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, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	12(%rsi), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movq	%r13, %r8
	callq	_LOG_TRACE
	movq	(%r13), %rax
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%r13, %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_DEBUG
	movq	%r14, %rdi
	callq	_mmal_log_dump_port
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movl	16(%r12), %edi
	callq	_mmal_log_dump_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_DEBUG
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
LBB0_4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mmal_connection_event_format_changed
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_5:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_6:
	movq	%r13, %rdi
	callq	_mmal_buffer_header_release
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_event_error_send          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port: %s(%p), buffer: %p, event: %4.4s"

	.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	"----------------------------------------"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.no_dead_strip	_graph_port_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function graph_port_event_handler
_graph_port_event_handler:              ; @graph_port_event_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x4, x20
	bl	_LOG_TRACE
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_DEBUG
	mov	x0, x19
	bl	_mmal_log_dump_port
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_DEBUG
	ldr	w0, [x22, #16]
	bl	_mmal_log_dump_format
	ldp	w9, w8, [x22, #8]
	ldp	w11, w10, [x22]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_DEBUG
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG_DEBUG
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_mmal_connection_event_format_changed
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	ldr	x21, [x23]
LBB0_6:
	mov	x0, x20
	bl	_mmal_buffer_header_release
	ldr	x8, [x23]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	w0, [x19, #8]
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mmal_event_error_send
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port: %s(%p), buffer: %p, event: %4.4s"

	.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	"----------------------------------------"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.no_dead_strip	_graph_port_event_handler
.subsections_via_symbols
