	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalomx_ComponentAllocateBuffer
_mmalomx_ComponentAllocateBuffer:       ## @mmalomx_ComponentAllocateBuffer
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, %rcx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rbx, %r8
	movl	%r13d, %r9d
	callq	_LOG_TRACE
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movq	_OMX_StateInvalid@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_OMX_ErrorInvalidState@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_1:
	movq	_OMX_ErrorInvalidComponent@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_3:
	movq	_OMX_ErrorBadParameter@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_6:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%r15)
	jbe	LBB0_7
## %bb.8:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rax, %r13
	callq	_mmalomx_commands_actions_check
	movq	16(%r15), %rbx
	leaq	(%r13,%r13,2), %r13
	shlq	$4, %r13
	leaq	(%rbx,%r13), %rsi
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_MMALOMX_LOCK_PORT
	movq	%r13, %r8
	movq	_MMALOMX_ACTION_CHECK_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx,%r13)
	movq	_OMX_ErrorIncorrectStateOperation@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmoveq	%rax, %r12
	cmpl	$0, 4(%rbx,%r13)
	cmovneq	%rax, %r12
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_9
## %bb.16:
	testq	%r12, %r12
	je	LBB0_17
LBB0_20:
	movq	24(%rbx,%r8), %rdi
	movq	(%rdi), %rdx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	cmpq	%r13, %rdx
	jbe	LBB0_23
## %bb.21:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_22
LBB0_7:
	movq	_OMX_ErrorBadPortIndex@GOTPCREL(%rip), %rax
LBB0_44:
	movq	(%rax), %r12
LBB0_45:
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	cmpl	$0, 8(%rbx,%r8)
	je	LBB0_24
## %bb.33:
	movq	8(%rdi), %rdx
	cmpq	%r13, %rdx
	jae	LBB0_25
## %bb.34:
	leaq	L_.str.2(%rip), %rdi
LBB0_22:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movl	%r13d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	movq	%r8, %rbx
	callq	_LOG_ERROR
	movq	%rbx, %r8
	movq	%r14, %rbx
	movq	_OMX_ErrorBadParameter@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_10
LBB0_17:
	cmpl	$0, 8(%rbx,%r8)
	je	LBB0_20
## %bb.18:
	cmpq	$0, 40(%rbx,%r8)
	jne	LBB0_20
## %bb.19:
	movq	_OMX_ErrorBadParameter@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_9:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$0, 40(%rbx,%r8)
	jne	LBB0_14
LBB0_12:
	cmpl	$0, 32(%rbx,%r8)
	jne	LBB0_14
## %bb.13:
	movq	24(%rbx,%r8), %rdi
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movq	%rbx, %r14
	movl	(%rax), %esi
	movq	_MMAL_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r8, %rbx
	callq	_mmal_port_parameter_set_boolean
	movq	%rbx, %r8
	movq	%r14, %rbx
	jmp	LBB0_14
LBB0_24:
	movq	%r13, 8(%rdi)
LBB0_25:
	leaq	(%rbx,%r8), %rax
	addq	$24, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 40(%rbx,%r8)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_31
## %bb.26:
	movq	_MMALOMX_ZERO_COPY_THRESHOLD@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jae	LBB0_31
## %bb.27:
	cmpl	$0, 32(%rbx,%r8)
	jne	LBB0_31
## %bb.28:
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r8, %r12
	callq	_mmal_port_parameter_set_boolean
	movq	%r12, %r8
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_31
## %bb.29:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_31
## %bb.30:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	20(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	%r12, %r8
LBB0_31:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	$1, %edi
	movl	$80, %esi
	callq	_calloc
	testq	%rax, %rax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_32
## %bb.35:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	%r13, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_mmal_port_payload_alloc
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 32(%rdi)
	testq	%rax, %rax
	je	LBB0_36
## %bb.38:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rdx,%rsi), %r12
	addq	$4, %r12
	movl	$80, (%rdi)
	movq	_OMX_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%rdi)
	movq	%r13, 8(%rdi)
	movq	%rbx, 64(%rdi)
	movq	16(%rdx,%rsi), %rcx
	movq	_OMX_DirInput@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_40
## %bb.39:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rdi)
	movq	%rdi, %rcx
	addq	$56, %rcx
	jmp	LBB0_41
LBB0_32:
	movq	_OMX_ErrorInsufficientResources@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_37
