	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AR_Init                        ## -- Begin function AR_Init
	.p2align	4, 0x90
_AR_Init:                               ## @AR_Init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___ARInit_Flag@GOTPCREL(%rip), %r15
	movl	$16384, %eax                    ## imm = 0x4000
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	__CPU_ISR_Disable
	movq	___ARDmaCallback@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_IRQ_DSP_ARAM@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	___ARHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_IRQ_Request
	movl	(%r12), %edi
	callq	_IRQMASK
	movl	%eax, %edi
	callq	___UnmaskIrq
	movq	___ARStackPointer@GOTPCREL(%rip), %r12
	movl	$16384, (%r12)                  ## imm = 0x4000
	movq	___ARFreeBlocks@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	___ARBlockLen@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	xorl	%eax, %eax
	callq	___ARCheckSize
	movl	$1, (%r15)
	callq	__CPU_ISR_Restore
	movl	(%r12), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___ARInit_Flag,4,2              ## @__ARInit_Flag
	.comm	___ARDmaCallback,8,3            ## @__ARDmaCallback
	.comm	_IRQ_DSP_ARAM,4,2               ## @IRQ_DSP_ARAM
	.comm	___ARHandler,4,2                ## @__ARHandler
	.comm	___ARStackPointer,4,2           ## @__ARStackPointer
	.comm	___ARFreeBlocks,4,2             ## @__ARFreeBlocks
	.comm	___ARBlockLen,8,3               ## @__ARBlockLen
	.comm	__dspReg,8,3                    ## @_dspReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AR_Init                        ; -- Begin function AR_Init
	.p2align	2
_AR_Init:                               ; @AR_Init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, ___ARInit_Flag@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___ARInit_Flag@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w21, #16384
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	__CPU_ISR_Disable
Lloh2:
	adrp	x8, ___ARDmaCallback@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___ARDmaCallback@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x23, _IRQ_DSP_ARAM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IRQ_DSP_ARAM@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh7:
	adrp	x8, ___ARHandler@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___ARHandler@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_IRQ_Request
	ldr	w0, [x23]
	bl	_IRQMASK
	bl	___UnmaskIrq
Lloh10:
	adrp	x23, ___ARStackPointer@GOTPAGE
Lloh11:
	ldr	x23, [x23, ___ARStackPointer@GOTPAGEOFF]
	str	w21, [x23]
Lloh12:
	adrp	x8, ___ARFreeBlocks@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___ARFreeBlocks@GOTPAGEOFF]
Lloh14:
	str	w20, [x8]
Lloh15:
	adrp	x8, ___ARBlockLen@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___ARBlockLen@GOTPAGEOFF]
Lloh17:
	str	x19, [x8]
	bl	___ARCheckSize
	mov	w8, #1
	str	w8, [x22]
	bl	__CPU_ISR_Restore
	ldr	w21, [x23]
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	___ARInit_Flag,4,2              ; @__ARInit_Flag
	.comm	___ARDmaCallback,8,3            ; @__ARDmaCallback
	.comm	_IRQ_DSP_ARAM,4,2               ; @IRQ_DSP_ARAM
	.comm	___ARHandler,4,2                ; @__ARHandler
	.comm	___ARStackPointer,4,2           ; @__ARStackPointer
	.comm	___ARFreeBlocks,4,2             ; @__ARFreeBlocks
	.comm	___ARBlockLen,8,3               ; @__ARBlockLen
	.comm	__dspReg,8,3                    ; @_dspReg
.subsections_via_symbols
