	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clnt_callback
_clnt_callback:                         ## @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	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_g_mutex@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_lock
	movq	_VCHIQ_MESSAGE_AVAILABLE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_18
## %bb.1:
	movq	(%r15), %rbx
	cmpq	$2, %rbx
	jae	LBB0_2
## %bb.15:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_vchiq_release_message
	testq	%rbx, %rbx
	jne	LBB0_17
## %bb.16:
	movq	_g_server_error@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_53
	jmp	LBB0_17
LBB0_18:
	movq	_VCHIQ_BULK_TRANSMIT_DONE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_25
## %bb.19:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_bulk_tx_received@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_17
## %bb.20:
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	callq	_vcos_assert
	incl	(%rbx)
	movq	_bulk_tx_sent@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_g_params@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jae	LBB0_53
## %bb.21:
	movq	_bulk_tx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movslq	%r12d, %rax
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_22
## %bb.23:
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_24
LBB0_2:
	cmpq	$4, %rbx
	jb	LBB0_14
## %bb.3:
	movq	8(%r15), %rsi
	leaq	-44(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax
	movq	_MSG_ECHO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.4:
	movq	_g_params@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.5:
	movq	8(%r15), %rdi
	movq	_bulk_tx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ctrl_received@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_8
LBB0_25:
	movq	_VCHIQ_BULK_RECEIVE_DONE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_48
## %bb.26:
	movq	_bulk_rx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r12d, %r15
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_27
## %bb.28:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_29
LBB0_14:
	movq	8(%r15), %rax
	movq	_g_server_error@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_17
LBB0_48:
	movq	_VCHIQ_BULK_TRANSMIT_ABORTED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_50
## %bb.49:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_52
LBB0_50:
	movq	_VCHIQ_BULK_RECEIVE_ABORTED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_53
## %bb.51:
	leaq	L_.str.5(%rip), %rdi
LBB0_52:
	movl	%r12d, %esi
	callq	_vcos_log_info
	jmp	LBB0_53
LBB0_27:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_29:
	movq	(%rcx,%rdx,8), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movq	_bulk_rx_received@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r12d, (%rax)
	sete	%dil
	callq	_vcos_assert
	movq	_g_params@GOTPCREL(%rip), %r13
	cmpq	$0, 24(%r13)
	je	LBB0_38
## %bb.30:
	movq	_bulk_tx_data@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_31
## %bb.32:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_33
LBB0_22:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_24:
	movq	(%rsi,%rdx,8), %rsi
	movl	16(%rdi), %edx
	movl	%r14d, %edi
	callq	_vchiq_queue_bulk_transmit
	incq	(%r15)
	jmp	LBB0_53
LBB0_31:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_33:
	movq	(%rcx,%rdx,8), %rdi
	movq	_bulk_rx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rsi
	movl	16(%r13), %edx
	callq	_mem_check
	testq	%rax, %rax
	je	LBB0_38
## %bb.34:
	movq	(%rbx), %rcx
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_35
## %bb.36:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_37
LBB0_35:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_37:
	movl	(%rcx,%rdx,8), %eax
	movq	_bulk_rx_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx,8), %ecx
	movl	16(%r13), %r8d
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_vcos_log_error
LBB0_38:
	movq	_bulk_rx_received@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_bulk_rx_sent@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	(%r13), %rcx
	jae	LBB0_53
## %bb.39:
	cmpq	$0, 24(%r13)
	je	LBB0_44
## %bb.40:
	movq	_bulk_rx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_41
## %bb.42:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_43
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:
	movq	(%rcx,%rdx,8), %rsi
	movl	16(%rbx), %edx
	callq	_mem_check
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rax
	movq	_g_server_error@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_12
LBB0_10:
	movq	_ctrl_received@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	incq	%rax
	movq	%rax, (%rcx)
	movq	_g_server_error@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_12
## %bb.11:
	cmpq	(%rbx), %rax
	jne	LBB0_13
LBB0_12:
	movq	_g_shutdown@GOTPCREL(%rip), %rdi
	callq	_vcos_event_signal
LBB0_13:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_vchiq_release_message
LBB0_17:
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_signal
LBB0_53:
	movq	_bulk_tx_received@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_g_params@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_57
## %bb.54:
	cmpq	$0, 8(%rcx)
	je	LBB0_56
## %bb.55:
	movq	_bulk_rx_received@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_57
LBB0_56:
	movq	_g_shutdown@GOTPCREL(%rip), %rdi
	callq	_vcos_event_signal
