	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_component_create_core
_mmal_component_create_core:            ## @mmal_component_create_core
	.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	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	callq	_strlen
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_mmal_core_init
	leal	85(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_vcos_calloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incl	%r14d
	movq	%rax, %r13
	addq	$80, %r13
	movq	%r13, 72(%rax)
	movq	(%r15), %rax
	movq	72(%rax), %rdi
	addq	$4, %rdi
	movq	%rdi, (%rax)
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%r15), %rax
	movq	72(%rax), %rax
	movl	$1, (%rax)
	movq	_VCOS_THREAD_PRI_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_vcos_mutex_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.8:
	movq	%rbx, %r13
	movq	_mmal_core_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movq	_mmal_core_instance_count@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	(%r15), %rax
	movq	%rcx, 64(%rax)
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movq	(%r15), %rdi
	movq	_MMAL_PORT_TYPE_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_mmal_port_alloc
	movq	(%r15), %rcx
	movq	%rax, 56(%rcx)
	movq	(%r15), %rax
	movq	56(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.9:
	callq	_mmal_component_init_control_port
	movq	(%r15), %rax
	movq	72(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.10:
	movq	_mmal_component_supplier_create@GOTPCREL(%rip), %rcx
LBB0_11:
	movq	(%r15), %rsi
	movq	%r13, %rdi
	callq	*%rcx
	movl	%eax, %r12d
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_12
## %bb.17:
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	56(%rax), %rax
	movl	(%rax), %esi
	cmpl	$11, %esi
	ja	LBB0_19
## %bb.18:
	movl	$12, (%rax)
	movl	$12, %esi
LBB0_19:
	movq	8(%rax), %rdi
	movq	_MMAL_CONTROL_PORT_BUFFERS_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_21
## %bb.20:
	movq	%rcx, 8(%rax)
	movq	%rcx, %rdi
LBB0_21:
	callq	_mmal_pool_create
	movq	(%r15), %rcx
	movq	72(%rcx), %rdx
	movl	%eax, 4(%rdx)
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movl	12(%rcx), %eax
	movl	20(%rcx), %edx
	addl	16(%rcx), %eax
	leal	(%rax,%rdx), %esi
	addl	%edx, %eax
	incl	%eax
	movl	%eax, 8(%rcx)
	leal	8(,%rsi,8), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_vcos_malloc
	movq	(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	(%r15), %rax
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.25:
	movq	56(%rax), %rax
	movq	%rax, (%rcx)
	movq	(%r15), %rcx
	cmpl	$0, 12(%rcx)
	je	LBB0_26
## %bb.38:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rcx), %rdx
	movq	48(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	%rcx, 8(%rdx,%rax,8)
	incq	%rax
	movq	(%r15), %rcx
	movl	12(%rcx), %edx
	cmpq	%rdx, %rax
	jb	LBB0_39
## %bb.27:
	incl	%eax
	jmp	LBB0_28
LBB0_1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	(%r13), %r12d
	jmp	LBB0_7
LBB0_5:
	movq	(%r15), %rdi
	callq	_vcos_free
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r12d
	jmp	LBB0_7
LBB0_12:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	jmp	LBB0_16
LBB0_22:
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	56(%rcx), %rax
	movq	8(%rax), %rsi
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rdi
LBB0_16:
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_14
LBB0_24:
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_14:
	movq	(%r15), %rdi
	callq	_mmal_component_destroy_internal
	movq	$0, (%r15)
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	$1, %eax
LBB0_28:
	cmpl	$0, 16(%rcx)
	je	LBB0_32
## %bb.29:
	movl	%eax, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rdx), %edi
	movq	24(%rcx), %rbx
	movq	40(%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%rbx,%rdi,8)
	incq	%rdx
	movq	(%r15), %rcx
	movl	16(%rcx), %edi
	cmpq	%rdi, %rdx
	jb	LBB0_30
## %bb.31:
	addl	%edx, %eax
LBB0_32:
	cmpl	$0, 20(%rcx)
	je	LBB0_35
## %bb.33:
	movl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rdx), %esi
	movq	24(%rcx), %rdi
	movq	32(%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%rdi,%rsi,8)
	incq	%rdx
	movq	(%r15), %rcx
	movl	20(%rcx), %esi
	cmpq	%rsi, %rdx
	jb	LBB0_34
LBB0_35:
	movl	8(%rcx), %r8d
	testq	%r8, %r8
	je	LBB0_44
## %bb.36:
	movq	24(%rcx), %rax
	leaq	-1(%r8), %rsi
	movl	%r8d, %edx
	andl	$7, %edx
	cmpq	$7, %rsi
	jae	LBB0_40
## %bb.37:
	xorl	%esi, %esi
	jmp	LBB0_42
LBB0_40:
	andl	$-8, %r8d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rbx
	movl	%esi, 16(%rbx)
	movq	8(%rax,%rsi,8), %rbx
	leal	1(%rsi), %edi
	movl	%edi, 16(%rbx)
	movq	16(%rax,%rsi,8), %rdi
	leal	2(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	movq	24(%rax,%rsi,8), %rdi
	leal	3(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	movq	32(%rax,%rsi,8), %rdi
	leal	4(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	movq	40(%rax,%rsi,8), %rdi
	leal	5(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	movq	48(%rax,%rsi,8), %rdi
	leal	6(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	movq	56(%rax,%rsi,8), %rdi
	leal	7(%rsi), %ebx
	movl	%ebx, 16(%rdi)
	addq	$8, %rsi
	cmpq	%r8, %rsi
	jne	LBB0_41
LBB0_42:
	testq	%rdx, %rdx
	je	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdi
	movl	%esi, 16(%rdi)
	incq	%rsi
	decq	%rdx
	jne	LBB0_43
LBB0_44:
	movq	64(%rcx), %rdx
	leaq	L_.str.7(%rip), %rdi
	movq	%r13, %rsi
	callq	_LOG_INFO
	movl	(%r14), %ecx
	movq	(%r15), %r8
	movq	56(%r8), %rdx
	movl	%ecx, 40(%rdx)
	movl	$0, 20(%rdx)
	movl	12(%r8), %r9d
	testq	%r9, %r9
	je	LBB0_49
## %bb.45:
	movq	48(%r8), %rcx
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	-1(%r9), %rdi
	movl	%r9d, %esi
	andl	$3, %esi
	cmpq	$3, %rdi
	jae	LBB0_67
## %bb.46:
	xorl	%edi, %edi
	jmp	LBB0_47
LBB0_67:
	andl	$-4, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_68:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	movl	%edi, 20(%rax)
	movq	8(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	1(%rdi), %ebx
	movl	%ebx, 20(%rax)
	movq	16(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	2(%rdi), %ebx
	movl	%ebx, 20(%rax)
	movq	24(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	3(%rdi), %ebx
	movl	%ebx, 20(%rax)
	addq	$4, %rdi
	cmpq	%r9, %rdi
	jne	LBB0_68
LBB0_47:
	testq	%rsi, %rsi
	je	LBB0_49
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rbx
	movl	%edx, 40(%rbx)
	movl	%edi, 20(%rbx)
	incq	%rdi
	decq	%rsi
	jne	LBB0_48
LBB0_49:
	movl	16(%r8), %r9d
	testq	%r9, %r9
	je	LBB0_54
## %bb.50:
	movq	40(%r8), %rcx
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	-1(%r9), %rdi
	movl	%r9d, %esi
	andl	$3, %esi
	cmpq	$3, %rdi
	jae	LBB0_69
## %bb.51:
	xorl	%edi, %edi
	jmp	LBB0_52
LBB0_69:
	andl	$-4, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_70:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	movl	%edi, 20(%rax)
	movq	8(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	1(%rdi), %ebx
	movl	%ebx, 20(%rax)
	movq	16(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	2(%rdi), %ebx
	movl	%ebx, 20(%rax)
	movq	24(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	3(%rdi), %ebx
	movl	%ebx, 20(%rax)
	addq	$4, %rdi
	cmpq	%r9, %rdi
	jne	LBB0_70
LBB0_52:
	testq	%rsi, %rsi
	je	LBB0_54
	.p2align	4, 0x90
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	movl	%edi, 20(%rax)
	incq	%rdi
	decq	%rsi
	jne	LBB0_53
LBB0_54:
	movl	20(%r8), %r9d
	testq	%r9, %r9
	je	LBB0_59
## %bb.55:
	movq	32(%r8), %rcx
	movq	_MMAL_PORT_TYPE_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1(%r9), %rax
	movl	%r9d, %esi
	andl	$3, %esi
	cmpq	$3, %rax
	jae	LBB0_71
## %bb.56:
	xorl	%edi, %edi
	jmp	LBB0_57
LBB0_71:
	andl	$-4, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_72:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	movl	%edi, 20(%rax)
	movq	8(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	1(%rdi), %ebx
	movl	%ebx, 20(%rax)
	movq	16(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	2(%rdi), %ebx
	movl	%ebx, 20(%rax)
	movq	24(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	leal	3(%rdi), %ebx
	movl	%ebx, 20(%rax)
	addq	$4, %rdi
	cmpq	%r9, %rdi
	jne	LBB0_72
LBB0_57:
	testq	%rsi, %rsi
	je	LBB0_59
	.p2align	4, 0x90
LBB0_58:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rax
	movl	%edx, 40(%rax)
	movl	%edi, 20(%rax)
	incq	%rdi
	decq	%rsi
	jne	LBB0_58
LBB0_59:
	movl	8(%r8), %ecx
	testq	%rcx, %rcx
	je	LBB0_66
## %bb.60:
	movq	24(%r8), %rax
	xorl	%edx, %edx
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_61 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_66
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rsi
	movslq	(%rsi), %rdi
	cmpq	%rdi, 24(%rsi)
	jge	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=1
	movq	%rdi, 24(%rsi)
LBB0_63:                                ##   in Loop: Header=BB0_61 Depth=1
	movq	8(%rsi), %rdi
	cmpq	%rdi, 32(%rsi)
	jge	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_61 Depth=1
	movq	%rdi, 32(%rsi)
	jmp	LBB0_65
LBB0_66:
	movl	(%r12), %r12d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENOMEM,4,2                ## @MMAL_ENOMEM
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmal component"

	.comm	_VCOS_THREAD_PRI_NORMAL,4,2     ## @VCOS_THREAD_PRI_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"mmal component lock"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_mmal_core_lock,4,2             ## @mmal_core_lock
	.comm	_mmal_core_instance_count,4,2   ## @mmal_core_instance_count
	.comm	_MMAL_PORT_TYPE_CONTROL,4,2     ## @MMAL_PORT_TYPE_CONTROL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,4,2                ## @MMAL_ENOSYS
L_.str.2:                               ## @.str.2
	.asciz	"could not find component '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"could not create component '%s' (%i)"

	.comm	_MMAL_CONTROL_PORT_BUFFERS_MIN,8,3 ## @MMAL_CONTROL_PORT_BUFFERS_MIN
L_.str.4:                               ## @.str.4
	.asciz	"could not create event pool (%d, %d)"

L_.str.5:                               ## @.str.5
	.asciz	"mmal ports"

L_.str.6:                               ## @.str.6
	.asciz	"could not create list of ports"

L_.str.7:                               ## @.str.7
	.asciz	"created '%s' %d %p"

	.comm	_MMAL_PORT_TYPE_INPUT,4,2       ## @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_PORT_TYPE_OUTPUT,4,2      ## @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_CLOCK,4,2       ## @MMAL_PORT_TYPE_CLOCK
	.no_dead_strip	_mmal_component_create_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_component_create_core
_mmal_component_create_core:            ; @mmal_component_create_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _MMAL_ENOMEM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MMAL_ENOMEM@GOTPAGEOFF]
	ldr	w21, [x25]
	bl	_strlen
	cbz	x19, LBB0_15
; %bb.1:
	mov	x24, x0
	bl	_mmal_core_init
	add	w1, w24, #85
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w26, #1
	mov	w0, #1
	bl	_vcos_calloc
	str	x0, [x19]
	cbz	x0, LBB0_16
; %bb.2:
	add	w2, w24, #1
	add	x24, x0, #80
	str	x24, [x0, #72]
	ldr	x8, [x19]
	ldr	x9, [x8, #72]
	add	x0, x9, #4
	str	x0, [x8]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8, #72]
	str	w26, [x8]
Lloh4:
	adrp	x9, _VCOS_THREAD_PRI_NORMAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VCOS_THREAD_PRI_NORMAL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	str	w9, [x8, #16]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_vcos_mutex_create
Lloh9:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.3:
Lloh12:
	adrp	x24, _mmal_core_lock@GOTPAGE
Lloh13:
	ldr	x24, [x24, _mmal_core_lock@GOTPAGEOFF]
	mov	x0, x24
	bl	_vcos_mutex_lock
Lloh14:
	adrp	x8, _mmal_core_instance_count@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmal_core_instance_count@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	ldr	x8, [x19]
	str	x9, [x8, #64]
	mov	x0, x24
	bl	_vcos_mutex_unlock
	ldr	x0, [x19]
Lloh16:
	adrp	x24, _MMAL_PORT_TYPE_CONTROL@GOTPAGE
Lloh17:
	ldr	x24, [x24, _MMAL_PORT_TYPE_CONTROL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_mmal_port_alloc
	ldr	x8, [x19]
	str	x0, [x8, #56]
	ldr	x8, [x19]
	ldr	x0, [x8, #56]
	cbz	x0, LBB0_24
; %bb.4:
	bl	_mmal_component_init_control_port
	ldr	x8, [x19]
	ldr	x8, [x8, #72]
	str	x23, [x8, #8]
Lloh18:
	adrp	x8, _mmal_component_supplier_create@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmal_component_supplier_create@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x22, eq
	ldr	x1, [x19]
	mov	x0, x20
	blr	x8
Lloh20:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh21:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8, #56]
	ldr	w1, [x8]
	cmp	w1, #11
	b.hi	LBB0_7
; %bb.6:
	mov	w1, #12
	str	w1, [x8]
LBB0_7:
	ldr	x0, [x8, #8]
Lloh22:
	adrp	x9, _MMAL_CONTROL_PORT_BUFFERS_MIN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MMAL_CONTROL_PORT_BUFFERS_MIN@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ge	LBB0_9
; %bb.8:
	str	x9, [x8, #8]
	mov	x0, x9
LBB0_9:
	bl	_mmal_pool_create
	ldr	x8, [x19]
	ldr	x9, [x8, #72]
	str	w0, [x9, #4]
	cbz	w0, LBB0_21
; %bb.10:
	ldp	w9, w10, [x8, #12]
	ldr	w11, [x8, #20]
	add	w9, w9, w10
	add	w9, w9, w11
	add	w9, w9, #1
	str	w9, [x8, #8]
	lsl	w0, w9, #3
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_vcos_malloc
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_22
; %bb.11:
	ldr	x8, [x8, #56]
	str	x8, [x9]
	ldr	x3, [x19]
	ldr	w8, [x3, #12]
	cbz	w8, LBB0_26
; %bb.12:
	mov	x8, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x3, #48]
	lsl	x10, x8, #3
	ldr	x9, [x9, x10]
	ldr	x11, [x3, #24]
	add	x10, x11, x10
	str	x9, [x10, #8]
	add	x8, x8, #1
	ldr	x3, [x19]
	ldr	w9, [x3, #12]
	cmp	x8, x9
	b.lo	LBB0_13
; %bb.14:
	add	w8, w8, #1
	b	LBB0_27
LBB0_15:
Lloh27:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	b	LBB0_25
LBB0_16:
	ldr	w21, [x25]
	b	LBB0_25
LBB0_17:
	ldr	x0, [x19]
	bl	_vcos_free
	ldr	w21, [x25]
	b	LBB0_25
LBB0_18:
	mov	x21, x0
Lloh30:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.19:
	str	x20, [sp]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_20:
	stp	x20, x21, [sp]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_21:
	ldr	w21, [x25]
	ldr	x8, [x8, #56]
	ldr	x9, [x8, #8]
	ldr	w8, [x8]
	stp	x9, x8, [sp]
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_22:
	ldr	w21, [x25]
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_23:
	bl	_LOG_ERROR
LBB0_24:
	ldr	x0, [x19]
	bl	_mmal_component_destroy_internal
	str	xzr, [x19]
LBB0_25:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_26:
	mov	w8, #1
LBB0_27:
	ldr	w9, [x3, #16]
	cbz	w9, LBB0_31
; %bb.28:
	mov	x9, #0
	mov	w10, w8
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	add	w11, w10, w9
	ldr	x12, [x3, #40]
	ldr	x12, [x12, x9, lsl #3]
	ldr	x13, [x3, #24]
	str	x12, [x13, w11, uxtw #3]
	add	x9, x9, #1
	ldr	x3, [x19]
	ldr	w11, [x3, #16]
	cmp	x9, x11
	b.lo	LBB0_29
; %bb.30:
	add	w8, w8, w9
LBB0_31:
	ldr	w9, [x3, #20]
	cbz	w9, LBB0_34
; %bb.32:
	mov	x9, #0
	mov	w8, w8
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	w10, w8, w9
	ldp	x12, x11, [x3, #24]
	ldr	x11, [x11, x9, lsl #3]
	str	x11, [x12, w10, uxtw #3]
	add	x9, x9, #1
	ldr	x3, [x19]
	ldr	w10, [x3, #20]
	cmp	x9, x10
	b.lo	LBB0_33
LBB0_34:
	ldr	w8, [x3, #8]
	cbz	w8, LBB0_41
; %bb.35:
	ldr	x9, [x3, #24]
	cmp	w8, #4
	b.hs	LBB0_37
; %bb.36:
	mov	x10, #0
	b	LBB0_40
LBB0_37:
	mov	x11, #0
	and	x10, x8, #0xfffffffc
	add	x12, x9, #16
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	add	w13, w11, #1
	add	w14, w11, #2
	add	w15, w11, #3
	ldp	x16, x17, [x12, #-16]
	ldp	x0, x1, [x12], #32
	str	w11, [x16, #16]
	str	w13, [x17, #16]
	str	w14, [x0, #16]
	str	w15, [x1, #16]
	add	x11, x11, #4
	cmp	x10, x11
	b.ne	LBB0_38
; %bb.39:
	cmp	x10, x8
	b.eq	LBB0_41
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	str	w10, [x11, #16]
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_40
LBB0_41:
	ldr	x2, [x3, #64]
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_LOG_INFO
	ldr	w9, [x24]
	ldr	x8, [x19]
	ldr	x10, [x8, #56]
	str	w9, [x10, #40]
	str	wzr, [x10, #20]
	ldr	w9, [x8, #12]
	cbz	w9, LBB0_48
; %bb.42:
	ldr	x10, [x8, #48]
Lloh43:
	adrp	x11, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh44:
	ldr	x11, [x11, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11]
	cmp	w9, #4
	b.hs	LBB0_44
; %bb.43:
	mov	x12, #0
	b	LBB0_47
LBB0_44:
	mov	x13, #0
	and	x12, x9, #0xfffffffc
	add	x14, x10, #16
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	add	w15, w13, #1
	add	w16, w13, #2
	add	w17, w13, #3
	ldp	x0, x1, [x14, #-16]
	ldp	x2, x3, [x14], #32
	str	w11, [x0, #40]
	str	w11, [x1, #40]
	str	w11, [x2, #40]
	str	w11, [x3, #40]
	str	w13, [x0, #20]
	str	w15, [x1, #20]
	str	w16, [x2, #20]
	str	w17, [x3, #20]
	add	x13, x13, #4
	cmp	x12, x13
	b.ne	LBB0_45
; %bb.46:
	cmp	x12, x9
	b.eq	LBB0_48
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x12, lsl #3]
	str	w11, [x13, #40]
	str	w12, [x13, #20]
	add	x12, x12, #1
	cmp	x9, x12
	b.ne	LBB0_47
LBB0_48:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_55
; %bb.49:
	ldr	x10, [x8, #40]
Lloh46:
	adrp	x11, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh47:
	ldr	x11, [x11, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh48:
	ldr	w11, [x11]
	cmp	w9, #4
	b.hs	LBB0_51
; %bb.50:
	mov	x12, #0
	b	LBB0_54
LBB0_51:
	mov	x13, #0
	and	x12, x9, #0xfffffffc
	add	x14, x10, #16
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	add	w15, w13, #1
	add	w16, w13, #2
	add	w17, w13, #3
	ldp	x0, x1, [x14, #-16]
	ldp	x2, x3, [x14], #32
	str	w11, [x0, #40]
	str	w11, [x1, #40]
	str	w11, [x2, #40]
	str	w11, [x3, #40]
	str	w13, [x0, #20]
	str	w15, [x1, #20]
	str	w16, [x2, #20]
	str	w17, [x3, #20]
	add	x13, x13, #4
	cmp	x12, x13
	b.ne	LBB0_52
; %bb.53:
	cmp	x12, x9
	b.eq	LBB0_55
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x12, lsl #3]
	str	w11, [x13, #40]
	str	w12, [x13, #20]
	add	x12, x12, #1
	cmp	x9, x12
	b.ne	LBB0_54
LBB0_55:
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_62
; %bb.56:
	ldr	x10, [x8, #32]
Lloh49:
	adrp	x11, _MMAL_PORT_TYPE_CLOCK@GOTPAGE
Lloh50:
	ldr	x11, [x11, _MMAL_PORT_TYPE_CLOCK@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
	cmp	w9, #4
	b.hs	LBB0_58
; %bb.57:
	mov	x12, #0
	b	LBB0_61
LBB0_58:
	mov	x13, #0
	and	x12, x9, #0xfffffffc
	add	x14, x10, #16
LBB0_59:                                ; =>This Inner Loop Header: Depth=1
	add	w15, w13, #1
	add	w16, w13, #2
	add	w17, w13, #3
	ldp	x0, x1, [x14, #-16]
	ldp	x2, x3, [x14], #32
	str	w11, [x0, #40]
	str	w11, [x1, #40]
	str	w11, [x2, #40]
	str	w11, [x3, #40]
	str	w13, [x0, #20]
	str	w15, [x1, #20]
	str	w16, [x2, #20]
	str	w17, [x3, #20]
	add	x13, x13, #4
	cmp	x12, x13
	b.ne	LBB0_59
; %bb.60:
	cmp	x12, x9
	b.eq	LBB0_62
LBB0_61:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x12, lsl #3]
	str	w11, [x13, #40]
	str	w12, [x13, #20]
	add	x12, x12, #1
	cmp	x9, x12
	b.ne	LBB0_61
LBB0_62:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_69
; %bb.63:
	ldr	x8, [x8, #24]
	b	LBB0_65
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.eq	LBB0_69
LBB0_65:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	ldr	x12, [x10, #24]
	ldrsw	x11, [x10]
	cmp	x12, x11
	b.ge	LBB0_67
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	str	x11, [x10, #24]
LBB0_67:                                ;   in Loop: Header=BB0_65 Depth=1
	ldr	x12, [x10, #32]
	ldr	x11, [x10, #8]
	cmp	x12, x11
	b.ge	LBB0_64
; %bb.68:                               ;   in Loop: Header=BB0_65 Depth=1
	str	x11, [x10, #32]
	b	LBB0_64
LBB0_69:
	ldr	w21, [x22]
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENOMEM,4,2                ; @MMAL_ENOMEM
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmal component"

	.comm	_VCOS_THREAD_PRI_NORMAL,4,2     ; @VCOS_THREAD_PRI_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"mmal component lock"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_mmal_core_lock,4,2             ; @mmal_core_lock
	.comm	_mmal_core_instance_count,4,2   ; @mmal_core_instance_count
	.comm	_MMAL_PORT_TYPE_CONTROL,4,2     ; @MMAL_PORT_TYPE_CONTROL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,4,2                ; @MMAL_ENOSYS
l_.str.2:                               ; @.str.2
	.asciz	"could not find component '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"could not create component '%s' (%i)"

	.comm	_MMAL_CONTROL_PORT_BUFFERS_MIN,8,3 ; @MMAL_CONTROL_PORT_BUFFERS_MIN
l_.str.4:                               ; @.str.4
	.asciz	"could not create event pool (%d, %d)"

l_.str.5:                               ; @.str.5
	.asciz	"mmal ports"

l_.str.6:                               ; @.str.6
	.asciz	"could not create list of ports"

l_.str.7:                               ; @.str.7
	.asciz	"created '%s' %d %p"

	.comm	_MMAL_PORT_TYPE_INPUT,4,2       ; @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_PORT_TYPE_OUTPUT,4,2      ; @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_CLOCK,4,2       ; @MMAL_PORT_TYPE_CLOCK
	.no_dead_strip	_mmal_component_create_core
.subsections_via_symbols
