	.file	"extr_bfa_ioc.c_bfa_nw_flash_read_part.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfa_nw_flash_read_part
	.type	bfa_nw_flash_read_part, @function
bfa_nw_flash_read_part:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 52[rdi]
	call	bfa_nw_ioc_is_operational@PLT
	test	eax, eax
	je	.L12
	test	ebx, ebx
	je	.L4
	test	bl, 3
	jne	.L4
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR BFA_STATUS_DEVBUSY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR BFA_STATUS_FLASH_BAD_LEN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR BFA_STATUS_IOC_NON_OP[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR 64[rsp]
	mov	DWORD PTR 4[rbp], r14d
	mov	rdi, rbp
	mov	DWORD PTR 32[rbp], r13d
	mov	DWORD PTR 48[rbp], eax
	mov	rax, QWORD PTR 72[rsp]
	mov	DWORD PTR 8[rbp], ebx
	mov	DWORD PTR 12[rbp], r15d
	mov	QWORD PTR 16[rbp], r12
	mov	DWORD PTR 0[rbp], 1
	mov	QWORD PTR 40[rbp], rax
	mov	QWORD PTR 24[rbp], 0
	call	bfa_flash_read_send@PLT
	mov	eax, DWORD PTR BFA_STATUS_OK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfa_nw_flash_read_part, .-bfa_nw_flash_read_part
	.comm	BFA_STATUS_OK,4,4
	.comm	BFA_STATUS_IOC_NON_OP,4,4
	.comm	BFA_STATUS_FLASH_BAD_LEN,4,4
	.comm	BFA_STATUS_DEVBUSY,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_bfa_ioc.c_bfa_nw_flash_read_part.c"
	.text
	.align	2
	.global	bfa_nw_flash_read_part
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfa_nw_flash_read_part, %function
bfa_nw_flash_read_part:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #36]
	mov	r8, r1
	mov	r7, r2
	mov	r5, r3
	ldr	r6, [sp, #24]
	bl	bfa_nw_ioc_is_operational
	cmp	r0, #0
	beq	.L12
	cmp	r6, #0
	beq	.L4
	tst	r6, #3
	bne	.L4
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r2, #1
	ldr	r1, [sp, #32]
	str	r3, [r4, #20]
	str	r1, [r4, #32]
	ldr	r3, [sp, #28]
	ldr	r1, [sp, #36]
	str	r3, [r4, #12]
	mov	r0, r4
	str	r1, [r4, #28]
	str	r8, [r4, #4]
	str	r7, [r4, #24]
	str	r6, [r4, #8]
	str	r5, [r4, #16]
	str	r2, [r4]
	bl	bfa_flash_read_send
	ldr	r3, .L13+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	BFA_STATUS_DEVBUSY
	.word	BFA_STATUS_FLASH_BAD_LEN
	.word	BFA_STATUS_IOC_NON_OP
	.word	BFA_STATUS_OK
	.size	bfa_nw_flash_read_part, .-bfa_nw_flash_read_part
	.comm	BFA_STATUS_OK,4,4
	.comm	BFA_STATUS_IOC_NON_OP,4,4
	.comm	BFA_STATUS_FLASH_BAD_LEN,4,4
	.comm	BFA_STATUS_DEVBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
