	.file	"extr_fc_rport.c_fc_rport_adisc_resp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Received a ADISC response\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Received a ADISC resp but in state %s\n"
	.section	.rodata.str1.1
.LC2:
	.string	"ADISC error or mismatch\n"
.LC3:
	.string	"ADISC OK\n"
	.text
	.p2align 4
	.type	fc_rport_adisc_resp, @function
fc_rport_adisc_resp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rdx
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	FC_RPORT_DBG@PLT
	mov	edi, DWORD PTR FC_EX_CLOSED[rip]
	neg	edi
	call	ERR_PTR@PLT
	cmp	r12, rax
	je	.L2
	lea	rbp, 12[rbx]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rax, QWORD PTR RPORT_ST_ADISC[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L3
	mov	rdi, rbx
	call	fc_rport_state@PLT
	mov	rdi, rbx
	lea	rsi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	FC_RPORT_DBG@PLT
	mov	rdi, r12
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L4
.L5:
	mov	rdi, r12
	call	fc_frame_free@PLT
.L4:
	mov	rdi, rbp
	call	mutex_unlock@PLT
.L2:
	mov	esi, DWORD PTR fc_rport_destroy[rip]
	lea	rdi, 8[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	kref_put@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r12
	call	IS_ERR@PLT
	mov	rdi, r12
	test	rax, rax
	jne	.L12
	call	fc_frame_payload_op@PLT
	mov	esi, 12
	mov	rdi, r12
	mov	r13, rax
	call	fc_frame_payload_get@PLT
	cmp	QWORD PTR ELS_LS_ACC[rip], r13
	mov	r14, rax
	jne	.L9
	test	rax, rax
	jne	.L7
.L9:
	mov	rdi, rbx
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	FC_RPORT_DBG@PLT
	mov	rdi, rbx
	call	fc_rport_enter_flogi@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	call	PTR_ERR@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	fc_rport_error@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 8[rax]
	call	ntoh24@PLT
	cmp	rax, QWORD PTR 16[rbx]
	jne	.L9
	lea	rdi, 4[r14]
	call	get_unaligned_be64@PLT
	cmp	rax, QWORD PTR 24[rbx]
	jne	.L9
	mov	rdi, r14
	call	get_unaligned_be64@PLT
	cmp	rax, QWORD PTR 32[rbx]
	jne	.L9
	mov	rdi, rbx
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	FC_RPORT_DBG@PLT
	mov	rdi, rbx
	call	fc_rport_enter_ready@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	fc_rport_adisc_resp, .-fc_rport_adisc_resp
	.comm	fc_rport_destroy,4,4
	.comm	RPORT_ST_ADISC,8,8
	.comm	FC_EX_CLOSED,4,4
	.comm	ELS_LS_ACC,8,8
	.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_fc_rport.c_fc_rport_adisc_resp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Received a ADISC response\012\000"
	.align	2
.LC1:
	.ascii	"Received a ADISC resp but in state %s\012\000"
	.align	2
.LC2:
	.ascii	"ADISC error or mismatch\012\000"
	.align	2
.LC3:
	.ascii	"ADISC OK\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fc_rport_adisc_resp, %function
fc_rport_adisc_resp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r2
	mov	r5, r1
	ldr	r1, .L12
	mov	r4, r2
	bl	FC_RPORT_DBG
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	cmp	r5, r0
	beq	.L2
	add	r6, r4, #8
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, .L12+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	mov	r0, r4
	bl	fc_rport_state
	ldr	r1, .L12+12
	mov	r2, r0
	mov	r0, r4
	bl	FC_RPORT_DBG
	mov	r0, r5
	bl	IS_ERR
	cmp	r0, #0
	bne	.L4
.L5:
	mov	r0, r5
	bl	fc_frame_free
.L4:
	mov	r0, r6
	bl	mutex_unlock
.L2:
	ldr	r3, .L12+16
	add	r0, r4, #4
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	kref_put
.L3:
	mov	r0, r5
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r5
	bne	.L11
	bl	fc_frame_payload_op
	mov	r1, #12
	mov	r7, r0
	mov	r0, r5
	bl	fc_frame_payload_get
	clz	r3, r0
	ldr	r2, .L12+20
	lsr	r3, r3, #5
	ldr	r2, [r2]
	mov	r8, r0
	cmp	r2, r7
	orrne	r3, r3, #1
	cmp	r3, #0
	beq	.L7
.L8:
	mov	r0, r4
	ldr	r1, .L12+24
	bl	FC_RPORT_DBG
	mov	r0, r4
	bl	fc_rport_enter_flogi
	b	.L5
.L11:
	bl	PTR_ERR
	mov	r1, r0
	mov	r0, r4
	bl	fc_rport_error
	b	.L4
.L7:
	ldr	r0, [r0, #8]
	bl	ntoh24
	ldr	r3, [r4, #12]
	cmp	r0, r3
	bne	.L8
	add	r0, r8, #4
	bl	get_unaligned_be64
	ldr	r3, [r4, #16]
	cmp	r0, r3
	bne	.L8
	mov	r0, r8
	bl	get_unaligned_be64
	ldr	r3, [r4, #20]
	cmp	r0, r3
	bne	.L8
	mov	r0, r4
	ldr	r1, .L12+28
	bl	FC_RPORT_DBG
	mov	r0, r4
	bl	fc_rport_enter_ready
	b	.L5
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	FC_EX_CLOSED
	.word	RPORT_ST_ADISC
	.word	.LC1
	.word	fc_rport_destroy
	.word	ELS_LS_ACC
	.word	.LC2
	.word	.LC3
	.size	fc_rport_adisc_resp, .-fc_rport_adisc_resp
	.comm	fc_rport_destroy,4,4
	.comm	RPORT_ST_ADISC,4,4
	.comm	FC_EX_CLOSED,4,4
	.comm	ELS_LS_ACC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
