	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vchiq_ping_test
_vchiq_ping_test:                       ## @vchiq_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
	movq	_g_servname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movsbl	(%rax), %edi
	movsbl	1(%rax), %esi
	movsbl	2(%rax), %edx
	movsbl	3(%rax), %ecx
	callq	_VCHIQ_MAKE_FOURCC
	movl	%eax, %r12d
	movq	(%rbx), %rsi
	movq	_g_params@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_VCHIQ_TEST_VER@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	-64(%rbp), %rdi
	callq	_vchiq_initialise
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_1
## %bb.3:
	movq	-64(%rbp), %rdi
	callq	_vchiq_connect
	leaq	-104(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	%eax, -84(%rbp)
	movl	%r12d, -104(%rbp)
	movq	_vchi_clnt_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%rdx, -96(%rbp)
	movl	-64(%rbp), %edi
	movq	%r15, %rsi
	callq	_vchi_service_open
	cmpq	(%rbx), %rax
	jne	LBB0_11
## %bb.4:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	leaq	_vchiq_ping_test.sizes(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r14), %r15
	movl	-44(%rbp), %edi
	movl	(%rax,%r12), %r13d
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$10, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$10, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$10, %edx
	movl	$10, %ecx
	movl	%r15d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	imulq	$1717986919, %r15, %r12         ## imm = 0x66666667
	movq	%r12, %rbx
	sarq	$34, %rbx
	movq	%r12, %r14
	shrq	$63, %r14
	addl	%r14d, %ebx
	movl	%r13d, %esi
	movl	$100, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$100, %edx
	movl	$100, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$200, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$200, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$200, %edx
	movl	$200, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	sarq	$35, %r12
	addl	%r14d, %r12d
	movq	_g_params@GOTPCREL(%rip), %r14
	movl	%r13d, %esi
	movl	$400, %edx                      ## imm = 0x190
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$400, %ecx                      ## imm = 0x190
	movl	%r12d, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$400, %edx                      ## imm = 0x190
	movl	$400, %ecx                      ## imm = 0x190
	movl	%r12d, %r8d
	leaq	_vchiq_ping_test.sizes(%rip), %r12
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	imulq	$1374389535, %r15, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$36, %rbx
	addl	%eax, %ebx
	movl	%r13d, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movl	-44(%rbp), %edi
	movl	%r13d, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	%ebx, %r8d
	callq	_do_vchi_ping_test
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	cmpq	$16, %rax
	jne	LBB0_5
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_vchi_service_close
	movq	_clnt_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VCHIQ_TEST_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rcx
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_INIT_PARAMS
	movq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_vchiq_open_service
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_g_params@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movl	-48(%rbp), %edi
	leaq	_vchiq_ping_test.sizes(%rip), %rax
	movl	(%rcx,%rax), %r12d
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$10, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$10, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$10, %edx
	movl	$10, %ecx
	movl	%r14d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	imulq	$1717986919, %r14, %r15         ## imm = 0x66666667
	movq	%r15, %rbx
	sarq	$34, %rbx
	movq	%r15, %r13
	shrq	$63, %r13
	addl	%r13d, %ebx
	movl	%r12d, %esi
	movl	$100, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$100, %edx
	movl	$100, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$200, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$200, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$200, %edx
	movl	$200, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	sarq	$35, %r15
	addl	%r13d, %r15d
	movl	%r12d, %esi
	movl	$400, %edx                      ## imm = 0x190
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$400, %ecx                      ## imm = 0x190
	movl	%r15d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$400, %edx                      ## imm = 0x190
	movl	$400, %ecx                      ## imm = 0x190
	movl	%r15d, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	imulq	$1374389535, %r14, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$36, %rbx
	addl	%eax, %ebx
	movl	%r12d, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	%ebx, %r8d
	callq	_do_ping_test
	movl	-48(%rbp), %edi
	movl	%r12d, %esi
	movl	$1000, %edx                     ## imm = 0x3E8
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	%ebx, %r8d
	callq	_do_ping_test
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$4, %rcx
	cmpq	$16, %rcx
	jne	LBB0_8
## %bb.9:
	movl	-48(%rbp), %edi
	callq	_vchiq_close_service
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	leaq	L_str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	leaq	L_str.4(%rip), %rdi
LBB0_2:
	callq	_puts
	movq	_VCHIQ_ERROR@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @vchiq_ping_test.sizes
_vchiq_ping_test.sizes:
	.long	0                               ## 0x0
	.long	1024                            ## 0x400
	.long	2048                            ## 0x800
	.long	128                             ## 0x80

	.comm	_g_servname,8,3                 ## @g_servname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ping test - service:%s, iters:%d, version %d\n"

	.comm	_g_params,4,2                   ## @g_params
	.comm	_VCHIQ_TEST_VER,4,2             ## @VCHIQ_TEST_VER
	.comm	_VCHIQ_SUCCESS,8,3              ## @VCHIQ_SUCCESS
	.comm	_VCHIQ_ERROR,8,3                ## @VCHIQ_ERROR
	.comm	_vchi_clnt_callback,4,2         ## @vchi_clnt_callback
	.comm	_clnt_callback,4,2              ## @clnt_callback
L_.str.3:                               ## @.str.3
	.asciz	"clnt userdata"

	.comm	_g_timeout_ms,8,3               ## @g_timeout_ms
L_str.4:                                ## @str.4
	.asciz	"* failed to open service - already in use?"

L_str.5:                                ## @str.5
	.asciz	"* failed to open vchiq instance"

	.no_dead_strip	_vchiq_ping_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vchiq_ping_test
_vchiq_ping_test:                       ; @vchiq_ping_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x19, _g_servname@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_servname@GOTPAGEOFF]
	ldr	x8, [x19]
	ldrsb	w0, [x8]
	ldrsb	w1, [x8, #1]
	ldrsb	w2, [x8, #2]
	ldrsb	w3, [x8, #3]
	bl	_VCHIQ_MAKE_FOURCC
	mov	x20, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x23, _g_params@GOTPAGE
Lloh3:
	ldr	x23, [x23, _g_params@GOTPAGEOFF]
Lloh4:
	adrp	x19, _VCHIQ_TEST_VER@GOTPAGE
Lloh5:
	ldr	x19, [x19, _VCHIQ_TEST_VER@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	w10, [x19]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	x0, sp, #72
	bl	_vchiq_initialise
Lloh8:
	adrp	x21, _VCHIQ_SUCCESS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VCHIQ_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	ldr	x0, [sp, #72]
	bl	_vchiq_connect
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x19]
	str	w8, [sp, #56]
	str	w20, [sp, #32]
Lloh10:
	adrp	x9, _vchi_clnt_callback@GOTPAGE
Lloh11:
	ldr	x9, [x9, _vchi_clnt_callback@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	add	x8, sp, #64
	str	x8, [sp, #40]
	ldr	w0, [sp, #72]
	add	x1, sp, #32
	add	x2, sp, #64
	bl	_vchi_service_open
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
	str	w20, [sp, #24]                  ; 4-byte Folded Spill
	mov	x27, #0
	mov	w28, #26215
	movk	w28, #26214, lsl #16
	mov	w25, #34079
	movk	w25, #20971, lsl #16
Lloh13:
	adrp	x24, _vchiq_ping_test.sizes@PAGE
Lloh14:
	add	x24, x24, _vchiq_ping_test.sizes@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x21, [x23]
	ldr	w0, [sp, #64]
	ldr	w20, [x24, x27]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #2
	mov	w3, #0
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #10
	mov	w3, #0
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #2
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #10
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #10
	mov	w3, #10
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mul	x26, x21, x28
	asr	x8, x26, #34
	lsr	x19, x26, #63
	add	w22, w8, w19
	mov	x1, x20
	mov	w2, #100
	mov	w3, #0
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #100
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #100
	mov	w3, #100
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #200
	mov	w3, #0
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #200
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #200
	mov	w3, #200
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	asr	x8, x26, #35
	add	w22, w8, w19
	mov	x1, x20
	mov	w2, #400
	mov	w3, #0
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #400
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #400
	mov	w3, #400
	mov	x4, x22
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mul	x8, x21, x25
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w21, w8, w9
	mov	x1, x20
	mov	w2, #1000
	mov	w3, #0
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #0
	mov	w3, #1000
	mov	x4, x21
	bl	_do_vchi_ping_test
	ldr	w0, [sp, #64]
	mov	x1, x20
	mov	w2, #1000
	mov	w3, #1000
	mov	x4, x21
	bl	_do_vchi_ping_test
	add	x27, x27, #4
	cmp	x27, #16
	b.ne	LBB0_3
; %bb.4:
	ldr	w0, [sp, #64]
	bl	_vchi_service_close
Lloh15:
	adrp	x8, _clnt_callback@GOTPAGE
Lloh16:
	ldr	x8, [x8, _clnt_callback@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _VCHIQ_TEST_VER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VCHIQ_TEST_VER@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
Lloh21:
	adrp	x3, l_.str.3@PAGE
Lloh22:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x0, sp, #28
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_INIT_PARAMS
	ldr	x0, [sp, #72]
	add	x1, sp, #28
	add	x2, sp, #68
	bl	_vchiq_open_service
Lloh23:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
	mov	x22, #0
	mov	w25, #26215
	movk	w25, #26214, lsl #16
	mov	w26, #34079
	movk	w26, #20971, lsl #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x20, [x23]
	ldr	w0, [sp, #68]
	ldr	w19, [x24, x22]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #2
	mov	w3, #0
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #10
	mov	w3, #0
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #1
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #2
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #10
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #10
	mov	w3, #10
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mul	x27, x20, x25
	asr	x8, x27, #34
	lsr	x28, x27, #63
	add	w21, w8, w28
	mov	x1, x19
	mov	w2, #100
	mov	w3, #0
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #100
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #100
	mov	w3, #100
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #200
	mov	w3, #0
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #200
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #200
	mov	w3, #200
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	asr	x8, x27, #35
	add	w21, w8, w28
	mov	x1, x19
	mov	w2, #400
	mov	w3, #0
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #400
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #400
	mov	w3, #400
	mov	x4, x21
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mul	x8, x20, x26
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w20, w8, w9
	mov	x1, x19
	mov	w2, #1000
	mov	w3, #0
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #1000
	mov	x4, x20
	bl	_do_ping_test
	ldr	w0, [sp, #68]
	mov	x1, x19
	mov	w2, #1000
	mov	w3, #1000
	mov	x4, x20
	bl	_do_ping_test
	add	x22, x22, #4
	cmp	x22, #16
	b.ne	LBB0_6
; %bb.7:
	ldr	w0, [sp, #68]
	bl	_vchiq_close_service
Lloh26:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh28:
	adrp	x0, l_str.5@PAGE
Lloh29:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh30:
	adrp	x0, l_str.4@PAGE
Lloh31:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_10:
	bl	_puts
Lloh32:
	adrp	x8, _VCHIQ_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VCHIQ_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @vchiq_ping_test.sizes
_vchiq_ping_test.sizes:
	.long	0                               ; 0x0
	.long	1024                            ; 0x400
	.long	2048                            ; 0x800
	.long	128                             ; 0x80

	.comm	_g_servname,8,3                 ; @g_servname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ping test - service:%s, iters:%d, version %d\n"

	.comm	_g_params,4,2                   ; @g_params
	.comm	_VCHIQ_TEST_VER,4,2             ; @VCHIQ_TEST_VER
	.comm	_VCHIQ_SUCCESS,8,3              ; @VCHIQ_SUCCESS
	.comm	_VCHIQ_ERROR,8,3                ; @VCHIQ_ERROR
	.comm	_vchi_clnt_callback,4,2         ; @vchi_clnt_callback
	.comm	_clnt_callback,4,2              ; @clnt_callback
l_.str.3:                               ; @.str.3
	.asciz	"clnt userdata"

	.comm	_g_timeout_ms,8,3               ; @g_timeout_ms
l_str.4:                                ; @str.4
	.asciz	"* failed to open service - already in use?"

l_str.5:                                ; @str.5
	.asciz	"* failed to open vchiq instance"

	.no_dead_strip	_vchiq_ping_test
.subsections_via_symbols
