	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sdma_base_addr
_get_sdma_base_addr:                    ## @get_sdma_base_addr
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SDMA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmSDMA0_RLC0_RB_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	subl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movq	_SDMA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmSDMA1_RLC0_RB_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	subl	(%rbx), %eax
	movl	%eax, -44(%rbp)
	movq	_mmSDMA0_RLC1_RB_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	subl	(%r12), %ebx
	movl	%r15d, %eax
	imull	%r14d, %ebx
	addl	-48(%rbp,%rax,4), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA0,4,2                      ## @SDMA0
	.comm	_mmSDMA0_RLC0_RB_CNTL,4,2       ## @mmSDMA0_RLC0_RB_CNTL
	.comm	_SDMA1,4,2                      ## @SDMA1
	.comm	_mmSDMA1_RLC0_RB_CNTL,4,2       ## @mmSDMA1_RLC0_RB_CNTL
	.comm	_mmSDMA0_RLC1_RB_CNTL,4,2       ## @mmSDMA0_RLC1_RB_CNTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdma base address: 0x%x\n"

	.no_dead_strip	_get_sdma_base_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sdma_base_addr
_get_sdma_base_addr:                    ; @get_sdma_base_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _SDMA0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA0@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x21, _mmSDMA0_RLC0_RB_CNTL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _mmSDMA0_RLC0_RB_CNTL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	ldr	w8, [x21]
	sub	w8, w0, w8
	str	w8, [sp]
Lloh8:
	adrp	x8, _SDMA1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDMA1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x22, _mmSDMA1_RLC0_RB_CNTL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _mmSDMA1_RLC0_RB_CNTL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	ldr	w8, [x22]
	sub	w8, w0, w8
	str	w8, [sp, #4]
	mov	x8, sp
	ldr	w8, [x8, w20, uxtw #2]
Lloh13:
	adrp	x9, _mmSDMA0_RLC1_RB_CNTL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _mmSDMA0_RLC1_RB_CNTL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x21]
	sub	w9, w9, w10
	madd	w19, w9, w19, w8
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	ldr	x8, [sp, #8]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA0,4,2                      ; @SDMA0
	.comm	_mmSDMA0_RLC0_RB_CNTL,4,2       ; @mmSDMA0_RLC0_RB_CNTL
	.comm	_SDMA1,4,2                      ; @SDMA1
	.comm	_mmSDMA1_RLC0_RB_CNTL,4,2       ; @mmSDMA1_RLC0_RB_CNTL
	.comm	_mmSDMA0_RLC1_RB_CNTL,4,2       ; @mmSDMA0_RLC1_RB_CNTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdma base address: 0x%x\n"

	.no_dead_strip	_get_sdma_base_addr
.subsections_via_symbols
