	.file	"extr_qla_attr.c_qla_set_ini_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Mode change accepted. From %s to %s, Tgt exchg %d|%d. ini exchg %d|%d\n"
	.align 8
.LC1:
	.string	"Mode is set. No action taken. From %s to %s, Tgt exchg %d|%d. ini exchg %d|%d\n"
	.align 8
.LC2:
	.string	"Target Mode is active. Unable to change Mode.\n"
	.align 8
.LC3:
	.string	"Mode unchange. No action taken. %d|%d pct %d|%d.\n"
	.text
	.p2align 4
	.type	qla_set_ini_mode, @function
qla_set_ini_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	r8, DWORD PTR [rdi]
	mov	ebx, esi
	cmp	r8d, 130
	je	.L2
	jg	.L3
	cmp	r8d, 128
	je	.L4
	cmp	r8d, 129
	jne	.L6
	mov	rdi, QWORD PTR 24[rdi]
	cmp	esi, 129
	je	.L41
	lea	eax, -130[rsi]
	cmp	eax, 1
	ja	.L42
	mov	rdx, QWORD PTR 32[rbp]
	mov	r10, QWORD PTR 8[rbp]
	xor	r12d, r12d
	mov	rcx, QWORD PTR 16[rbp]
.L19:
	mov	rax, QWORD PTR mode_to_str[rip]
	movsx	rsi, ebx
	mov	r9d, DWORD PTR [rax+rsi*4]
	mov	r8d, DWORD PTR [rax+r8*4]
	push	rdi
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	push	rdx
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ql_log_warn[rip]
	mov	edx, 65535
	xor	eax, eax
	push	r10
	.cfi_def_cfa_offset 56
	push	rcx
	.cfi_def_cfa_offset 64
	lea	rcx, .LC0[rip]
	call	ql_log@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 0[rbp], ebx
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 32[rbp], rax
	test	r12d, r12d
	jne	.L123
.L64:
	mov	DWORD PTR 44[rbp], 1
	mov	edi, DWORD PTR ISP_ABORT_NEEDED[rip]
	lea	rsi, 40[rbp]
	call	set_bit@PLT
.L91:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	r8d, 131
	jne	.L6
	cmp	esi, 130
	je	.L7
	jg	.L27
	cmp	esi, 128
	je	.L9
	cmp	esi, 129
	jne	.L6
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	jne	.L25
.L100:
	mov	rdi, QWORD PTR 24[rbp]
