	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_thread                     ## -- Begin function add_thread
	.p2align	4, 0x90
_add_thread:                            ## @add_thread
	.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
	movl	$24, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r14d, 16(%rbx)
	movq	_highest_thread_num@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 8(%rbx)
	movq	_thread_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, (%rax)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_highest_thread_num,8,3         ## @highest_thread_num
	.comm	_thread_list,8,3                ## @thread_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_thread                     ; -- Begin function add_thread
	.p2align	2
_add_thread:                            ; @add_thread
	.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	x19, x0
	mov	w0, #24
	bl	_xmalloc
	mov	x20, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w19, [x20, #16]
Lloh0:
	adrp	x8, _highest_thread_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _highest_thread_num@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
Lloh2:
	adrp	x10, _thread_list@GOTPAGE
Lloh3:
	ldr	x10, [x10, _thread_list@GOTPAGEOFF]
	str	x9, [x8]
	ldr	x8, [x10]
	stp	x8, x9, [x20]
	str	x20, [x10]
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_highest_thread_num,8,3         ; @highest_thread_num
	.comm	_thread_list,8,3                ; @thread_list
.subsections_via_symbols
