	.file	"extr_isp1362.h_isp1362_write_diraddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	isp1362_write_diraddr, @function
isp1362_write_diraddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	and	edi, 1
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	_BUG_ON@PLT
	xor	edi, edi
	cmp	DWORD PTR ISP1362_BUF_SIZE[rip], ebp
	setle	dil
	call	_BUG_ON@PLT
	xor	edi, edi
	cmp	DWORD PTR ISP1362_BUF_SIZE[rip], ebx
	setl	dil
	call	_BUG_ON@PLT
	lea	eax, 0[rbp+rbx]
	xor	edi, edi
	cmp	eax, DWORD PTR ISP1362_BUF_SIZE[rip]
	setg	dil
	add	ebx, 1
	call	_BUG_ON@PLT
	mov	edx, DWORD PTR HCDMACFG_CTR_ENABLE[rip]
	mov	rdi, r12
	and	ebx, -2
	mov	esi, DWORD PTR HCDMACFG[rip]
	call	isp1362_clr_mask16@PLT
	mov	edi, ebp
	call	HCDIRADDR_ADDR@PLT
	mov	edi, ebx
	mov	ebp, eax
	call	HCDIRADDR_COUNT@PLT
	mov	edx, ebp
	mov	esi, DWORD PTR HCDIRADDR[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	or	edx, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	isp1362_write_reg32@PLT
	.cfi_endproc
.LFE0:
	.size	isp1362_write_diraddr, .-isp1362_write_diraddr
	.comm	ISP1362_BUF_SIZE,4,4
	.comm	HCDMACFG_CTR_ENABLE,4,4
	.comm	HCDMACFG,4,4
	.comm	HCDIRADDR,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_isp1362.h_isp1362_write_diraddr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isp1362_write_diraddr, %function
isp1362_write_diraddr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r2
	mov	r6, r0
	ldr	r7, .L4
	and	r0, r1, #1
	bl	_BUG_ON
	ldr	r0, [r7]
	add	r8, r4, #1
	cmp	r0, r5
	movgt	r0, #0
	movle	r0, #1
	bl	_BUG_ON
	ldr	r0, [r7]
	cmp	r0, r4
	movge	r0, #0
	movlt	r0, #1
	bl	_BUG_ON
	ldr	r0, [r7]
	add	r4, r5, r4
	cmp	r4, r0
	movle	r0, #0
	movgt	r0, #1
	bl	_BUG_ON
	ldr	r3, .L4+4
	ldr	r2, .L4+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r6
	bl	isp1362_clr_mask16
	ldr	r3, .L4+12
	mov	r0, r5
	ldr	r5, [r3]
	bl	HCDIRADDR_ADDR
	mov	r4, r0
	bic	r0, r8, #1
	bl	HCDIRADDR_COUNT
	mov	r1, r5
	orr	r2, r4, r0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	isp1362_write_reg32
.L5:
	.align	2
.L4:
	.word	ISP1362_BUF_SIZE
	.word	HCDMACFG
	.word	HCDMACFG_CTR_ENABLE
	.word	HCDIRADDR
	.size	isp1362_write_diraddr, .-isp1362_write_diraddr
	.comm	ISP1362_BUF_SIZE,4,4
	.comm	HCDMACFG_CTR_ENABLE,4,4
	.comm	HCDMACFG,4,4
	.comm	HCDIRADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
