	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cecservice_wait_for_bulk_receive
_cecservice_wait_for_bulk_receive:      ## @cecservice_wait_for_bulk_receive
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_vcos_verify
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_cecservice_client@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	callq	_vchi_bulk_queue_receive
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vchi2service_status            ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_vc_cec_log_error
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CEC: NULL buffer passed to wait_for_bulk_receive"

	.comm	_cecservice_client,8,3          ## @cecservice_client
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE,4,2 ## @VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE
	.no_dead_strip	_cecservice_wait_for_bulk_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cecservice_wait_for_bulk_receive
_cecservice_wait_for_bulk_receive:      ; @cecservice_wait_for_bulk_receive
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_vcos_verify
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _cecservice_client@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cecservice_client@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x19
	mov	x4, #0
	bl	_vchi_bulk_queue_receive
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vchi2service_status
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vc_cec_log_error
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CEC: NULL buffer passed to wait_for_bulk_receive"

	.comm	_cecservice_client,8,3          ; @cecservice_client
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE,4,2 ; @VCHI_FLAGS_BLOCK_UNTIL_OP_COMPLETE
	.no_dead_strip	_cecservice_wait_for_bulk_receive
.subsections_via_symbols
