	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svp_destroy                    ## -- Begin function svp_destroy
	.p2align	4, 0x90
_svp_destroy:                           ## @svp_destroy
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movq	%rdi, %r14
	movdqu	56(%rdi), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqa	%xmm0, -64(%rbp)
	movq	48(%rdi), %rax
	movq	%rax, -48(%rbp)
	callq	_svp_stop
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_vcos_countof
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_mmal_component_disable
	addq	$8, %rbx
	movq	%r15, %rdi
	callq	_vcos_countof
	cltq
	leaq	-64(,%rax,8), %rax
	addq	%rbp, %rax
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_mmal_connection_destroy
LBB0_6:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_vcos_countof
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_mmal_component_destroy
	addq	$8, %rbx
	movq	%r15, %rdi
	callq	_vcos_countof
	cltq
	leaq	-64(,%rax,8), %rax
	addq	%rbp, %rax
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_mmal_pool_destroy
LBB0_11:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_mmal_queue_destroy
LBB0_13:
	movl	(%r14), %eax
	movq	_SVP_CREATED_WD_TIMER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	leaq	16(%r14), %rdi
	callq	_vcos_timer_delete
	movl	(%r14), %eax
LBB0_15:
	movq	_SVP_CREATED_TIMER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	leaq	12(%r14), %rdi
	callq	_vcos_timer_delete
	movl	(%r14), %eax
LBB0_17:
	movq	_SVP_CREATED_MUTEX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	leaq	8(%r14), %rdi
	callq	_vcos_mutex_delete
	movl	(%r14), %eax
LBB0_19:
	movq	_SVP_CREATED_SEM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	leaq	4(%r14), %rdi
	callq	_vcos_semaphore_delete
LBB0_21:
	movq	%r14, %rdi
	callq	_vcos_free
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SVP_CREATED_WD_TIMER,4,2       ## @SVP_CREATED_WD_TIMER
	.comm	_SVP_CREATED_TIMER,4,2          ## @SVP_CREATED_TIMER
	.comm	_SVP_CREATED_MUTEX,4,2          ## @SVP_CREATED_MUTEX
	.comm	_SVP_CREATED_SEM,4,2            ## @SVP_CREATED_SEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svp_destroy                    ; -- Begin function svp_destroy
	.p2align	2
_svp_destroy:                           ; @svp_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x0, LBB0_22
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x0, #56]
	ldr	x10, [x0, #48]
	stp	x8, x9, [sp]
	str	x10, [sp, #16]
	bl	_svp_stop
	mov	x20, sp
	mov	x0, sp
	bl	_vcos_countof
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, sp
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	bl	_mmal_component_disable
	mov	x0, sp
	bl	_vcos_countof
	add	x8, x20, w0, sxtw #3
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_mmal_connection_destroy
LBB0_6:
	mov	x20, sp
	mov	x0, sp
	bl	_vcos_countof
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, sp
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21], #8
	bl	_mmal_component_destroy
	mov	x0, sp
	bl	_vcos_countof
	add	x8, x20, w0, sxtw #3
	cmp	x21, x8
	b.lo	LBB0_8
LBB0_9:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_mmal_pool_destroy
LBB0_11:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_mmal_queue_destroy
LBB0_13:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _SVP_CREATED_WD_TIMER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SVP_CREATED_WD_TIMER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	add	x0, x19, #16
	bl	_vcos_timer_delete
	ldr	w8, [x19]
LBB0_15:
Lloh6:
	adrp	x9, _SVP_CREATED_TIMER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SVP_CREATED_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	add	x0, x19, #12
	bl	_vcos_timer_delete
	ldr	w8, [x19]
LBB0_17:
Lloh9:
	adrp	x9, _SVP_CREATED_MUTEX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SVP_CREATED_MUTEX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	add	x0, x19, #8
	bl	_vcos_mutex_delete
	ldr	w8, [x19]
LBB0_19:
Lloh12:
	adrp	x9, _SVP_CREATED_SEM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SVP_CREATED_SEM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	add	x0, x19, #4
	bl	_vcos_semaphore_delete
LBB0_21:
	mov	x0, x19
	bl	_vcos_free
LBB0_22:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	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
	add	sp, sp, #80
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SVP_CREATED_WD_TIMER,4,2       ; @SVP_CREATED_WD_TIMER
	.comm	_SVP_CREATED_TIMER,4,2          ; @SVP_CREATED_TIMER
	.comm	_SVP_CREATED_MUTEX,4,2          ; @SVP_CREATED_MUTEX
	.comm	_SVP_CREATED_SEM,4,2            ; @SVP_CREATED_SEM
.subsections_via_symbols
