	.file	"extr_be_main.c_beiscsi_get_boot_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BM_%d : No boot session\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"BM_%d : Failed to allocate memory forbeiscsi_get_session_info\n"
	.align 8
.LC2:
	.string	"BM_%d : beiscsi_get_session_info Failed\n"
	.align 8
.LC3:
	.string	"BM_%d : beiscsi_get_session_info Failed"
	.text
	.p2align 4
	.type	beiscsi_get_boot_info, @function
beiscsi_get_boot_info:
.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
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rsi, 12[rsp]
	call	be_mgmt_get_boot_shandle@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	edi, DWORD PTR 0[rbp]
	lea	r13, 16[rsp]
	mov	esi, 4
	mov	rdx, r13
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 24[rsp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L12
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdx, r13
	mov	rdi, rbp
	call	mgmt_get_session_info@PLT
	mov	esi, eax
	test	eax, eax
	je	.L13
	mov	rcx, QWORD PTR 24[rsp]
	xor	edx, edx
	mov	rdi, rbp
	call	beiscsi_mccq_compl@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	rsi, QWORD PTR 24[rsp]
	lea	rdi, 4[rbp]
	mov	edx, 4
	call	memcpy@PLT
.L6:
	mov	ecx, DWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR 32[rsp]
	mov	edi, DWORD PTR 0[rbp]
	call	pci_free_consistent@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	edx, DWORD PTR BEISCSI_LOG_INIT[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR BEISCSI_LOG_CONFIG[rip]
	call	beiscsi_log@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	edx, DWORD PTR BEISCSI_LOG_INIT[rip]
	lea	rcx, .LC2[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR BEISCSI_LOG_CONFIG[rip]
	call	beiscsi_log@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	edx, DWORD PTR BEISCSI_LOG_INIT[rip]
	lea	rcx, .LC3[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR BEISCSI_LOG_CONFIG[rip]
	call	beiscsi_log@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	edx, DWORD PTR BEISCSI_LOG_INIT[rip]
	lea	rcx, .LC1[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR BEISCSI_LOG_CONFIG[rip]
	call	beiscsi_log@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	beiscsi_get_boot_info, .-beiscsi_get_boot_info
	.comm	KERN_ERR,4,4
	.comm	ENOMEM,4,4
	.comm	BEISCSI_LOG_INIT,4,4
	.comm	BEISCSI_LOG_CONFIG,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_be_main.c_beiscsi_get_boot_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BM_%d : No boot session\012\000"
	.align	2
.LC1:
	.ascii	"BM_%d : Failed to allocate memory forbeiscsi_get_se"
	.ascii	"ssion_info\012\000"
	.align	2
.LC2:
	.ascii	"BM_%d : beiscsi_get_session_info Failed\012\000"
	.align	2
.LC3:
	.ascii	"BM_%d : beiscsi_get_session_info Failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	beiscsi_get_boot_info, %function
beiscsi_get_boot_info:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #24
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	be_mgmt_get_boot_shandle
	subs	r4, r0, #0
	bne	.L11
	mov	r1, #4
	ldr	r0, [r5]
	add	r2, sp, #8
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [sp, #12]
	beq	.L12
	strb	r4, [r0]
	strb	r4, [r0, #1]
	strb	r4, [r0, #2]
	strb	r4, [r0, #3]
	ldr	r1, [sp, #4]
	mov	r0, r5
	add	r2, sp, #8
	bl	mgmt_get_session_info
	subs	r1, r0, #0
	beq	.L13
	mov	r2, r4
	mov	r0, r5
	ldr	r3, [sp, #12]
	bl	beiscsi_mccq_compl
	subs	r4, r0, #0
	bne	.L14
	mov	r2, #4
	ldr	r6, [sp, #12]
	add	r0, r5, r2
	mov	r1, r6
	bl	memcpy
.L6:
	mov	r2, r6
	ldr	r0, [r5]
	ldr	r3, [sp, #8]
	ldr	r1, [sp, #16]
	bl	pci_free_consistent
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L16+12
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r3, .L16+16
	bl	beiscsi_log
	b	.L1
.L13:
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L16+12
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r3, .L16+20
	bl	beiscsi_log
	ldr	r6, [sp, #12]
	b	.L6
.L14:
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L16+12
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r3, .L16+24
	bl	beiscsi_log
	ldr	r6, [sp, #12]
	b	.L6
.L12:
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L16+12
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r3, .L16+28
	bl	beiscsi_log
	ldr	r3, .L16+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	BEISCSI_LOG_INIT
	.word	BEISCSI_LOG_CONFIG
	.word	KERN_ERR
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	ENOMEM
	.size	beiscsi_get_boot_info, .-beiscsi_get_boot_info
	.comm	KERN_ERR,4,4
	.comm	ENOMEM,4,4
	.comm	BEISCSI_LOG_INIT,4,4
	.comm	BEISCSI_LOG_CONFIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
