	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mgsl_reset_tx_dma_buffers
_mgsl_reset_tx_dma_buffers:             ## @mgsl_reset_tx_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), %edx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	movq	56(%rdi), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	andl	$-8, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rsi,4)
	movq	$0, 4(%rcx,%rsi,4)
	movq	$0, 8(%rcx,%rsi,4)
	movq	$0, 12(%rcx,%rsi,4)
	movq	$0, 16(%rcx,%rsi,4)
	movq	$0, 20(%rcx,%rsi,4)
	movq	$0, 24(%rcx,%rsi,4)
	movq	$0, 28(%rcx,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	(%rcx,%rsi,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_7
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rdi)
	movups	%xmm0, 24(%rdi)
	movups	%xmm0, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mgsl_reset_tx_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_tx_dma_buffers
_mgsl_reset_tx_dma_buffers:             ; @mgsl_reset_tx_dma_buffers
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x9, [x0, #56]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #8
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x11, #-8]
	stur	xzr, [x11, #-4]
	str	xzr, [x11]
	stur	xzr, [x11, #4]
	add	x11, x11, #16
	subs	x12, x12, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #40]
	stur	q0, [x0, #24]
	stur	q0, [x0, #8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mgsl_reset_tx_dma_buffers
.subsections_via_symbols
