	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wfc_stream_rect_req_thread
_wfc_stream_rect_req_thread:            ## @wfc_stream_rect_req_thread
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WFC_RECT_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_vcos_log_info
	movl	%r15d, %edi
	callq	_wfc_stream_find_stream_ptr
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	(%rax), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_STREAM_UNLOCK
	leaq	L_.str.1(%rip), %rsi
	leaq	-84(%rbp), %rdi
	xorl	%edx, %edx
	callq	_vcos_semaphore_create
	movq	%rax, %r14
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_vcos_assert
	cmpq	(%rbx), %r14
	jne	LBB0_6
## %bb.2:
	leal	(,%r12,4), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	cmpl	$4, %r12d
	sete	%al
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_wfc_client_stream_post_sem@GOTPCREL(%rip), %rbx
	leaq	-84(%rbp), %r12
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %r14
	jne	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	callq	_wfc_server_stream_on_rects_change
	movq	%r12, %rdi
	callq	_vcos_semaphore_wait
	movl	%r15d, %edi
	leaq	-80(%rbp), %rsi
	callq	_wfc_server_stream_get_rects
	movq	%rax, %r14
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_vcos_static_assert
	movq	%r12, %r15
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movl	-64(%rbp), %edi
	callq	_WFC_DISPMANX_TO_SRC_VAL
	movq	_WFC_RECT_X@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	-60(%rbp), %edi
	callq	_WFC_DISPMANX_TO_SRC_VAL
	movq	_WFC_RECT_Y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	-56(%rbp), %edi
	callq	_WFC_DISPMANX_TO_SRC_VAL
	movq	_WFC_RECT_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movl	-52(%rbp), %edi
	callq	_WFC_DISPMANX_TO_SRC_VAL
	movq	_WFC_RECT_HEIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %r12
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r13, %rdx
	callq	*-120(%rbp)                     ## 8-byte Folded Reload
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_6:
	leaq	-84(%rbp), %rdi
	callq	_vcos_semaphore_delete
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_vcos_log_info
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_7:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WFC_RECT_SIZE,4,2              ## @WFC_RECT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wfc_stream_rect_req_thread: START: stream: %X"

L_.str.1:                               ## @.str.1
	.asciz	"WFC rect req"

	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_wfc_client_stream_post_sem,4,2 ## @wfc_client_stream_post_sem
	.comm	_WFC_RECT_X,8,3                 ## @WFC_RECT_X
	.comm	_WFC_RECT_Y,8,3                 ## @WFC_RECT_Y
	.comm	_WFC_RECT_WIDTH,8,3             ## @WFC_RECT_WIDTH
	.comm	_WFC_RECT_HEIGHT,8,3            ## @WFC_RECT_HEIGHT
L_.str.2:                               ## @.str.2
	.asciz	"wfc_stream_rect_req_thread: END: stream: %X"

	.no_dead_strip	_wfc_stream_rect_req_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wfc_stream_rect_req_thread
_wfc_stream_rect_req_thread:            ; @wfc_stream_rect_req_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _WFC_RECT_SIZE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _WFC_RECT_SIZE@GOTPAGEOFF]
	ldr	w24, [x12]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_vcos_log_info
	mov	x0, x19
	bl	_wfc_stream_find_stream_ptr
	cbz	x0, LBB0_7
; %bb.1:
	stur	x22, [x29, #-136]               ; 8-byte Folded Spill
	ldp	x22, x27, [x0]
	bl	_STREAM_UNLOCK
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #124
	mov	w2, #0
	bl	_vcos_semaphore_create
	mov	x23, x0
Lloh13:
	adrp	x28, _VCOS_SUCCESS@GOTPAGE
Lloh14:
	ldr	x28, [x28, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	cset	w0, eq
	bl	_vcos_assert
	ldr	x8, [x28]
	cmp	x23, x8
	b.ne	LBB0_6
; %bb.2:
	lsl	w23, w24, #2
	cmp	w24, #4
	cset	w24, eq
Lloh15:
	adrp	x26, _wfc_client_stream_post_sem@GOTPAGE
Lloh16:
	ldr	x26, [x26, _wfc_client_stream_post_sem@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x8
	b.ne	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	sub	x2, x29, #124
	mov	x0, x19
	bl	_wfc_server_stream_on_rects_change
	sub	x0, x29, #124
	bl	_vcos_semaphore_wait
	sub	x1, x29, #120
	mov	x0, x19
	bl	_wfc_server_stream_get_rects
	mov	x25, x0
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_vcos_static_assert
	sub	x1, x29, #120
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	ldur	w0, [x29, #-104]
	bl	_WFC_DISPMANX_TO_SRC_VAL
Lloh17:
	adrp	x8, _WFC_RECT_X@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WFC_RECT_X@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	w0, [x21, x8, lsl #2]
	ldur	w0, [x29, #-100]
	bl	_WFC_DISPMANX_TO_SRC_VAL
Lloh20:
	adrp	x8, _WFC_RECT_Y@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WFC_RECT_Y@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	w0, [x21, x8, lsl #2]
	ldur	w0, [x29, #-96]
	bl	_WFC_DISPMANX_TO_SRC_VAL
Lloh23:
	adrp	x8, _WFC_RECT_WIDTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WFC_RECT_WIDTH@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	w0, [x21, x8, lsl #2]
	ldur	w0, [x29, #-92]
	bl	_WFC_DISPMANX_TO_SRC_VAL
Lloh26:
	adrp	x8, _WFC_RECT_HEIGHT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WFC_RECT_HEIGHT@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	w0, [x21, x8, lsl #2]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	blr	x27
	ldr	x8, [x28]
	b	LBB0_3
LBB0_6:
	sub	x0, x29, #124
	bl	_vcos_semaphore_delete
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_vcos_log_info
	ldur	x22, [x29, #-136]               ; 8-byte Folded Reload
LBB0_7:
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_WFC_RECT_SIZE,4,2              ; @WFC_RECT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wfc_stream_rect_req_thread: START: stream: %X"

l_.str.1:                               ; @.str.1
	.asciz	"WFC rect req"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_wfc_client_stream_post_sem,4,2 ; @wfc_client_stream_post_sem
	.comm	_WFC_RECT_X,8,3                 ; @WFC_RECT_X
	.comm	_WFC_RECT_Y,8,3                 ; @WFC_RECT_Y
	.comm	_WFC_RECT_WIDTH,8,3             ; @WFC_RECT_WIDTH
	.comm	_WFC_RECT_HEIGHT,8,3            ; @WFC_RECT_HEIGHT
l_.str.2:                               ; @.str.2
	.asciz	"wfc_stream_rect_req_thread: END: stream: %X"

	.no_dead_strip	_wfc_stream_rect_req_thread
.subsections_via_symbols
