	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vchi_clnt_callback
_vchi_clnt_callback:                    ## @vchi_clnt_callback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rdi), %r15d
	movq	_g_mutex@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_lock
	movq	_VCHI_CALLBACK_MSG_AVAILABLE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	_g_sync_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_25
## %bb.2:
	movq	_VCHI_FLAGS_NONE@GOTPCREL(%rip), %r12
	leaq	_vchi_clnt_callback.pong_buf(%rip), %r14
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r8d
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$100, %edx
	movq	%rbx, %rcx
	callq	_vchi_msg_dequeue
	testq	%rax, %rax
	jne	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax
	cmpl	$2, %eax
	jge	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_3
	jmp	LBB0_7
LBB0_8:
	movq	_VCHI_CALLBACK_BULK_SENT@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_12
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_bulk_tx_received@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	callq	_vcos_assert
	incl	(%rbx)
	movq	_bulk_tx_sent@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %r8
	movq	_g_params@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r8d
	jge	LBB0_25
## %bb.11:
	movq	_bulk_tx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rdi
	movl	%r14d, %eax
	cltd
	idivl	(%rdi)
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %rsi
	movl	4(%rcx), %edx
	movq	_VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE@GOTPCREL(%rip), %rax
	movq	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r15d, %edi
	callq	_vchi_bulk_queue_transmit
	incl	(%rbx)
	jmp	LBB0_25
LBB0_12:
	movq	_VCHI_CALLBACK_BULK_RECEIVED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_20
## %bb.13:
	movq	_bulk_rx_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %r13
	movl	%r14d, %eax
	cltd
	idivl	(%r13)
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_bulk_rx_received@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	callq	_vcos_assert
	movq	_g_params@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.14:
	movq	_bulk_tx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%r13)
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rdi
	movq	(%r12), %rcx
	movq	(%rcx,%rax,8), %rsi
	movl	4(%rbx), %edx
	callq	_mem_check
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_bulk_tx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%r13)
	movslq	%edx, %rax
	movl	(%rcx,%rax,8), %esi
	movq	(%r12), %rcx
	movl	(%rcx,%rax,8), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_vcos_log_error
LBB0_16:
	movq	%r12, %rax
	movq	_bulk_rx_received@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	_bulk_rx_sent@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	cmpl	(%rbx), %edi
	jge	LBB0_25
## %bb.17:
	cmpq	$0, 8(%rbx)
	movq	%r13, %rsi
	movq	%rax, %r13
	je	LBB0_19
## %bb.18:
	movq	(%r13), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rsi)
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rdi
	movl	4(%rbx), %edx
	movl	$255, %esi
	callq	_memset
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rsi
	movl	(%r12), %edi
LBB0_19:
	movq	(%r13), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rsi)
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rsi
	movl	4(%rbx), %edx
	movq	_VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE@GOTPCREL(%rip), %rax
	movq	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movslq	%edi, %r8
	movl	%r15d, %edi
	callq	_vchi_bulk_queue_receive
	incl	(%r12)
	jmp	LBB0_25
LBB0_20:
	movq	_VCHI_CALLBACK_BULK_TRANSMIT_ABORTED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_24
LBB0_22:
	movq	_VCHI_CALLBACK_BULK_RECEIVE_ABORTED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_25
## %bb.23:
	leaq	L_.str.4(%rip), %rdi
LBB0_24:
	movl	%r14d, %esi
	callq	_vcos_log_info
	jmp	LBB0_25
LBB0_5:
	movq	_g_server_error@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
LBB0_7:
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_signal
LBB0_25:
	movq	_bulk_tx_received@GOTPCREL(%rip), %rcx
	movq	_g_params@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, (%rcx)
	jne	LBB0_28
## %bb.26:
	movq	_bulk_rx_received@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_28
## %bb.27:
	movq	_g_shutdown@GOTPCREL(%rip), %rdi
	callq	_vcos_event_signal
LBB0_28:
	movq	_g_mutex@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_mutex,4,2                    ## @g_mutex
	.comm	_VCHI_CALLBACK_MSG_AVAILABLE,8,3 ## @VCHI_CALLBACK_MSG_AVAILABLE
	.comm	_g_sync_mode,4,2                ## @g_sync_mode
