	.file	"extr_e100.c_e100_setup_ucode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e100_setup_ucode, @function
e100_setup_ucode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	QWORD PTR 16[rsi], 0
	mov	eax, DWORD PTR UCODE_SIZE[rip]
	mov	rdi, QWORD PTR 8[rsi]
	mov	rsi, QWORD PTR 0[rbp]
	lea	edx, 0[0+rax*4]
	call	memcpy@PLT
	mov	eax, DWORD PTR UCODE_SIZE[rip]
	mov	rdx, QWORD PTR 0[rbp]
	mov	edi, -65536
	sal	eax, 2
	cdqe
	mov	r13, QWORD PTR [rdx+rax*8]
	add	rax, 1
	mov	r12, QWORD PTR [rdx+rax*8]
	mov	rbp, QWORD PTR 8[rdx+rax*8]
	call	cpu_to_le32@PLT
	sal	r13, 2
	sal	r12, 2
	mov	r8d, eax
	mov	rax, QWORD PTR 8[rbx]
	sal	rbp, 2
	add	rax, r13
	and	DWORD PTR [rax], r8d
	mov	edi, DWORD PTR INTDELAY[rip]
	call	cpu_to_le32@PLT
	add	r13, QWORD PTR 8[rbx]
	mov	edi, -65536
	or	DWORD PTR 0[r13], eax
	call	cpu_to_le32@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR 8[rbx]
	add	rax, r12
	and	DWORD PTR [rax], r8d
	mov	edi, DWORD PTR BUNDLEMAX[rip]
	call	cpu_to_le32@PLT
	add	r12, QWORD PTR 8[rbx]
	mov	edi, -65536
	or	DWORD PTR [r12], eax
	call	cpu_to_le32@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR 8[rbx]
	add	rax, rbp
	and	DWORD PTR [rax], r8d
	cmp	QWORD PTR BUNDLESMALL[rip], 1
	sbb	edi, edi
	and	edi, -127
	add	edi, 65535
	call	cpu_to_le32@PLT
	add	rbp, QWORD PTR 8[rbx]
	or	DWORD PTR 0[rbp], eax
	mov	edi, DWORD PTR cb_ucode[rip]
	or	edi, DWORD PTR cb_el[rip]
	call	cpu_to_le16@PLT
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	e100_setup_ucode, .-e100_setup_ucode
	.comm	cb_ucode,4,4
	.comm	cb_el,4,4
	.comm	UCODE_SIZE,4,4
	.comm	INTDELAY,4,4
	.comm	BUNDLESMALL,8,8
	.comm	BUNDLEMAX,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_e100.c_e100_setup_ucode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e100_setup_ucode, %function
e100_setup_ucode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r3, #0
	mov	r4, r1
	mov	r5, r2
	ldr	r6, .L6
	str	r3, [r1, #8]
	ldr	r2, [r6]
	ldr	r1, [r5]
	lsl	r2, r2, #2
	ldr	r0, [r4, #4]
	bl	memcpy
	ldr	r2, [r5]
	ldr	r1, [r6]
	ldr	r0, .L6+4
	add	r3, r2, r1, lsl #4
	ldr	r7, [r2, r1, lsl #4]
	ldr	r6, [r3, #4]
	ldr	r5, [r3, #8]
	bl	cpu_to_le32
	ldr	r2, [r4, #4]
	ldr	r1, .L6+8
	ldr	r3, [r2, r7, lsl #2]
	and	r3, r3, r0
	str	r3, [r2, r7, lsl #2]
	ldr	r0, [r1]
	bl	cpu_to_le32
	mov	r1, r0
	ldr	r2, [r4, #4]
	ldr	r0, .L6+4
	ldr	r3, [r2, r7, lsl #2]
	orr	r3, r3, r1
	str	r3, [r2, r7, lsl #2]
	bl	cpu_to_le32
	ldr	r2, [r4, #4]
	ldr	r1, .L6+12
	ldr	r3, [r2, r6, lsl #2]
	and	r3, r3, r0
	str	r3, [r2, r6, lsl #2]
	ldr	r0, [r1]
	bl	cpu_to_le32
	mov	r1, r0
	ldr	r2, [r4, #4]
	ldr	r0, .L6+4
	ldr	r3, [r2, r6, lsl #2]
	orr	r3, r3, r1
	str	r3, [r2, r6, lsl #2]
	bl	cpu_to_le32
	ldr	r2, [r4, #4]
	ldr	r1, .L6+16
	ldr	r3, [r2, r5, lsl #2]
	ldr	lr, [r1]
	ldr	ip, .L6+20
	ldr	r1, .L6+24
	and	r3, r3, r0
	cmp	lr, #0
	movne	r0, ip
	moveq	r0, r1
	str	r3, [r2, r5, lsl #2]
	bl	cpu_to_le32
	ldr	r2, [r4, #4]
	ldr	ip, .L6+28
	ldr	r3, [r2, r5, lsl #2]
	ldr	r1, .L6+32
	orr	r3, r3, r0
	str	r3, [r2, r5, lsl #2]
	ldr	r0, [ip]
	ldr	r3, [r1]
	orr	r0, r0, r3
	bl	cpu_to_le16
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	UCODE_SIZE
	.word	-65536
	.word	INTDELAY
	.word	BUNDLEMAX
	.word	BUNDLESMALL
	.word	65535
	.word	65408
	.word	cb_ucode
	.word	cb_el
	.size	e100_setup_ucode, .-e100_setup_ucode
	.comm	cb_ucode,4,4
	.comm	cb_el,4,4
	.comm	UCODE_SIZE,4,4
	.comm	INTDELAY,4,4
	.comm	BUNDLESMALL,4,4
	.comm	BUNDLEMAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
