	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_component_destroy_internal
_mmal_component_destroy_internal:       ## @mmal_component_destroy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	28(%rdi), %esi
	movl	24(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	callq	_LOG_TRACE
	movq	%rbx, %rdi
	callq	_mmal_component_action_deregister
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rcx
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r15
	sete	%dil
	callq	_vcos_verify
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	16(%rbx), %rax
LBB0_3:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_mmal_pool_destroy
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_mmal_port_free
LBB0_7:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_vcos_free
LBB0_9:
	movq	%r14, %rdi
	callq	_vcos_mutex_delete
	movq	%rbx, %rdi
	callq	_vcos_free
	xorl	%eax, %eax
	callq	_mmal_core_deinit
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_10:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %d"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.no_dead_strip	_mmal_component_destroy_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_destroy_internal
_mmal_component_destroy_internal:       ; @mmal_component_destroy_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	x20, [x0, #16]
	ldp	w2, w1, [x0, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_TRACE
	mov	x0, x19
	bl	_mmal_component_action_deregister
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
Lloh2:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x0, x19
	blr	x9
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_vcos_verify
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x19, #16]
LBB0_3:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_mmal_pool_destroy
LBB0_5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_mmal_port_free
LBB0_7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_vcos_free
LBB0_9:
	mov	x0, x20
	bl	_vcos_mutex_delete
	mov	x0, x19
	bl	_vcos_free
	bl	_mmal_core_deinit
	ldr	x21, [x22]
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %d"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.no_dead_strip	_mmal_component_destroy_internal
.subsections_via_symbols
