	.file	"extr_ifxmips_atm_amazon_se.c_pp32_download_code.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pp32_download_code, @function
pp32_download_code:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L10
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	test	rdx, rdx
	je	.L12
	mov	rax, rdx
	mov	rbp, rdi
	or	rax, rdi
	test	al, 3
	jne	.L12
	xor	edi, edi
	mov	r12d, esi
	mov	r13d, ecx
	call	CDM_CODE_MEMORYn_DWLEN@PLT
	mov	esi, DWORD PTR CDM_CFG[rip]
	cmp	eax, r12d
	jnb	.L23
	mov	edi, 4
	call	IFX_REG_W32@PLT
.L4:
	xor	esi, esi
	xor	edi, edi
	call	CDM_CODE_MEMORY@PLT
	lea	edx, -1[r12]
	test	r12d, r12d
	je	.L5
	mov	r12, rax
	lea	r14, 4[rbp+rdx*4]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r12d
	add	rbp, 4
	add	r12, 4
	call	IFX_REG_W32@PLT
	cmp	rbp, r14
	jne	.L6
.L5:
	xor	esi, esi
	xor	edi, edi
	call	CDM_DATA_MEMORY@PLT
	lea	edx, -1[r13]
	test	r13d, r13d
	je	.L9
	mov	rbp, rax
	lea	r12, 4[rbx+rdx*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR [rbx]
	mov	esi, ebp
	add	rbx, 4
	add	rbp, 4
	call	IFX_REG_W32@PLT
	cmp	r12, rbx
	jne	.L8
.L9:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	edi, edi
	call	IFX_REG_W32@PLT
	jmp	.L4
.L12:
	mov	eax, -1
	jmp	.L1
.L10:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	pp32_download_code, .-pp32_download_code
	.comm	CDM_CFG,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_ifxmips_atm_amazon_se.c_pp32_download_code.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pp32_download_code, %function
pp32_download_code:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r8, r0, #0
	beq	.L12
	cmp	r2, #0
	mov	r7, r2
	beq	.L12
	orr	r0, r2, r8
	ands	r6, r0, #3
	bne	.L12
	mov	r0, r6
	mov	r4, r1
	mov	r5, r3
	bl	CDM_CODE_MEMORYn_DWLEN
	ldr	r3, .L20
	cmp	r0, r4
	movcs	r0, r6
	movcc	r0, #4
	ldr	r1, [r3]
	bl	IFX_REG_W32
	mov	r1, #0
	mov	r0, r1
	bl	CDM_CODE_MEMORY
	cmp	r4, #0
	sub	r4, r4, #1
	beq	.L5
	mov	r6, r0
.L6:
	mov	r1, r6
	ldr	r0, [r8], #4
	sub	r4, r4, #1
	bl	IFX_REG_W32
	cmn	r4, #1
	add	r6, r6, #4
	bne	.L6
.L5:
	mov	r1, #0
	mov	r0, r1
	bl	CDM_DATA_MEMORY
	cmp	r5, #0
	movne	r4, r0
	sub	r5, r5, #1
	beq	.L9
.L8:
	mov	r1, r4
	ldr	r0, [r7], #4
	sub	r5, r5, #1
	bl	IFX_REG_W32
	cmn	r5, #1
	add	r4, r4, #4
	bne	.L8
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	CDM_CFG
	.size	pp32_download_code, .-pp32_download_code
	.comm	CDM_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