LBB0_57:
	movq	_g_mutex@GOTPCREL(%rip), %rdi
	callq	_vcos_mutex_unlock
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_43:
	movq	(%rcx,%rdx,8), %rdi
	movl	16(%r13), %edx
	movl	$255, %esi
	callq	_memset
	movq	(%rbx), %rcx
LBB0_44:
	movq	_bulk_rx_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_NUM_BULK_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_45
## %bb.46:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_47
LBB0_45:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_47:
	movq	(%rsi,%rdx,8), %rsi
	movl	16(%r13), %edx
	movl	%r14d, %edi
	callq	_vchiq_queue_bulk_receive
	incq	(%rbx)
	jmp	LBB0_53
	.cfi_endproc
                                        ## -- End function
	.comm	_g_mutex,4,2                    ## @g_mutex
	.comm	_VCHIQ_MESSAGE_AVAILABLE,8,3    ## @VCHIQ_MESSAGE_AVAILABLE
	.comm	_MSG_ECHO,4,2                   ## @MSG_ECHO
	.comm	_g_params,32,3                  ## @g_params
	.comm	_bulk_tx_data,8,3               ## @bulk_tx_data
	.comm	_ctrl_received,8,3              ## @ctrl_received
	.comm	_NUM_BULK_BUFS,8,3              ## @NUM_BULK_BUFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupt data"

	.comm	_g_server_error,8,3             ## @g_server_error
	.comm	_g_shutdown,4,2                 ## @g_shutdown
	.comm	_g_server_reply,4,2             ## @g_server_reply
	.comm	_VCHIQ_BULK_TRANSMIT_DONE,8,3   ## @VCHIQ_BULK_TRANSMIT_DONE
L_.str.1:                               ## @.str.1
	.asciz	"  BULK_TRANSMIT_DONE(%d)"

	.comm	_bulk_tx_received,4,2           ## @bulk_tx_received
	.comm	_bulk_tx_sent,8,3               ## @bulk_tx_sent
	.comm	_VCHIQ_BULK_RECEIVE_DONE,8,3    ## @VCHIQ_BULK_RECEIVE_DONE
L_.str.2:                               ## @.str.2
	.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.3:                               ## @.str.3
	.asciz	"* Data corruption - %d: %x, %x, %x"

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

	.comm	_VCHIQ_BULK_RECEIVE_ABORTED,8,3 ## @VCHIQ_BULK_RECEIVE_ABORTED
L_.str.5:                               ## @.str.5
	.asciz	"  BULK_RECEIVE_ABORTED(%d)"

	.comm	_VCHIQ_SUCCESS,4,2              ## @VCHIQ_SUCCESS
	.no_dead_strip	_clnt_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clnt_callback
_clnt_callback:                         ; @clnt_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _g_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _g_mutex@GOTPAGEOFF]
	bl	_vcos_mutex_lock
Lloh2:
	adrp	x8, _VCHIQ_MESSAGE_AVAILABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VCHIQ_MESSAGE_AVAILABLE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x24, _bulk_tx_received@GOTPAGE
Lloh6:
	ldr	x24, [x24, _bulk_tx_received@GOTPAGEOFF]
Lloh7:
	adrp	x23, _g_params@GOTPAGE
Lloh8:
	ldr	x23, [x23, _g_params@GOTPAGEOFF]
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.1:
	ldr	x20, [x21]
	cmp	x20, #2
	b.hs	LBB0_8
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_vchiq_release_message
	cbnz	x20, LBB0_30
; %bb.3:
Lloh9:
	adrp	x8, _g_server_error@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_server_error@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_31
	b	LBB0_30
LBB0_4:
Lloh12:
	adrp	x8, _VCHIQ_BULK_TRANSMIT_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VCHIQ_BULK_TRANSMIT_DONE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.5:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_trace
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_30
; %bb.6:
	cmp	w8, w20
	cset	w0, eq
	bl	_vcos_assert
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
Lloh17:
	adrp	x21, _bulk_tx_sent@GOTPAGE
Lloh18:
	ldr	x21, [x21, _bulk_tx_sent@GOTPAGEOFF]
	ldr	x3, [x21]
	ldr	x8, [x23]
	cmp	x3, x8
	b.hs	LBB0_31
; %bb.7:
Lloh19:
	adrp	x8, _bulk_tx_data@GOTPAGE
