	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mq_putmessage
_mq_putmessage:                         ## @mq_putmessage
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	%dil, -81(%rbp)
	movq	_pq_mq_busy@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	_pq_mq_handle@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	je	LBB0_4
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_shm_mq_detach
LBB0_3:
	movq	_pq_mq_handle@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_12:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movl	$1, (%rcx)
	leaq	-81(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -72(%rbp)
	movq	%rsi, -64(%rbp)
	movl	%edx, -56(%rbp)
	movl	$1, %edi
	callq	_Assert
	movq	_SHM_MQ_WOULD_BLOCK@GOTPCREL(%rip), %r12
	movq	_MyLatch@GOTPCREL(%rip), %r15
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %r13
	movq	_WAIT_EVENT_MQ_PUT_MESSAGE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_pq_mq_handle@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	movl	$1, %ecx
	callq	_shm_mq_sendv
	movq	%rax, %rbx
	movq	_pq_mq_parallel_master_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_PROCSIG_PARALLEL_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pq_mq_parallel_master_backend_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SendProcSignal
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpq	(%r12), %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r14), %ecx
	xorl	%edx, %edx
	callq	_WaitLatch
	movl	(%r15), %edi
	callq	_ResetLatch
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	jmp	LBB0_7
LBB0_11:
	movq	_SHM_MQ_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rbx
	sete	%al
	movq	_SHM_MQ_DETACHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	movq	_pq_mq_busy@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	xorl	%eax, %eax
	cmpq	(%r14), %rbx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_pq_mq_busy,4,2                 ## @pq_mq_busy
	.comm	_pq_mq_handle,8,3               ## @pq_mq_handle
	.comm	_EOF,4,2                        ## @EOF
	.comm	_pq_mq_parallel_master_pid,8,3  ## @pq_mq_parallel_master_pid
	.comm	_PROCSIG_PARALLEL_MESSAGE,4,2   ## @PROCSIG_PARALLEL_MESSAGE
	.comm	_pq_mq_parallel_master_backend_id,4,2 ## @pq_mq_parallel_master_backend_id
	.comm	_SHM_MQ_WOULD_BLOCK,8,3         ## @SHM_MQ_WOULD_BLOCK
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ## @WL_EXIT_ON_PM_DEATH
	.comm	_WAIT_EVENT_MQ_PUT_MESSAGE,4,2  ## @WAIT_EVENT_MQ_PUT_MESSAGE
	.comm	_SHM_MQ_SUCCESS,8,3             ## @SHM_MQ_SUCCESS
	.comm	_SHM_MQ_DETACHED,8,3            ## @SHM_MQ_DETACHED
	.no_dead_strip	_mq_putmessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mq_putmessage
_mq_putmessage:                         ; @mq_putmessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	strb	w0, [sp, #7]
Lloh3:
	adrp	x9, _pq_mq_busy@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pq_mq_busy@GOTPAGEOFF]
	ldr	w8, [x9]
Lloh5:
	adrp	x20, _pq_mq_handle@GOTPAGE
Lloh6:
	ldr	x20, [x20, _pq_mq_handle@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	bl	_shm_mq_detach
LBB0_3:
	str	xzr, [x20]
Lloh7:
	adrp	x8, _EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_4:
	cbz	x0, LBB0_11
; %bb.5:
	mov	w8, #1
	str	w8, [x9]
	add	x9, sp, #7
	str	x9, [sp, #8]
	str	w8, [sp, #16]
	str	x1, [sp, #24]
	str	w2, [sp, #32]
	mov	w0, #1
	bl	_Assert
Lloh10:
	adrp	x22, _pq_mq_parallel_master_pid@GOTPAGE
Lloh11:
	ldr	x22, [x22, _pq_mq_parallel_master_pid@GOTPAGEOFF]
Lloh12:
	adrp	x23, _SHM_MQ_WOULD_BLOCK@GOTPAGE
Lloh13:
	ldr	x23, [x23, _SHM_MQ_WOULD_BLOCK@GOTPAGEOFF]
Lloh14:
	adrp	x24, _MyLatch@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MyLatch@GOTPAGEOFF]
Lloh16:
	adrp	x25, _WL_LATCH_SET@GOTPAGE
Lloh17:
	ldr	x25, [x25, _WL_LATCH_SET@GOTPAGEOFF]
Lloh18:
	adrp	x26, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh19:
	ldr	x26, [x26, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
Lloh20:
	adrp	x27, _WAIT_EVENT_MQ_PUT_MESSAGE@GOTPAGE
Lloh21:
	ldr	x27, [x27, _WAIT_EVENT_MQ_PUT_MESSAGE@GOTPAGEOFF]
Lloh22:
	adrp	x28, _PROCSIG_PARALLEL_MESSAGE@GOTPAGE
Lloh23:
	ldr	x28, [x28, _PROCSIG_PARALLEL_MESSAGE@GOTPAGEOFF]
Lloh24:
	adrp	x21, _pq_mq_parallel_master_backend_id@GOTPAGE
Lloh25:
	ldr	x21, [x21, _pq_mq_parallel_master_backend_id@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	add	x1, sp, #8
	mov	w2, #2
	mov	w3, #1
	bl	_shm_mq_sendv
	mov	x19, x0
	ldr	x0, [x22]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x28]
	ldr	w2, [x21]
	bl	_SendProcSignal
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	cmp	x19, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w1, w9, w8
	ldr	w3, [x27]
	mov	w2, #0
	bl	_WaitLatch
	ldr	w0, [x24]
	bl	_ResetLatch
	bl	_CHECK_FOR_INTERRUPTS
	b	LBB0_6
LBB0_10:
Lloh26:
	adrp	x8, _pq_mq_busy@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pq_mq_busy@GOTPAGEOFF]
Lloh28:
	str	wzr, [x8]
Lloh29:
	adrp	x20, _SHM_MQ_SUCCESS@GOTPAGE
Lloh30:
	ldr	x20, [x20, _SHM_MQ_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x19, x8
Lloh31:
	adrp	x8, _SHM_MQ_DETACHED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SHM_MQ_DETACHED@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ccmp	x19, x8, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20]
Lloh34:
	adrp	x9, _EOF@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EOF@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	x19, x8
	csel	w0, wzr, w9, eq
LBB0_11:
	ldr	x8, [sp, #40]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_pq_mq_busy,4,2                 ; @pq_mq_busy
	.comm	_pq_mq_handle,8,3               ; @pq_mq_handle
	.comm	_EOF,4,2                        ; @EOF
	.comm	_pq_mq_parallel_master_pid,8,3  ; @pq_mq_parallel_master_pid
	.comm	_PROCSIG_PARALLEL_MESSAGE,4,2   ; @PROCSIG_PARALLEL_MESSAGE
	.comm	_pq_mq_parallel_master_backend_id,4,2 ; @pq_mq_parallel_master_backend_id
	.comm	_SHM_MQ_WOULD_BLOCK,8,3         ; @SHM_MQ_WOULD_BLOCK
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ; @WL_EXIT_ON_PM_DEATH
	.comm	_WAIT_EVENT_MQ_PUT_MESSAGE,4,2  ; @WAIT_EVENT_MQ_PUT_MESSAGE
	.comm	_SHM_MQ_SUCCESS,8,3             ; @SHM_MQ_SUCCESS
	.comm	_SHM_MQ_DETACHED,8,3            ; @SHM_MQ_DETACHED
	.no_dead_strip	_mq_putmessage
.subsections_via_symbols
