	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_component_create_copy
_mmal_component_create_copy:            ## @mmal_component_create_copy
	.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, %rbx
	movq	_MMAL_ENOMEM@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	callq	_MMAL_PARAM_UNUSED
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_vcos_malloc
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	24(%rbx), %rax
	movq	_copy_component_destroy@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %ecx
	callq	_mmal_ports_alloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	$1, (%rbx)
	movq	_copy_port_enable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 40(%rdx)
	movq	_copy_port_disable@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 32(%rdx)
	movq	_copy_port_flush@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 24(%rdx)
	movq	_copy_port_send@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 16(%rdx)
	movq	_copy_input_port_format_commit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	movl	%ecx, 8(%rdx)
	movl	$1, (%rax)
	movq	$0, 16(%rax)
	xorl	%eax, %eax
	callq	_mmal_queue_create
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rdx)
	movq	(%rcx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$4, %ecx
	callq	_mmal_ports_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	$1, 4(%rbx)
	movq	_copy_port_enable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 40(%rdx)
	movq	(%r12), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 32(%rdx)
	movq	(%r13), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 24(%rdx)
	movq	(%r15), %rcx
	movq	(%rax), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 16(%rdx)
	movq	_copy_output_port_format_commit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	movl	%ecx, 8(%rdx)
	movl	$1, (%rax)
	movq	$0, 16(%rax)
	xorl	%eax, %eax
	callq	_mmal_queue_create
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rdx)
	movq	(%rcx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_copy_do_processing_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmal_component_action_register
	movq	%rax, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_copy_component_destroy
	jmp	LBB0_8
LBB0_1:
	movq	(%r15), %r14
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_ENOMEM,8,3                ## @MMAL_ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmal module"

	.comm	_MMAL_PORT_TYPE_INPUT,4,2       ## @MMAL_PORT_TYPE_INPUT
	.comm	_copy_port_enable,8,3           ## @copy_port_enable
	.comm	_copy_port_disable,8,3          ## @copy_port_disable
	.comm	_copy_port_flush,8,3            ## @copy_port_flush
	.comm	_copy_port_send,8,3             ## @copy_port_send
	.comm	_copy_input_port_format_commit,4,2 ## @copy_input_port_format_commit
	.comm	_MMAL_PORT_TYPE_OUTPUT,4,2      ## @MMAL_PORT_TYPE_OUTPUT
	.comm	_copy_output_port_format_commit,4,2 ## @copy_output_port_format_commit
	.comm	_copy_do_processing_loop,4,2    ## @copy_do_processing_loop
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.no_dead_strip	_mmal_component_create_copy
.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_copy
_mmal_component_create_copy:            ; @mmal_component_create_copy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x21, _MMAL_ENOMEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMAL_ENOMEM@GOTPAGEOFF]
	ldr	x20, [x21]
	bl	_MMAL_PARAM_UNUSED
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vcos_malloc
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #24]
Lloh4:
	adrp	x9, _copy_component_destroy@GOTPAGE
Lloh5:
	ldr	x9, [x9, _copy_component_destroy@GOTPAGEOFF]
	str	x9, [x8]
Lloh6:
	adrp	x8, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w25, #1
	mov	x0, x19
	mov	w1, #1
	mov	w3, #4
	bl	_mmal_ports_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.2:
	str	w25, [x19]
Lloh9:
	adrp	x21, _copy_port_enable@GOTPAGE
Lloh10:
	ldr	x21, [x21, _copy_port_enable@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #40]
Lloh11:
	adrp	x22, _copy_port_disable@GOTPAGE
Lloh12:
	ldr	x22, [x22, _copy_port_disable@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #32]
Lloh13:
	adrp	x23, _copy_port_flush@GOTPAGE
Lloh14:
	ldr	x23, [x23, _copy_port_flush@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #24]
Lloh15:
	adrp	x24, _copy_port_send@GOTPAGE
Lloh16:
	ldr	x24, [x24, _copy_port_send@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #16]
Lloh17:
	adrp	x8, _copy_input_port_format_commit@GOTPAGE
Lloh18:
	ldr	x8, [x8, _copy_input_port_format_commit@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	x10, [x9, #8]
	str	w8, [x10, #8]
	str	w25, [x9]
	str	xzr, [x9, #16]
	bl	_mmal_queue_create
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	str	x0, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh20:
	adrp	x8, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w25, #1
	mov	x0, x19
	mov	w1, #1
	mov	w3, #4
	bl	_mmal_ports_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.4:
	str	w25, [x19, #4]
	ldr	x8, [x21]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #40]
	ldr	x8, [x22]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #32]
	ldr	x8, [x23]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #24]
	ldr	x8, [x24]
	ldr	x9, [x0]
	ldr	x9, [x9, #8]
	str	x8, [x9, #16]
Lloh23:
	adrp	x8, _copy_output_port_format_commit@GOTPAGE
Lloh24:
	ldr	x8, [x8, _copy_output_port_format_commit@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	x10, [x9, #8]
	str	w8, [x10, #8]
	str	w25, [x9]
	str	xzr, [x9, #16]
	bl	_mmal_queue_create
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	str	x0, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _copy_do_processing_loop@GOTPAGE
Lloh27:
	ldr	x8, [x8, _copy_do_processing_loop@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmal_component_action_register
	mov	x20, x0
Lloh29:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_copy_component_destroy
	b	LBB0_8
LBB0_7:
	ldr	x20, [x21]
LBB0_8:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_ENOMEM,8,3                ; @MMAL_ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmal module"

	.comm	_MMAL_PORT_TYPE_INPUT,4,2       ; @MMAL_PORT_TYPE_INPUT
	.comm	_copy_port_enable,8,3           ; @copy_port_enable
	.comm	_copy_port_disable,8,3          ; @copy_port_disable
	.comm	_copy_port_flush,8,3            ; @copy_port_flush
	.comm	_copy_port_send,8,3             ; @copy_port_send
	.comm	_copy_input_port_format_commit,4,2 ; @copy_input_port_format_commit
	.comm	_MMAL_PORT_TYPE_OUTPUT,4,2      ; @MMAL_PORT_TYPE_OUTPUT
	.comm	_copy_output_port_format_commit,4,2 ; @copy_output_port_format_commit
	.comm	_copy_do_processing_loop,4,2    ; @copy_do_processing_loop
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.no_dead_strip	_mmal_component_create_copy
.subsections_via_symbols
