	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vchiq_test
_vchiq_test:                            ## @vchiq_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	$1, %r12d
	cmpl	$2, %edi
	jl	LBB0_1
## %bb.2:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-68(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_40
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %r13
	movzbl	(%r13), %r15d
	cmpb	$45, %r15b
	jne	LBB0_40
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r12), %r14d
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_61
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.15(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.16(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.17(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_37:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	movq	_g_servname@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_strlen
	cmpl	$4, %eax
	jne	LBB0_7
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	movl	$32, %eax
	movl	$4096, %ecx                     ## imm = 0x1000
	cmovel	%ecx, %eax
	movq	_g_params@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movslq	%r14d, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14,%rax,8), %rdi
	callq	_atoi
	movq	%rax, 48(%r13)
	addl	$3, %r12d
	movq	16(%r14,%rbx,8), %rdi
	callq	_atoi
	movq	%rax, 40(%r13)
	jmp	LBB0_39
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%rcx)
	movl	$1, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_39
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%rcx)
	movl	$1, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_39
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_want_echo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_38
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_38
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_38:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r12d
	jmp	LBB0_39
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	%rax, 24(%rcx)
	jmp	LBB0_39
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_g_params@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rcx)
	jmp	LBB0_39
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_g_params@GOTPCREL(%rip), %rax
	movl	$1000, 4(%rax)                  ## imm = 0x3E8
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_38
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_g_params@GOTPCREL(%rip), %rax
	movq	$0, 8(%rax)
	jmp	LBB0_38
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_38
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_func_data_test_start@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_39
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_func_data_test_end@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_39
LBB0_1:
	xorl	%edx, %edx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_40:
	cmpb	$45, %r15b
	setne	%bl
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
LBB0_41:
	movq	%rax, %r14
	movq	%rdx, %r15
	addl	%edx, %eax
	movl	%ecx, %r13d
	addl	%ecx, %eax
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	addl	%edi, %eax
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	addl	%esi, %eax
	cmpl	$1, %eax
	je	LBB0_43
## %bb.42:
	xorl	%eax, %eax
	callq	_usage
LBB0_43:
	testb	%bl, %bl
	je	LBB0_46
