	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_stream_register_off_screen ## -- Begin function wfc_stream_register_off_screen
	.p2align	4, 0x90
_wfc_stream_register_off_screen:        ## @wfc_stream_register_off_screen
	.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	_WFC_INVALID_HANDLE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_vcos_log_trace
	movq	%rbx, %rdi
	callq	_wfc_stream_find_stream_ptr
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	%r14d, (%rax)
	movq	%rax, %rdi
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_STREAM_UNLOCK                  ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wfc_stream_destroy_if_ready    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WFC_INVALID_HANDLE,8,3         ## @WFC_INVALID_HANDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: stream 0x%x"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_stream_register_off_screen ; -- Begin function wfc_stream_register_off_screen
	.p2align	2
_wfc_stream_register_off_screen:        ; @wfc_stream_register_off_screen
	.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, _WFC_INVALID_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WFC_INVALID_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _VCOS_FUNCTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCOS_FUNCTION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_vcos_log_trace
	mov	x0, x20
	bl	_wfc_stream_find_stream_ptr
	cbz	x0, LBB0_4
; %bb.2:
	str	w19, [x0]
	cbz	w19, LBB0_5
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_STREAM_UNLOCK
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wfc_stream_destroy_if_ready
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WFC_INVALID_HANDLE,8,3         ; @WFC_INVALID_HANDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: stream 0x%x"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
.subsections_via_symbols
