	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWP_InitQueue                  ## -- Begin function LWP_InitQueue
	.p2align	4, 0x90
_LWP_InitQueue:                         ## @LWP_InitQueue
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	___lwp_tqueue_allocate
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	_LWP_THREADQ_MODEFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LWP_STATES_WAITING_ON_THREADQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	___lwp_threadqueue_init
	movq	_LWP_OBJTYPE_TQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWP_OBJMASKTYPE
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_LWP_OBJMASKID
	orl	%ebx, %eax
	cltq
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	___lwp_thread_dispatchenable
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ## @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_ON_THREADQ,4,2 ## @LWP_STATES_WAITING_ON_THREADQ
	.comm	_LWP_OBJTYPE_TQUEUE,4,2         ## @LWP_OBJTYPE_TQUEUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWP_InitQueue                  ; -- Begin function LWP_InitQueue
	.p2align	2
_LWP_InitQueue:                         ; @LWP_InitQueue
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	___lwp_tqueue_allocate
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	add	x0, x0, #4
Lloh0:
	adrp	x8, _LWP_THREADQ_MODEFIFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LWP_THREADQ_MODEFIFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LWP_STATES_WAITING_ON_THREADQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LWP_STATES_WAITING_ON_THREADQ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #0
	bl	___lwp_threadqueue_init
Lloh6:
	adrp	x8, _LWP_OBJTYPE_TQUEUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LWP_OBJTYPE_TQUEUE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_LWP_OBJMASKTYPE
	mov	x21, x0
	ldr	w0, [x20]
	bl	_LWP_OBJMASKID
	orr	w8, w0, w21
	sxtw	x8, w8
	str	x8, [x19]
	bl	___lwp_thread_dispatchenable
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LWP_THREADQ_MODEFIFO,4,2       ; @LWP_THREADQ_MODEFIFO
	.comm	_LWP_STATES_WAITING_ON_THREADQ,4,2 ; @LWP_STATES_WAITING_ON_THREADQ
	.comm	_LWP_OBJTYPE_TQUEUE,4,2         ; @LWP_OBJTYPE_TQUEUE
.subsections_via_symbols