.L94:
	mov	rdx, QWORD PTR 32[rbp]
	mov	r10, QWORD PTR 8[rbp]
	mov	r12d, 1
	mov	rcx, QWORD PTR 16[rbp]
	movsx	r8, DWORD PTR 0[rbp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	esi, 130
	je	.L26
	jle	.L124
.L27:
	cmp	ebx, 131
	jne	.L6
	mov	rdi, rbp
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	jne	.L36
.L14:
	mov	rdi, QWORD PTR 24[rbp]
.L105:
	mov	rcx, QWORD PTR 32[rbp]
	mov	r10, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
.L103:
	movsx	r8, DWORD PTR 0[rbp]
.L18:
	mov	rax, QWORD PTR mode_to_str[rip]
	movsx	rsi, ebx
	mov	r9d, DWORD PTR [rax+rsi*4]
	mov	r8d, DWORD PTR [rax+r8*4]
	push	rdi
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	push	rcx
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ql_log_warn[rip]
	lea	rcx, .LC1[rip]
	xor	eax, eax
	push	r10
	.cfi_def_cfa_offset 56
	push	rdx
	.cfi_def_cfa_offset 64
	mov	edx, 65535
	call	ql_log@PLT
	mov	rax, QWORD PTR 8[rbp]
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	DWORD PTR 0[rbp], ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 32[rbp], rax
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	esi, 130
	je	.L46
	jle	.L125
	cmp	esi, 131
	je	.L51
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 16[rbp]
.L13:
	push	rdi
	.cfi_def_cfa_offset 40
	mov	edi, DWORD PTR ql_log_warn[rip]
	mov	r9d, ebx
	mov	edx, 65535
	push	rax
	.cfi_def_cfa_offset 48
	mov	rsi, rbp
	lea	rcx, .LC3[rip]
	xor	eax, eax
	call	ql_log@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rdx
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L125:
	.cfi_restore_state
	cmp	esi, 128
	je	.L48
	cmp	esi, 129
	jne	.L6
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	je	.L126
.L25:
	mov	edi, DWORD PTR ql_log_warn[rip]
	mov	edx, 65535
	mov	rsi, rbp
	xor	eax, eax
	lea	rcx, .LC2[rip]
	call	ql_log@PLT
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L124:
	cmp	esi, 128
	je	.L28
	cmp	esi, 129
	jne	.L6
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR 48[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	mov	r12d, DWORD PTR 4[rax]
	test	r12d, r12d
	jne	.L105
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L41:
	call	NEED_EXCH_OFFLOAD@PLT
	mov	rdx, QWORD PTR 48[rbp]
	cmp	eax, DWORD PTR [rdx]
	je	.L127
	mov	rdx, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	cmp	rdx, rdi
	je	.L98
.L95:
	call	NEED_EXCH_OFFLOAD@PLT
.L96:
	mov	rdi, QWORD PTR 24[rbp]
.L101:
	mov	rdx, QWORD PTR 32[rbp]
.L98:
	mov	r10, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 16[rbp]
.L97:
	movsx	r8, DWORD PTR 0[rbp]
	xor	r12d, r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rcx, QWORD PTR 32[rbp]
	mov	r10, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L123:
	mov	rdi, rbp
	call	qlt_set_mode@PLT
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L51:
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	jne	.L100
	mov	rdi, rbp
	call	qla_dual_mode_enabled@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	eax, eax
	jne	.L94
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L28:
	call	qla_tgt_mode_enabled@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	eax, eax
	jne	.L32
.L108:
	mov	rax, QWORD PTR 16[rbp]
.L109:
	mov	r8d, DWORD PTR 0[rbp]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	call	qla_tgt_mode_enabled@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L36
.L93:
	mov	rdi, QWORD PTR 24[rbp]
.L102:
	mov	rdx, QWORD PTR 32[rbp]
	mov	r10, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	movsx	r8, DWORD PTR 0[rbp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L48:
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	jne	.L100
	mov	rdi, rbp
	xor	r12d, r12d
	call	qla_dual_mode_enabled@PLT
	test	eax, eax
	setne	r12b
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L46:
	call	qla_tgt_mode_enabled@PLT
	test	eax, eax
	jne	.L55
	mov	rdi, rbp
	call	qla_dual_mode_enabled@PLT
	test	eax, eax
	je	.L128
.L55:
	mov	rdi, QWORD PTR 24[rbp]
	add	rdi, QWORD PTR 8[rbp]
	call	NEED_EXCH_OFFLOAD@PLT
	mov	rdx, QWORD PTR 48[rbp]
	cmp	eax, DWORD PTR [rdx]
	je	.L129
	mov	rcx, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	mov	r10, QWORD PTR 8[rbp]
	lea	rax, [rcx+rdx]
	lea	r8, [rdi+r10]
	cmp	rax, r8
	je	.L97
	mov	rdi, r8
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L7:
	call	qla_tgt_mode_enabled@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	eax, eax
	jne	.L94
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L26:
	call	qla_tgt_mode_enabled@PLT
	xor	r12d, r12d
	test	eax, eax
	setne	r12b
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, QWORD PTR 8[rbp]
	call	NEED_EXCH_OFFLOAD@PLT
	mov	rdx, QWORD PTR 48[rbp]
	cmp	eax, DWORD PTR [rdx]
	je	.L130
.L15:
	mov	rcx, QWORD PTR 16[rbp]
	mov	r10, QWORD PTR 8[rbp]
	cmp	rcx, r10
	je	.L131
	mov	rdi, r10
	jmp	.L95
	.p2align 4,,10
	.p2align 3
.L127:
	mov	rdi, QWORD PTR 24[rbp]
	cmp	QWORD PTR 32[rbp], rdi
	je	.L106
.L116:
	call	NEED_EXCH_OFFLOAD@PLT
	test	eax, eax
	jne	.L96
.L106:
	mov	rdi, QWORD PTR 8[rbp]
	jmp	.L108
	.p2align 4,,10
	.p2align 3
.L126:
	mov	rdi, rbp
	call	qla_dual_mode_enabled@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L25
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L131:
	mov	rdi, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 32[rbp]
	xor	r12d, r12d
	movsx	r8, DWORD PTR 0[rbp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L130:
	mov	rdx, QWORD PTR 16[rbp]
	mov	r10, QWORD PTR 8[rbp]
	cmp	rdx, r10
	jne	.L69
	mov	rdi, QWORD PTR 24[rbp]
	mov	rcx, QWORD PTR 32[rbp]
	movsx	r8, DWORD PTR 0[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	call	NEED_EXCH_OFFLOAD@PLT
	mov	rdx, QWORD PTR 48[rbp]
	cmp	eax, DWORD PTR [rdx]
	jne	.L15
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	cmp	rax, rdi
	je	.L109
	jmp	.L116
	.p2align 4,,10
	.p2align 3
.L129:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	r8, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 32[rbp]
	add	r8, rdi
	add	rdx, rax
	cmp	rdx, r8
	je	.L109
	mov	rdi, r8
	jmp	.L116
.L69:
	mov	rdi, r10
	call	NEED_EXCH_OFFLOAD@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	eax, eax
	je	.L105
	jmp	.L101
	.p2align 4,,10
	.p2align 3
.L128:
	mov	rdi, QWORD PTR 24[rbp]
	add	rdi, QWORD PTR 8[rbp]
	call	NEED_EXCH_OFFLOAD@PLT
	mov	rdx, QWORD PTR 48[rbp]
	cmp	eax, DWORD PTR [rdx]
	je	.L132
	mov	rdx, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	mov	r10, QWORD PTR 8[rbp]
	lea	rax, [rdx+rcx]
	lea	r8, [rdi+r10]
	cmp	rax, r8
	je	.L103
	mov	rdi, r8
	call	NEED_EXCH_OFFLOAD@PLT
	jmp	.L14
.L132:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	r8, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 32[rbp]
	add	r8, rdi
	add	rdx, rax
	cmp	rdx, r8
	je	.L109
	mov	rdi, r8
	call	NEED_EXCH_OFFLOAD@PLT
	test	eax, eax
	je	.L106
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	qla_set_ini_mode, .-qla_set_ini_mode
	.comm	ql_log_warn,4,4
	.comm	mode_to_str,8,8
	.comm	ISP_ABORT_NEEDED,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_qla_attr.c_qla_set_ini_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Mode change accepted. From %s to %s, Tgt exchg %d|%"
	.ascii	"d. ini exchg %d|%d\012\000"
	.align	2
.LC1:
	.ascii	"Mode is set. No action taken. From %s to %s, Tgt ex"
	.ascii	"chg %d|%d. ini exchg %d|%d\012\000"
	.align	2
.LC2:
	.ascii	"Target Mode is active. Unable to change Mode.\012\000"
	.align	2
.LC3:
	.ascii	"Mode unchange. No action taken. %d|%d pct %d|%d.\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla_set_ini_mode, %function
qla_set_ini_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	mov	r4, r0
	sub	r2, r3, #128
	mov	r5, r1
	sub	sp, sp, #24
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	sub	r2, r1, #128
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L10:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L28
.L5:
	sub	r2, r1, #128
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L49:
	.word	.L52
	.word	.L51
	.word	.L50
	.word	.L48
.L7:
	sub	r2, r1, #128
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L29:
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L28
.L6:
	cmp	r1, #129
	ldr	r0, [r0, #12]
	beq	.L42
	sub	r2, r1, #130
	cmp	r2, #1
	bhi	.L43
	ldmib	r4, {ip, lr}
	mov	r6, #0
	ldr	r1, [r4, #16]
.L20:
	ldr	r2, .L122
	str	r0, [sp, #20]
	ldr	r2, [r2]
	str	r1, [sp, #16]
	str	ip, [sp, #12]
	str	lr, [sp, #8]
	ldr	r0, [r2, r5, lsl #2]
	ldr	r1, .L122+4
	str	r0, [sp, #4]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [r1]
	ldr	r2, .L122+8
	str	r3, [sp]
	mov	r1, r4
	ldr	r3, .L122+12
	bl	ql_log
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #12]
	cmp	r6, #0
	str	r5, [r4]
	str	r2, [r4, #8]
	str	r3, [r4, #16]
	bne	.L113
.L65:
	mov	r2, #1
	ldr	r3, .L122+16
	str	r2, [r4, #24]
	ldr	r0, [r3]
	add	r1, r4, #20
	bl	set_bit
.L92:
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L28:
	mov	r0, r4
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	bne	.L37
.L15:
	ldr	r3, [r4]
.L100:
	ldmib	r4, {r1, ip}
.L102:
	ldr	lr, [r4, #16]
	ldr	r0, [r4, #12]
.L19:
	ldr	r2, .L122
	str	r0, [sp, #20]
	ldr	r2, [r2]
	str	r1, [sp, #12]
	str	lr, [sp, #16]
	str	ip, [sp, #8]
	ldr	r0, [r2, r5, lsl #2]
	ldr	r1, .L122+4
	str	r0, [sp, #4]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [r1]
	ldr	r2, .L122+8
	str	r3, [sp]
	mov	r1, r4
	ldr	r3, .L122+20
	bl	ql_log
	mov	r0, #0
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #12]
	str	r5, [r4]
	str	r2, [r4, #8]
	str	r3, [r4, #16]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L42:
	bl	NEED_EXCH_OFFLOAD
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L114
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	cmp	r1, r0
	bne	.L105
	ldm	r4, {r3, ip, lr}
	mov	r6, #0
	b	.L20
.L43:
	ldr	lr, [r4, #16]
	ldmib	r4, {r1, ip}
	b	.L19
.L113:
	mov	r0, r4
	bl	qlt_set_mode
	b	.L65
.L52:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	beq	.L64
.L99:
	ldr	r3, [r4]
.L96:
	mov	r6, #1
	ldmib	r4, {ip, lr}
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	b	.L20
.L11:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	ldr	r3, [r4]
	bne	.L96
	b	.L100
.L12:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	beq	.L99
.L26:
	ldr	r3, .L122+4
	mov	r1, r4
	ldr	r0, [r3]
	ldr	r2, .L122+8
	ldr	r3, .L122+24
	bl	ql_log
	b	.L92
.L13:
	bl	qla_tgt_mode_enabled
	subs	r6, r0, #0
	bne	.L37
.L95:
	ldr	r3, [r4]
.L97:
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	ldmib	r4, {ip, lr}
	b	.L20
.L30:
	bl	qla_tgt_mode_enabled
.L94:
	ldmib	r4, {ip, lr}
	subs	r6, r0, #0
	movne	r6, #1
	ldr	r3, [r4]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	b	.L20
.L31:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	bne	.L26
	ldr	r3, [r4, #28]
	ldr	r6, [r3, #4]
	ldr	r3, [r4]
	cmp	r6, #0
	bne	.L100
	b	.L97
.L32:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	bne	.L33
.L104:
	ldmib	r4, {r1, ip}
	ldr	r3, [r4]
.L14:
	stm	sp, {r3, r5, ip}
	ldr	r2, .L122+4
	str	r1, [sp, #12]
	ldr	r0, [r2]
	mov	r1, r4
	ldr	r3, .L122+28
	ldr	r2, .L122+8
	bl	ql_log
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L48:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	bne	.L99
	mov	r0, r4
	bl	qla_dual_mode_enabled
	cmp	r0, #0
	ldr	r3, [r4]
	bne	.L96
	b	.L100
.L50:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	bne	.L56
	mov	r0, r4
	bl	qla_dual_mode_enabled
	cmp	r0, #0
	beq	.L115
.L56:
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #4]
	add	r0, r0, r3
	bl	NEED_EXCH_OFFLOAD
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L116
	ldr	lr, [r4, #8]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	ldr	ip, [r4, #4]
	add	r2, lr, r1
	add	r3, r0, ip
	cmp	r2, r3
	beq	.L117
	mov	r0, r3
	bl	NEED_EXCH_OFFLOAD
	mov	r6, #0
	b	.L95
.L51:
	bl	qla_tgt_mode_enabled
	cmp	r0, #0
	bne	.L26
	mov	r0, r4
	bl	qla_dual_mode_enabled
	subs	r6, r0, #0
	bne	.L26
	b	.L95
.L114:
	ldr	r0, [r4, #12]
	ldr	r3, [r4, #16]
	cmp	r3, r0
	beq	.L104
.L74:
	bl	NEED_EXCH_OFFLOAD
	cmp	r0, #0
	ldr	r3, [r4]
	bne	.L58
.L2:
	ldmib	r4, {r1, ip}
	b	.L14
.L37:
	ldr	r0, [r4, #4]
	bl	NEED_EXCH_OFFLOAD
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L118
.L16:
	ldmib	r4, {ip, lr}
	cmp	lr, ip
	beq	.L119
	mov	r0, ip
.L105:
	bl	NEED_EXCH_OFFLOAD
	mov	r6, #0
	b	.L95
.L119:
	mov	r6, #0
	ldr	r3, [r4]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	b	.L20
.L118:
	ldmib	r4, {r1, ip}
	cmp	ip, r1
	bne	.L70
	ldr	r3, [r4]
	ldr	lr, [r4, #16]
	ldr	r0, [r4, #12]
	b	.L19
.L64:
	mov	r0, r4
	bl	qla_dual_mode_enabled
	b	.L94
.L33:
	ldr	r0, [r4, #4]
	bl	NEED_EXCH_OFFLOAD
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L16
	ldmib	r4, {r1, ip}
	cmp	ip, r1
	beq	.L103
	mov	r0, r1
	bl	NEED_EXCH_OFFLOAD
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L2
.L58:
	mov	r6, #0
	ldmib	r4, {ip, lr}
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	b	.L20
.L116:
	ldr	ip, [r4, #8]
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #12]
	add	r3, ip, r3
	add	r0, r1, r0
	cmp	r3, r0
	bne	.L74
.L103:
	ldr	r3, [r4]
	b	.L14
.L117:
	mov	r6, #0
	ldr	r3, [r4]
	b	.L20
.L70:
	mov	r0, r1
	bl	NEED_EXCH_OFFLOAD
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L100
	b	.L58
.L115:
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #4]
	add	r0, r0, r3
	bl	NEED_EXCH_OFFLOAD
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L120
	ldr	ip, [r4, #8]
	ldr	lr, [r4, #16]
	ldr	r0, [r4, #12]
	ldr	r1, [r4, #4]
	add	r2, ip, lr
	add	r3, r0, r1
	cmp	r2, r3
	beq	.L121
	mov	r0, r3
	bl	NEED_EXCH_OFFLOAD
	b	.L15
.L120:
	ldr	ip, [r4, #8]
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #12]
	add	r3, ip, r3
	add	r0, r1, r0
	cmp	r3, r0
	beq	.L103
	bl	NEED_EXCH_OFFLOAD
	ldmib	r4, {r1, ip}
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L14
	b	.L102
.L121:
	ldr	r3, [r4]
	b	.L19
.L123:
	.align	2
.L122:
	.word	mode_to_str
	.word	ql_log_warn
	.word	65535
	.word	.LC0
	.word	ISP_ABORT_NEEDED
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	qla_set_ini_mode, .-qla_set_ini_mode
	.comm	ql_log_warn,4,4
	.comm	mode_to_str,4,4
	.comm	ISP_ABORT_NEEDED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