Lloh20:
	ldr	x8, [x8, _bulk_tx_data@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	sxtw	x9, w20
Lloh22:
	adrp	x10, _NUM_BULK_BUFS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _NUM_BULK_BUFS@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	ldr	x1, [x8, x9, lsl #3]
	ldr	w2, [x23, #16]
	mov	x0, x19
	bl	_vchiq_queue_bulk_transmit
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	b	LBB0_31
LBB0_8:
	cmp	x20, #4
	b.lo	LBB0_21
; %bb.9:
	ldr	x1, [x21, #8]
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #12]
Lloh25:
	adrp	x9, _MSG_ECHO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MSG_ECHO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.10:
	ldr	x8, [x23, #24]
Lloh28:
	adrp	x20, _ctrl_received@GOTPAGE
Lloh29:
	ldr	x20, [x20, _ctrl_received@GOTPAGEOFF]
	cbz	x8, LBB0_27
; %bb.11:
	ldr	x0, [x21, #8]
Lloh30:
	adrp	x8, _bulk_tx_data@GOTPAGE
Lloh31:
	ldr	x8, [x8, _bulk_tx_data@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x20]
Lloh33:
	adrp	x10, _NUM_BULK_BUFS@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NUM_BULK_BUFS@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	ldr	x1, [x8, x9, lsl #3]
	ldr	w2, [x23, #16]
	bl	_mem_check
	cbz	x0, LBB0_27
; %bb.12:
Lloh36:
	adrp	x8, _g_server_error@GOTPAGE
Lloh37:
	ldr	x8, [x8, _g_server_error@GOTPAGEOFF]
Lloh38:
	adrp	x9, l_.str@PAGE
Lloh39:
	add	x9, x9, l_.str@PAGEOFF
Lloh40:
	str	x9, [x8]
	b	LBB0_28
LBB0_13:
Lloh41:
	adrp	x8, _VCHIQ_BULK_RECEIVE_DONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VCHIQ_BULK_RECEIVE_DONE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_22
; %bb.14:
Lloh44:
	adrp	x21, _bulk_rx_data@GOTPAGE
Lloh45:
	ldr	x21, [x21, _bulk_rx_data@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh46:
	adrp	x25, _NUM_BULK_BUFS@GOTPAGE
Lloh47:
	ldr	x25, [x25, _NUM_BULK_BUFS@GOTPAGEOFF]
	sxtw	x22, w20
	ldr	x9, [x25]
	udiv	x10, x22, x9
	msub	x9, x10, x9, x22
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_trace
Lloh50:
	adrp	x26, _bulk_rx_received@GOTPAGE
Lloh51:
	ldr	x26, [x26, _bulk_rx_received@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w20
	cset	w0, eq
	bl	_vcos_assert
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_17
; %bb.15:
Lloh52:
	adrp	x27, _bulk_tx_data@GOTPAGE
Lloh53:
	ldr	x27, [x27, _bulk_tx_data@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x9, [x25]
	udiv	x10, x22, x9
	msub	x9, x10, x9, x22
	lsl	x9, x9, #3
	ldr	x0, [x8, x9]
	ldr	x8, [x21]
	ldr	x1, [x8, x9]
	ldr	w2, [x23, #16]
	bl	_mem_check
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x27]
	ldr	x9, [x25]
	udiv	x10, x22, x9
	msub	x9, x10, x9, x22
	lsl	x9, x9, #3
	ldr	w2, [x8, x9]
	ldr	x8, [x21]
	ldr	w3, [x8, x9]
	ldr	w4, [x23, #16]
Lloh54:
	adrp	x0, l_.str.3@PAGE
Lloh55:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_vcos_log_error
LBB0_17:
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
Lloh56:
	adrp	x20, _bulk_rx_sent@GOTPAGE
Lloh57:
	ldr	x20, [x20, _bulk_rx_sent@GOTPAGEOFF]
	ldr	x3, [x20]
	ldr	x8, [x23]
	cmp	x3, x8
	b.hs	LBB0_31
; %bb.18:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x8, [x21]
	ldr	x9, [x25]
	udiv	x10, x22, x9
	msub	x9, x10, x9, x22
	ldr	x0, [x8, x9, lsl #3]
	ldr	w2, [x23, #16]
	mov	w1, #255
	bl	_memset
	ldr	x3, [x20]
LBB0_20:
	ldr	x8, [x21]
	ldr	x9, [x25]
	udiv	x10, x22, x9
	msub	x9, x10, x9, x22
	ldr	x1, [x8, x9, lsl #3]
	ldr	w2, [x23, #16]
	mov	x0, x19
	bl	_vchiq_queue_bulk_receive
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	b	LBB0_31
LBB0_21:
	ldr	x8, [x21, #8]
Lloh58:
	adrp	x9, _g_server_error@GOTPAGE
Lloh59:
	ldr	x9, [x9, _g_server_error@GOTPAGEOFF]
Lloh60:
	str	x8, [x9]
	b	LBB0_30
LBB0_22:
Lloh61:
	adrp	x8, _VCHIQ_BULK_TRANSMIT_ABORTED@GOTPAGE
Lloh62:
	ldr	x8, [x8, _VCHIQ_BULK_TRANSMIT_ABORTED@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_24
; %bb.23:
Lloh64:
	adrp	x0, l_.str.4@PAGE
Lloh65:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_24:
Lloh66:
	adrp	x8, _VCHIQ_BULK_RECEIVE_ABORTED@GOTPAGE
Lloh67:
	ldr	x8, [x8, _VCHIQ_BULK_RECEIVE_ABORTED@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_31
; %bb.25:
Lloh69:
	adrp	x0, l_.str.5@PAGE
Lloh70:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_26:
	mov	x1, x20
	bl	_vcos_log_info
	b	LBB0_31
LBB0_27:
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh71:
	adrp	x9, _g_server_error@GOTPAGE
Lloh72:
	ldr	x9, [x9, _g_server_error@GOTPAGEOFF]
Lloh73:
	ldr	x9, [x9]
	ldr	x10, [x23]
	cmp	x9, #0
	ccmp	x8, x10, #4, eq
	b.ne	LBB0_29
LBB0_28:
Lloh74:
	adrp	x0, _g_shutdown@GOTPAGE
Lloh75:
	ldr	x0, [x0, _g_shutdown@GOTPAGEOFF]
	bl	_vcos_event_signal
LBB0_29:
	mov	x0, x19
	mov	x1, x21
	bl	_vchiq_release_message
LBB0_30:
Lloh76:
	adrp	x0, _g_server_reply@GOTPAGE
Lloh77:
	ldr	x0, [x0, _g_server_reply@GOTPAGEOFF]
	bl	_vcos_event_signal
LBB0_31:
	ldrsw	x8, [x24]
	ldr	x9, [x23]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.32:
	ldr	x9, [x23, #8]
Lloh78:
	adrp	x10, _bulk_rx_received@GOTPAGE
Lloh79:
	ldr	x10, [x10, _bulk_rx_received@GOTPAGEOFF]
Lloh80:
	ldr	w10, [x10]
	cmp	x9, #0
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_34
; %bb.33:
Lloh81:
	adrp	x0, _g_shutdown@GOTPAGE
Lloh82:
	ldr	x0, [x0, _g_shutdown@GOTPAGEOFF]
	bl	_vcos_event_signal
LBB0_34:
Lloh83:
	adrp	x0, _g_mutex@GOTPAGE
Lloh84:
	ldr	x0, [x0, _g_mutex@GOTPAGEOFF]
	bl	_vcos_mutex_unlock
Lloh85:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh86:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotStr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_g_mutex,4,2                    ; @g_mutex
	.comm	_VCHIQ_MESSAGE_AVAILABLE,8,3    ; @VCHIQ_MESSAGE_AVAILABLE
	.comm	_MSG_ECHO,4,2                   ; @MSG_ECHO
	.comm	_g_params,32,3                  ; @g_params
	.comm	_bulk_tx_data,8,3               ; @bulk_tx_data
	.comm	_ctrl_received,8,3              ; @ctrl_received
	.comm	_NUM_BULK_BUFS,8,3              ; @NUM_BULK_BUFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupt data"

	.comm	_g_server_error,8,3             ; @g_server_error
	.comm	_g_shutdown,4,2                 ; @g_shutdown
	.comm	_g_server_reply,4,2             ; @g_server_reply
	.comm	_VCHIQ_BULK_TRANSMIT_DONE,8,3   ; @VCHIQ_BULK_TRANSMIT_DONE
l_.str.1:                               ; @.str.1
	.asciz	"  BULK_TRANSMIT_DONE(%d)"

	.comm	_bulk_tx_received,4,2           ; @bulk_tx_received
	.comm	_bulk_tx_sent,8,3               ; @bulk_tx_sent
	.comm	_VCHIQ_BULK_RECEIVE_DONE,8,3    ; @VCHIQ_BULK_RECEIVE_DONE
l_.str.2:                               ; @.str.2
	.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.3:                               ; @.str.3
	.asciz	"* Data corruption - %d: %x, %x, %x"

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

	.comm	_VCHIQ_BULK_RECEIVE_ABORTED,8,3 ; @VCHIQ_BULK_RECEIVE_ABORTED
l_.str.5:                               ; @.str.5
	.asciz	"  BULK_RECEIVE_ABORTED(%d)"

	.comm	_VCHIQ_SUCCESS,4,2              ; @VCHIQ_SUCCESS
	.no_dead_strip	_clnt_callback
.subsections_via_symbols
