	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function splitter_port_send
_splitter_port_send:                    ## @splitter_port_send
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %rax
	movq	24(%r15), %rcx
	movq	(%rcx), %rbx
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_put
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_15:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	16(%r15), %rax
	movq	(%rax), %r13
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r12
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jae	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	callq	_splitter_send_output
	movq	%rax, %r13
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MMAL_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 4(%rcx)
	jmp	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %eax
	notl	%eax
	testl	%eax, 8(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	$0, (%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_mmal_port_buffer_header_callback
	movl	$0, 4(%rbx)
	jmp	LBB0_15
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_mmal_queue_put
	jmp	LBB0_15
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_mmal_queue_put
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_mmal_event_error_send
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_LOG_ERROR
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_EAGAIN,8,3                ## @MMAL_EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to send an error event buffer (%i)"

	.no_dead_strip	_splitter_port_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function splitter_port_send
_splitter_port_send:                    ; @splitter_port_send
	.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	x25, x8, [x0]
	ldr	x9, [x25, #24]
	ldr	x24, [x9]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_mmal_queue_put
	ldr	w8, [x24]
Lloh0:
	adrp	x23, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MMAL_SUCCESS@GOTPAGEOFF]
	cbz	w8, LBB0_2
LBB0_1:
	ldr	x0, [x23]
	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_2:
	ldr	x8, [x25, #16]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_1
; %bb.3:
	mov	x20, x0
	ldr	w8, [x25]
	cbz	w8, LBB0_9
; %bb.4:
	mov	x26, #0
Lloh2:
	adrp	x27, _MMAL_EAGAIN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MMAL_EAGAIN@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	ldr	w8, [x25]
	cmp	x26, x8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldr	x1, [x8, x26, lsl #3]
	mov	x0, x20
	bl	_splitter_send_output
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x9, [x27]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, x8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w8, w28, w26
	ldr	w9, [x24, #4]
	orr	w8, w9, w8
	str	w8, [x24, #4]
	b	LBB0_5
LBB0_9:
	ldp	w8, w9, [x24, #4]
	bics	wzr, w9, w8
	b.ne	LBB0_11
; %bb.10:
	str	xzr, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_mmal_port_buffer_header_callback
	str	wzr, [x24, #4]
	b	LBB0_1
LBB0_11:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_queue_put
	b	LBB0_1
LBB0_12:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_mmal_queue_put
	ldr	x0, [x19]
	mov	x1, x22
	bl	_mmal_event_error_send
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x24]
	b	LBB0_1
LBB0_14:
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_LOG_ERROR
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_EAGAIN,8,3                ; @MMAL_EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to send an error event buffer (%i)"

	.no_dead_strip	_splitter_port_send
.subsections_via_symbols
