	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v5_0_get_reg_offset
_sdma_v5_0_get_reg_offset:              ## @sdma_v5_0_get_reg_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rax
	movq	(%rdi), %rcx
	movq	_GC_HWIP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	_SDMA0_HYP_DEC_REG_START@GOTPCREL(%rip), %rdx
	movq	(%rcx), %rcx
	cmpq	%rax, (%rdx)
	jg	LBB0_4
## %bb.1:
	movq	_SDMA0_HYP_DEC_REG_END@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	jl	LBB0_4
## %bb.2:
	movq	8(%rcx), %rcx
	cmpq	$1, %rsi
	jne	LBB0_7
## %bb.3:
	movq	_SDMA1_HYP_DEC_REG_OFFSET@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	(%rcx), %rcx
	cmpq	$1, %rsi
	jne	LBB0_7
## %bb.5:
	movq	_SDMA1_REG_OFFSET@GOTPCREL(%rip), %rdx
LBB0_6:
	addq	(%rdx), %rax
LBB0_7:
	addq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA0_HYP_DEC_REG_START,8,3    ## @SDMA0_HYP_DEC_REG_START
	.comm	_SDMA0_HYP_DEC_REG_END,8,3      ## @SDMA0_HYP_DEC_REG_END
	.comm	_GC_HWIP,8,3                    ## @GC_HWIP
	.comm	_SDMA1_HYP_DEC_REG_OFFSET,8,3   ## @SDMA1_HYP_DEC_REG_OFFSET
	.comm	_SDMA1_REG_OFFSET,8,3           ## @SDMA1_REG_OFFSET
	.no_dead_strip	_sdma_v5_0_get_reg_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_v5_0_get_reg_offset
_sdma_v5_0_get_reg_offset:              ; @sdma_v5_0_get_reg_offset
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SDMA0_HYP_DEC_REG_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA0_HYP_DEC_REG_START@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _SDMA0_HYP_DEC_REG_END@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA0_HYP_DEC_REG_END@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldr	x8, [x0]
Lloh6:
	adrp	x11, _GC_HWIP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _GC_HWIP@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	ldr	x8, [x8, x11, lsl #3]
	ldr	x8, [x8]
	cmp	x9, x2
	ccmp	x10, x2, #8, le
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cmp	x1, #1
	b.ne	LBB0_6
; %bb.2:
Lloh9:
	adrp	x9, _SDMA1_REG_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDMA1_REG_OFFSET@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x8, #8]
	cmp	x1, #1
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x9, _SDMA1_HYP_DEC_REG_OFFSET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDMA1_HYP_DEC_REG_OFFSET@GOTPAGEOFF]
LBB0_5:
	ldr	x9, [x9]
	add	x2, x9, x2
LBB0_6:
	add	x0, x8, x2
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA0_HYP_DEC_REG_START,8,3    ; @SDMA0_HYP_DEC_REG_START
	.comm	_SDMA0_HYP_DEC_REG_END,8,3      ; @SDMA0_HYP_DEC_REG_END
	.comm	_GC_HWIP,8,3                    ; @GC_HWIP
	.comm	_SDMA1_HYP_DEC_REG_OFFSET,8,3   ; @SDMA1_HYP_DEC_REG_OFFSET
	.comm	_SDMA1_REG_OFFSET,8,3           ; @SDMA1_REG_OFFSET
	.no_dead_strip	_sdma_v5_0_get_reg_offset
.subsections_via_symbols
