	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vchiq_signal_test
_vchiq_signal_test:                     ## @vchiq_signal_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -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, %r15d
	movq	(%rbx), %rsi
	movq	_g_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VCHIQ_TEST_VER@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	-32(%rbp), %rdi
	callq	_vchiq_initialise
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_1
## %bb.3:
	movl	-32(%rbp), %edi
	callq	_vchiq_connect
	movq	_clnt_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %r8d
	leaq	L_.str.2(%rip), %rcx
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_INIT_PARAMS
	movl	-32(%rbp), %edi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rsi
	callq	_vchiq_open_service
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	movl	-28(%rbp), %edi
	movq	_VCHIQ_BULK_MODE_BLOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	_vchiq_signal_test.sizes(%rip), %rsi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_vchiq_bulk_transmit
	movl	-28(%rbp), %edi
	callq	_vchiq_close_service
	jmp	LBB0_6
LBB0_1:
	leaq	L_str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_str(%rip), %rdi
LBB0_2:
	callq	_puts
	movq	_VCHIQ_ERROR@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	(%rbx), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @vchiq_signal_test.sizes
_vchiq_signal_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	"signal 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	_clnt_callback,4,2              ## @clnt_callback
L_.str.2:                               ## @.str.2
	.asciz	"clnt userdata"

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

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

	.no_dead_strip	_vchiq_signal_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vchiq_signal_test
_vchiq_signal_test:                     ; @vchiq_signal_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x20, _g_servname@GOTPAGE
Lloh1:
	ldr	x20, [x20, _g_servname@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrsb	w0, [x8]
	ldrsb	w1, [x8, #1]
	ldrsb	w2, [x8, #2]
	ldrsb	w3, [x8, #3]
	bl	_VCHIQ_MAKE_FOURCC
	mov	x19, x0
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _g_params@GOTPAGE
Lloh3:
	ldr	x9, [x9, _g_params@GOTPAGEOFF]
Lloh4:
	adrp	x20, _VCHIQ_TEST_VER@GOTPAGE
Lloh5:
	ldr	x20, [x20, _VCHIQ_TEST_VER@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	w10, [x20]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	sub	x0, x29, #36
	bl	_vchiq_initialise
Lloh9:
	adrp	x21, _VCHIQ_SUCCESS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _VCHIQ_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldur	w0, [x29, #-36]
	bl	_vchiq_connect
Lloh11:
	adrp	x8, _clnt_callback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _clnt_callback@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w4, [x20]
Lloh14:
	adrp	x3, l_.str.2@PAGE
Lloh15:
	add	x3, x3, l_.str.2@PAGEOFF
	add	x0, sp, #36
	mov	x1, x19
	bl	_INIT_PARAMS
	ldur	w0, [x29, #-36]
	add	x1, sp, #36
	add	x2, sp, #40
	bl	_vchiq_open_service
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [sp, #40]
Lloh16:
	adrp	x8, _VCHIQ_BULK_MODE_BLOCKING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VCHIQ_BULK_MODE_BLOCKING@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x1, _vchiq_signal_test.sizes@PAGE
Lloh20:
	add	x1, x1, _vchiq_signal_test.sizes@PAGEOFF
	mov	w2, #16
	mov	w3, #0
	bl	_vchiq_bulk_transmit
	ldr	w0, [sp, #40]
	bl	_vchiq_close_service
Lloh21:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh23:
	adrp	x0, l_str.4@PAGE
Lloh24:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh25:
	adrp	x0, l_str@PAGE
Lloh26:
	add	x0, x0, l_str@PAGEOFF
LBB0_5:
	bl	_puts
Lloh27:
	adrp	x8, _VCHIQ_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VCHIQ_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @vchiq_signal_test.sizes
_vchiq_signal_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	"signal 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	_clnt_callback,4,2              ; @clnt_callback
l_.str.2:                               ; @.str.2
	.asciz	"clnt userdata"

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

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

	.no_dead_strip	_vchiq_signal_test
.subsections_via_symbols
