	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_client_ipc_deinit          ## -- Begin function wfc_client_ipc_deinit
	.p2align	4, 0x90
_wfc_client_ipc_deinit:                 ## @wfc_client_ipc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_init_once@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_wfc_client_ipc_once@GOTPCREL(%rip), %rdi
	callq	_vcos_once
	movq	_wfc_client_ipc@GOTPCREL(%rip), %r15
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_vcos_mutex_lock
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	decq	%rax
	movq	%rax, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_vcos_log_trace
	leaq	24(%r15), %rdi
	callq	_wfc_client_ipc_destroy_waitpool
	movq	16(%r15), %rdi
	callq	_vchiq_remove_service
	movq	_wfc_client_ipc_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	$0, 16(%r15)
	movl	$1, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_vcos_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wfc_client_ipc_once,4,2        ## @wfc_client_ipc_once
	.comm	_init_once,4,2                  ## @init_once
	.comm	_wfc_client_ipc,32,3            ## @wfc_client_ipc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: starting deinitialisation"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_wfc_client_ipc_vchiq_instance,4,2 ## @wfc_client_ipc_vchiq_instance
	.comm	_VCOS_LOG_CATEGORY,4,2          ## @VCOS_LOG_CATEGORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_client_ipc_deinit          ; -- Begin function wfc_client_ipc_deinit
	.p2align	2
_wfc_client_ipc_deinit:                 ; @wfc_client_ipc_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	x8, _init_once@GOTPAGE
Lloh1:
	ldr	x8, [x8, _init_once@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _wfc_client_ipc_once@GOTPAGE
Lloh4:
	ldr	x0, [x0, _wfc_client_ipc_once@GOTPAGEOFF]
	bl	_vcos_once
Lloh5:
	adrp	x20, _wfc_client_ipc@GOTPAGE
Lloh6:
	ldr	x20, [x20, _wfc_client_ipc@GOTPAGEOFF]
	add	x19, x20, #8
	mov	x0, x19
	bl	_vcos_mutex_lock
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	subs	x8, x8, #1
	str	x8, [x20]
	b.eq	LBB0_3
LBB0_2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _VCOS_FUNCTION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_trace
	add	x0, x20, #24
	bl	_wfc_client_ipc_destroy_waitpool
	ldr	x0, [x20, #16]
	bl	_vchiq_remove_service
Lloh12:
	adrp	x8, _wfc_client_ipc_vchiq_instance@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wfc_client_ipc_vchiq_instance@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_vchiq_shutdown
Lloh15:
	adrp	x8, _VCOS_LOG_CATEGORY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCOS_LOG_CATEGORY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_vcos_log_unregister
	str	xzr, [x20, #16]
	mov	w20, #1
LBB0_4:
	mov	x0, x19
	bl	_vcos_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_wfc_client_ipc_once,4,2        ; @wfc_client_ipc_once
	.comm	_init_once,4,2                  ; @init_once
	.comm	_wfc_client_ipc,32,3            ; @wfc_client_ipc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: starting deinitialisation"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_wfc_client_ipc_vchiq_instance,4,2 ; @wfc_client_ipc_vchiq_instance
	.comm	_VCOS_LOG_CATEGORY,4,2          ; @VCOS_LOG_CATEGORY
.subsections_via_symbols