.zerofill __DATA,__bss,_vchi_clnt_callback.pong_buf,100,4 ## @vchi_clnt_callback.pong_buf
	.comm	_VCHI_FLAGS_NONE,4,2            ## @VCHI_FLAGS_NONE
	.comm	_g_server_error,8,3             ## @g_server_error
	.comm	_g_server_reply,4,2             ## @g_server_reply
	.comm	_VCHI_CALLBACK_BULK_SENT,8,3    ## @VCHI_CALLBACK_BULK_SENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  BULK_TRANSMIT_DONE(%d)"

	.comm	_bulk_tx_received,4,2           ## @bulk_tx_received
	.comm	_bulk_tx_sent,4,2               ## @bulk_tx_sent
	.comm	_g_params,16,3                  ## @g_params
	.comm	_bulk_tx_data,8,3               ## @bulk_tx_data
	.comm	_NUM_BULK_BUFS,4,2              ## @NUM_BULK_BUFS
	.comm	_VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE,4,2 ## @VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED,4,2 ## @VCHI_FLAGS_BLOCK_UNTIL_QUEUED
	.comm	_VCHI_CALLBACK_BULK_RECEIVED,8,3 ## @VCHI_CALLBACK_BULK_RECEIVED
L_.str.1:                               ## @.str.1
	.asciz	"  BULK_RECEIVE_DONE(%d): data '%s'"

	.comm	_bulk_rx_data,8,3               ## @bulk_rx_data
	.comm	_bulk_rx_received,4,2           ## @bulk_rx_received
L_.str.2:                               ## @.str.2
	.asciz	"* Data corruption - %x, %x, %x"

	.comm	_VCOS_BKPT,4,2                  ## @VCOS_BKPT
	.comm	_bulk_rx_sent,4,2               ## @bulk_rx_sent
	.comm	_VCHI_CALLBACK_BULK_TRANSMIT_ABORTED,8,3 ## @VCHI_CALLBACK_BULK_TRANSMIT_ABORTED
L_.str.3:                               ## @.str.3
	.asciz	"  BULK_TRANSMIT_ABORTED(%d)"

	.comm	_VCHI_CALLBACK_BULK_RECEIVE_ABORTED,8,3 ## @VCHI_CALLBACK_BULK_RECEIVE_ABORTED
L_.str.4:                               ## @.str.4
	.asciz	"  BULK_RECEIVE_ABORTED(%d)"

	.comm	_g_shutdown,4,2                 ## @g_shutdown
	.no_dead_strip	_vchi_clnt_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vchi_clnt_callback
_vchi_clnt_callback:                    ; @vchi_clnt_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	ldr	w19, [x0]
Lloh0:
	adrp	x0, _g_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _g_mutex@GOTPAGEOFF]
	bl	_vcos_mutex_lock
Lloh2:
	adrp	x8, _VCHI_CALLBACK_MSG_AVAILABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VCHI_CALLBACK_MSG_AVAILABLE@GOTPAGEOFF]
Lloh4:
	adrp	x22, _bulk_tx_received@GOTPAGE
