	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_stream_unregister          ## -- Begin function wfc_stream_unregister
	.p2align	4, 0x90
_wfc_stream_unregister:                 ## @wfc_stream_unregister
	.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
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_vcos_process_id_current
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_wfc_stream_find_stream_ptr
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_vcos_verify
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_wfc_server_stream_unregister
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	decq	%rax
	movq	%rax, (%rbx)
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_vcos_log_trace
	jmp	LBB0_4
LBB0_3:
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	callq	_vcos_log_error
LBB0_4:
	movq	%rbx, %rdi
	callq	_wfc_stream_destroy_if_ready
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wfc_server_disconnect          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: stream %X"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
L_.str.1:                               ## @.str.1
	.asciz	"%s: stream %X already fully unregistered"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_stream_unregister          ; -- Begin function wfc_stream_unregister
	.p2align	2
_wfc_stream_unregister:                 ; @wfc_stream_unregister
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_vcos_process_id_current
	mov	x21, x0
	mov	x0, x19
	bl	_wfc_stream_find_stream_ptr
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_vcos_verify
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_wfc_server_stream_unregister
	ldr	x8, [x20]
	subs	x8, x8, #1
	b.lt	LBB0_3
; %bb.2:
	str	x8, [x20]
Lloh0:
	adrp	x8, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_vcos_log_trace
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _VCOS_FUNCTION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_vcos_log_error
LBB0_4:
	mov	x0, x20
	bl	_wfc_stream_destroy_if_ready
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wfc_server_disconnect
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: stream %X"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
l_.str.1:                               ; @.str.1
	.asciz	"%s: stream %X already fully unregistered"

.subsections_via_symbols
