	.file	"extr_al_hal_udma_config.c_al_udma_common_rlimit_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	al_udma_common_rlimit_set, @function
al_udma_common_rlimit_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 16[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	al_reg_read32@PLT
	mov	edx, DWORD PTR UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_MAX_BURST_SIZE_MASK[rip]
	mov	rdi, r12
	lea	r12, 12[rbp]
	mov	r8d, eax
	mov	eax, DWORD PTR UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_EN[rip]
	or	eax, edx
	or	eax, DWORD PTR UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_PAUSE[rip]
	and	edx, DWORD PTR [rbx]
	not	eax
	mov	esi, edx
	and	eax, r8d
	or	esi, eax
	call	al_reg_write32@PLT
	mov	rdi, r12
	call	al_reg_read32@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, r12
	lea	r12, 8[rbp]
	xor	esi, eax
	and	esi, DWORD PTR UDMA_M2S_STREAM_RATE_LIMITER_CFG_CYCLE_LONG_CYCLE_SIZE_MASK[rip]
	xor	esi, eax
	call	al_reg_write32@PLT
	mov	rdi, r12
	call	al_reg_read32@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r12
	lea	r12, 4[rbp]
	xor	esi, eax
	and	esi, DWORD PTR UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_1_LONG_CYCLE_MASK[rip]
	xor	esi, eax
	call	al_reg_write32@PLT
	mov	rdi, r12
	call	al_reg_read32@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r12
	xor	esi, eax
	and	esi, DWORD PTR UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_2_SHORT_CYCLE_MASK[rip]
	xor	esi, eax
	call	al_reg_write32@PLT
	mov	rdi, rbp
	call	al_reg_read32@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	and	eax, -16
	and	esi, 15
	or	esi, eax
	call	al_reg_write32@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	al_udma_common_rlimit_set, .-al_udma_common_rlimit_set
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_2_SHORT_CYCLE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_1_LONG_CYCLE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_CYCLE_LONG_CYCLE_SIZE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_PAUSE,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_MAX_BURST_SIZE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_EN,4,4
	.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_al_hal_udma_config.c_al_udma_common_rlimit_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	al_udma_common_rlimit_set, %function
al_udma_common_rlimit_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	add	r6, r0, #16
	mov	r4, r0
	mov	r0, r6
	bl	al_reg_read32
	ldr	r3, .L4
	ldr	r1, .L4+4
	ldr	r2, .L4+8
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	ip, [r2]
	orr	r1, r3, r1
	ldr	r2, [r5]
	orr	r1, r1, ip
	and	r3, r3, r2
	bic	r1, r0, r1
	orr	r1, r3, r1
	mov	r0, r6
	add	r6, r4, #12
	bl	al_reg_write32
	mov	r0, r6
	bl	al_reg_read32
	mov	r1, r0
	ldr	r2, .L4+12
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	eor	r3, r3, r0
	and	r3, r3, r2
	eor	r1, r1, r3
	mov	r0, r6
	add	r6, r4, #8
	bl	al_reg_write32
	mov	r0, r6
	bl	al_reg_read32
	mov	r1, r0
	ldr	r2, .L4+16
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	eor	r3, r3, r0
	and	r3, r3, r2
	eor	r1, r1, r3
	mov	r0, r6
	add	r6, r4, #4
	bl	al_reg_write32
	mov	r0, r6
	bl	al_reg_read32
	mov	r1, r0
	ldr	r2, .L4+20
	ldr	r3, [r5, #12]
	ldr	r2, [r2]
	eor	r3, r3, r0
	and	r3, r3, r2
	eor	r1, r1, r3
	mov	r0, r6
	bl	al_reg_write32
	mov	r0, r4
	bl	al_reg_read32
	ldr	r1, [r5, #16]
	bic	r3, r0, #15
	and	r1, r1, #15
	mov	r0, r4
	orr	r1, r1, r3
	bl	al_reg_write32
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_MAX_BURST_SIZE_MASK
	.word	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_EN
	.word	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_PAUSE
	.word	UDMA_M2S_STREAM_RATE_LIMITER_CFG_CYCLE_LONG_CYCLE_SIZE_MASK
	.word	UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_1_LONG_CYCLE_MASK
	.word	UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_2_SHORT_CYCLE_MASK
	.size	al_udma_common_rlimit_set, .-al_udma_common_rlimit_set
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_2_SHORT_CYCLE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_TOKEN_SIZE_1_LONG_CYCLE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_CYCLE_LONG_CYCLE_SIZE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_PAUSE,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_MAX_BURST_SIZE_MASK,4,4
	.comm	UDMA_M2S_STREAM_RATE_LIMITER_CFG_1S_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
