	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARAMPut                        ## -- Begin function ARAMPut
	.p2align	4, 0x90
_ARAMPut:                               ## @ARAMPut
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%r12d, %ebx
	andl	$31, %ebx
	je	LBB0_4
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	andl	$-32, %r12d
	movl	$32, %r14d
	subl	%ebx, %r14d
	movq	_aramfix@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movslq	%r12d, %r13
	movq	%r13, %rsi
	movl	$32, %edx
	callq	_ARAMFetch
	movl	%ebx, %edi
	movq	_aramfix@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%rbx), %rdi
	movl	$32, %esi
	callq	_DCFlushRange
	movq	_ARAM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	%r13d, %edx
	movl	$32, %ecx
	callq	_AR_StartDMA
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_AR_GetDMAStatus
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movl	%r14d, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	%rax, %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%r14d, %eax
	movl	%eax, %r14d
	addl	$32, %r12d
	movslq	%r12d, %r12
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	$2048, %r14d                    ## imm = 0x800
	jl	LBB0_10
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r13d
	shrl	$11, %r13d
	movq	_aramfix@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r14), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rsi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_memcpy
	movq	(%r14), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_DCFlushRange
	movq	_ARAM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	leal	(%rbx,%r15), %edx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_AR_StartDMA
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_AR_GetDMAStatus
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$2048, %rbx                     ## imm = 0x800
	incl	%r12d
	cmpl	%r13d, %r12d
	jne	LBB0_6
## %bb.9:
	movq	%r15, %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	testl	$2047, %r14d                    ## imm = 0x7FF
	je	LBB0_16
## %bb.11:
	movq	_aramfix@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%ebx, %esi
	addq	%r15, %rsi
	movl	%r14d, %r13d
	andl	$2016, %r13d                    ## imm = 0x7E0
	movl	%r13d, %edx
	callq	_memcpy
	movq	_aramfix@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r13d, %esi
	callq	_DCFlushRange
	movq	_ARAM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_aramfix@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rbx,%r12), %edx
	movl	%r13d, %ecx
	callq	_AR_StartDMA
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_AR_GetDMAStatus
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	andl	$31, %r14d
	je	LBB0_16
## %bb.14:
	orl	%r13d, %ebx
	movq	_aramfix@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	%r12, %rsi
	addq	%rbx, %rsi
	movl	$32, %edx
	callq	_ARAMFetch
	movq	(%r13), %rdi
	addq	%rbx, %r15
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%r13), %rdi
	movl	$32, %esi
	callq	_DCFlushRange
	movq	_ARAM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	addl	%r12d, %ebx
	movl	%ebx, %edx
	movl	$32, %ecx
	callq	_AR_StartDMA
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_AR_GetDMAStatus
	testq	%rax, %rax
	jne	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aramfix,8,3                    ## @aramfix
	.comm	_ARAM_WRITE,4,2                 ## @ARAM_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARAMPut                        ; -- Begin function ARAMPut
	.p2align	2
_ARAMPut:                               ; @ARAMPut
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _aramfix@GOTPAGE
Lloh1:
	ldr	x23, [x23, _aramfix@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ARAM_WRITE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ARAM_WRITE@GOTPAGEOFF]
	ands	w25, w21, #0x1f
	b.eq	LBB0_4
; %bb.1:
	and	w21, w21, #0xffffffe0
	mov	w8, #32
	sub	w22, w8, w25
	ldr	x0, [x23]
	sxtw	x1, w21
	mov	w2, #32
	bl	_ARAMFetch
	ldr	x8, [x23]
	add	x0, x8, w25, uxtw
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x23]
	mov	w1, #32
	bl	_DCFlushRange
	ldr	w0, [x24]
	ldr	w1, [x23]
	mov	x2, x21
	mov	w3, #32
	bl	_AR_StartDMA
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_AR_GetDMAStatus
	cbnz	x0, LBB0_2
; %bb.3:
	add	x19, x19, w22, uxtw
	sub	w20, w20, w22
	add	w8, w21, #32
	sxtw	x21, w8
LBB0_4:
	cmp	w20, #2048
	b.lt	LBB0_10
; %bb.5:
	mov	x25, #0
	mov	w22, #0
	lsr	w26, w20, #11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x23]
	add	x1, x19, x25
	mov	w2, #2048
	bl	_memcpy
	ldr	x0, [x23]
	mov	w1, #2048
	bl	_DCFlushRange
	ldr	w0, [x24]
	ldr	w1, [x23]
	add	w2, w25, w21
	mov	w3, #2048
	bl	_AR_StartDMA
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_AR_GetDMAStatus
	cbnz	x0, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #2048
	add	w22, w22, #1
	cmp	w22, w26
	b.ne	LBB0_6
; %bb.9:
	tst	w20, #0x7ff
	b.ne	LBB0_11
	b	LBB0_16
LBB0_10:
	mov	w25, #0
	tst	w20, #0x7ff
	b.eq	LBB0_16
LBB0_11:
	ldr	x0, [x23]
	add	x1, x19, w25, uxtw
	and	w22, w20, #0x7e0
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x23]
	mov	x1, x22
	bl	_DCFlushRange
	ldr	w0, [x24]
	ldr	w1, [x23]
	add	w2, w25, w21
	mov	x3, x22
	bl	_AR_StartDMA
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_AR_GetDMAStatus
	cbnz	x0, LBB0_12
; %bb.13:
	ands	w20, w20, #0x1f
	b.eq	LBB0_16
; %bb.14:
	orr	w22, w25, w22
	ldr	x0, [x23]
	add	x1, x21, x22
	mov	w2, #32
	bl	_ARAMFetch
	ldr	x0, [x23]
	add	x1, x19, x22
	mov	x2, x20
	bl	_memcpy
	ldr	x0, [x23]
	mov	w1, #32
	bl	_DCFlushRange
	ldr	w0, [x24]
	ldr	w1, [x23]
	add	w2, w22, w21
	mov	w3, #32
	bl	_AR_StartDMA
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	bl	_AR_GetDMAStatus
	cbnz	x0, LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aramfix,8,3                    ; @aramfix
	.comm	_ARAM_WRITE,4,2                 ; @ARAM_WRITE
.subsections_via_symbols
