	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmal_core_deinit
_mmal_core_deinit:                      ## @mmal_core_deinit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_mmal_core_lock@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_lock
	movq	_mmal_core_refcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	decq	%rcx
	movq	%rcx, (%rax)
	je	LBB0_3
LBB0_2:
	movq	_mmal_core_lock@GOTPCREL(%rip), %rdi
	popq	%rbp
	jmp	_vcos_mutex_unlock              ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	callq	_mmal_logging_deinit
	movq	_mmal_core_lock@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_unlock
	xorl	%eax, %eax
	popq	%rbp
	jmp	_vcos_deinit                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmal_core_lock,4,2             ## @mmal_core_lock
	.comm	_mmal_core_refcount,8,3         ## @mmal_core_refcount
	.no_dead_strip	_mmal_core_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmal_core_deinit
_mmal_core_deinit:                      ; @mmal_core_deinit
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, _mmal_core_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mmal_core_lock@GOTPAGEOFF]
	bl	_vcos_mutex_lock
Lloh2:
	adrp	x8, _mmal_core_refcount@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmal_core_refcount@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	subs	x9, x9, #1
	str	x9, [x8]
	b.eq	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, _mmal_core_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _mmal_core_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_vcos_mutex_unlock
LBB0_3:
	bl	_mmal_logging_deinit
Lloh6:
	adrp	x0, _mmal_core_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _mmal_core_lock@GOTPAGEOFF]
	bl	_vcos_mutex_unlock
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_vcos_deinit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mmal_core_lock,4,2             ; @mmal_core_lock
	.comm	_mmal_core_refcount,8,3         ; @mmal_core_refcount
	.no_dead_strip	_mmal_core_deinit
.subsections_via_symbols