## %bb.44:
	movslq	%r12d, %rax
	incl	%r12d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movq	_g_params@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	cmpl	-68(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_46
## %bb.45:
	xorl	%eax, %eax
	callq	_usage
LBB0_46:
	movq	_VCOS_LOG_CATEGORY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_47
## %bb.48:
	movq	_VCOS_LOG_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_49
LBB0_47:
	movq	_VCOS_LOG_TRACE@GOTPCREL(%rip), %rax
LBB0_49:
	movl	(%rax), %esi
	callq	_vcos_log_set_level
	movl	(%rbx), %esi
	leaq	L_.str.18(%rip), %rdi
	callq	_vcos_log_register
	movq	_g_server_reply@GOTPCREL(%rip), %rdi
	leaq	L_.str.19(%rip), %rsi
	callq	_vcos_event_create
	movq	_g_shutdown@GOTPCREL(%rip), %rdi
	leaq	L_.str.20(%rip), %rsi
	callq	_vcos_event_create
	movq	_g_mutex@GOTPCREL(%rip), %rdi
	leaq	L_.str.21(%rip), %rsi
	callq	_vcos_mutex_create
	testl	%r15d, %r15d
	je	LBB0_51
## %bb.50:
	xorl	%eax, %eax
	callq	_vchiq_bulk_test
	jmp	LBB0_60
LBB0_51:
	testl	%r14d, %r14d
	je	LBB0_53
## %bb.52:
	xorl	%eax, %eax
	callq	_vchiq_ctrl_test
	jmp	LBB0_60
LBB0_53:
	testl	%r13d, %r13d
	je	LBB0_55
## %bb.54:
	xorl	%eax, %eax
	callq	_vchiq_functional_test
	jmp	LBB0_60
LBB0_55:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_57
## %bb.56:
	xorl	%eax, %eax
	callq	_vchiq_ping_test
	jmp	LBB0_60
LBB0_57:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_58
## %bb.59:
	xorl	%eax, %eax
	callq	_vchiq_signal_test
	jmp	LBB0_60
LBB0_58:
	movq	_VCHIQ_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_60:
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	setne	%cl
	negl	%ecx
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_61:
	xorl	%eax, %eax
	callq	_check_timer
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-s"

	.comm	_g_servname,8,3                 ## @g_servname
L_.str.1:                               ## @.str.1
	.asciz	"-a"

L_.str.2:                               ## @.str.2
	.asciz	"-A"

	.comm	_g_params,56,3                  ## @g_params
L_.str.3:                               ## @.str.3
	.asciz	"-b"

L_.str.4:                               ## @.str.4
	.asciz	"-c"

L_.str.5:                               ## @.str.5
	.asciz	"-e"

	.comm	_want_echo,8,3                  ## @want_echo
L_.str.6:                               ## @.str.6
	.asciz	"-f"

L_.str.7:                               ## @.str.7
	.asciz	"-h"

L_.str.8:                               ## @.str.8
	.asciz	"-i"

L_.str.9:                               ## @.str.9
	.asciz	"-m"

L_.str.10:                              ## @.str.10
	.asciz	"-M"

L_.str.11:                              ## @.str.11
	.asciz	"-p"

L_.str.12:                              ## @.str.12
	.asciz	"-q"

L_.str.13:                              ## @.str.13
	.asciz	"-t"

L_.str.14:                              ## @.str.14
	.asciz	"-v"

L_.str.15:                              ## @.str.15
	.asciz	"-S"

	.comm	_func_data_test_start,8,3       ## @func_data_test_start
L_.str.16:                              ## @.str.16
	.asciz	"-E"

	.comm	_func_data_test_end,8,3         ## @func_data_test_end
L_.str.17:                              ## @.str.17
	.asciz	"* unknown option '%s'\n"

	.comm	_VCOS_LOG_CATEGORY,4,2          ## @VCOS_LOG_CATEGORY
	.comm	_VCOS_LOG_TRACE,4,2             ## @VCOS_LOG_TRACE
	.comm	_VCOS_LOG_INFO,4,2              ## @VCOS_LOG_INFO
L_.str.18:                              ## @.str.18
	.asciz	"vchiq_test"

	.comm	_g_server_reply,4,2             ## @g_server_reply
L_.str.19:                              ## @.str.19
	.asciz	"g_server_reply"

	.comm	_g_shutdown,4,2                 ## @g_shutdown
L_.str.20:                              ## @.str.20
	.asciz	"g_shutdown"

	.comm	_g_mutex,4,2                    ## @g_mutex
L_.str.21:                              ## @.str.21
	.asciz	"g_mutex"

	.comm	_VCHIQ_ERROR,8,3                ## @VCHIQ_ERROR
	.comm	_VCHIQ_SUCCESS,8,3              ## @VCHIQ_SUCCESS
	.comm	_VCOS_AFFINITY_CPU1,4,2         ## @VCOS_AFFINITY_CPU1
	.comm	_VCOS_START,4,2                 ## @VCOS_START
	.comm	_g_timeout_ms,8,3               ## @g_timeout_ms
	.comm	_vchiq_test_server,4,2          ## @vchiq_test_server
	.no_dead_strip	_vchiq_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vchiq_test
_vchiq_test:                            ; @vchiq_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x19, x0
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w26, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	w23, #1
Lloh2:
	adrp	x27, _g_params@GOTPAGE
Lloh3:
	ldr	x27, [x27, _g_params@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	w26, #0
	mov	w27, #0
	mov	w24, #0
	mov	w23, #0
	mov	w22, #0
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	mov	w21, #0
	mov	w25, #1
	b	LBB0_41
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x28, [sp]
Lloh4:
	adrp	x0, l_.str.17@PAGE
Lloh5:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_printf
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_usage
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x25
	cmp	w25, w19
	b.ge	LBB0_40
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20, w23, sxtw #3]
	ldrb	w24, [x28]
	cmp	w24, #45
	b.ne	LBB0_39
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x22, w23
	add	x25, x22, #1
	mov	x0, x28
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_29
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_30
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_31
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh24:
	adrp	x1, l_.str.11@PAGE
Lloh25:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_34
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh26:
	adrp	x1, l_.str.12@PAGE
Lloh27:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh28:
	adrp	x1, l_.str.13@PAGE
Lloh29:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_58
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh30:
	adrp	x1, l_.str.14@PAGE
Lloh31:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_36
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh32:
	adrp	x1, l_.str.15@PAGE
Lloh33:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_37
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh34:
	adrp	x1, l_.str.16@PAGE
Lloh35:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w23, #2
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
Lloh36:
	adrp	x8, _func_data_test_end@GOTPAGE
Lloh37:
	ldr	x8, [x8, _func_data_test_end@GOTPAGEOFF]
	b	LBB0_38
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, x25, lsl #3]
	add	w25, w23, #2
Lloh38:
	adrp	x8, _g_servname@GOTPAGE
Lloh39:
	ldr	x8, [x8, _g_servname@GOTPAGEOFF]
Lloh40:
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_strlen
	cmp	w0, #4
	b.ne	LBB0_4
	b	LBB0_5
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x28
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	mov	w8, #32
	mov	w9, #4096
	csel	w8, w9, w8, eq
	str	w8, [x27]
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
	str	x0, [x27, #48]
	add	w25, w23, #3
	add	x8, x20, x22, lsl #3
	ldr	x0, [x8, #16]
	bl	_atoi
	str	x0, [x27, #40]
	b	LBB0_5
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w23, #2
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
	str	x0, [x27, #32]
	mov	w26, #1
	mov	x25, x22
	b	LBB0_5
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w23, #2
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
	str	x0, [x27, #32]
	mov	w8, #1
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	mov	x25, x22
	b	LBB0_5
LBB0_29:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh43:
	adrp	x8, _want_echo@GOTPAGE
Lloh44:
	ldr	x8, [x8, _want_echo@GOTPAGEOFF]
Lloh45:
	str	xzr, [x8]
	b	LBB0_5
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w23, #2
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
	str	x0, [x27, #24]
	mov	x25, x22
	b	LBB0_5
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w23, #2
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
	str	x0, [x27, #16]
	mov	x25, x22
	b	LBB0_5
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1000
	str	w8, [x27, #4]
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_35:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x27, #8]
	b	LBB0_5
LBB0_36:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_37:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w23, #2
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
Lloh46:
	adrp	x8, _func_data_test_start@GOTPAGE
Lloh47:
	ldr	x8, [x8, _func_data_test_start@GOTPAGEOFF]
LBB0_38:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x8]
	mov	x25, x22
	b	LBB0_5
LBB0_39:
	mov	x25, x23
LBB0_40:
	cmp	w24, #45
	cset	w21, ne
	ldp	w23, w22, [sp, #12]             ; 8-byte Folded Reload
	ldp	w24, w27, [sp, #20]             ; 8-byte Folded Reload
LBB0_41:
	add	w8, w27, w26
	add	w8, w8, w24
	add	w8, w8, w23
	add	w8, w8, w22
	cmp	w8, #1
	b.eq	LBB0_43
; %bb.42:
	bl	_usage
LBB0_43:
	cbz	w21, LBB0_46
; %bb.44:
	add	w21, w25, #1
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atoi
Lloh48:
	adrp	x8, _g_params@GOTPAGE
Lloh49:
	ldr	x8, [x8, _g_params@GOTPAGEOFF]
Lloh50:
	str	w0, [x8, #4]
	cmp	w21, w19
	b.eq	LBB0_46
; %bb.45:
	bl	_usage
LBB0_46:
Lloh51:
	adrp	x19, _VCOS_LOG_CATEGORY@GOTPAGE
Lloh52:
	ldr	x19, [x19, _VCOS_LOG_CATEGORY@GOTPAGEOFF]
Lloh53:
	adrp	x8, _VCOS_LOG_TRACE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _VCOS_LOG_TRACE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh55:
	adrp	x9, _VCOS_LOG_INFO@GOTPAGE
Lloh56:
	ldr	x9, [x9, _VCOS_LOG_INFO@GOTPAGEOFF]
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w10, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	bl	_vcos_log_set_level
	ldr	w1, [x19]
Lloh57:
	adrp	x0, l_.str.18@PAGE
Lloh58:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_vcos_log_register
Lloh59:
	adrp	x0, _g_server_reply@GOTPAGE
Lloh60:
	ldr	x0, [x0, _g_server_reply@GOTPAGEOFF]
Lloh61:
	adrp	x1, l_.str.19@PAGE
Lloh62:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_vcos_event_create
Lloh63:
	adrp	x0, _g_shutdown@GOTPAGE
Lloh64:
	ldr	x0, [x0, _g_shutdown@GOTPAGEOFF]
Lloh65:
	adrp	x1, l_.str.20@PAGE
Lloh66:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_vcos_event_create
Lloh67:
	adrp	x0, _g_mutex@GOTPAGE
Lloh68:
	ldr	x0, [x0, _g_mutex@GOTPAGEOFF]
Lloh69:
	adrp	x1, l_.str.21@PAGE
Lloh70:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_vcos_mutex_create
	cbz	w26, LBB0_48
; %bb.47:
	bl	_vchiq_bulk_test
	b	LBB0_57
LBB0_48:
	cbz	w27, LBB0_50
; %bb.49:
	bl	_vchiq_ctrl_test
	b	LBB0_57
LBB0_50:
	cbz	w24, LBB0_52
; %bb.51:
	bl	_vchiq_functional_test
	b	LBB0_57
LBB0_52:
	cbz	w23, LBB0_54
; %bb.53:
	bl	_vchiq_ping_test
	b	LBB0_57
LBB0_54:
	cbz	w22, LBB0_56
; %bb.55:
	bl	_vchiq_signal_test
	b	LBB0_57
LBB0_56:
Lloh71:
	adrp	x8, _VCHIQ_ERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _VCHIQ_ERROR@GOTPAGEOFF]
Lloh73:
	ldr	x0, [x8]
LBB0_57:
Lloh74:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh75:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	w0, ne
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_58:
	bl	_check_timer
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-s"

	.comm	_g_servname,8,3                 ; @g_servname
l_.str.1:                               ; @.str.1
	.asciz	"-a"

l_.str.2:                               ; @.str.2
	.asciz	"-A"

	.comm	_g_params,56,3                  ; @g_params
l_.str.3:                               ; @.str.3
	.asciz	"-b"

l_.str.4:                               ; @.str.4
	.asciz	"-c"

l_.str.5:                               ; @.str.5
	.asciz	"-e"

	.comm	_want_echo,8,3                  ; @want_echo
l_.str.6:                               ; @.str.6
	.asciz	"-f"

l_.str.7:                               ; @.str.7
	.asciz	"-h"

l_.str.8:                               ; @.str.8
	.asciz	"-i"

l_.str.9:                               ; @.str.9
	.asciz	"-m"

l_.str.10:                              ; @.str.10
	.asciz	"-M"

l_.str.11:                              ; @.str.11
	.asciz	"-p"

l_.str.12:                              ; @.str.12
	.asciz	"-q"

l_.str.13:                              ; @.str.13
	.asciz	"-t"

l_.str.14:                              ; @.str.14
	.asciz	"-v"

l_.str.15:                              ; @.str.15
	.asciz	"-S"

	.comm	_func_data_test_start,8,3       ; @func_data_test_start
l_.str.16:                              ; @.str.16
	.asciz	"-E"

	.comm	_func_data_test_end,8,3         ; @func_data_test_end
l_.str.17:                              ; @.str.17
	.asciz	"* unknown option '%s'\n"

	.comm	_VCOS_LOG_CATEGORY,4,2          ; @VCOS_LOG_CATEGORY
	.comm	_VCOS_LOG_TRACE,4,2             ; @VCOS_LOG_TRACE
	.comm	_VCOS_LOG_INFO,4,2              ; @VCOS_LOG_INFO
l_.str.18:                              ; @.str.18
	.asciz	"vchiq_test"

	.comm	_g_server_reply,4,2             ; @g_server_reply
l_.str.19:                              ; @.str.19
	.asciz	"g_server_reply"

	.comm	_g_shutdown,4,2                 ; @g_shutdown
l_.str.20:                              ; @.str.20
	.asciz	"g_shutdown"

	.comm	_g_mutex,4,2                    ; @g_mutex
l_.str.21:                              ; @.str.21
	.asciz	"g_mutex"

	.comm	_VCHIQ_ERROR,8,3                ; @VCHIQ_ERROR
	.comm	_VCHIQ_SUCCESS,8,3              ; @VCHIQ_SUCCESS
	.comm	_VCOS_AFFINITY_CPU1,4,2         ; @VCOS_AFFINITY_CPU1
	.comm	_VCOS_START,4,2                 ; @VCOS_START
	.comm	_g_timeout_ms,8,3               ; @g_timeout_ms
	.comm	_vchiq_test_server,4,2          ; @vchiq_test_server
	.no_dead_strip	_vchiq_test
.subsections_via_symbols