LBB0_36:
	movq	_OMX_ErrorInsufficientResources@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_37:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	cmpq	$0, 40(%rbx,%r8)
	je	LBB0_12
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %r14
	movq	%r13, %rsi
	movq	%r8, %rbx
	callq	_MMALOMX_UNLOCK_PORT
	movl	8(%r14,%rbx), %esi
	movq	24(%r14,%rbx), %rax
	movl	16(%rax), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_45
## %bb.15:
	callq	_free
	jmp	LBB0_45
LBB0_40:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 24(%rdi)
	movq	%rdi, %rcx
	addq	$48, %rcx
LBB0_41:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, (%rcx)
	movq	%rax, 40(%rdi)
	movq	%rdi, (%r14)
	movl	4(%r12), %ebx
	incl	%ebx
	movl	%ebx, 4(%r12)
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 36(%r12)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movl	16(%rax), %r14d
	xorl	%eax, %eax
	cmpl	%r14d, %ebx
	sete	%al
	movl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_MMALOMX_UNLOCK_PORT
	movl	4(%r12), %esi
	movq	(%r13), %rax
	movl	16(%rax), %edx
	leaq	L_.str.4(%rip), %rdi
	callq	_LOG_DEBUG
	cmpl	%r14d, %ebx
	jne	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	callq	_mmalomx_commands_actions_signal
LBB0_43:
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rax
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
	.comm	_MMAL_FALSE,8,3                 ## @MMAL_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hComponent %p, ppBuffer %p, nPortIndex %i, pAppPrivate %p, nSizeBytes %i"

	.comm	_OMX_ErrorInvalidComponent,8,3  ## @OMX_ErrorInvalidComponent
	.comm	_OMX_ErrorBadParameter,8,3      ## @OMX_ErrorBadParameter
	.comm	_OMX_StateInvalid,8,3           ## @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,8,3      ## @OMX_ErrorInvalidState
	.comm	_OMX_ErrorBadPortIndex,8,3      ## @OMX_ErrorBadPortIndex
	.comm	_MMALOMX_ACTION_CHECK_ALLOCATED,4,2 ## @MMALOMX_ACTION_CHECK_ALLOCATED
	.comm	_OMX_ErrorIncorrectStateOperation,8,3 ## @OMX_ErrorIncorrectStateOperation
L_.str.1:                               ## @.str.1
	.asciz	"buffer size too small (%i/%i)"

L_.str.2:                               ## @.str.2
	.asciz	"buffer size too big (%i/%i)"

	.comm	_MMALOMX_ZERO_COPY_THRESHOLD,8,3 ## @MMALOMX_ZERO_COPY_THRESHOLD
	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ## @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_TRUE,8,3                  ## @MMAL_TRUE
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"failed to enable zero copy on %s"

	.comm	_OMX_ErrorInsufficientResources,8,3 ## @OMX_ErrorInsufficientResources
	.comm	_OMX_VERSION,4,2                ## @OMX_VERSION
	.comm	_OMX_DirInput,8,3               ## @OMX_DirInput
L_.str.4:                               ## @.str.4
	.asciz	"allocated %i/%i buffers"

L_.str.5:                               ## @.str.5
	.asciz	"failed to allocate %i/%i buffers"

	.no_dead_strip	_mmalomx_ComponentAllocateBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalomx_ComponentAllocateBuffer
_mmalomx_ComponentAllocateBuffer:       ; @mmalomx_ComponentAllocateBuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x28, _OMX_ErrorNone@GOTPAGE
Lloh1:
	ldr	x28, [x28, _OMX_ErrorNone@GOTPAGEOFF]
	ldr	x25, [x28]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x23
	mov	x5, x24
	bl	_LOG_TRACE
	cbz	x19, LBB0_4
; %bb.1:
	cbz	x22, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _OMX_StateInvalid@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OMX_StateInvalid@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _OMX_ErrorInvalidState@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMX_ErrorInvalidState@GOTPAGEOFF]
Lloh9:
	ldr	x26, [x8]
	b	LBB0_38
LBB0_4:
Lloh10:
	adrp	x8, _OMX_ErrorInvalidComponent@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMX_ErrorInvalidComponent@GOTPAGEOFF]
Lloh12:
	ldr	x26, [x8]
	b	LBB0_38