Lloh5:
	ldr	x22, [x22, _bulk_tx_received@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x23, _g_params@GOTPAGE
Lloh8:
	ldr	x23, [x23, _g_params@GOTPAGEOFF]
Lloh9:
	adrp	x24, _bulk_rx_received@GOTPAGE
Lloh10:
	ldr	x24, [x24, _bulk_rx_received@GOTPAGEOFF]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.1:
Lloh11:
	adrp	x8, _g_sync_mode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g_sync_mode@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbnz	w8, LBB0_25
; %bb.2:
Lloh14:
	adrp	x21, _VCHI_FLAGS_NONE@GOTPAGE
Lloh15:
	ldr	x21, [x21, _VCHI_FLAGS_NONE@GOTPAGEOFF]
Lloh16:
	adrp	x20, _vchi_clnt_callback.pong_buf@PAGE
Lloh17:
	add	x20, x20, _vchi_clnt_callback.pong_buf@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #100
	bl	_vchi_msg_dequeue
	cbnz	x0, LBB0_25
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.ge	LBB0_23
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_3
	b	LBB0_24
LBB0_6:
Lloh18:
	adrp	x8, _VCHI_CALLBACK_BULK_SENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VCHI_CALLBACK_BULK_SENT@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_trace
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_24
; %bb.8:
	cmp	w8, w20
	cset	w0, eq
	bl	_vcos_assert
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
Lloh23:
	adrp	x21, _bulk_tx_sent@GOTPAGE
Lloh24:
	ldr	x21, [x21, _bulk_tx_sent@GOTPAGEOFF]
	ldrsw	x4, [x21]
	ldr	w8, [x23]
	cmp	w4, w8
	b.ge	LBB0_25
; %bb.9:
Lloh25:
	adrp	x8, _bulk_tx_data@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bulk_tx_data@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _NUM_BULK_BUFS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NUM_BULK_BUFS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	sdiv	w10, w20, w9
	msub	w9, w10, w9, w20
	ldr	x1, [x8, w9, sxtw #3]
Lloh31:
	adrp	x8, _VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE@GOTPAGEOFF]
	ldr	w2, [x23, #4]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	bl	_vchi_bulk_queue_transmit
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	b	LBB0_25
LBB0_10:
Lloh37:
	adrp	x8, _VCHI_CALLBACK_BULK_RECEIVED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VCHI_CALLBACK_BULK_RECEIVED@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.11:
Lloh40:
	adrp	x21, _bulk_rx_data@GOTPAGE
Lloh41:
	ldr	x21, [x21, _bulk_rx_data@GOTPAGEOFF]
Lloh42:
	adrp	x25, _NUM_BULK_BUFS@GOTPAGE
Lloh43:
	ldr	x25, [x25, _NUM_BULK_BUFS@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w9, [x25]
	sdiv	w10, w20, w9
	msub	w9, w10, w9, w20
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.1@PAGE
Lloh45:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_trace
	ldr	w8, [x24]
	cmp	w8, w20
	cset	w0, eq
	bl	_vcos_assert
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_14
; %bb.12:
Lloh46:
	adrp	x26, _bulk_tx_data@GOTPAGE
Lloh47:
	ldr	x26, [x26, _bulk_tx_data@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w9, [x25]
	sdiv	w10, w20, w9
	msub	w9, w10, w9, w20
	sbfiz	x9, x9, #3, #32
	ldr	x0, [x8, x9]
	ldr	x8, [x21]
	ldr	x1, [x8, x9]
	ldr	w2, [x23, #4]
	bl	_mem_check
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x26]
	ldr	w9, [x25]
	sdiv	w10, w20, w9
	msub	w9, w10, w9, w20
	sbfiz	x9, x9, #3, #32
	ldr	w1, [x8, x9]
	ldr	x8, [x21]
	ldr	w2, [x8, x9]
	ldr	w3, [x23, #4]
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vcos_log_error
LBB0_14:
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
Lloh50:
	adrp	x26, _bulk_rx_sent@GOTPAGE
Lloh51:
	ldr	x26, [x26, _bulk_rx_sent@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ge	LBB0_25
; %bb.15:
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_17
; %bb.16:
	ldr	x8, [x21]
	ldr	w9, [x25]
	sdiv	w10, w20, w9
	msub	w9, w10, w9, w20
	ldr	x0, [x8, w9, sxtw #3]
	ldr	w2, [x23, #4]
	mov	w1, #255
	bl	_memset
	ldr	w8, [x26]
LBB0_17:
	ldr	x9, [x21]
	ldr	w10, [x25]
	sdiv	w11, w20, w10
	msub	w10, w11, w10, w20
	ldr	x1, [x9, w10, sxtw #3]
	ldr	w2, [x23, #4]
Lloh52:
	adrp	x9, _VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE@GOTPAGE
Lloh53:
	ldr	x9, [x9, _VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
Lloh55:
	adrp	x10, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGE
Lloh56:
	ldr	x10, [x10, _VCHI_FLAGS_BLOCK_UNTIL_QUEUED@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	orr	w3, w10, w9
	sxtw	x4, w8
	mov	x0, x19
	bl	_vchi_bulk_queue_receive
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	b	LBB0_25
LBB0_18:
Lloh58:
	adrp	x8, _VCHI_CALLBACK_BULK_TRANSMIT_ABORTED@GOTPAGE
Lloh59:
	ldr	x8, [x8, _VCHI_CALLBACK_BULK_TRANSMIT_ABORTED@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_20
; %bb.19:
Lloh61:
	adrp	x0, l_.str.3@PAGE
Lloh62:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh63:
	adrp	x8, _VCHI_CALLBACK_BULK_RECEIVE_ABORTED@GOTPAGE
Lloh64:
	ldr	x8, [x8, _VCHI_CALLBACK_BULK_RECEIVE_ABORTED@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_25
; %bb.21:
Lloh66:
	adrp	x0, l_.str.4@PAGE
Lloh67:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_22:
	mov	x1, x20
	bl	_vcos_log_info
	b	LBB0_25
LBB0_23:
Lloh68:
	adrp	x8, _g_server_error@GOTPAGE
Lloh69:
	ldr	x8, [x8, _g_server_error@GOTPAGEOFF]
Lloh70:
	str	x20, [x8]
LBB0_24:
Lloh71:
	adrp	x0, _g_server_reply@GOTPAGE
Lloh72:
	ldr	x0, [x0, _g_server_reply@GOTPAGEOFF]
	bl	_vcos_event_signal
LBB0_25:
	ldr	w8, [x22]
	ldr	w9, [x23]
	ldr	w10, [x24]
	cmp	w8, w9
	ccmp	w10, w9, #0, eq
	b.ne	LBB0_27
; %bb.26:
Lloh73:
	adrp	x0, _g_shutdown@GOTPAGE
Lloh74:
	ldr	x0, [x0, _g_shutdown@GOTPAGEOFF]
	bl	_vcos_event_signal
LBB0_27:
Lloh75:
	adrp	x0, _g_mutex@GOTPAGE
Lloh76:
	ldr	x0, [x0, _g_mutex@GOTPAGEOFF]
	bl	_vcos_mutex_unlock
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotStr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_g_mutex,4,2                    ; @g_mutex
	.comm	_VCHI_CALLBACK_MSG_AVAILABLE,8,3 ; @VCHI_CALLBACK_MSG_AVAILABLE
	.comm	_g_sync_mode,4,2                ; @g_sync_mode
.zerofill __DATA,__bss,_vchi_clnt_callback.pong_buf,100,0 ; @vchi_clnt_callback.pong_buf
	.comm	_VCHI_FLAGS_NONE,4,2            ; @VCHI_FLAGS_NONE
	.comm	_g_server_error,8,3             ; @g_server_error
	.comm	_g_server_reply,4,2             ; @g_server_reply
	.comm	_VCHI_CALLBACK_BULK_SENT,8,3    ; @VCHI_CALLBACK_BULK_SENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  BULK_TRANSMIT_DONE(%d)"

	.comm	_bulk_tx_received,4,2           ; @bulk_tx_received
	.comm	_bulk_tx_sent,4,2               ; @bulk_tx_sent
	.comm	_g_params,16,3                  ; @g_params
	.comm	_bulk_tx_data,8,3               ; @bulk_tx_data
	.comm	_NUM_BULK_BUFS,4,2              ; @NUM_BULK_BUFS
	.comm	_VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE,4,2 ; @VCHI_FLAGS_CALLBACK_WHEN_OP_COMPLETE
	.comm	_VCHI_FLAGS_BLOCK_UNTIL_QUEUED,4,2 ; @VCHI_FLAGS_BLOCK_UNTIL_QUEUED
	.comm	_VCHI_CALLBACK_BULK_RECEIVED,8,3 ; @VCHI_CALLBACK_BULK_RECEIVED
l_.str.1:                               ; @.str.1
	.asciz	"  BULK_RECEIVE_DONE(%d): data '%s'"

	.comm	_bulk_rx_data,8,3               ; @bulk_rx_data
	.comm	_bulk_rx_received,4,2           ; @bulk_rx_received
l_.str.2:                               ; @.str.2
	.asciz	"* Data corruption - %x, %x, %x"

	.comm	_VCOS_BKPT,4,2                  ; @VCOS_BKPT
	.comm	_bulk_rx_sent,4,2               ; @bulk_rx_sent
	.comm	_VCHI_CALLBACK_BULK_TRANSMIT_ABORTED,8,3 ; @VCHI_CALLBACK_BULK_TRANSMIT_ABORTED
l_.str.3:                               ; @.str.3
	.asciz	"  BULK_TRANSMIT_ABORTED(%d)"

	.comm	_VCHI_CALLBACK_BULK_RECEIVE_ABORTED,8,3 ; @VCHI_CALLBACK_BULK_RECEIVE_ABORTED
l_.str.4:                               ; @.str.4
	.asciz	"  BULK_RECEIVE_ABORTED(%d)"

	.comm	_g_shutdown,4,2                 ; @g_shutdown
	.no_dead_strip	_vchi_clnt_callback
.subsections_via_symbols
