	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dsp_removetask
___dsp_removetask:                      ## @__dsp_removetask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DSPTASK_CLEARALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	_DSPTASK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	___dsp_firsttask@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_1
## %bb.4:
	movq	___dsp_lasttask@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	je	LBB0_5
## %bb.6:
	movq	___dsp_currtask@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	%rcx, (%rax)
	movq	$0, 8(%rcx)
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rdi), %rdx
	movq	%rdx, (%rcx)
	movq	$0, (%rdx)
	movq	(%rax), %rax
	movq	___dsp_currtask@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
LBB0_3:
	movq	___dsp_currtask@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	___dsp_lasttask@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPTASK_CLEARALL,4,2           ## @DSPTASK_CLEARALL
	.comm	_DSPTASK_DONE,4,2               ## @DSPTASK_DONE
	.comm	___dsp_firsttask,8,3            ## @__dsp_firsttask
	.comm	___dsp_currtask,8,3             ## @__dsp_currtask
	.comm	___dsp_lasttask,8,3             ## @__dsp_lasttask
	.no_dead_strip	___dsp_removetask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dsp_removetask
___dsp_removetask:                      ; @__dsp_removetask
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DSPTASK_CLEARALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSPTASK_CLEARALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DSPTASK_DONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSPTASK_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh6:
	adrp	x8, ___dsp_firsttask@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___dsp_firsttask@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x0
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x9, ___dsp_lasttask@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___dsp_lasttask@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, x0
	b.eq	LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, ___dsp_currtask@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___dsp_currtask@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x9, [x9]
	str	x9, [x8]
	ret
LBB0_3:
	ldr	x9, [x0]
	cbz	x9, LBB0_6
; %bb.4:
	str	x9, [x8]
	str	xzr, [x9, #8]
	ret
LBB0_5:
	ldr	x10, [x0, #8]
	str	x10, [x9]
	str	xzr, [x10]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, ___dsp_currtask@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___dsp_currtask@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	ret
LBB0_6:
Lloh15:
	adrp	x9, ___dsp_currtask@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___dsp_currtask@GOTPAGEOFF]
Lloh17:
	str	xzr, [x9]
Lloh18:
	adrp	x9, ___dsp_lasttask@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___dsp_lasttask@GOTPAGEOFF]
Lloh20:
	str	xzr, [x9]
	str	xzr, [x8]
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPTASK_CLEARALL,4,2           ; @DSPTASK_CLEARALL
	.comm	_DSPTASK_DONE,4,2               ; @DSPTASK_DONE
	.comm	___dsp_firsttask,8,3            ; @__dsp_firsttask
	.comm	___dsp_currtask,8,3             ; @__dsp_currtask
	.comm	___dsp_lasttask,8,3             ; @__dsp_lasttask
	.no_dead_strip	___dsp_removetask
.subsections_via_symbols
