	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_vc_deinit                 ## -- Begin function mmal_vc_deinit
	.p2align	4, 0x90
_mmal_vc_deinit:                        ## @mmal_vc_deinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_client@GOTPCREL(%rip), %r14
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_vcos_mutex_lock
	decl	(%r14)
	jne	LBB0_2
## %bb.1:
	leaq	24(%r14), %rdi
	callq	_vcos_mutex_delete
	leaq	20(%r14), %rdi
	callq	_destroy_waitpool
	movl	16(%r14), %edi
	callq	_vchiq_close_service
	movq	_mmal_vchiq_instance@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vchiq_shutdown
	movq	_VCOS_LOG_CATEGORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vcos_log_unregister
	movq	_VCHIQ_SERVICE_HANDLE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vcos_mutex_unlock              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_client,32,3                    ## @client
	.comm	_mmal_vchiq_instance,4,2        ## @mmal_vchiq_instance
	.comm	_VCOS_LOG_CATEGORY,4,2          ## @VCOS_LOG_CATEGORY
	.comm	_VCHIQ_SERVICE_HANDLE_INVALID,4,2 ## @VCHIQ_SERVICE_HANDLE_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmal_vc_deinit                 ; -- Begin function mmal_vc_deinit
	.p2align	2
_mmal_vc_deinit:                        ; @mmal_vc_deinit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _client@GOTPAGE
Lloh1:
	ldr	x20, [x20, _client@GOTPAGEOFF]
	add	x19, x20, #4
	mov	x0, x19
	bl	_vcos_mutex_lock
	ldr	w8, [x20]
	subs	w8, w8, #1
	str	w8, [x20]
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #24
	bl	_vcos_mutex_delete
	add	x0, x20, #20
	bl	_destroy_waitpool
	ldr	w0, [x20, #16]
	bl	_vchiq_close_service
Lloh2:
	adrp	x8, _mmal_vchiq_instance@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmal_vchiq_instance@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_vchiq_shutdown
Lloh5:
	adrp	x8, _VCOS_LOG_CATEGORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCOS_LOG_CATEGORY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_vcos_log_unregister
Lloh8:
	adrp	x8, _VCHIQ_SERVICE_HANDLE_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCHIQ_SERVICE_HANDLE_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vcos_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_client,32,3                    ; @client
	.comm	_mmal_vchiq_instance,4,2        ; @mmal_vchiq_instance
	.comm	_VCOS_LOG_CATEGORY,4,2          ; @VCOS_LOG_CATEGORY
	.comm	_VCHIQ_SERVICE_HANDLE_INVALID,4,2 ; @VCHIQ_SERVICE_HANDLE_INVALID
.subsections_via_symbols
