	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_component_release_internal
_mmal_component_release_internal:       ## @mmal_component_release_internal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setg	%dil
	callq	_vcos_verify
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movq	24(%r12), %rax
	decq	(%rax)
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	jmp	LBB0_32
LBB0_3:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_4:
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movl	12(%r12), %edx
	movl	16(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_9
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_mmal_port_disable
	movl	(%r12), %eax
	jmp	LBB0_6
LBB0_9:
	movl	4(%r12), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_14
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_mmal_port_disable
	movl	4(%r12), %eax
	jmp	LBB0_11
LBB0_14:
	movl	8(%r12), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_19
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	callq	_mmal_port_disable
	movl	8(%r12), %eax
	jmp	LBB0_16
LBB0_19:
	movq	56(%r12), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_21
## %bb.20:
	callq	_mmal_port_disable
LBB0_21:
	cmpl	$0, (%r12)
	je	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_mmal_port_disconnect
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_23
LBB0_24:
	cmpl	$0, 4(%r12)
	je	LBB0_27
## %bb.25:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_mmal_port_disconnect
	incq	%rbx
	movl	4(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_26
LBB0_27:
	cmpl	$0, 8(%r12)
	je	LBB0_30
## %bb.28:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_mmal_port_disconnect
	incq	%rbx
	movl	8(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_29
LBB0_30:
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movq	24(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_34
## %bb.31:
	movl	$0, (%r15)
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movl	12(%r12), %edx
	movl	16(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_TRACE
LBB0_32:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmal_component_destroy_internal ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %d preparing for destruction"

L_.str.1:                               ## @.str.1
	.asciz	"%s %d delaying destruction"

	.no_dead_strip	_mmal_component_release_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_component_release_internal
_mmal_component_release_internal:       ; @mmal_component_release_internal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, gt
	bl	_vcos_verify
	cbz	w0, LBB0_3
; %bb.1:
	add	x20, x21, #4
	mov	x0, x20
	bl	_vcos_mutex_lock
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_vcos_mutex_unlock
	b	LBB0_32
LBB0_3:
Lloh0:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
	b	LBB0_33
LBB0_4:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_vcos_mutex_unlock
	ldp	w2, w1, [x19, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x22, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	ldr	x0, [x9, x22, lsl #3]
	ldr	x9, [x0]
	cbz	x9, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_mmal_port_disable
	ldr	w8, [x19]
	b	LBB0_6
LBB0_9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_14
; %bb.10:
	mov	x22, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	ldr	x0, [x9, x22, lsl #3]
	ldr	x9, [x0]
	cbz	x9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_mmal_port_disable
	ldr	w8, [x19, #4]
	b	LBB0_11
LBB0_14:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_19
; %bb.15:
	mov	x22, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, uxtw
	b.hs	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldr	x0, [x9, x22, lsl #3]
	ldr	x9, [x0]
	cbz	x9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	bl	_mmal_port_disable
	ldr	w8, [x19, #8]
	b	LBB0_16
LBB0_19:
	ldr	x0, [x19, #56]
	ldr	x8, [x0]
	cbz	x8, LBB0_21
; %bb.20:
	bl	_mmal_port_disable
LBB0_21:
	ldr	w8, [x19]
	cbz	w8, LBB0_24
; %bb.22:
	mov	x22, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x22, lsl #3]
	bl	_mmal_port_disconnect
	add	x22, x22, #1
	ldr	w8, [x19]
	cmp	x22, x8
	b.lo	LBB0_23
LBB0_24:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_27
; %bb.25:
	mov	x22, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x0, [x8, x22, lsl #3]
	bl	_mmal_port_disconnect
	add	x22, x22, #1
	ldr	w8, [x19, #4]
	cmp	x22, x8
	b.lo	LBB0_26
LBB0_27:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_30
; %bb.28:
	mov	x22, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x22, lsl #3]
	bl	_mmal_port_disconnect
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	cmp	x22, x8
	b.lo	LBB0_29
LBB0_30:
	mov	x0, x20
	bl	_vcos_mutex_lock
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_34
; %bb.31:
	str	wzr, [x21]
	mov	x0, x20
	bl	_vcos_mutex_unlock
	ldp	w2, w1, [x19, #12]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_TRACE
LBB0_32:
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
LBB0_33:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_34:
	mov	x0, x20
	bl	_vcos_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mmal_component_destroy_internal
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %d preparing for destruction"

l_.str.1:                               ; @.str.1
	.asciz	"%s %d delaying destruction"

	.no_dead_strip	_mmal_component_release_internal
.subsections_via_symbols
