	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function splitter_buffer_callback
_splitter_buffer_callback:              ## @splitter_buffer_callback
	.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, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movl	(%r15), %r13d
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_RAW_OUTPUT_FMT_GRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	4(%rax), %r13d
	imull	(%rax), %r13d
	movl	16(%rbx), %edi
	callq	_vcos_assert
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.6:
	leaq	16(%rbx), %r12
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_vcos_log_error
	jmp	LBB0_10
LBB0_2:
	movl	16(%rbx), %edi
	callq	_vcos_assert
	jmp	LBB0_10
LBB0_4:
	leaq	16(%rbx), %r12
	movl	16(%rbx), %edi
	callq	_vcos_assert
LBB0_7:
	movq	%r15, %rdi
	callq	_mmal_buffer_header_mem_lock
	movl	4(%r15), %edi
	movl	(%r12), %ecx
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_fwrite
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_mmal_buffer_header_mem_unlock
	cmpl	%r13d, %r12d
	je	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_vcos_log_error
	movl	$1, (%rbx)
LBB0_10:
	movq	%r15, %rdi
	callq	_mmal_buffer_header_release
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.11:
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mmal_port_send_buffer
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_log_error                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RAW_OUTPUT_FMT_GRAY,8,3        ## @RAW_OUTPUT_FMT_GRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write raw buffer data (%d from %d)- aborting"

L_.str.1:                               ## @.str.1
	.asciz	"Received a camera buffer callback with no state"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Unable to return a buffer to the splitter port"

	.no_dead_strip	_splitter_buffer_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function splitter_buffer_callback
_splitter_buffer_callback:              ; @splitter_buffer_callback
	.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	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	cbz	x23, LBB0_4
; %bb.1:
	ldr	w21, [x20]
	cbz	w21, LBB0_5
; %bb.2:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RAW_OUTPUT_FMT_GRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RAW_OUTPUT_FMT_GRAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldp	w9, w8, [x8]
	mul	w21, w8, w9
	mov	x22, x23
	ldr	w0, [x22, #16]!
	bl	_vcos_assert
	cbnz	w21, LBB0_7
	b	LBB0_9
LBB0_4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_error
	b	LBB0_9
LBB0_5:
	ldr	w0, [x23, #16]
	bl	_vcos_assert
	b	LBB0_9
LBB0_6:
	mov	x22, x23
	ldr	w0, [x22, #16]!
	bl	_vcos_assert
LBB0_7:
	mov	x0, x20
	bl	_mmal_buffer_header_mem_lock
	ldr	w0, [x20, #4]
	ldr	w3, [x22]
	mov	w24, #1
	mov	w1, #1
	mov	x2, x21
	bl	_fwrite
	mov	x22, x0
	mov	x0, x20
	bl	_mmal_buffer_header_mem_unlock
	cmp	w22, w21
	b.eq	LBB0_9
; %bb.8:
	stp	x22, x21, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_error
	str	w24, [x23]
LBB0_9:
	mov	x0, x20
	bl	_mmal_buffer_header_release
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_13
; %bb.11:
	mov	x1, x0
	mov	x0, x19
	bl	_mmal_port_send_buffer
Lloh7:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_12:
	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_13:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	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	_vcos_log_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RAW_OUTPUT_FMT_GRAY,8,3        ; @RAW_OUTPUT_FMT_GRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write raw buffer data (%d from %d)- aborting"

l_.str.1:                               ; @.str.1
	.asciz	"Received a camera buffer callback with no state"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Unable to return a buffer to the splitter port"

	.no_dead_strip	_splitter_buffer_callback
.subsections_via_symbols
