	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_lwp
_add_lwp:                               ## @add_lwp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	callq	_is_lwp
	movl	%eax, %edi
	callq	_gdb_assert
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r14d, 8(%rbx)
	movq	_lwp_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, (%rax)
	movq	_num_lwps@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.1:
	movq	_threaded@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lwp_list,8,3                   ## @lwp_list
	.comm	_num_lwps,4,2                   ## @num_lwps
	.comm	_threaded,4,2                   ## @threaded
	.no_dead_strip	_add_lwp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_lwp
_add_lwp:                               ; @add_lwp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_is_lwp
	bl	_gdb_assert
	mov	w0, #16
	bl	_xmalloc
	mov	x19, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w20, [x19, #8]
Lloh0:
	adrp	x8, _lwp_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lwp_list@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19]
	str	x19, [x8]
Lloh2:
	adrp	x8, _num_lwps@GOTPAGE
Lloh3:
	ldr	x8, [x8, _num_lwps@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _threaded@GOTPAGE
Lloh5:
	ldr	x8, [x8, _threaded@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_lwp_list,8,3                   ; @lwp_list
	.comm	_num_lwps,4,2                   ; @num_lwps
	.comm	_threaded,4,2                   ; @threaded
	.no_dead_strip	_add_lwp
.subsections_via_symbols
