	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function graph_do_processing
_graph_do_processing:                   ## @graph_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, %r15
	movl	(%rdi), %r13d
	movl	4(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_mmal_queue_put_back
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	incl	%r13d
	movl	4(%r15), %ecx
	cmpl	%ecx, %r14d
	jae	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r15), %rsi
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rsi,%rdx,8), %r12
	movq	_MMAL_CONNECTION_FLAG_TUNNELLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edi
	callq	_mmal_queue_get
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rdi
	movq	%rbx, %rsi
	callq	_mmal_port_send_buffer
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_LOG_ERROR
	jmp	LBB0_11
LBB0_13:
	movl	(%r15), %ebx
	leal	1(%rbx), %eax
	movl	%eax, (%r15)
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%r14d
	incl	%ebx
	movl	4(%r15), %ecx
	cmpl	%ecx, %r14d
	jae	LBB0_22
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	8(%r15), %rsi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rsi,%rdx,8), %r12
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs64
	movq	%rax, %r13
	movl	(%r12), %eax
	movq	_MMAL_CONNECTION_FLAG_TUNNELLING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_MMAL_CONNECTION_FLAG_DIRECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs64
	subq	%r13, %rax
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_PROCESSING_TIME_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	4(%r12), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_graph_process_buffer
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs64
	subq	%r13, %rax
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_1:
	incl	%r13d
	movl	%r13d, (%r15)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_22:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ## @MMAL_CONNECTION_FLAG_TUNNELLING
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmal_port_send_buffer failed (%i)"

	.comm	_MMAL_CONNECTION_FLAG_DIRECT,4,2 ## @MMAL_CONNECTION_FLAG_DIRECT
	.comm	_PROCESSING_TIME_MAX,8,3        ## @PROCESSING_TIME_MAX
	.no_dead_strip	_graph_do_processing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function graph_do_processing
_graph_do_processing:                   ; @graph_do_processing
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w24, w8, [x0]
	mov	w20, #0
	cbz	w8, LBB0_14
; %bb.1:
	mov	w25, #0
Lloh0:
	adrp	x23, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MMAL_CONNECTION_FLAG_TUNNELLING@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #8]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_mmal_queue_put_back
	mov	w20, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	add	w24, w24, #1
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.hs	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x19, #8]
	udiv	w10, w24, w8
	msub	w8, w10, w8, w24
	ldr	x27, [x9, w8, uxtw #3]
	ldr	w8, [x27]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8]
	bl	_mmal_queue_get
	mov	x22, x0
	cbz	x0, LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x27, #16]
	mov	x1, x22
	bl	_mmal_port_send_buffer
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x27, #8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #1
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_LOG_ERROR
	b	LBB0_2
LBB0_12:
	ldr	w24, [x19]
	add	w9, w24, #1
	str	w9, [x19]
	cbz	w8, LBB0_15
; %bb.13:
	mov	w25, #0
Lloh6:
	adrp	x26, _MMAL_CONNECTION_FLAG_DIRECT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MMAL_CONNECTION_FLAG_DIRECT@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PROCESSING_TIME_MAX@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PROCESSING_TIME_MAX@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
	add	w8, w24, #1
	str	w8, [x19]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w20, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w25, w25, #1
	add	w24, w24, #1
	ldr	w8, [x19, #4]
	cmp	w25, w8
	b.hs	LBB0_15
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x9, [x19, #8]
	udiv	w10, w24, w8
	msub	w8, w10, w8, w24
	ldr	x21, [x9, w8, uxtw #3]
	bl	_vcos_getmicrosecs64
	ldr	w8, [x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x22, x0
	bl	_vcos_getmicrosecs64
	ldr	x8, [x27]
	sub	x9, x0, x22
	cmp	x9, x8
	b.ge	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x21, #4]
	bl	_mmal_queue_get
	mov	x2, x0
	cbz	x0, LBB0_17
LBB0_22:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_graph_process_buffer
	bl	_vcos_getmicrosecs64
	ldr	x8, [x27]
	sub	x9, x0, x22
	cmp	x9, x8
	b.ge	LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	w0, [x21, #4]
	bl	_mmal_queue_get
	mov	x2, x0
	mov	w20, #1
	cbnz	x0, LBB0_22
	b	LBB0_17
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_CONNECTION_FLAG_TUNNELLING,4,2 ; @MMAL_CONNECTION_FLAG_TUNNELLING
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmal_port_send_buffer failed (%i)"

	.comm	_MMAL_CONNECTION_FLAG_DIRECT,4,2 ; @MMAL_CONNECTION_FLAG_DIRECT
	.comm	_PROCESSING_TIME_MAX,8,3        ; @PROCESSING_TIME_MAX
	.no_dead_strip	_graph_do_processing
.subsections_via_symbols
