	.file	"extr_bfa_ioc.c_bfa_flash_attach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfa_flash_attach
	.type	bfa_flash_attach, @function
bfa_flash_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, DWORD PTR bfa_flash_intr[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rsi
	mov	QWORD PTR 16[rbx], rsi
	mov	esi, DWORD PTR BFI_MC_FLASH[rip]
	lea	r12, 24[rbx]
	mov	QWORD PTR 56[rbx], rcx
	mov	rcx, rbx
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	mov	QWORD PTR 32[rbx], 0
	call	bfa_ioc_mbox_regisr@PLT
	mov	rdi, r12
	call	bfa_q_qe_init@PLT
	mov	esi, DWORD PTR bfa_flash_notify[rip]
	mov	rdi, r12
	mov	rdx, rbx
	call	bfa_ioc_notify_init@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdi, r12
	call	list_add_tail@PLT
	test	rbp, rbp
	je	.L1
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfa_flash_attach, .-bfa_flash_attach
	.comm	bfa_flash_notify,4,4
	.comm	bfa_flash_intr,4,4
	.comm	BFI_MC_FLASH,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_flash_attach.c"
	.text
	.align	2
	.global	bfa_flash_attach
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfa_flash_attach, %function
bfa_flash_attach:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, #0
	mov	r0, r1
	ldr	r2, .L8
	ldr	r1, .L8+4
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r6, r4, #12
	str	r3, [r4, #28]
	str	r0, [r4, #8]
	mov	r3, r4
	str	r5, [r4, #24]
	str	r5, [r4, #20]
	str	r5, [r4, #16]
	ldr	r7, [sp, #24]
	bl	bfa_ioc_mbox_regisr
	mov	r0, r6
	bl	bfa_q_qe_init
	ldr	r3, .L8+8
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r6
	bl	bfa_ioc_notify_init
	mov	r0, r6
	ldr	r1, [r4, #8]
	bl	list_add_tail
	cmp	r7, r5
	strne	r5, [r4, #4]
	strne	r5, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	bfa_flash_intr
	.word	BFI_MC_FLASH
	.word	bfa_flash_notify
	.size	bfa_flash_attach, .-bfa_flash_attach
	.comm	bfa_flash_notify,4,4
	.comm	bfa_flash_intr,4,4
	.comm	BFI_MC_FLASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
