	.file	"extr_netsec.c_netsec_netdev_load_microcode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	netsec_netdev_load_microcode, @function
netsec_netdev_load_microcode:
.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, rdi
	mov	rdi, QWORD PTR NETSEC_EEPROM_HM_ME_ADDRESS_H[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	readl@PLT
	mov	rdi, QWORD PTR NETSEC_EEPROM_HM_ME_ADDRESS_L[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r12, rax
	call	readl@PLT
	mov	rdi, QWORD PTR NETSEC_EEPROM_HM_ME_SIZE[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r13, rax
	call	readl@PLT
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, DWORD PTR NETSEC_REG_DMAC_HM_CMD_BUF[rip]
	mov	r8, rax
	call	netsec_netdev_load_ucode_region@PLT
	test	eax, eax
	je	.L5
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR NETSEC_EEPROM_MH_ME_ADDRESS_H[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	readl@PLT
	mov	rdi, QWORD PTR NETSEC_EEPROM_MH_ME_ADDRESS_L[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r12, rax
	call	readl@PLT
	mov	rdi, QWORD PTR NETSEC_EEPROM_MH_ME_SIZE[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r13, rax
	call	readl@PLT
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, DWORD PTR NETSEC_REG_DMAC_MH_CMD_BUF[rip]
	mov	r8, rax
	call	netsec_netdev_load_ucode_region@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR NETSEC_EEPROM_PKT_ME_ADDRESS[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	readl@PLT
	mov	rdi, QWORD PTR NETSEC_EEPROM_PKT_ME_SIZE[rip]
	add	rdi, QWORD PTR 0[rbp]
	mov	r12, rax
	call	readl@PLT
	mov	esi, DWORD PTR NETSEC_REG_PKT_CMD_BUF[rip]
	mov	rcx, r12
	xor	edx, edx
	mov	rdi, rbp
	mov	r8, rax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	netsec_netdev_load_ucode_region@PLT
	.cfi_endproc
.LFE0:
	.size	netsec_netdev_load_microcode, .-netsec_netdev_load_microcode
	.comm	NETSEC_REG_PKT_CMD_BUF,4,4
	.comm	NETSEC_REG_DMAC_MH_CMD_BUF,4,4
	.comm	NETSEC_REG_DMAC_HM_CMD_BUF,4,4
	.comm	NETSEC_EEPROM_PKT_ME_SIZE,8,8
	.comm	NETSEC_EEPROM_PKT_ME_ADDRESS,8,8
	.comm	NETSEC_EEPROM_MH_ME_SIZE,8,8
	.comm	NETSEC_EEPROM_MH_ME_ADDRESS_L,8,8
	.comm	NETSEC_EEPROM_MH_ME_ADDRESS_H,8,8
	.comm	NETSEC_EEPROM_HM_ME_SIZE,8,8
	.comm	NETSEC_EEPROM_HM_ME_ADDRESS_L,8,8
	.comm	NETSEC_EEPROM_HM_ME_ADDRESS_H,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_netsec.c_netsec_netdev_load_microcode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netsec_netdev_load_microcode, %function
netsec_netdev_load_microcode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L6
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r0]
	sub	sp, sp, #8
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L6+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r6, r0
	add	r0, r1, r3
	bl	readl
	ldr	r3, .L6+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r5, r0
	add	r0, r2, r3
	bl	readl
	ldr	r1, .L6+12
	str	r0, [sp]
	mov	r3, r5
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r1]
	bl	netsec_netdev_load_ucode_region
	subs	r5, r0, #0
	beq	.L5
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L6+16
	ldr	r0, [r4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L6+20
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r6, r0
	add	r0, r1, r3
	bl	readl
	ldr	r3, .L6+24
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r5, r0
	add	r0, r2, r3
	bl	readl
	ldr	r1, .L6+28
	str	r0, [sp]
	mov	r3, r5
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r1]
	bl	netsec_netdev_load_ucode_region
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L6+32
	ldr	r0, [r4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L6+36
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r6, r0
	add	r0, r2, r3
	bl	readl
	ldr	r1, .L6+40
	str	r0, [sp]
	mov	r2, r5
	mov	r3, r6
	mov	r0, r4
	ldr	r1, [r1]
	bl	netsec_netdev_load_ucode_region
	mov	r5, r0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	NETSEC_EEPROM_HM_ME_ADDRESS_H
	.word	NETSEC_EEPROM_HM_ME_ADDRESS_L
	.word	NETSEC_EEPROM_HM_ME_SIZE
	.word	NETSEC_REG_DMAC_HM_CMD_BUF
	.word	NETSEC_EEPROM_MH_ME_ADDRESS_H
	.word	NETSEC_EEPROM_MH_ME_ADDRESS_L
	.word	NETSEC_EEPROM_MH_ME_SIZE
	.word	NETSEC_REG_DMAC_MH_CMD_BUF
	.word	NETSEC_EEPROM_PKT_ME_ADDRESS
	.word	NETSEC_EEPROM_PKT_ME_SIZE
	.word	NETSEC_REG_PKT_CMD_BUF
	.size	netsec_netdev_load_microcode, .-netsec_netdev_load_microcode
	.comm	NETSEC_REG_PKT_CMD_BUF,4,4
	.comm	NETSEC_REG_DMAC_MH_CMD_BUF,4,4
	.comm	NETSEC_REG_DMAC_HM_CMD_BUF,4,4
	.comm	NETSEC_EEPROM_PKT_ME_SIZE,4,4
	.comm	NETSEC_EEPROM_PKT_ME_ADDRESS,4,4
	.comm	NETSEC_EEPROM_MH_ME_SIZE,4,4
	.comm	NETSEC_EEPROM_MH_ME_ADDRESS_L,4,4
	.comm	NETSEC_EEPROM_MH_ME_ADDRESS_H,4,4
	.comm	NETSEC_EEPROM_HM_ME_SIZE,4,4
	.comm	NETSEC_EEPROM_HM_ME_ADDRESS_L,4,4
	.comm	NETSEC_EEPROM_HM_ME_ADDRESS_H,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
