	.file	"extr_be_main.c_beiscsi_setup_boot_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	beiscsi_setup_boot_info, @function
beiscsi_setup_boot_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	beiscsi_get_boot_info@PLT
	test	rax, rax
	je	.L2
.L10:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	iscsi_boot_create_host_kset@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L24
	mov	rdi, QWORD PTR 8[rbx]
	call	scsi_host_get@PLT
	test	eax, eax
	jne	.L26
.L6:
	mov	edi, DWORD PTR [rbx]
	call	iscsi_boot_destroy_kset@PLT
.L24:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	r9d, DWORD PTR beiscsi_boot_release[rip]
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdx, rbx
	mov	r8d, DWORD PTR beiscsi_tgt_get_attr_visibility[rip]
	mov	ecx, DWORD PTR beiscsi_show_boot_tgt_info[rip]
	call	iscsi_boot_create_target@PLT
	test	rax, rax
	je	.L9
	mov	rdi, QWORD PTR 8[rbx]
	call	scsi_host_get@PLT
	test	eax, eax
	je	.L6
	mov	r9d, DWORD PTR beiscsi_boot_release[rip]
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdx, rbx
	mov	r8d, DWORD PTR beiscsi_ini_get_attr_visibility[rip]
	mov	ecx, DWORD PTR beiscsi_show_boot_ini_info[rip]
	call	iscsi_boot_create_initiator@PLT
	test	rax, rax
	je	.L9
	mov	rdi, QWORD PTR 8[rbx]
	call	scsi_host_get@PLT
	test	eax, eax
	je	.L6
	mov	r9d, DWORD PTR beiscsi_boot_release[rip]
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdx, rbx
	mov	r8d, DWORD PTR beiscsi_eth_get_attr_visibility[rip]
	mov	ecx, DWORD PTR beiscsi_show_boot_eth_info[rip]
	call	iscsi_boot_create_ethernet@PLT
	test	rax, rax
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 8[rbx]
	call	scsi_host_put@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	beiscsi_setup_boot_info, .-beiscsi_setup_boot_info
	.comm	beiscsi_tgt_get_attr_visibility,4,4
	.comm	beiscsi_show_boot_tgt_info,4,4
	.comm	beiscsi_show_boot_ini_info,4,4
	.comm	beiscsi_show_boot_eth_info,4,4
	.comm	beiscsi_ini_get_attr_visibility,4,4
	.comm	beiscsi_eth_get_attr_visibility,4,4
	.comm	beiscsi_boot_release,4,4
	.comm	ENOMEM,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_setup_boot_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	beiscsi_setup_boot_info, %function
beiscsi_setup_boot_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	bl	beiscsi_get_boot_info
	subs	r5, r0, #0
	beq	.L2
.L10:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r4, #4]
	ldr	r0, [r3]
	bl	iscsi_boot_create_host_kset
	cmp	r0, #0
	str	r0, [r4]
	beq	.L24
	ldr	r0, [r4, #4]
	bl	scsi_host_get
	cmp	r0, #0
	bne	.L26
.L6:
	ldr	r0, [r4]
	bl	iscsi_boot_destroy_kset
.L24:
	ldr	r3, .L27
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r3, .L27+4
	ldr	r6, .L27+8
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r3, .L27+12
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r5
	mov	r2, r4
	ldr	r3, [r3]
	ldr	r0, [r4]
	bl	iscsi_boot_create_target
	cmp	r0, #0
	beq	.L9
	ldr	r0, [r4, #4]
	bl	scsi_host_get
	cmp	r0, #0
	beq	.L6
	ldr	r2, .L27+16
	ldr	r3, .L27+20
	ldr	r1, [r2]
	ldr	r2, [r6]
	str	r1, [sp]
	ldr	r3, [r3]
	str	r2, [sp, #4]
	mov	r1, r5
	mov	r2, r4
	ldr	r0, [r4]
	bl	iscsi_boot_create_initiator
	cmp	r0, #0
	beq	.L9
	ldr	r0, [r4, #4]
	bl	scsi_host_get
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L27+24
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, .L27+28
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r5
	mov	r2, r4
	ldr	r3, [r3]
	ldr	r0, [r4]
	bl	iscsi_boot_create_ethernet
	cmp	r0, #0
	bne	.L10
.L9:
	ldr	r0, [r4, #4]
	bl	scsi_host_put
	b	.L6
.L28:
	.align	2
.L27:
	.word	ENOMEM
	.word	beiscsi_tgt_get_attr_visibility
	.word	beiscsi_boot_release
	.word	beiscsi_show_boot_tgt_info
	.word	beiscsi_ini_get_attr_visibility
	.word	beiscsi_show_boot_ini_info
	.word	beiscsi_eth_get_attr_visibility
	.word	beiscsi_show_boot_eth_info
	.size	beiscsi_setup_boot_info, .-beiscsi_setup_boot_info
	.comm	beiscsi_tgt_get_attr_visibility,4,4
	.comm	beiscsi_show_boot_tgt_info,4,4
	.comm	beiscsi_show_boot_ini_info,4,4
	.comm	beiscsi_show_boot_eth_info,4,4
	.comm	beiscsi_ini_get_attr_visibility,4,4
	.comm	beiscsi_eth_get_attr_visibility,4,4
	.comm	beiscsi_boot_release,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
