	.file	"extr_core.c_c2port_read_flash_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot read %s flash\n"
	.text
	.p2align 4
	.type	c2port_read_flash_data, @function
c2port_read_flash_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rsi
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	kobj_to_dev@PLT
	mov	edi, eax
	call	dev_get_drvdata@PLT
	mov	edx, DWORD PTR 16[rax]
	test	edx, edx
	je	.L2
	mov	rbx, rax
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	jne	.L3
.L2:
	mov	r12, QWORD PTR EBUSY[rip]
	neg	r12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	lea	rbp, 8[rbx]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rsi, r12
	mov	rdi, rbx
	mov	rcx, r14
	mov	edx, r13d
	call	__c2port_read_flash_data@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	mutex_unlock@PLT
	test	r12, r12
	jns	.L1
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	c2port_read_flash_data, .-c2port_read_flash_data
	.comm	EBUSY,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_core.c_c2port_read_flash_data.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot read %s flash\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	c2port_read_flash_data, %function
c2port_read_flash_data:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r5, r3
	bl	kobj_to_dev
	bl	dev_get_drvdata
	ldr	r3, [r0, #16]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r0, #12]
	mov	r4, r0
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L10
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L3:
	add	r6, r0, #8
	mov	r0, r6
	bl	mutex_lock
	mov	r1, r5
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #16]
	mov	r0, r4
	bl	__c2port_read_flash_data
	mov	r5, r0
	mov	r0, r6
	bl	mutex_unlock
	cmp	r5, #0
	bge	.L1
	ldr	r2, [r4]
	ldr	r0, [r4, #4]
	ldr	r1, .L10+4
	bl	dev_err
	b	.L1
.L11:
	.align	2
.L10:
	.word	EBUSY
	.word	.LC0
	.size	c2port_read_flash_data, .-c2port_read_flash_data
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
