	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_client_ipc_send            ## -- Begin function wfc_client_ipc_send
	.p2align	4, 0x90
_wfc_client_ipc_send:                   ## @wfc_client_ipc_send
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rdi, -48(%rbp)
	movq	%rsi, -40(%rbp)
	movq	_VCOS_FUNCTION@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	12(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rcx
	callq	_vcos_log_trace
	xorl	%edi, %edi
	cmpq	$16, %rbx
	setae	%dil
	callq	_vcos_assert
	movq	_wfc_client_ipc@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %edi
	callq	_vcos_verify
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_WFC_IPC_MSG_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	$0, (%r14)
	xorl	%eax, %eax
	callq	_wfc_client_ipc_use_keep_alive
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	callq	_vchiq_queue_message
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_wfc_client_ipc_release_keep_alive
	movq	_VCHIQ_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.3:
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_VCOS_ALERT
	movq	_VCOS_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	callq	_vcos_log_error
	movq	_VCOS_ENXIO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: type %d, len %d"

	.comm	_VCOS_FUNCTION,4,2              ## @VCOS_FUNCTION
	.comm	_wfc_client_ipc,8,2             ## @wfc_client_ipc
L_.str.1:                               ## @.str.1
	.asciz	"%s: client uninitialised"

	.comm	_VCOS_EINVAL,4,2                ## @VCOS_EINVAL
	.comm	_WFC_IPC_MSG_MAGIC,4,2          ## @WFC_IPC_MSG_MAGIC
	.comm	_VCHIQ_SUCCESS,8,3              ## @VCHIQ_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"%s: failed to queue, 0x%x"

	.comm	_VCOS_ENXIO,4,2                 ## @VCOS_ENXIO
	.comm	_VCOS_SUCCESS,4,2               ## @VCOS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wfc_client_ipc_send            ; -- Begin function wfc_client_ipc_send
	.p2align	2
_wfc_client_ipc_send:                   ; @wfc_client_ipc_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	x0, x1, [sp, #8]
Lloh3:
	adrp	x21, _VCOS_FUNCTION@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VCOS_FUNCTION@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x0, #12]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_vcos_log_trace
	cmp	x20, #15
	cset	w0, hi
	bl	_vcos_assert
Lloh7:
	adrp	x20, _wfc_client_ipc@GOTPAGE
Lloh8:
	ldr	x20, [x20, _wfc_client_ipc@GOTPAGEOFF]
	ldr	w0, [x20, #4]
	bl	_vcos_verify
	cbz	w0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _WFC_IPC_MSG_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WFC_IPC_MSG_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	xzr, [x19]
	bl	_wfc_client_ipc_use_keep_alive
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #1
	bl	_vchiq_queue_message
	mov	x19, x0
	bl	_wfc_client_ipc_release_keep_alive
Lloh12:
	adrp	x8, _VCHIQ_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VCHIQ_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_4
; %bb.2:
Lloh15:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x21]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VCOS_ALERT
Lloh19:
	adrp	x8, _VCOS_EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VCOS_EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w1, [x21]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_vcos_log_error
Lloh23:
	adrp	x8, _VCOS_ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VCOS_ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: type %d, len %d"

	.comm	_VCOS_FUNCTION,4,2              ; @VCOS_FUNCTION
	.comm	_wfc_client_ipc,8,2             ; @wfc_client_ipc
l_.str.1:                               ; @.str.1
	.asciz	"%s: client uninitialised"

	.comm	_VCOS_EINVAL,4,2                ; @VCOS_EINVAL
	.comm	_WFC_IPC_MSG_MAGIC,4,2          ; @WFC_IPC_MSG_MAGIC
	.comm	_VCHIQ_SUCCESS,8,3              ; @VCHIQ_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"%s: failed to queue, 0x%x"

	.comm	_VCOS_ENXIO,4,2                 ; @VCOS_ENXIO
	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
.subsections_via_symbols
