	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avcodec_send_event_format_changed
_avcodec_send_event_format_changed:     ## @avcodec_send_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	$0, -32(%rbp)
	movq	_MMAL_EVENT_FORMAT_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mmal_port_event_get
	movq	%rax, (%r15)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rdi
	callq	_mmal_event_format_changed_get
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	movl	8(%r14), %esi
	callq	_mmal_format_copy
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movq	16(%rbx), %rdx
	movq	8(%rdx), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %edi
	callq	_pixfmt_to_encoding
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	imull	4(%rax), %ecx
	addl	%ecx, %ecx
	movl	%ecx, (%rbx)
	movl	%ecx, 4(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 8(%r15)
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mmal_port_event_send
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EVENT_FORMAT_CHANGED,4,2  ## @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get an event buffer"

	.no_dead_strip	_avcodec_send_event_format_changed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avcodec_send_event_format_changed
_avcodec_send_event_format_changed:     ; @avcodec_send_event_format_changed
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EVENT_FORMAT_CHANGED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mmal_port_event_get
	str	x0, [x21]
Lloh3:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_mmal_event_format_changed_get
	mov	x20, x0
	ldr	x0, [x0, #16]
	ldr	w1, [x19, #8]
	bl	_mmal_format_copy
	ldr	x8, [x21, #16]
	ldr	x9, [x20, #16]
	ldr	x9, [x9, #8]
	ldr	d0, [x8]
	str	d0, [x9]
	ldr	w0, [x8, #8]
	bl	_pixfmt_to_encoding
	ldr	x8, [x20, #16]
	str	w0, [x8]
	ldr	x8, [x21, #16]
	ldp	w9, w8, [x8]
	mul	w8, w9, w8
	lsl	w8, w8, #1
	stp	w8, w8, [x20]
	ldr	d0, [x19]
	str	d0, [x20, #8]
	mov	w8, #1
	str	w8, [x21, #8]
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_mmal_port_event_send
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EVENT_FORMAT_CHANGED,4,2  ; @MMAL_EVENT_FORMAT_CHANGED
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get an event buffer"

	.no_dead_strip	_avcodec_send_event_format_changed
.subsections_via_symbols
