	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wf_unregister_client           ## -- Begin function wf_unregister_client
	.p2align	4, 0x90
_wf_unregister_client:                  ## @wf_unregister_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_wf_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_wf_client_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_blocking_notifier_chain_unregister
	movq	_wf_client_count@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_wf_stop_thread
LBB0_2:
	movq	_wf_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wf_lock,4,2                    ## @wf_lock
	.comm	_wf_client_list,4,2             ## @wf_client_list
	.comm	_wf_client_count,8,3            ## @wf_client_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wf_unregister_client           ; -- Begin function wf_unregister_client
	.p2align	2
_wf_unregister_client:                  ; @wf_unregister_client
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _wf_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _wf_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x0, _wf_client_list@GOTPAGE
Lloh3:
	ldr	x0, [x0, _wf_client_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_blocking_notifier_chain_unregister
Lloh4:
	adrp	x8, _wf_client_count@GOTPAGE
Lloh5:
	ldr	x8, [x8, _wf_client_count@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_2
; %bb.1:
	bl	_wf_stop_thread
LBB0_2:
Lloh6:
	adrp	x0, _wf_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _wf_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_wf_lock,4,2                    ; @wf_lock
	.comm	_wf_client_list,4,2             ; @wf_client_list
	.comm	_wf_client_count,8,3            ; @wf_client_count
.subsections_via_symbols
