	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vcos_msg_sendwait              ## -- Begin function vcos_msg_sendwait
	.p2align	4, 0x90
_vcos_msg_sendwait:                     ## @vcos_msg_sendwait
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_vcos_assert
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_vcos_assert
	leaq	-40(%rbp), %rdi
	callq	_vcos_msgq_simple_waiter_init
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_2
## %bb.1:
	leaq	-36(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_vcos_msg_send_helper
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_vcos_semaphore_wait
	movq	%rbx, %rdi
	callq	_vcos_msgq_simple_waiter_deinit
	movl	(%r12), %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAGIC,8,3                      ## @MAGIC
	.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	_vcos_msg_sendwait              ; -- Begin function vcos_msg_sendwait
	.p2align	2
_vcos_msg_sendwait:                     ; @vcos_msg_sendwait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_vcos_assert
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_vcos_assert
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_vcos_msgq_simple_waiter_init
Lloh3:
	adrp	x22, _VCOS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VCOS_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	orr	x0, x23, #0x4
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_vcos_msg_send_helper
	add	x0, sp, #8
	bl	_vcos_semaphore_wait
	add	x0, sp, #8
	bl	_vcos_msgq_simple_waiter_deinit
	ldr	w0, [x22]
LBB0_2:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAGIC,8,3                      ; @MAGIC
	.comm	_VCOS_SUCCESS,4,2               ; @VCOS_SUCCESS
.subsections_via_symbols
