	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MQ_Send                        ## -- Begin function MQ_Send
	.p2align	4, 0x90
_MQ_Send:                               ## @MQ_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, -44(%rbp)
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_FALSE@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	callq	___lwp_mqbox_open
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	%r14, %r13
	cmoveq	%r15, %rbx
	movq	(%r12), %r14
	movq	%rax, %rdi
	addq	$4, %rdi
	movl	(%rax), %esi
	movq	_LWP_MQ_SEND_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_LWP_THREADQ_NOTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	movq	%rbx, %r9
	callq	___lwpmq_submit
	movq	_LWP_MQ_STATUS_SUCCESSFUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_4:
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	jmp	LBB0_5
LBB0_1:
	movq	(%r12), %r14
LBB0_5:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MQ_MSG_BLOCK,8,3               ## @MQ_MSG_BLOCK
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_LWP_MQ_SEND_REQUEST,4,2        ## @LWP_MQ_SEND_REQUEST
	.comm	_LWP_THREADQ_NOTIMEOUT,4,2      ## @LWP_THREADQ_NOTIMEOUT
	.comm	_LWP_MQ_STATUS_SUCCESSFUL,8,3   ## @LWP_MQ_STATUS_SUCCESSFUL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MQ_Send                        ; -- Begin function MQ_Send
	.p2align	2
_MQ_Send:                               ; @MQ_Send
	.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
	str	w1, [sp, #12]
Lloh0:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x20, _TRUE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	x23, [x20]
Lloh5:
	adrp	x21, _FALSE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	x24, [x21]
	bl	___lwp_mqbox_open
	cbz	x0, LBB0_2
; %bb.1:
	cmp	x22, x19
	csel	x5, x23, x24, eq
	ldr	x19, [x21]
	ldr	w1, [x0], #4
Lloh7:
	adrp	x8, _LWP_MQ_SEND_REQUEST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LWP_MQ_SEND_REQUEST@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x8, _LWP_THREADQ_NOTIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LWP_THREADQ_NOTIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w6, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	___lwpmq_submit
Lloh13:
	adrp	x8, _LWP_MQ_STATUS_SUCCESSFUL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LWP_MQ_STATUS_SUCCESSFUL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x0, x8
	csel	x19, x9, x19, eq
	bl	___lwp_thread_dispatchenable
	b	LBB0_3
LBB0_2:
	ldr	x19, [x21]
LBB0_3:
	mov	x0, x19
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MQ_MSG_BLOCK,8,3               ; @MQ_MSG_BLOCK
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_LWP_MQ_SEND_REQUEST,4,2        ; @LWP_MQ_SEND_REQUEST
	.comm	_LWP_THREADQ_NOTIMEOUT,4,2      ; @LWP_THREADQ_NOTIMEOUT
	.comm	_LWP_MQ_STATUS_SUCCESSFUL,8,3   ; @LWP_MQ_STATUS_SUCCESSFUL
.subsections_via_symbols