LBB0_5:
Lloh13:
	adrp	x8, _OMX_ErrorBadParameter@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OMX_ErrorBadParameter@GOTPAGEOFF]
Lloh15:
	ldr	x26, [x8]
	b	LBB0_38
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ls	LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_mmalomx_commands_actions_check
	ldr	x27, [x19, #16]
	mov	w8, #48
	madd	x21, x20, x8, x27
	mov	x0, x19
	mov	x1, x21
	bl	_MMALOMX_LOCK_PORT
	ldr	w8, [x21]
Lloh16:
	adrp	x9, _MMALOMX_ACTION_CHECK_ALLOCATED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MMALOMX_ACTION_CHECK_ALLOCATED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _OMX_ErrorIncorrectStateOperation@GOTPAGE
Lloh20:
	ldr	x10, [x10, _OMX_ErrorIncorrectStateOperation@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x8, x10, x25, eq
	mov	x11, x21
	ldr	w9, [x11, #4]!
	cmp	w9, #0
	csel	x26, x8, x10, eq
	ldr	x8, [x28]
	cmp	x26, x8
	b.ne	LBB0_12
; %bb.8:
	cbz	x26, LBB0_18
LBB0_9:
	mov	w8, #48
	madd	x26, x20, x8, x27
	ldr	x0, [x26, #24]!
	ldr	x8, [x0]
	cmp	x8, x24
	b.ls	LBB0_13
; %bb.10:
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_11:
Lloh24:
	adrp	x8, _OMX_ErrorBadPortIndex@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OMX_ErrorBadPortIndex@GOTPAGEOFF]
Lloh26:
	ldr	x26, [x8]
	b	LBB0_38
LBB0_12:
	mov	x25, #0
	b	LBB0_33
LBB0_13:
	mov	w8, #48
	madd	x9, x20, x8, x27
	ldr	w8, [x9, #8]!
	cbz	w8, LBB0_20
; %bb.14:
	ldr	x8, [x0, #8]
	cmp	x8, x24
	b.hs	LBB0_21
; %bb.15:
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_16:
	mov	x1, x24
	bl	_LOG_ERROR
LBB0_17:
	mov	x25, #0
Lloh29:
	adrp	x8, _OMX_ErrorBadParameter@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OMX_ErrorBadParameter@GOTPAGEOFF]
	b	LBB0_32
LBB0_18:
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_9
; %bb.19:
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	x8, [x8, #40]
	cbnz	x8, LBB0_9
	b	LBB0_17
LBB0_20:
	str	x24, [x0, #8]
LBB0_21:
	stp	x11, x9, [sp, #16]              ; 16-byte Folded Spill
	mov	w8, #48
	madd	x9, x20, x8, x27
	ldr	x8, [x9, #40]!
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	cbnz	x8, LBB0_27
; %bb.22:
Lloh31:
	adrp	x8, _MMALOMX_ZERO_COPY_THRESHOLD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MMALOMX_ZERO_COPY_THRESHOLD@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x8, x24
	b.hs	LBB0_27
; %bb.23:
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_27
; %bb.24:
Lloh34:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh39:
	ldr	x2, [x8]
	bl	_mmal_port_parameter_set_boolean
Lloh40:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_27
; %bb.25:
Lloh43:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_27
; %bb.26:
	ldr	x8, [x26]
	ldr	w1, [x8, #20]
Lloh46:
	adrp	x0, l_.str.3@PAGE
Lloh47:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LOG_ERROR
LBB0_27:
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x25, x0
	cbz	x0, LBB0_31
; %bb.28:
	ldr	x0, [x26]
	mov	x1, x24
	bl	_mmal_port_payload_alloc
	str	x0, [x25, #32]
	cbz	x0, LBB0_31
; %bb.29:
	mov	w8, #80
Lloh48:
	adrp	x9, _OMX_VERSION@GOTPAGE
Lloh49:
	ldr	x9, [x9, _OMX_VERSION@GOTPAGEOFF]
	str	w8, [x25]
Lloh50:
	ldr	w8, [x9]
	str	w8, [x25, #72]
	str	x24, [x25, #8]
	str	x23, [x25, #64]
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	x8, [x8, #16]
Lloh51:
	adrp	x9, _OMX_DirInput@GOTPAGE
Lloh52:
	ldr	x9, [x9, _OMX_DirInput@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_39
; %bb.30:
	str	x20, [x25, #16]
	add	x8, x25, #56
	b	LBB0_40
LBB0_31:
Lloh54:
	adrp	x8, _OMX_ErrorInsufficientResources@GOTPAGE
Lloh55:
	ldr	x8, [x8, _OMX_ErrorInsufficientResources@GOTPAGEOFF]
LBB0_32:
	ldr	x26, [x8]
LBB0_33:
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	x8, [x8, #40]
	cbnz	x8, LBB0_36
; %bb.34:
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_36
; %bb.35:
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	x0, [x8, #24]
Lloh56:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x8, _MMAL_FALSE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MMAL_FALSE@GOTPAGEOFF]
Lloh61:
	ldr	x2, [x8]
	bl	_mmal_port_parameter_set_boolean
LBB0_36:
	mov	x0, x19
	mov	x1, x21
	bl	_MMALOMX_UNLOCK_PORT
	mov	w8, #48
	madd	x8, x20, x8, x27
	ldr	w1, [x8, #8]
	ldr	x8, [x8, #24]
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh62:
	adrp	x0, l_.str.5@PAGE
Lloh63:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_LOG_ERROR
	cbz	x25, LBB0_38
; %bb.37:
	mov	x0, x25
	bl	_free
LBB0_38:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_39:
	str	x20, [x25, #24]
	add	x8, x25, #48
LBB0_40:
	ldp	x10, x9, [sp, #8]               ; 16-byte Folded Reload
	str	x23, [x8]
	str	x0, [x25, #40]
	str	x25, [x22]
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w8, [x23]
	add	w20, w8, #1
	str	w20, [x23]
Lloh64:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	str	x8, [x10]
	ldr	x8, [x26]
	ldr	w22, [x8, #16]
	cmp	w20, w22
	cset	w8, eq
	str	w8, [x9]
	mov	x0, x19
	mov	x1, x21
	bl	_MMALOMX_UNLOCK_PORT
	ldr	w1, [x23]
	ldr	x8, [x26]
	ldr	w2, [x8, #16]
Lloh67:
	adrp	x0, l_.str.4@PAGE
Lloh68:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG_DEBUG
	cmp	w20, w22
	b.ne	LBB0_42
; %bb.41:
	mov	x0, x19
	bl	_mmalomx_commands_actions_signal
LBB0_42:
	ldr	x26, [x28]
	b	LBB0_38
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
	.comm	_MMAL_FALSE,8,3                 ; @MMAL_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hComponent %p, ppBuffer %p, nPortIndex %i, pAppPrivate %p, nSizeBytes %i"

	.comm	_OMX_ErrorInvalidComponent,8,3  ; @OMX_ErrorInvalidComponent
	.comm	_OMX_ErrorBadParameter,8,3      ; @OMX_ErrorBadParameter
	.comm	_OMX_StateInvalid,8,3           ; @OMX_StateInvalid
	.comm	_OMX_ErrorInvalidState,8,3      ; @OMX_ErrorInvalidState
	.comm	_OMX_ErrorBadPortIndex,8,3      ; @OMX_ErrorBadPortIndex
	.comm	_MMALOMX_ACTION_CHECK_ALLOCATED,4,2 ; @MMALOMX_ACTION_CHECK_ALLOCATED
	.comm	_OMX_ErrorIncorrectStateOperation,8,3 ; @OMX_ErrorIncorrectStateOperation
l_.str.1:                               ; @.str.1
	.asciz	"buffer size too small (%i/%i)"

l_.str.2:                               ; @.str.2
	.asciz	"buffer size too big (%i/%i)"

	.comm	_MMALOMX_ZERO_COPY_THRESHOLD,8,3 ; @MMALOMX_ZERO_COPY_THRESHOLD
	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ; @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_TRUE,8,3                  ; @MMAL_TRUE
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"failed to enable zero copy on %s"

	.comm	_OMX_ErrorInsufficientResources,8,3 ; @OMX_ErrorInsufficientResources
	.comm	_OMX_VERSION,4,2                ; @OMX_VERSION
	.comm	_OMX_DirInput,8,3               ; @OMX_DirInput
l_.str.4:                               ; @.str.4
	.asciz	"allocated %i/%i buffers"

l_.str.5:                               ; @.str.5
	.asciz	"failed to allocate %i/%i buffers"

	.no_dead_strip	_mmalomx_ComponentAllocateBuffer
.subsections_via_symbols
