	.file	"extr_sdma_v5_0.c_sdma_v5_0_get_reg_offset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sdma_v5_0_get_reg_offset, @function
sdma_v5_0_get_reg_offset:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR GC_HWIP[rip]
	cmp	QWORD PTR SDMA0_HYP_DEC_REG_START[rip], rdx
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	rax, QWORD PTR [rax]
	jg	.L2
	cmp	QWORD PTR SDMA0_HYP_DEC_REG_END[rip], rdx
	jl	.L2
	mov	rax, QWORD PTR 8[rax]
	cmp	rsi, 1
	je	.L5
.L3:
	add	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR [rax]
	cmp	rsi, 1
	jne	.L3
	add	rdx, QWORD PTR SDMA1_REG_OFFSET[rip]
	add	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	add	rdx, QWORD PTR SDMA1_HYP_DEC_REG_OFFSET[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sdma_v5_0_get_reg_offset, .-sdma_v5_0_get_reg_offset
	.comm	SDMA1_REG_OFFSET,8,8
	.comm	SDMA1_HYP_DEC_REG_OFFSET,8,8
	.comm	SDMA0_HYP_DEC_REG_START,8,8
	.comm	SDMA0_HYP_DEC_REG_END,8,8
	.comm	GC_HWIP,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sdma_v5_0.c_sdma_v5_0_get_reg_offset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdma_v5_0_get_reg_offset, %function
sdma_v5_0_get_reg_offset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L7
	str	lr, [sp, #-4]!
	ldr	lr, .L7+4
	ldr	r3, [r0]
	ldr	ip, [ip]
	ldr	r0, [lr]
	ldr	r3, [r3, ip, lsl #2]
	cmp	r0, r2
	ldr	r3, [r3]
	bgt	.L2
	ldr	r0, .L7+8
	ldr	r0, [r0]
	cmp	r0, r2
	bge	.L6
.L2:
	cmp	r1, #1
	ldr	r0, [r3]
	ldreq	r3, .L7+12
	ldreq	r3, [r3]
	addeq	r2, r2, r3
.L3:
	add	r0, r2, r0
	ldr	pc, [sp], #4
.L6:
	cmp	r1, #1
	ldr	r0, [r3, #4]
	ldreq	r3, .L7+16
	ldreq	r3, [r3]
	addeq	r2, r2, r3
	b	.L3
.L8:
	.align	2
.L7:
	.word	GC_HWIP
	.word	SDMA0_HYP_DEC_REG_START
	.word	SDMA0_HYP_DEC_REG_END
	.word	SDMA1_REG_OFFSET
	.word	SDMA1_HYP_DEC_REG_OFFSET
	.size	sdma_v5_0_get_reg_offset, .-sdma_v5_0_get_reg_offset
	.comm	SDMA1_REG_OFFSET,4,4
	.comm	SDMA1_HYP_DEC_REG_OFFSET,4,4
	.comm	SDMA0_HYP_DEC_REG_START,4,4
	.comm	SDMA0_HYP_DEC_REG_END,4,4
	.comm	GC_HWIP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
