	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_task_entry
_add_task_entry:                        ## @add_task_entry
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	_highest_task_num@GOTPCREL(%rip), %r15
	incl	(%r15)
	movl	$32, %edi
	callq	_xmalloc
	movq	%rax, %rcx
	movl	(%r15), %eax
	movl	%eax, (%rcx)
	movq	%rbx, 24(%rcx)
	movl	%r14d, 4(%rcx)
	movq	$0, 16(%rcx)
	movq	_task_list@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	movq	16(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_1
## %bb.2:
	movq	%rcx, 16(%rsi)
	movq	$0, 8(%rsi)
	jmp	LBB0_4
LBB0_3:
	movq	%rcx, (%rsi)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_highest_task_num,4,2           ## @highest_task_num
	.comm	_task_list,8,3                  ## @task_list
	.no_dead_strip	_add_task_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_task_entry
_add_task_entry:                        ; @add_task_entry
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _highest_task_num@GOTPAGE
Lloh1:
	ldr	x21, [x21, _highest_task_num@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	w0, #32
	bl	_xmalloc
	mov	x8, x0
	ldr	w0, [x21]
	stp	w0, w19, [x8]
	stp	xzr, x20, [x8, #16]
Lloh2:
	adrp	x10, _task_list@GOTPAGE
Lloh3:
	ldr	x10, [x10, _task_list@GOTPAGEOFF]
	ldr	x9, [x10]
	cbz	x9, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_1
; %bb.2:
	stp	xzr, x8, [x10, #8]
	b	LBB0_4
LBB0_3:
	str	x8, [x10]
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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_highest_task_num,4,2           ; @highest_task_num
	.comm	_task_list,8,3                  ; @task_list
	.no_dead_strip	_add_task_entry
.subsections_via_symbols
