	.file	"extr_eeprom.c_tb_drom_copy_efi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ThunderboltDROM"
	.text
	.p2align 4
	.type	tb_drom_copy_efi, @function
tb_drom_copy_efi:
.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
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax]
	mov	rdi, r13
	call	device_property_count_u8@PLT
	cmp	eax, 3
	jg	.L2
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, eax
	mov	ebx, eax
	call	kmalloc@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdx, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rdx, rdx
	je	.L1
	mov	rdi, r13
	mov	ecx, ebx
	lea	rsi, .LC0[rip]
	call	device_property_read_u8_array@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR TB_DROM_DATA_START[rip]
	add	edx, DWORD PTR [rdi]
	mov	DWORD PTR [r12], edx
	cmp	edx, ebx
	jle	.L1
.L6:
	call	kfree@PLT
	mov	QWORD PTR 0[rbp], 0
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	tb_drom_copy_efi, .-tb_drom_copy_efi
	.comm	TB_DROM_DATA_START,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_eeprom.c_tb_drom_copy_efi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ThunderboltDROM\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tb_drom_copy_efi, %function
tb_drom_copy_efi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r4, r0
	ldr	r7, [r3]
	mov	r6, r1
	mov	r0, r7
	ldr	r1, .L10
	bl	device_property_count_u8
	cmp	r0, #3
	bgt	.L2
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10+8
	mov	r5, r0
	ldr	r1, [r3]
	bl	kmalloc
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r4]
	beq	.L9
	mov	r0, r7
	mov	r3, r5
	ldr	r1, .L10
	bl	device_property_read_u8_array
	cmp	r0, #0
	ldr	r2, [r4]
	bne	.L6
	ldr	r1, .L10+12
	ldr	r3, [r2]
	ldr	r1, [r1]
	add	r3, r3, r1
	cmp	r3, r5
	str	r3, [r6]
	pople	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r2
	bl	kfree
	mov	r2, #0
	ldr	r3, .L10+4
	str	r2, [r4]
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	EINVAL
	.word	GFP_KERNEL
	.word	TB_DROM_DATA_START
	.word	ENOMEM
	.size	tb_drom_copy_efi, .-tb_drom_copy_efi
	.comm	TB_DROM_DATA_START,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
