	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_server_stream_allocate_images ## -- Begin function wfc_server_stream_allocate_images
	.p2align	4, 0x90
_wfc_server_stream_allocate_images:     ## @wfc_server_stream_allocate_images
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	$0, -44(%rbp)
	movq	$4, -72(%rbp)
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%edi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_WFC_IPC_MSG_SS_ALLOCATE_IMAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-52(%rbp), %rdi
	movl	%eax, -52(%rbp)
	movl	%ebx, -48(%rbp)
	movl	%r13d, -64(%rbp)
	movl	%r12d, -60(%rbp)
	movl	%r15d, -56(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movl	$20, %esi
	callq	_wfc_client_ipc_sendwait
	movq	%rax, %rbx
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movl	-44(%rbp), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$40, %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	"%s: stream 0x%x width %u height %u nbufs %u"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_WFC_IPC_MSG_SS_ALLOCATE_IMAGES,4,2 ## @WFC_IPC_MSG_SS_ALLOCATE_IMAGES
L_.str.1:                               ## @.str.1
	.asciz	"%s: status 0x%x result %u"

	.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_server_stream_allocate_images ; -- Begin function wfc_server_stream_allocate_images
	.p2align	2
_wfc_server_stream_allocate_images:     ; @wfc_server_stream_allocate_images
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #36]
	mov	w8, #4
	str	x8, [sp, #24]
Lloh0:
	adrp	x23, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x23]
	sxtw	x2, w22
	stp	x20, x19, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_vcos_log_trace
Lloh4:
	adrp	x8, _WFC_IPC_MSG_SS_ALLOCATE_IMAGES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WFC_IPC_MSG_SS_ALLOCATE_IMAGES@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	x9, sp, #40
	add	x0, x9, #12
	stp	w8, w22, [sp, #52]
	stp	w21, w20, [sp, #40]
	str	w19, [sp, #48]
	add	x2, sp, #36
	add	x3, sp, #24
	mov	w1, #20
	bl	_wfc_client_ipc_sendwait
	mov	x19, x0
	ldr	w1, [x23]
	ldr	w3, [sp, #36]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_vcos_log_trace
Lloh9:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w9, [sp, #36]
	cmp	x19, x8
	csel	w0, w9, wzr, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: stream 0x%x width %u height %u nbufs %u"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_WFC_IPC_MSG_SS_ALLOCATE_IMAGES,4,2 ; @WFC_IPC_MSG_SS_ALLOCATE_IMAGES
l_.str.1:                               ; @.str.1
	.asciz	"%s: status 0x%x result %u"

	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
.subsections_via_symbols
