	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dsp_shutdown
___dsp_shutdown:                        ## @__dsp_shutdown
	.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
	movq	_DSPCR_DSPRESET@GOTPCREL(%rip), %rcx
	movq	_DSPCR_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	__dspReg@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	andb	$127, 109(%rcx)
	testl	$1024, %eax                     ## imm = 0x400
	jne	LBB0_1
## %bb.2:
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_3
## %bb.4:
	movq	_DSPCR_DSPINT@GOTPCREL(%rip), %rdx
	movq	_DSPCR_ARINT@GOTPCREL(%rip), %rsi
	movq	_DSPCR_AIINT@GOTPCREL(%rip), %rdi
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	movl	%eax, 20(%rcx)
	movl	$0, (%rcx)
	movl	8(%rcx), %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTL
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rax
	movl	8(%rax), %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	callq	_gettick
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_gettick
	subl	%ebx, %eax
	cmpl	$44, %eax
	jl	LBB0_8
## %bb.9:
	movq	_DSPCR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, 20(%rcx)
	testl	%eax, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPCR_DSPRESET,4,2             ## @DSPCR_DSPRESET
	.comm	_DSPCR_HALT,4,2                 ## @DSPCR_HALT
	.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_RES,4,2                  ## @DSPCR_RES
	.no_dead_strip	___dsp_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dsp_shutdown
___dsp_shutdown:                        ; @__dsp_shutdown
	.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
Lloh0:
	adrp	x8, _DSPCR_DSPRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSPCR_DSPRESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DSPCR_HALT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSPCR_HALT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x20, __dspReg@GOTPAGE
Lloh7:
	ldr	x20, [x20, __dspReg@GOTPAGEOFF]
	orr	w9, w9, w8
	ldr	x8, [x20]
	str	w9, [x8, #20]
	ldr	w10, [x8, #108]
	and	w10, w10, #0xffff7fff
	str	w10, [x8, #108]
	tbnz	w9, #10, LBB0_5
; %bb.1:
	tbnz	w9, #9, LBB0_6
; %bb.2:
Lloh8:
	adrp	x10, _DSPCR_DSPINT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DSPCR_DSPINT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _DSPCR_ARINT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DSPCR_ARINT@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	adrp	x12, _DSPCR_AIINT@GOTPAGE
Lloh15:
	ldr	x12, [x12, _DSPCR_AIINT@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	orr	w9, w9, w10
	orr	w9, w9, w11
	orr	w9, w9, w12
	str	w9, [x8, #20]
	str	wzr, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, #8]
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTL
	tbz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	b	LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_5
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_6
LBB0_7:
	bl	_gettick
	mov	x19, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_gettick
	sub	w8, w0, w19
	cmp	w8, #44
	b.lt	LBB0_8
; %bb.9:
Lloh17:
	adrp	x8, _DSPCR_RES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DSPCR_RES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9, #20]
	orr	w10, w10, w8
	str	w10, [x9, #20]
	cbz	w8, LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	b	LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPCR_DSPRESET,4,2             ; @DSPCR_DSPRESET
	.comm	_DSPCR_HALT,4,2                 ; @DSPCR_HALT
	.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_RES,4,2                  ; @DSPCR_RES
	.no_dead_strip	___dsp_shutdown
.subsections_via_symbols
