	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_ping_test
_do_ping_test:                          ## @do_ping_test
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r13d
	leal	40(%r12), %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, -88(%rbp)
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	32(%rcx), %rax
	movq	%rax, 32(%rbx)
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	_MSG_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	$0, (%rbx)
	movl	$40, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movl	%r13d, %edi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movq	_VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %edx
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_vchiq_set_service_option
	cmpl	$5, %r12d
	movl	$4, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmovgel	%r12d, %eax
	movl	%eax, -80(%rbp)
	movq	_bulk_tx_received@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.1:
	leaq	-88(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_SYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_vcos_max
	testl	%eax, %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r13d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_vcos_max
	cmpl	%eax, %r13d
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r14d, %r13d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_MSG_ASYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_vchiq_queue_message
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r15d, %r13d
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_MSG_ONEWAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_vchiq_queue_message
	jmp	LBB0_8
LBB0_10:
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssl	-44(%rbp), %xmm1        ## 4-byte Folded Reload
	movss	%xmm1, -72(%rbp)                ## 4-byte Spill
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movb	$1, %al
	callq	_printf
	movl	$20, %edi
	callq	_vcos_sleep
	movl	%r15d, %eax
	orl	%r14d, %eax
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_15
## %bb.11:
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	32(%rcx), %rax
	movq	%rax, 32(%r12)
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
	movq	_MSG_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	movl	$8, %eax
	cmovnel	%ecx, %eax
	movl	%eax, (%r12)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, 4(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movl	$40, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movl	$30, %edi
	callq	_vcos_sleep
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.12:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	%ebx, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_vchiq_queue_bulk_transmit
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	decl	%r13d
	jne	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	divss	-72(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edx
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$40, %edi
	callq	_vcos_sleep
LBB0_15:
	testl	%r15d, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_23
## %bb.16:
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	32(%rcx), %rax
	movq	%rax, 32(%r12)
	movups	(%rcx), %xmm0
	movups	16(%rcx), %xmm1
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
	movq	_MSG_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	movl	$8, %ecx
	cmovnel	%edx, %ecx
	movq	%rax, 24(%r12)
	movl	%ecx, (%r12)
	leal	1(%r14), %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	imull	%r15d, %eax
	movl	%eax, 4(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movl	$40, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	callq	_vcos_event_wait
	movl	$50, %edi
	callq	_vcos_sleep
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.17:
	movq	_VCHIQ_BULK_MODE_NOCALLBACK@GOTPCREL(%rip), %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %edx
	movq	_VCHIQ_BULK_MODE_BLOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_vchiq_bulk_transmit
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r13, %r12
	je	LBB0_22
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	movq	%r12, %r13
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movl	(%r15), %r8d
	movl	%r12d, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_vchiq_bulk_transmit
	decl	%ebx
	jne	LBB0_20
	jmp	LBB0_21
LBB0_22:
	xorl	%eax, %eax
	callq	_vcos_getmicrosecs
	subq	-104(%rbp), %rax                ## 8-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	divss	-72(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	movb	$1, %al
	callq	_printf
	movl	$60, %edi
	callq	_vcos_sleep
LBB0_23:
	movq	%r12, %rdi
	callq	_free
	movq	_bulk_tx_received@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_params,40,3                  ## @g_params
	.comm	_MSG_CONFIG,8,3                 ## @MSG_CONFIG
	.comm	_g_server_reply,4,2             ## @g_server_reply
	.comm	_VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA,4,2 ## @VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA
	.comm	_bulk_tx_received,4,2           ## @bulk_tx_received
	.comm	_MSG_ASYNC,8,3                  ## @MSG_ASYNC
	.comm	_MSG_ONEWAY,8,3                 ## @MSG_ONEWAY
	.comm	_MSG_SYNC,8,3                   ## @MSG_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ping (size %d, %d async, %d oneway) -> %fus\n"

L_.str.1:                               ## @.str.1
	.asciz	"bulk (size %d, async) -> %fus\n"

	.comm	_VCHIQ_BULK_MODE_NOCALLBACK,4,2 ## @VCHIQ_BULK_MODE_NOCALLBACK
	.comm	_VCHIQ_BULK_MODE_BLOCKING,4,2   ## @VCHIQ_BULK_MODE_BLOCKING
L_.str.2:                               ## @.str.2
	.asciz	"bulk (size %d, %d async) -> %fus\n"

	.no_dead_strip	_do_ping_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_ping_test
_do_ping_test:                          ; @do_ping_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x22, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	add	w0, w1, #40
	bl	_malloc
	mov	x19, x0
	str	x0, [sp, #32]
Lloh0:
	adrp	x8, _g_params@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_params@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	ldr	x8, [x8, #32]
	str	x8, [x0, #32]
Lloh2:
	adrp	x8, _MSG_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_CONFIG@GOTPAGEOFF]
	stp	q0, q1, [x0]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x0, #24]
	str	wzr, [x0]
	mov	w8, #40
	str	w8, [sp, #40]
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #1
	bl	_vchiq_queue_message
Lloh5:
	adrp	x0, _g_server_reply@GOTPAGE
Lloh6:
	ldr	x0, [x0, _g_server_reply@GOTPAGEOFF]
	bl	_vcos_event_wait
Lloh7:
	adrp	x8, _VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x23
	bl	_vchiq_set_service_option
	mov	w8, #4
	cmp	w21, #4
	str	w21, [sp, #24]                  ; 4-byte Folded Spill
	csel	w8, w21, w8, gt
	str	w8, [sp, #40]
Lloh10:
	adrp	x9, _bulk_tx_received@GOTPAGE
Lloh11:
	ldr	x9, [x9, _bulk_tx_received@GOTPAGEOFF]
	mov	w8, #-1
Lloh12:
	str	w8, [x9]
	bl	_vcos_getmicrosecs
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	str	w22, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w27, #0
Lloh13:
	adrp	x28, _MSG_ASYNC@GOTPAGE
Lloh14:
	ldr	x28, [x28, _MSG_ASYNC@GOTPAGEOFF]
Lloh15:
	adrp	x25, _MSG_ONEWAY@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MSG_ONEWAY@GOTPAGEOFF]
Lloh17:
	adrp	x21, _MSG_SYNC@GOTPAGE
Lloh18:
	ldr	x21, [x21, _MSG_SYNC@GOTPAGEOFF]
Lloh19:
	adrp	x26, _g_server_reply@GOTPAGE
Lloh20:
	ldr	x26, [x26, _g_server_reply@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	str	x8, [x19, #24]
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #1
	bl	_vchiq_queue_message
	mov	x0, x26
	bl	_vcos_event_wait
	add	w27, w27, #1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w27, w8
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x20
	mov	x1, x24
	bl	_vcos_max
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w22, w22, #1
	mov	x0, x20
	mov	x1, x24
	bl	_vcos_max
	cmp	w22, w0
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w22, w20
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x28]
	str	x8, [x19, #24]
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #1
	bl	_vchiq_queue_message
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	cmp	w22, w24
	b.ge	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x25]
	str	x8, [x19, #24]
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #1
	bl	_vchiq_queue_message
	b	LBB0_5
LBB0_10:
	bl	_vcos_getmicrosecs
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sub	x8, x0, x8
	scvtf	s0, x8
	ldp	w27, w8, [sp, #24]              ; 8-byte Folded Reload
	scvtf	s8, w8
	fdiv	s0, s0, s8
	fcvt	d0, s0
	str	x24, [sp]
	str	d0, [sp, #8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	mov	x2, x20
	bl	_printf
	mov	w0, #20
	bl	_vcos_sleep
	orr	w8, w24, w20
	cbz	w8, LBB0_12
; %bb.11:
	cbnz	w24, LBB0_23
	b	LBB0_16
LBB0_12:
Lloh23:
	adrp	x8, _g_params@GOTPAGE
Lloh24:
	ldr	x8, [x8, _g_params@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	ldr	x8, [x8, #32]
	str	x8, [x19, #32]
	stp	q0, q1, [x19]
Lloh25:
	adrp	x8, _MSG_CONFIG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_CONFIG@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	stp	xzr, x8, [x19, #16]
	mov	w8, #8
	cmp	w27, #0
	csel	w8, w8, w27, eq
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	stp	w8, w21, [x19]
	str	xzr, [x19, #8]
	mov	w8, #40
	str	w8, [sp, #40]
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #1
	bl	_vchiq_queue_message
Lloh28:
	adrp	x0, _g_server_reply@GOTPAGE
Lloh29:
	ldr	x0, [x0, _g_server_reply@GOTPAGEOFF]
	bl	_vcos_event_wait
	mov	w0, #30
	bl	_vcos_sleep
	bl	_vcos_getmicrosecs
	mov	x25, x0
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.13:
Lloh30:
	adrp	x26, _g_server_reply@GOTPAGE
Lloh31:
	ldr	x26, [x26, _g_server_reply@GOTPAGEOFF]
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	bl	_vchiq_queue_bulk_transmit
	mov	x0, x26
	bl	_vcos_event_wait
	subs	w21, w21, #1
	b.ne	LBB0_14
LBB0_15:
	bl	_vcos_getmicrosecs
	sub	x8, x0, x25
	scvtf	s0, x8
	fdiv	s0, s0, s8
	fcvtzs	w2, s0
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x27
	bl	_printf
	mov	w0, #40
	bl	_vcos_sleep
	cbnz	w24, LBB0_23
LBB0_16:
Lloh34:
	adrp	x8, _g_params@GOTPAGE
Lloh35:
	ldr	x8, [x8, _g_params@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	ldr	x8, [x8, #32]
	str	x8, [x19, #32]
	stp	q0, q1, [x19]
Lloh36:
	adrp	x8, _MSG_CONFIG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MSG_CONFIG@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	stp	xzr, x8, [x19, #16]
	mov	w8, #8
	cmp	w27, #0
	csel	w8, w8, w27, eq
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
	madd	w9, w21, w20, w21
	stp	w8, w9, [x19]
	str	xzr, [x19, #8]
	mov	w8, #40
	str	w8, [sp, #40]
	add	x1, sp, #32
	mov	x0, x23
	mov	w2, #1
	bl	_vchiq_queue_message
Lloh39:
	adrp	x0, _g_server_reply@GOTPAGE
Lloh40:
	ldr	x0, [x0, _g_server_reply@GOTPAGEOFF]
	bl	_vcos_event_wait
	mov	w0, #50
	bl	_vcos_sleep
	bl	_vcos_getmicrosecs
	mov	x24, x0
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.17:
	mov	w21, #0
Lloh41:
	adrp	x25, _VCHIQ_BULK_MODE_NOCALLBACK@GOTPAGE
Lloh42:
	ldr	x25, [x25, _VCHIQ_BULK_MODE_NOCALLBACK@GOTPAGEOFF]
Lloh43:
	adrp	x26, _VCHIQ_BULK_MODE_BLOCKING@GOTPAGE
Lloh44:
	ldr	x26, [x26, _VCHIQ_BULK_MODE_BLOCKING@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w2, [x19]
	ldr	w4, [x26]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	bl	_vchiq_bulk_transmit
	add	w21, w21, #1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w21, w8
	b.eq	LBB0_22
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x22, x20
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x19]
	ldr	w4, [x25]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	bl	_vchiq_bulk_transmit
	subs	w22, w22, #1
	b.ne	LBB0_21
	b	LBB0_18
LBB0_22:
	bl	_vcos_getmicrosecs
	sub	x8, x0, x24
	scvtf	s0, x8
	fdiv	s0, s0, s8
	fcvt	d0, s0
	str	d0, [sp]
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	mov	x2, x20
	bl	_printf
	mov	w0, #60
	bl	_vcos_sleep
LBB0_23:
	mov	x0, x19
	bl	_free
Lloh47:
	adrp	x8, _bulk_tx_received@GOTPAGE
Lloh48:
	ldr	x8, [x8, _bulk_tx_received@GOTPAGEOFF]
Lloh49:
	str	wzr, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_g_params,40,3                  ; @g_params
	.comm	_MSG_CONFIG,8,3                 ; @MSG_CONFIG
	.comm	_g_server_reply,4,2             ; @g_server_reply
	.comm	_VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA,4,2 ; @VCHIQ_SERVICE_OPTION_MESSAGE_QUOTA
	.comm	_bulk_tx_received,4,2           ; @bulk_tx_received
	.comm	_MSG_ASYNC,8,3                  ; @MSG_ASYNC
	.comm	_MSG_ONEWAY,8,3                 ; @MSG_ONEWAY
	.comm	_MSG_SYNC,8,3                   ; @MSG_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ping (size %d, %d async, %d oneway) -> %fus\n"

l_.str.1:                               ; @.str.1
	.asciz	"bulk (size %d, async) -> %fus\n"

	.comm	_VCHIQ_BULK_MODE_NOCALLBACK,4,2 ; @VCHIQ_BULK_MODE_NOCALLBACK
	.comm	_VCHIQ_BULK_MODE_BLOCKING,4,2   ; @VCHIQ_BULK_MODE_BLOCKING
l_.str.2:                               ; @.str.2
	.asciz	"bulk (size %d, %d async) -> %fus\n"

	.no_dead_strip	_do_ping_test
.subsections_via_symbols
