	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_stream_create_req_rect     ## -- Begin function wfc_stream_create_req_rect
	.p2align	4, 0x90
_wfc_stream_create_req_rect:            ## @wfc_stream_create_req_rect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_vcos_log_info
	movq	_WFC_STREAM_FLAGS_REQ_RECT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_wfc_stream_create
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_wfc_stream_find_stream_ptr
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_vcos_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_vcos_assert
	movq	%r12, 16(%r13)
	movq	%rbx, 8(%r13)
	movq	_wfc_stream_rect_req_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_vcos_thread_create
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_vcos_demand
	movq	%r13, %rdi
	callq	_STREAM_UNLOCK
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wfc_stream_create_req_rect: stream %X"

	.comm	_WFC_STREAM_FLAGS_REQ_RECT,4,2  ## @WFC_STREAM_FLAGS_REQ_RECT
L_.str.1:                               ## @.str.1
	.asciz	"wfc_stream_rect_req_thread"

	.comm	_wfc_stream_rect_req_thread,4,2 ## @wfc_stream_rect_req_thread
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_stream_create_req_rect     ; -- Begin function wfc_stream_create_req_rect
	.p2align	2
_wfc_stream_create_req_rect:            ; @wfc_stream_create_req_rect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_info
Lloh2:
	adrp	x8, _WFC_STREAM_FLAGS_REQ_RECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WFC_STREAM_FLAGS_REQ_RECT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w19
	mov	x0, x20
	bl	_wfc_stream_create
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_wfc_stream_find_stream_ptr
	mov	x23, x0
	bl	_vcos_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_vcos_assert
	stp	x21, x22, [x23, #8]
Lloh5:
	adrp	x8, _wfc_stream_rect_req_thread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wfc_stream_rect_req_thread@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	mov	x4, x20
	bl	_vcos_thread_create
Lloh10:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_vcos_demand
	mov	x0, x23
	bl	_STREAM_UNLOCK
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wfc_stream_create_req_rect: stream %X"

	.comm	_WFC_STREAM_FLAGS_REQ_RECT,4,2  ; @WFC_STREAM_FLAGS_REQ_RECT
l_.str.1:                               ; @.str.1
	.asciz	"wfc_stream_rect_req_thread"

	.comm	_wfc_stream_rect_req_thread,4,2 ; @wfc_stream_rect_req_thread
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
.subsections_via_symbols
