	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_server_commit_scene        ## -- Begin function wfc_server_commit_scene
	.p2align	4, 0x90
_wfc_server_commit_scene:               ## @wfc_server_commit_scene
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	_VCOS_ENOSYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	$8, -80(%rbp)
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rdx
	movl	16(%rbx), %ecx
	movq	(%rbx), %r8
	leaq	L_.str(%rip), %rdi
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_vcos_log_trace
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_vcos_log_trace
	incq	%r15
	cmpq	(%rbx), %r15
	jb	LBB0_2
LBB0_3:
	movq	_WFC_IPC_MSG_COMMIT_SCENE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-112(%rbp), %r13
	movl	%eax, -112(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -88(%rbp)
	movq	%r12, -120(%rbp)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, -96(%rbp)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, -104(%rbp)
	leaq	-108(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	_WFC_SERVER_COMMIT_WAIT@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_vcos_assert
	testq	%r14, %r14
	setne	%al
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_vcos_assert
	testq	%r14, %r14
	sete	%al
LBB0_6:
	movzbl	%al, %edi
	callq	_vcos_assert
	leaq	-56(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r13, %rdi
	movl	$40, %esi
	callq	_wfc_client_ipc_sendwait
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rax
LBB0_8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_VCOS_ENOSYS,8,3                ## @VCOS_ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: context 0x%x commit %u elements %u flags 0x%x"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
L_.str.1:                               ## @.str.1
	.asciz	"%s: element[%u] stream 0x%x"

	.comm	_WFC_IPC_MSG_COMMIT_SCENE,4,2   ## @WFC_IPC_MSG_COMMIT_SCENE
	.comm	_WFC_SERVER_COMMIT_WAIT,8,3     ## @WFC_SERVER_COMMIT_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_server_commit_scene        ; -- Begin function wfc_server_commit_scene
	.p2align	2
_wfc_server_commit_scene:               ; @wfc_server_commit_scene
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w8, #8
Lloh0:
	adrp	x9, _VCOS_ENOSYS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VCOS_ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stp	x8, x9, [sp, #24]
Lloh3:
	adrp	x26, _VCOS_FUNCTION@GOTPAGE
Lloh4:
	ldr	x26, [x26, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x26]
	sxtw	x2, w23
	ldr	w3, [x22, #16]
	ldr	x8, [x22]
	stp	x8, x21, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_trace
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x24, #0
Lloh7:
	adrp	x25, l_.str.1@PAGE
Lloh8:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	ldr	x8, [x22, #8]
	ldr	w3, [x8, x24, lsl #2]
	mov	x0, x25
	mov	x2, x24
	bl	_vcos_log_trace
	add	x24, x24, #1
	ldr	x8, [x22]
	cmp	x24, x8
	b.lo	LBB0_2
LBB0_3:
Lloh9:
	adrp	x8, _WFC_IPC_MSG_COMMIT_SCENE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WFC_IPC_MSG_COMMIT_SCENE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	x9, sp, #40
	add	x24, x9, #8
	str	w8, [sp, #48]
	str	w23, [sp, #72]
	str	x21, [sp, #40]
	stp	x19, x20, [sp, #56]
	add	x0, x9, #12
	mov	x1, x22
	mov	w2, #24
	bl	_memcpy
Lloh12:
	adrp	x8, _WFC_SERVER_COMMIT_WAIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WFC_SERVER_COMMIT_WAIT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_5
; %bb.4:
	cmp	x20, #0
	cset	w0, ne
	bl	_vcos_assert
	cmp	x19, #0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	cmp	x20, #0
	cset	w0, eq
	bl	_vcos_assert
	cmp	x19, #0
	cset	w0, eq
LBB0_6:
	bl	_vcos_assert
	add	x2, sp, #32
	add	x3, sp, #24
	mov	x0, x24
	mov	w1, #40
	bl	_wfc_client_ipc_sendwait
Lloh15:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x9, [sp, #32]
	cmp	x0, x8
	csel	x0, x9, x0, eq
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_VCOS_ENOSYS,8,3                ; @VCOS_ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: context 0x%x commit %u elements %u flags 0x%x"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
l_.str.1:                               ; @.str.1
	.asciz	"%s: element[%u] stream 0x%x"

	.comm	_WFC_IPC_MSG_COMMIT_SCENE,4,2   ; @WFC_IPC_MSG_COMMIT_SCENE
	.comm	_WFC_SERVER_COMMIT_WAIT,8,3     ; @WFC_SERVER_COMMIT_WAIT
.subsections_via_symbols
