	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_do_processing
_copy_do_processing:                    ## @copy_do_processing
	.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	(%rdi), %rax
	movq	(%rax), %r13
	movq	(%r13), %rax
	movq	8(%rax), %rax
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rax)
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %r15
	cmpq	$0, 56(%rax)
	je	LBB0_11
## %bb.3:
	movq	%r15, %rdi
	callq	_mmal_event_format_changed_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	12(%r14), %edi
	movl	(%rax), %esi
	callq	_mmal_format_full_copy
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%r13)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%rax, (%r13)
	movq	(%r12), %rcx
LBB0_6:
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.7:
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_mmal_event_error_send
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	8(%rax), %rcx
	cmpq	(%r15), %rcx
	jge	LBB0_17
## %bb.15:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, (%rax)
	movq	%rbx, %rdi
	callq	_mmal_event_error_send
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.16:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_19
LBB0_12:
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_mmal_queue_put_back
	jmp	LBB0_19
LBB0_9:
	movl	56(%r15), %esi
	movl	8(%r14), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_10:
	movq	$0, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
LBB0_18:
	callq	_mmal_port_buffer_header_callback
	movl	$1, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mmal_buffer_header_mem_lock
	movq	%r15, %rdi
	callq	_mmal_buffer_header_mem_lock
	movq	48(%rbx), %rdi
	movq	(%r15), %rdx
	movq	40(%r15), %rsi
	addq	48(%r15), %rsi
	callq	_memcpy
	movq	%r15, %rdi
	callq	_mmal_buffer_header_mem_unlock
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_mem_unlock
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	$0, 40(%rbx)
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movl	28(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	$0, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	%r13, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format not set on port %s %p (%i)"

L_.str.1:                               ## @.str.1
	.asciz	"unable to send an error event buffer"

L_.str.2:                               ## @.str.2
	.asciz	"discarding event %i on port %s %p"

	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.no_dead_strip	_copy_do_processing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_do_processing
_copy_do_processing:                    ; @copy_do_processing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_20
LBB0_2:
	mov	x21, x0
	ldp	x9, x8, [x0, #8]
	ldr	x24, [x8]
	ldr	x20, [x9]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_20
; %bb.3:
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_mmal_event_format_changed_get
	cbz	x0, LBB0_16
; %bb.5:
	ldr	w8, [x20, #12]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_mmal_format_full_copy
	str	x0, [x24]
Lloh0:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	str	x0, [x24]
	ldr	x8, [x22]
LBB0_7:
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.8:
	ldr	w8, [x20, #8]
	stp	x20, x0, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	ldr	x1, [x24]
	mov	x0, x21
	bl	_mmal_event_error_send
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.9:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_10:
	ldr	x8, [x24]
Lloh6:
	adrp	x25, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.11:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_15
; %bb.12:
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_21
; %bb.13:
Lloh8:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	str	x1, [x24]
	mov	x0, x21
	bl	_mmal_event_error_send
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.14:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	mov	w0, #0
	b	LBB0_20
LBB0_15:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_mmal_queue_put_back
	mov	w0, #0
	b	LBB0_20
LBB0_16:
	ldr	x8, [x19, #56]
	ldr	w9, [x20, #8]
	stp	x9, x20, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_17:
	bl	_LOG_ERROR
LBB0_18:
	str	xzr, [x19]
	mov	x0, x20
	mov	x1, x19
LBB0_19:
	bl	_mmal_port_buffer_header_callback
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x0, x23
	bl	_mmal_buffer_header_mem_lock
	mov	x0, x19
	bl	_mmal_buffer_header_mem_lock
	ldr	x0, [x23, #48]
	ldp	x9, x8, [x19, #40]
	add	x1, x9, x8
	ldr	x2, [x19]
	bl	_memcpy
	mov	x0, x19
	bl	_mmal_buffer_header_mem_unlock
	mov	x0, x23
	bl	_mmal_buffer_header_mem_unlock
	ldr	x8, [x19]
	str	x8, [x23]
	str	xzr, [x23, #40]
	ldr	w8, [x19, #32]
	str	w8, [x23, #32]
	ldr	d0, [x19, #24]
	str	d0, [x23, #24]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	x9, [x23, #16]
	str	w8, [x9]
	str	xzr, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_mmal_port_buffer_header_callback
	mov	x0, x22
	mov	x1, x23
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format not set on port %s %p (%i)"

l_.str.1:                               ; @.str.1
	.asciz	"unable to send an error event buffer"

l_.str.2:                               ; @.str.2
	.asciz	"discarding event %i on port %s %p"

	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.no_dead_strip	_copy_do_processing
.subsections_via_symbols
