	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_port_connected_output_cb
_mmal_port_connected_output_cb:         ## @mmal_port_connected_output_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	%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	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	16(%rsi), %ecx
	movl	8(%rsi), %r9d
	movl	12(%rsi), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_LOG_TRACE
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_mmal_event_format_changed_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	20(%r14), %edi
	movl	(%rax), %esi
	callq	_mmal_format_full_copy
	movq	%rax, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rax, %r12
	je	LBB0_3
## %bb.4:
	cmpq	%rax, %r12
	jne	LBB0_5
LBB0_6:
	cmpq	%rax, %r12
	je	LBB0_7
LBB0_8:
	cmpq	%rax, %r12
	je	LBB0_14
	jmp	LBB0_9
LBB0_10:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmal_port_send_buffer
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movl	(%r14), %r14d
	movslq	(%r15), %r15
	movq	%rax, %rdi
	callq	_mmal_status_to_string
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_13
LBB0_3:
	movq	%r14, %rdi
	callq	_mmal_port_format_commit
	movq	%rax, %r12
	movq	(%r13), %rax
	cmpq	%rax, %r12
	je	LBB0_6
LBB0_5:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	(%r13), %rax
	cmpq	%rax, %r12
	jne	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmal_port_send_buffer
	movq	%rax, %r12
	movq	(%r13), %rax
	cmpq	%rax, %r12
	jne	LBB0_9
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	16(%r14), %edi
	movq	%r12, %rsi
	callq	_mmal_event_error_send
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"buffer %p from connected output port %p: data %p, alloc_size %u, length %u"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"format commit failed on port %s (%i)"

L_.str.2:                               ## @.str.2
	.asciz	"%s could not send buffer on port %s (%s)"

	.no_dead_strip	_mmal_port_connected_output_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_port_connected_output_cb
_mmal_port_connected_output_cb:         ; @mmal_port_connected_output_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldp	w4, w3, [x1, #12]
	ldr	w5, [x1, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_LOG_TRACE
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w8, [x20, #20]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_mmal_format_full_copy
Lloh2:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_mmal_port_format_commit
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_8
	b	LBB0_9
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_mmal_port_send_buffer
Lloh4:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.6:
	ldr	w20, [x20]
	ldrsw	x21, [x21]
	bl	_mmal_status_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_LOG_ERROR
	b	LBB0_14
LBB0_7:
	mov	x22, x0
	cmp	x22, x8
	b.eq	LBB0_9
LBB0_8:
	ldr	w1, [x20]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_LOG_ERROR
	ldr	x8, [x23]
LBB0_9:
	cmp	x22, x8
	b.eq	LBB0_12
; %bb.10:
	cmp	x22, x8
	b.ne	LBB0_13
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x0, x21
	mov	x1, x19
	bl	_mmal_port_send_buffer
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x22, x8
	b.eq	LBB0_11
LBB0_13:
	ldr	w0, [x20, #16]
	mov	x1, x22
	bl	_mmal_event_error_send
LBB0_14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_mmal_buffer_header_release
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer %p from connected output port %p: data %p, alloc_size %u, length %u"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"format commit failed on port %s (%i)"

l_.str.2:                               ; @.str.2
	.asciz	"%s could not send buffer on port %s (%s)"

	.no_dead_strip	_mmal_port_connected_output_cb
.subsections_via_symbols
