	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwpmq_seize                  ## -- Begin function __lwpmq_seize
	.p2align	4, 0x90
___lwpmq_seize:                         ## @__lwpmq_seize
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	__thr_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_LWP_MQ_STATUS_SUCCESSFUL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	callq	__CPU_ISR_Disable
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	decl	%eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	___lwpmq_get_pendingmsg
	movq	%rax, %rbx
	callq	__CPU_ISR_Restore
	movl	8(%rbx), %eax
	movl	%eax, (%r15)
	movl	(%rbx), %eax
	movl	%eax, 40(%r14)
	movq	16(%rbx), %rsi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	___lwpmq_buffer_copy
	leaq	4(%r12), %rdi
	callq	___lwp_threadqueue_dequeue
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	40(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	24(%rax), %edx
	movl	%edx, 8(%rbx)
	movq	16(%rbx), %rdi
	movq	8(%rax), %rsi
	callq	___lwpmq_buffer_copy
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___lwpmq_msg_insert
	jmp	LBB0_7
LBB0_4:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.6:
	addq	$4, %r12
	movq	%r12, %rdi
	callq	___lwp_threadqueue_csenter
	movq	%r12, 32(%r14)
	movl	%ebx, 16(%r14)
	movq	%r13, 8(%r14)
	movq	%r15, 24(%r14)
	callq	__CPU_ISR_Restore
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	___lwp_threadqueue_enqueue
	jmp	LBB0_7
LBB0_2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	___lwpmq_free_msg
LBB0_7:
	movq	_LWP_MQ_STATUS_SUCCESSFUL@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	__CPU_ISR_Restore
	movq	_LWP_MQ_STATUS_UNSATISFIED_NOWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	__thr_executing,8,3             ## @_thr_executing
	.comm	_LWP_MQ_STATUS_SUCCESSFUL,4,2   ## @LWP_MQ_STATUS_SUCCESSFUL
	.comm	_LWP_MQ_STATUS_UNSATISFIED_NOWAIT,4,2 ## @LWP_MQ_STATUS_UNSATISFIED_NOWAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lwpmq_seize                  ; -- Begin function __lwpmq_seize
	.p2align	2
___lwpmq_seize:                         ; @__lwpmq_seize
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, __thr_executing@GOTPAGE
Lloh1:
	ldr	x8, [x8, __thr_executing@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
Lloh3:
	adrp	x8, _LWP_MQ_STATUS_SUCCESSFUL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LWP_MQ_STATUS_SUCCESSFUL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x25]
	bl	__CPU_ISR_Disable
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	sub	w8, w8, #1
	mov	x23, x19
	str	w8, [x23], #4
	mov	x0, x19
	bl	___lwpmq_get_pendingmsg
	mov	x22, x0
	bl	__CPU_ISR_Restore
	ldr	w8, [x22, #8]
	str	w8, [x21]
	ldr	w8, [x22]
	str	w8, [x25, #40]
	ldr	x1, [x22, #16]
	ldr	w2, [x21]
	mov	x0, x20
	bl	___lwpmq_buffer_copy
	mov	x0, x23
	bl	___lwp_threadqueue_dequeue
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x0, #40]
	str	w8, [x22]
	ldr	w2, [x0, #24]
	str	w2, [x22, #8]
	ldr	x8, [x22, #16]
	ldr	x1, [x0, #8]
	mov	x0, x8
	bl	___lwpmq_buffer_copy
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	___lwpmq_msg_insert
	b	LBB0_6
LBB0_3:
	cbz	w24, LBB0_8
; %bb.4:
	add	x19, x19, #4
	mov	x0, x19
	bl	___lwp_threadqueue_csenter
	str	w23, [x25, #16]
	str	x20, [x25, #8]
	stp	x21, x19, [x25, #24]
	bl	__CPU_ISR_Restore
	mov	x0, x19
	mov	x1, x22
	bl	___lwp_threadqueue_enqueue
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	bl	___lwpmq_free_msg
LBB0_6:
Lloh6:
	adrp	x8, _LWP_MQ_STATUS_SUCCESSFUL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LWP_MQ_STATUS_SUCCESSFUL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	__CPU_ISR_Restore
Lloh8:
	adrp	x8, _LWP_MQ_STATUS_UNSATISFIED_NOWAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LWP_MQ_STATUS_UNSATISFIED_NOWAIT@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x25]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	__thr_executing,8,3             ; @_thr_executing
	.comm	_LWP_MQ_STATUS_SUCCESSFUL,4,2   ; @LWP_MQ_STATUS_SUCCESSFUL
	.comm	_LWP_MQ_STATUS_UNSATISFIED_NOWAIT,4,2 ; @LWP_MQ_STATUS_UNSATISFIED_NOWAIT
.subsections_via_symbols
