	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mgsl_reset_rx_dma_buffers
_mgsl_reset_rx_dma_buffers:             ## @mgsl_reset_rx_dma_buffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	testq	%r9, %r9
	je	LBB0_8
## %bb.1:
	movq	16(%rdi), %rcx
	leaq	-1(%r9), %rax
	movl	%r9d, %r8d
	andl	$7, %r8d
	cmpq	$7, %rax
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	andl	$-8, %r9d
	xorl	%esi, %esi
	movq	_DMABUFFERSIZE@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	movq	%rdx, (%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 4(%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 8(%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 12(%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 16(%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 20(%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 24(%rcx,%rsi,4)
	movq	(%rax), %rdx
	movq	%rdx, 28(%rcx,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_4
LBB0_5:
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	leaq	(%rcx,%rsi,4), %rax
	xorl	%ecx, %ecx
	movq	_DMABUFFERSIZE@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, (%rax,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_7
LBB0_8:
	movq	$0, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMABUFFERSIZE,8,3              ## @DMABUFFERSIZE
	.no_dead_strip	_mgsl_reset_rx_dma_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mgsl_reset_rx_dma_buffers
_mgsl_reset_rx_dma_buffers:             ; @mgsl_reset_rx_dma_buffers
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _DMABUFFERSIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DMABUFFERSIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	str	x11, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	str	xzr, [x0, #8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMABUFFERSIZE,8,3              ; @DMABUFFERSIZE
	.no_dead_strip	_mgsl_reset_rx_dma_buffers
.subsections_via_symbols
