	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_send_response
_vc_send_response:                      ## @vc_send_response
	.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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_vchi_writebuf_uint32
	leaq	8(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_vchi_writebuf_uint32
	movq	16(%rbx), %rdi
	movq	(%rdi), %rsi
	callq	_vchi_writebuf_uint32
	movq	16(%rbx), %rdi
	movq	8(%rdi), %rsi
	addq	$8, %rdi
	callq	_vchi_writebuf_uint32
	movq	16(%rbx), %rdi
	movq	16(%rdi), %rsi
	addq	$16, %rdi
	callq	_vchi_writebuf_uint32
	movq	16(%rbx), %rdi
	movq	24(%rdi), %rsi
	addq	$24, %rdi
	callq	_vchi_writebuf_uint32
	addq	$8, %r14
	movq	_VCHI_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	setle	%dil
	callq	_vcos_verify
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_vc_filesys_client@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_vchi_msg_queue
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCHI_MAX_MSG_SIZE,8,3          ## @VCHI_MAX_MSG_SIZE
	.comm	_vc_filesys_client,4,2          ## @vc_filesys_client
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED,4,2 ## @VCHI_FLAGS_BLOCK_UNTIL_QUEUED
	.no_dead_strip	_vc_send_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc_send_response
_vc_send_response:                      ; @vc_send_response
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	bl	_vchi_writebuf_uint32
	mov	x21, x19
	ldr	x1, [x21, #8]!
	mov	x0, x21
	bl	_vchi_writebuf_uint32
	ldr	x0, [x21, #8]
	ldr	x1, [x0]
	bl	_vchi_writebuf_uint32
	ldr	x0, [x21, #8]
	ldr	x1, [x0, #8]!
	bl	_vchi_writebuf_uint32
	ldr	x0, [x21, #8]
	ldr	x1, [x0, #16]!
	bl	_vchi_writebuf_uint32
	ldr	x0, [x21, #8]
	ldr	x1, [x0, #24]!
	bl	_vchi_writebuf_uint32
	add	x20, x20, #8
Lloh0:
	adrp	x8, _VCHI_MAX_MSG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCHI_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w0, le
	bl	_vcos_verify
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _vc_filesys_client@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vc_filesys_client@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, x20
	mov	x4, #0
	bl	_vchi_msg_queue
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VCHI_MAX_MSG_SIZE,8,3          ; @VCHI_MAX_MSG_SIZE
	.comm	_vc_filesys_client,4,2          ; @vc_filesys_client
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED,4,2 ; @VCHI_FLAGS_BLOCK_UNTIL_QUEUED
	.no_dead_strip	_vc_send_response
.subsections_via_symbols
