	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v2_4_set_ring_funcs
_sdma_v2_4_set_ring_funcs:              ## @sdma_v2_4_set_ring_funcs
	.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
	testl	%r9d, %r9d
	jle	LBB0_7
## %bb.1:
	movq	8(%rdi), %r8
	cmpl	$1, %r9d
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	24(%r8), %rdi
	xorl	%edx, %edx
	movq	_sdma_v2_4_ring_funcs@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -16(%rdi)
	movl	%edx, -24(%rdi)
	movq	%rax, (%rdi)
	leal	1(%rdx), %ecx
	movl	%ecx, -8(%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	testb	$1, %r9b
	je	LBB0_7
## %bb.6:
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	_sdma_v2_4_ring_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%r8,%rax)
	movl	%edx, (%r8,%rax)
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sdma_v2_4_ring_funcs,4,2       ## @sdma_v2_4_ring_funcs
	.no_dead_strip	_sdma_v2_4_set_ring_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_v2_4_set_ring_funcs
_sdma_v2_4_set_ring_funcs:              ; @sdma_v2_4_set_ring_funcs
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x11, [x0, #8]
Lloh0:
	adrp	x9, _sdma_v2_4_ring_funcs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sdma_v2_4_ring_funcs@GOTPAGEOFF]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	mov	x12, #0
	and	x10, x8, #0xfffffffc
	add	x13, x11, #32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w12, #1
	stur	x9, [x13, #-24]
	add	w15, w12, #2
	add	w16, w12, #3
	stur	x9, [x13, #-8]
	str	x9, [x13, #8]
	str	x9, [x13, #24]
	stur	w12, [x13, #-32]
	stur	w14, [x13, #-16]
	add	x12, x12, #4
	str	w15, [x13]
	str	w16, [x13, #16]
	add	x13, x13, #64
	cmp	x10, x12
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x11, x11, x10, lsl #4
	add	x11, x11, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x9, [x11]
	stur	w10, [x11, #-8]
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x8, x10
	b.ne	LBB0_7
LBB0_8:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sdma_v2_4_ring_funcs,4,2       ; @sdma_v2_4_ring_funcs
	.no_dead_strip	_sdma_v2_4_set_ring_funcs
.subsections_via_symbols
