	.file	"extr_iscsi_target_tpg.c_iscsit_tpg_enable_portal_group.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"iSCSI target portal group: %hu is already active, ignoring request.\n"
	.align 8
.LC1:
	.string	"iSCSI_TPG[%hu] - Enabled iSCSI Target Portal Group\n"
	.text
	.p2align 4
	.globl	iscsit_tpg_enable_portal_group
	.type	iscsit_tpg_enable_portal_group, @function
iscsit_tpg_enable_portal_group:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR TPG_STATE_ACTIVE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L14
	mov	r12, QWORD PTR 32[rdi]
	mov	esi, DWORD PTR 24[rdi]
	mov	edi, DWORD PTR AUTHMETHOD[rip]
	call	iscsi_find_param_from_key@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	rbp, rbp
	je	.L1
	cmp	QWORD PTR 16[rbx], 0
	jne	.L5
.L7:
	lea	rbp, 12[rbx]
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	rax, QWORD PTR TPG_STATE_ACTIVE[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rbx], rax
	call	spin_unlock@PLT
	mov	rdi, r12
	call	spin_lock@PLT
	add	DWORD PTR 4[r12], 1
	mov	esi, DWORD PTR 8[rbx]
	lea	rdi, .LC1[rip]
	call	pr_debug@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	xor	eax, eax
.L1:
	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
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR NONE[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	esi, DWORD PTR CHAP[rip]
	mov	rdi, rbp
	call	iscsi_update_param_value@PLT
	test	eax, eax
	jne	.L1
.L8:
	mov	esi, 1
	mov	rdi, rbx
	call	iscsit_ta_authentication@PLT
	test	eax, eax
	jns	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	iscsit_tpg_enable_portal_group, .-iscsit_tpg_enable_portal_group
	.comm	TPG_STATE_ACTIVE,8,8
	.comm	NONE,4,4
	.comm	EINVAL,4,4
	.comm	CHAP,4,4
	.comm	AUTHMETHOD,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_iscsi_target_tpg.c_iscsit_tpg_enable_portal_group.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iSCSI target portal group: %hu is already active, i"
	.ascii	"gnoring request.\012\000"
	.align	2
.LC1:
	.ascii	"iSCSI_TPG[%hu] - Enabled iSCSI Target Portal Group\012"
	.ascii	"\000"
	.text
	.align	2
	.global	iscsit_tpg_enable_portal_group
	.syntax unified
	.arm
	.fpu softvfp
	.type	iscsit_tpg_enable_portal_group, %function
iscsit_tpg_enable_portal_group:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L17
	ldr	r2, [r0]
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r2, r3
	beq	.L15
	ldr	r3, .L17+4
	ldr	r1, [r0, #16]
	ldr	r0, [r3]
	ldr	r6, [r4, #20]
	bl	iscsi_find_param_from_key
	subs	r5, r0, #0
	beq	.L16
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L17+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	bne	.L8
	ldr	r3, .L17+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	iscsi_update_param_value
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, #1
	mov	r0, r4
	bl	iscsit_ta_authentication
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
.L7:
	add	r5, r4, #8
	mov	r0, r5
	bl	spin_lock
	ldr	r3, [r7]
	mov	r0, r5
	str	r3, [r4]
	bl	spin_unlock
	mov	r0, r6
	bl	spin_lock
	ldr	r3, [r6, #4]
	ldr	r1, [r4, #4]
	add	r3, r3, #1
	str	r3, [r6, #4]
	ldr	r0, .L17+16
	bl	pr_debug
	mov	r0, r6
	bl	spin_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r1, [r0, #4]
	ldr	r0, .L17+20
	bl	pr_err
	ldr	r3, .L17+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	TPG_STATE_ACTIVE
	.word	AUTHMETHOD
	.word	NONE
	.word	CHAP
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.size	iscsit_tpg_enable_portal_group, .-iscsit_tpg_enable_portal_group
	.comm	TPG_STATE_ACTIVE,4,4
	.comm	NONE,4,4
	.comm	EINVAL,4,4
	.comm	CHAP,4,4
	.comm	AUTHMETHOD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
