	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function artificial_camera_do_processing
_artificial_camera_do_processing:       ## @artificial_camera_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	16(%rdi), %rax
	movq	(%rax), %r12
	movq	(%r12), %rax
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_13
## %bb.2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_mem_unlock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmal_port_buffer_header_callback
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	jae	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	32(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_mem_lock
	movq	%rax, (%r12)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 32(%rbx)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	24(%rbx), %rcx
	movups	16(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rdx
	movl	$255, %esi
	callq	_memset
	movq	24(%rbx), %rax
	cmpl	$2, (%rax)
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	movq	8(%rbx), %rdi
	addq	%rax, %rdi
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx), %edx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rcx)
	movl	$127, %esi
	subl	%edx, %esi
	movq	16(%rbx), %rdx
	subq	%rax, %rdx
	callq	_memset
	jmp	LBB0_11
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_sleep                     ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_8
LBB0_7:
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LOG_ERROR
LBB0_8:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	32(%rax), %edi
	movq	%rbx, %rsi
	callq	_mmal_queue_put_back
	movq	(%r12), %rsi
	movq	%r14, %rdi
	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
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer too small (%i/%i)"

	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid buffer (%p, %p)"

	.no_dead_strip	_artificial_camera_do_processing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function artificial_camera_do_processing
_artificial_camera_do_processing:       ; @artificial_camera_do_processing
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	x8, [x22]
Lloh0:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x24, #0
	mov	w25, #127
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmal_buffer_header_mem_unlock
	mov	x0, x21
	mov	x1, x20
	bl	_mmal_port_buffer_header_callback
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	w8, [x19]
	cmp	x24, x8
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x24, lsl #3]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8, #32]
	bl	_mmal_queue_get
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	ldr	x1, [x0]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x2, [x8]
	cmp	x1, x2
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmal_buffer_header_mem_lock
	str	x0, [x22]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x20, #32]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x8]
	str	x9, [x20, #16]
	ldr	x9, [x20, #24]
	ldr	q0, [x8, #16]
	str	q0, [x9]
	ldp	x0, x2, [x20, #8]
	mov	w1, #255
	bl	_memset
	ldr	x8, [x20, #24]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldp	x9, x10, [x20, #8]
	add	x0, x8, x9
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	w11, [x9, #8]
	add	w12, w11, #1
	str	w12, [x9, #8]
	sub	w1, w25, w11
	sub	x2, x10, x8
	bl	_memset
	b	LBB0_3
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #10
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vcos_sleep
LBB0_12:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
Lloh4:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_14
LBB0_13:
	ldr	x2, [x20, #8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_LOG_ERROR
LBB0_14:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8, #32]
	mov	x1, x20
	bl	_mmal_queue_put_back
	ldr	x1, [x22]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mmal_event_error_send
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer too small (%i/%i)"

	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid buffer (%p, %p)"

	.no_dead_strip	_artificial_camera_do_processing
.subsections_via_symbols
