	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_connection_event_format_changed ## -- Begin function mmal_connection_event_format_changed
	.p2align	4, 0x90
_mmal_connection_event_format_changed:  ## @mmal_connection_event_format_changed
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LOG_TRACE
	movq	(%r14), %rax
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_mmal_event_format_changed_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rcx
	movq	_MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_13
## %bb.4:
	movq	(%rax), %rdx
	movq	8(%rbx), %rcx
	cmpq	8(%rcx), %rdx
	jg	LBB0_13
## %bb.5:
	movq	8(%rax), %rdx
	cmpq	16(%rcx), %rdx
	jle	LBB0_6
LBB0_13:
	movl	16(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_connection_reconfigure    ## TAILCALL
LBB0_1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	28(%rcx), %edi
	movl	16(%rax), %esi
	callq	_mmal_format_full_copy
	movl	%eax, %r15d
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	callq	_mmal_port_format_commit
	movl	%eax, %r15d
	movl	(%r12), %eax
LBB0_8:
	cmpl	%eax, %r15d
	jne	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_mmal_buffer_header_acquire
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_mmal_port_send_buffer
	movl	%eax, %r15d
	cmpl	(%r12), %eax
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rdx
	movl	24(%rdx), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %ecx
	callq	_LOG_ERROR
	movq	%r14, %rdi
	callq	_mmal_buffer_header_release
	jmp	LBB0_12
LBB0_9:
	movq	8(%rbx), %rdx
	movl	24(%rdx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %ecx
	callq	_LOG_ERROR
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p, %s"

	.comm	_MMAL_EVENT_FORMAT_CHANGED,8,3  ## @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE,4,2 ## @MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"format commit failed on port %s(%p) (%i)"

L_.str.2:                               ## @.str.2
	.asciz	"buffer send failed on port %s(%p) (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_connection_event_format_changed ; -- Begin function mmal_connection_event_format_changed
	.p2align	2
_mmal_connection_event_format_changed:  ; @mmal_connection_event_format_changed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	w2, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_LOG_TRACE
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x0]
	ldr	x8, [x20, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.gt	LBB0_5
; %bb.4:
	ldr	x9, [x0, #8]
	ldr	x10, [x8, #16]
	cmp	x9, x10
	b.le	LBB0_8
LBB0_5:
	ldr	w1, [x0, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mmal_connection_reconfigure
LBB0_6:
Lloh8:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x8, #28]
	ldr	w1, [x0, #16]
	mov	x0, x8
	bl	_mmal_format_full_copy
Lloh11:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x20, #8]
	bl	_mmal_port_format_commit
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_12
LBB0_10:
	ldr	x2, [x20, #8]
	ldr	w1, [x2, #24]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_LOG_ERROR
	b	LBB0_7
LBB0_11:
	mov	x21, x0
	cmp	w21, w8
	b.ne	LBB0_10
LBB0_12:
	mov	x0, x19
	bl	_mmal_buffer_header_acquire
	ldr	x0, [x20]
	mov	x1, x19
	bl	_mmal_port_send_buffer
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.13:
	ldr	x2, [x20]
	ldr	w1, [x2, #24]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x3, x21
	bl	_LOG_ERROR
	mov	x0, x19
	bl	_mmal_buffer_header_release
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p, %s"

	.comm	_MMAL_EVENT_FORMAT_CHANGED,8,3  ; @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE,4,2 ; @MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"format commit failed on port %s(%p) (%i)"

l_.str.2:                               ; @.str.2
	.asciz	"buffer send failed on port %s(%p) (%i)"

.subsections_via_symbols
