	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wfc_client_ipc_vchiq_callback
_wfc_client_ipc_vchiq_callback:         ## @wfc_client_ipc_vchiq_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	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_vcos_log_trace
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	callq	_vcos_assert_msg
LBB0_5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vchiq_release_message
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	callq	_vcos_assert_msg
	jmp	LBB0_12
LBB0_8:
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_10:
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdi
LBB0_9:
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_vcos_log_trace
LBB0_12:
	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_2:
	movq	8(%r13), %rbx
	xorl	%edi, %edi
	cmpl	$16, (%r13)
	setae	%dil
	callq	_vcos_assert
	movl	12(%rbx), %eax
	movq	_WFC_IPC_MSG_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_vcos_assert
	movl	8(%rbx), %eax
	movq	_WFC_IPC_MSG_CALLBACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.3:
	movq	8(%rbx), %r15
	xorl	%edi, %edi
	cmpl	$16, (%r13)
	sete	%dil
	callq	_vcos_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_vcos_verify
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	*%r15
	jmp	LBB0_5
LBB0_6:
	movq	(%rbx), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_vcos_assert
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movl	(%r12), %edi
	callq	_vcos_assert
	movl	4(%r12), %edi
	movl	(%r13), %esi
	addl	$-16, %esi
	callq	_vcos_min
	movl	%eax, 4(%r12)
	movl	%eax, %edx
	movl	(%r15), %esi
	movl	12(%r12), %r8d
	movl	16(%rbx), %r9d
	addq	$16, %rbx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %r15d
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_vcos_log_trace
	movl	12(%r12), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vchiq_release_message
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_vcos_semaphore_post
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: reason %d"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_WFC_IPC_MSG_MAGIC,4,2          ## @WFC_IPC_MSG_MAGIC
	.comm	_WFC_IPC_MSG_CALLBACK,4,2       ## @WFC_IPC_MSG_CALLBACK
L_.str.1:                               ## @.str.1
	.asciz	"%s: waking up waiter at %p"

L_.str.2:                               ## @.str.2
	.asciz	"%s: copying %d bytes from %p to %p first word 0x%x"

L_.str.3:                               ## @.str.3
	.asciz	"bulk messages not used"

L_.str.4:                               ## @.str.4
	.asciz	"%s: service %x opened"

L_.str.5:                               ## @.str.5
	.asciz	"%s: service %x closed"

L_.str.6:                               ## @.str.6
	.asciz	"unexpected message reason"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wfc_client_ipc_vchiq_callback
_wfc_client_ipc_vchiq_callback:         ; @wfc_client_ipc_vchiq_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _VCOS_FUNCTION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x23]
	str	x21, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vcos_log_trace
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.1:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	bl	_vcos_assert_msg
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_vchiq_release_message
LBB0_4:
Lloh8:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #0
	bl	_vcos_assert_msg
	b	LBB0_4
LBB0_6:
	ldr	w1, [x23]
	str	x19, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_vcos_log_trace
	b	LBB0_4
LBB0_7:
	ldr	w1, [x23]
	str	x19, [sp]
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_vcos_log_trace
	b	LBB0_4
LBB0_8:
	ldr	x21, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #15
	cset	w0, hi
	bl	_vcos_assert
	ldr	w8, [x21, #12]
Lloh17:
	adrp	x9, _WFC_IPC_MSG_MAGIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WFC_IPC_MSG_MAGIC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_vcos_assert
	ldr	w8, [x21, #8]
Lloh20:
	adrp	x9, _WFC_IPC_MSG_CALLBACK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WFC_IPC_MSG_CALLBACK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	x22, [x21, #8]
	ldr	w8, [x20]
	cmp	w8, #16
	cset	w0, eq
	bl	_vcos_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_vcos_verify
	cbz	w0, LBB0_3
; %bb.10:
	ldr	w0, [x21]
	blr	x22
	b	LBB0_3
LBB0_11:
	ldr	x24, [x21]
	cmp	x24, #0
	cset	w0, ne
	bl	_vcos_assert
	ldr	w1, [x23]
	str	x24, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vcos_log_trace
	ldr	w0, [x24]
	bl	_vcos_assert
	ldr	w0, [x24, #4]
	ldr	w8, [x20]
	sub	w1, w8, #16
	bl	_vcos_min
	mov	x22, x0
	str	w0, [x24, #4]
	ldr	w1, [x23]
	ldr	w8, [x24, #12]
	ldr	w9, [x21, #16]!
	stp	x8, x9, [sp, #16]
	stp	x22, x21, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_vcos_log_trace
	ldr	w0, [x24, #12]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	_vchiq_release_message
	add	x0, x24, #8
	bl	_vcos_semaphore_post
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: reason %d"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_WFC_IPC_MSG_MAGIC,4,2          ; @WFC_IPC_MSG_MAGIC
	.comm	_WFC_IPC_MSG_CALLBACK,4,2       ; @WFC_IPC_MSG_CALLBACK
l_.str.1:                               ; @.str.1
	.asciz	"%s: waking up waiter at %p"

l_.str.2:                               ; @.str.2
	.asciz	"%s: copying %d bytes from %p to %p first word 0x%x"

l_.str.3:                               ; @.str.3
	.asciz	"bulk messages not used"

l_.str.4:                               ; @.str.4
	.asciz	"%s: service %x opened"

l_.str.5:                               ; @.str.5
	.asciz	"%s: service %x closed"

l_.str.6:                               ; @.str.6
	.asciz	"unexpected message reason"

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