	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcil_in_use_buffer             ## -- Begin function vcil_in_use_buffer
	.p2align	4, 0x90
_vcil_in_use_buffer:                    ## @vcil_in_use_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	16(%rsi), %r14
	movl	$40, (%r8)
	movl	4(%rsi), %edi
	leaq	L_.str(%rip), %rdx
	movl	$32, %esi
	callq	_vcos_malloc_aligned
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_IL_USE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	8(%rbx), %ecx
	movl	(%rbx), %edx
	movl	4(%rbx), %r8d
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %r9
	callq	*(%r14)
	movq	%rax, (%r15)
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.3:
	movl	$24, -72(%rbp)
	movq	_OMX_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_OMX_IndexParamPortDefinition@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_vc_assert
	movq	-48(%rbp), %rsi
	movq	%rsi, 24(%r15)
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax
	movq	_OMX_DirInput@GOTPCREL(%rip), %rcx
	addq	$16, %r15
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rax
	cmovneq	%rbx, %r15
	movq	%rax, (%r15)
	jmp	LBB0_5
LBB0_1:
	movq	_OMX_ErrorInsufficientResources@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_vcos_free
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcin mapping buffer"

	.comm	_OMX_ErrorInsufficientResources,8,3 ## @OMX_ErrorInsufficientResources
	.comm	_IL_USE_BUFFER,4,2              ## @IL_USE_BUFFER
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
	.comm	_OMX_VERSION,4,2                ## @OMX_VERSION
	.comm	_OMX_IndexParamPortDefinition,4,2 ## @OMX_IndexParamPortDefinition
	.comm	_OMX_DirInput,8,3               ## @OMX_DirInput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcil_in_use_buffer             ; -- Begin function vcil_in_use_buffer
	.p2align	2
_vcil_in_use_buffer:                    ; @vcil_in_use_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x21, x1
	ldr	x20, [x1, #16]
	mov	w8, #40
	str	w8, [x4]
	ldr	w0, [x1, #4]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #32
	bl	_vcos_malloc_aligned
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x8, _IL_USE_BUFFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IL_USE_BUFFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x20]
	ldp	w4, w3, [x21, #4]
	ldr	w2, [x21]
	add	x1, sp, #24
	mov	x0, x20
	mov	x5, x22
	blr	x8
	str	x0, [x19]
Lloh5:
	adrp	x23, _OMX_ErrorNone@GOTPAGE
Lloh6:
	ldr	x23, [x23, _OMX_ErrorNone@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #24
Lloh7:
	adrp	x9, _OMX_VERSION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OMX_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x9]
	ldr	w9, [x21]
	str	w8, [sp]
	stp	w9, w10, [sp, #16]
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _OMX_IndexParamPortDefinition@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OMX_IndexParamPortDefinition@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	ldr	x8, [x23]
	cmp	x0, x8
	cset	w0, eq
	bl	_vc_assert
	ldr	x1, [sp, #24]
	str	x1, [x19, #24]
	add	x20, x19, #8
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x9, _OMX_DirInput@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OMX_DirInput@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x10, [sp, #24]
	add	x11, x19, #16
	cmp	x8, x9
	csel	x8, x11, x20, eq
	str	x10, [x8]
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _OMX_ErrorInsufficientResources@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OMX_ErrorInsufficientResources@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_vcos_free
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcin mapping buffer"

	.comm	_OMX_ErrorInsufficientResources,8,3 ; @OMX_ErrorInsufficientResources
	.comm	_IL_USE_BUFFER,4,2              ; @IL_USE_BUFFER
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
	.comm	_OMX_VERSION,4,2                ; @OMX_VERSION
	.comm	_OMX_IndexParamPortDefinition,4,2 ; @OMX_IndexParamPortDefinition
	.comm	_OMX_DirInput,8,3               ; @OMX_DirInput
.subsections_via_symbols
