	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSP_AssertTask                 ## -- Begin function DSP_AssertTask
	.p2align	4, 0x90
_DSP_AssertTask:                        ## @DSP_AssertTask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	__CPU_ISR_Disable
	movq	___dsp_currtask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	cmpq	(%rax), %rcx
	jge	LBB0_3
## %bb.4:
	movq	___dsp_rudetask@GOTPCREL(%rip), %rcx
	movq	%rbx, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	___dsp_rudetask_pend@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	8(%rax), %rax
	movq	_DSPTASK_RUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_DSPCR_DSPINT@GOTPCREL(%rip), %rax
	movq	_DSPCR_ARINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	__dspReg@GOTPCREL(%rip), %rax
	movq	_DSPCR_AIINT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	(%rax), %rax
	notl	%ecx
	andl	20(%rax), %ecx
	movq	_DSPCR_PIINT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 20(%rax)
	jmp	LBB0_6
LBB0_1:
	movq	___dsp_rudetask@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___dsp_rudetask_pend@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	callq	__CPU_ISR_Restore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___dsp_currtask,8,3             ## @__dsp_currtask
	.comm	___dsp_rudetask,8,3             ## @__dsp_rudetask
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	___dsp_rudetask_pend,4,2        ## @__dsp_rudetask_pend
	.comm	_DSPTASK_RUN,8,3                ## @DSPTASK_RUN
	.comm	__dspReg,8,3                    ## @_dspReg
	.comm	_DSPCR_DSPINT,4,2               ## @DSPCR_DSPINT
	.comm	_DSPCR_ARINT,4,2                ## @DSPCR_ARINT
	.comm	_DSPCR_AIINT,4,2                ## @DSPCR_AIINT
	.comm	_DSPCR_PIINT,4,2                ## @DSPCR_PIINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DSP_AssertTask                 ; -- Begin function DSP_AssertTask
	.p2align	2
_DSP_AssertTask:                        ; @DSP_AssertTask
	.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
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, ___dsp_currtask@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dsp_currtask@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.1:
	ldr	x9, [x19]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ge	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, ___dsp_rudetask@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___dsp_rudetask@GOTPAGEOFF]
Lloh5:
	str	x19, [x9]
Lloh6:
	adrp	x9, _TRUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, ___dsp_rudetask_pend@GOTPAGE
Lloh10:
	ldr	x10, [x10, ___dsp_rudetask_pend@GOTPAGEOFF]
Lloh11:
	str	w9, [x10]
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x9, _DSPTASK_RUN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DSPTASK_RUN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh15:
	adrp	x8, __dspReg@GOTPAGE
Lloh16:
	ldr	x8, [x8, __dspReg@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w9, [x8, #20]
Lloh18:
	adrp	x10, _DSPCR_DSPINT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DSPCR_DSPINT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _DSPCR_ARINT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _DSPCR_ARINT@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh24:
	adrp	x11, _DSPCR_AIINT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _DSPCR_AIINT@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w10, w10, w11
	bic	w9, w9, w10
Lloh27:
	adrp	x10, _DSPCR_PIINT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _DSPCR_PIINT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #20]
	b	LBB0_6
LBB0_4:
Lloh30:
	adrp	x8, ___dsp_rudetask@GOTPAGE
Lloh31:
	ldr	x8, [x8, ___dsp_rudetask@GOTPAGEOFF]
Lloh32:
	str	x19, [x8]
Lloh33:
	adrp	x8, _TRUE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, ___dsp_rudetask_pend@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___dsp_rudetask_pend@GOTPAGEOFF]
Lloh38:
	str	w8, [x9]
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	bl	__CPU_ISR_Restore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	___dsp_currtask,8,3             ; @__dsp_currtask
	.comm	___dsp_rudetask,8,3             ; @__dsp_rudetask
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	___dsp_rudetask_pend,4,2        ; @__dsp_rudetask_pend
	.comm	_DSPTASK_RUN,8,3                ; @DSPTASK_RUN
	.comm	__dspReg,8,3                    ; @_dspReg
	.comm	_DSPCR_DSPINT,4,2               ; @DSPCR_DSPINT
	.comm	_DSPCR_ARINT,4,2                ; @DSPCR_ARINT
	.comm	_DSPCR_AIINT,4,2                ; @DSPCR_AIINT
	.comm	_DSPCR_PIINT,4,2                ; @DSPCR_PIINT
.subsections_via_symbols
