	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v4_0_set_ring_funcs
_sdma_v4_0_set_ring_funcs:              ## @sdma_v4_0_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	8(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.1:
	movq	(%rdi), %rcx
	movq	16(%rdi), %rdx
	movq	_CHIP_ARCTURUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$24, %rdx
	xorl	%eax, %eax
	movq	_sdma_v4_0_ring_funcs_2nd_mmhub@GOTPCREL(%rip), %r9
	movq	_sdma_v4_0_page_ring_funcs_2nd_mmhub@GOTPCREL(%rip), %r10
	movq	_sdma_v4_0_ring_funcs@GOTPCREL(%rip), %r11
	movq	_sdma_v4_0_page_ring_funcs@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, (%rdx)
	movl	%eax, -8(%rdx)
	cmpq	$0, 24(%rdi)
	movq	%r14, %rbx
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -16(%rdx)
	movl	%eax, -24(%rdx)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	addq	$32, %rdx
	cmpq	%rax, %r8
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rcx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$5, %rax
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, (%rdx)
	movl	%eax, -8(%rdx)
	cmpq	$0, 24(%rdi)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %rbx
	jmp	LBB0_7
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ARCTURUS,8,3              ## @CHIP_ARCTURUS
	.comm	_sdma_v4_0_ring_funcs_2nd_mmhub,4,2 ## @sdma_v4_0_ring_funcs_2nd_mmhub
	.comm	_sdma_v4_0_ring_funcs,4,2       ## @sdma_v4_0_ring_funcs
	.comm	_sdma_v4_0_page_ring_funcs_2nd_mmhub,4,2 ## @sdma_v4_0_page_ring_funcs_2nd_mmhub
	.comm	_sdma_v4_0_page_ring_funcs,4,2  ## @sdma_v4_0_page_ring_funcs
	.no_dead_strip	_sdma_v4_0_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_v4_0_set_ring_funcs
_sdma_v4_0_set_ring_funcs:              ; @sdma_v4_0_set_ring_funcs
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x9, #0
Lloh0:
	adrp	x11, _CHIP_ARCTURUS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CHIP_ARCTURUS@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh2:
	ldr	x11, [x11]
	ldr	x12, [x0, #16]
	add	x12, x12, #24
Lloh3:
	adrp	x13, _sdma_v4_0_ring_funcs_2nd_mmhub@GOTPAGE
Lloh4:
	ldr	x13, [x13, _sdma_v4_0_ring_funcs_2nd_mmhub@GOTPAGEOFF]
Lloh5:
	adrp	x14, _sdma_v4_0_page_ring_funcs_2nd_mmhub@GOTPAGE
Lloh6:
	ldr	x14, [x14, _sdma_v4_0_page_ring_funcs_2nd_mmhub@GOTPAGEOFF]
Lloh7:
	adrp	x15, _sdma_v4_0_ring_funcs@GOTPAGE
Lloh8:
	ldr	x15, [x15, _sdma_v4_0_ring_funcs@GOTPAGEOFF]
Lloh9:
	adrp	x16, _sdma_v4_0_page_ring_funcs@GOTPAGE
Lloh10:
	ldr	x16, [x16, _sdma_v4_0_page_ring_funcs@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x15, [x12]
	stur	w9, [x12, #-8]
	mov	x17, x16
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	stur	x17, [x12, #-16]
	stur	w9, [x12, #-24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x12, x12, #32
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, #5
	b.lo	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x13, [x12]
	stur	w9, [x12, #-8]
	ldr	x17, [x0, #24]
	cbz	x17, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x17, x14
	b	LBB0_3
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ARCTURUS,8,3              ; @CHIP_ARCTURUS
	.comm	_sdma_v4_0_ring_funcs_2nd_mmhub,4,2 ; @sdma_v4_0_ring_funcs_2nd_mmhub
	.comm	_sdma_v4_0_ring_funcs,4,2       ; @sdma_v4_0_ring_funcs
	.comm	_sdma_v4_0_page_ring_funcs_2nd_mmhub,4,2 ; @sdma_v4_0_page_ring_funcs_2nd_mmhub
	.comm	_sdma_v4_0_page_ring_funcs,4,2  ; @sdma_v4_0_page_ring_funcs
	.no_dead_strip	_sdma_v4_0_set_ring_funcs
.subsections_via_symbols
