	.file	"extr_iscsi.c_iscsi_action.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NULL conn"
.LC1:
	.string	"FreeBSD"
.LC2:
	.string	"iSCSI"
	.text
	.p2align 4
	.type	iscsi_action, @function
iscsi_action:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	call	cam_sim_softc@PLT
	mov	r12, rax
	mov	rdi, rax
	call	ISCSI_SESSION_LOCK_ASSERT@PLT
	cmp	QWORD PTR 16[r12], 0
	jne	.L2
	mov	ecx, DWORD PTR [r12]
	test	ecx, ecx
	je	.L17
.L3:
	mov	eax, DWORD PTR 0[rbp]
	sub	eax, 129
	cmp	eax, 5
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L4-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	QWORD PTR fail_on_disconnection[rip], 0
	je	.L3
.L2:
	mov	rax, QWORD PTR CAM_DEV_NOT_THERE[rip]
.L15:
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	xpt_done@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	iscsi_action_abort@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	iscsi_action_scsiio@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR PI_TAG_ABLE[rip]
	mov	rdx, QWORD PTR 8[r12]
	mov	DWORD PTR 0[rbp], 1
	mov	DWORD PTR 100[rbp], 0
	mov	DWORD PTR 104[rbp], eax
	mov	eax, DWORD PTR PIM_EXTLUNS[rip]
	mov	DWORD PTR 96[rbp], eax
	test	rdx, rdx
	je	.L18
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	je	.L12
	or	eax, DWORD PTR PIM_UNMAPPED[rip]
	mov	DWORD PTR 96[rbp], eax
.L12:
	mov	edi, DWORD PTR 80[rbp]
	mov	edx, DWORD PTR SIM_IDLEN[rip]
	mov	DWORD PTR 4[rbp], 255
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 84[rbp], -1
	mov	QWORD PTR 88[rbp], 0
	call	strlcpy@PLT
	mov	edi, DWORD PTR 76[rbp]
	mov	edx, DWORD PTR HBA_IDLEN[rip]
	lea	rsi, .LC2[rip]
	call	strlcpy@PLT
	mov	r12d, DWORD PTR DEV_IDLEN[rip]
	mov	rdi, r13
	call	cam_sim_name@PLT
	mov	edi, DWORD PTR 72[rbp]
	mov	edx, r12d
	mov	rsi, rax
	call	strlcpy@PLT
	mov	rdi, r13
	call	cam_sim_unit@PLT
	mov	rdi, r13
	mov	DWORD PTR 68[rbp], eax
	call	cam_sim_bus@PLT
	mov	DWORD PTR 8[rbp], 150000
	mov	rdi, rbp
	mov	DWORD PTR 64[rbp], eax
	mov	rax, QWORD PTR XPORT_ISCSI[rip]
	mov	DWORD PTR 48[rbp], 0
	mov	QWORD PTR 56[rbp], rax
	mov	rax, QWORD PTR PROTO_SCSI[rip]
	mov	QWORD PTR 40[rbp], rax
	mov	rax, QWORD PTR SCSI_REV_SPC3[rip]
	mov	QWORD PTR 32[rbp], rax
	mov	eax, DWORD PTR MAXPHYS[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR CAM_REQ_CMP[rip]
	mov	QWORD PTR 16[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	xpt_done@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR PROTO_SCSI[rip]
	mov	DWORD PTR 8[rbp], 0
	mov	rdi, rbp
	mov	QWORD PTR 32[rbp], rax
	mov	rax, QWORD PTR SCSI_REV_SPC3[rip]
	mov	QWORD PTR 24[rbp], rax
	mov	rax, QWORD PTR XPORT_ISCSI[rip]
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR CTS_SCSI_VALID_TQ[rip]
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR CTS_SCSI_FLAGS_TAG_ENB[rip]
	mov	DWORD PTR 40[rbp], eax
	mov	rax, QWORD PTR CAM_REQ_CMP[rip]
	mov	QWORD PTR 0[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	xpt_done@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, 1
	call	cam_calc_geometry@PLT
	mov	rax, QWORD PTR CAM_REQ_CMP[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	xpt_done@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR CAM_FUNC_NOTAVAIL[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC0[rip]
	call	ISCSI_WARN@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	iscsi_action, .-iscsi_action
	.comm	fail_on_disconnection,8,8
	.comm	XPORT_ISCSI,8,8
	.comm	SIM_IDLEN,4,4
	.comm	SCSI_REV_SPC3,8,8
	.comm	PROTO_SCSI,8,8
	.comm	PI_TAG_ABLE,4,4
	.comm	PIM_UNMAPPED,4,4
	.comm	PIM_EXTLUNS,4,4
	.comm	MAXPHYS,4,4
	.comm	HBA_IDLEN,4,4
	.comm	DEV_IDLEN,4,4
	.comm	CTS_SCSI_VALID_TQ,4,4
	.comm	CTS_SCSI_FLAGS_TAG_ENB,4,4
	.comm	CAM_REQ_CMP,8,8
	.comm	CAM_FUNC_NOTAVAIL,8,8
	.comm	CAM_DEV_NOT_THERE,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_iscsi.c_iscsi_action.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NULL conn\000"
	.align	2
.LC1:
	.ascii	"FreeBSD\000"
	.align	2
.LC2:
	.ascii	"iSCSI\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iscsi_action, %function
iscsi_action:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	cam_sim_softc
	mov	r5, r0
	bl	ISCSI_SESSION_LOCK_ASSERT
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
.L3:
	ldr	r3, [r4]
	sub	r3, r3, #129
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L4
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L2:
	ldr	r3, .L23+4
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	xpt_done
.L5:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	iscsi_action_abort
.L10:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	iscsi_action_scsiio
.L9:
	mov	r1, #0
	mov	r0, #1
	ldr	ip, .L23+8
	ldr	r2, .L23+12
	ldr	r3, [r5, #4]
	ldr	ip, [ip]
	ldr	r2, [r2]
	cmp	r3, r1
	str	ip, [r4, #76]
	str	r2, [r4, #68]
	str	r0, [r4]
	str	r1, [r4, #72]
	beq	.L22
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, .L23+16
	ldrne	r3, [r3]
	orrne	r2, r3, r2
	strne	r2, [r4, #68]
.L12:
	mov	r5, #0
	mov	r1, #255
	mvn	r2, #0
	ldr	r3, .L23+20
	str	r1, [r4, #4]
	str	r2, [r4, #56]
	ldr	r1, .L23+24
	ldr	r2, [r3]
	ldr	r0, [r4, #52]
	str	r5, [r4, #64]
	str	r5, [r4, #60]
	bl	strlcpy
	ldr	r3, .L23+28
	ldr	r1, .L23+32
	ldr	r2, [r3]
	ldr	r0, [r4, #48]
	bl	strlcpy
	mov	r0, r6
	ldr	r7, [r4, #44]
	bl	cam_sim_name
	ldr	r3, .L23+36
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r7
	bl	strlcpy
	mov	r0, r6
	bl	cam_sim_unit
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #40]
	bl	cam_sim_bus
	ldr	lr, .L23+40
	ldr	ip, .L23+44
	ldr	r1, .L23+48
	ldr	r2, .L23+52
	ldr	r3, .L23+56
	ldr	r6, [lr]
	ldr	lr, [ip]
	ldr	ip, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L23+60
	str	r0, [r4, #36]
	str	r5, [r4, #28]
	mov	r0, r4
	str	r6, [r4, #32]
	str	lr, [r4, #24]
	str	ip, [r4, #20]
	str	r1, [r4, #16]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	xpt_done
.L8:
	mov	r3, #0
	ldr	lr, .L23+44
	ldr	ip, .L23+48
	ldr	r0, .L23+40
	ldr	r1, .L23+64
	ldr	r2, .L23+68
	ldr	r5, [lr]
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, .L23+56
	str	r0, [r4, #24]
	ldr	r2, [r2]
	mov	r0, r4
	stm	r4, {r2, r3}
	str	r5, [r4, #16]
	str	lr, [r4, #12]
	str	ip, [r4, #8]
	str	r1, [r4, #20]
	pop	{r4, r5, r6, r7, r8, lr}
	b	xpt_done
.L7:
	mov	r0, r4
	mov	r1, #1
	bl	cam_calc_geometry
	ldr	r3, .L23+56
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	xpt_done
.L4:
	ldr	r3, .L23+72
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	xpt_done
.L22:
	ldr	r0, .L23+76
	bl	ISCSI_WARN
	b	.L12
.L24:
	.align	2
.L23:
	.word	fail_on_disconnection
	.word	CAM_DEV_NOT_THERE
	.word	PI_TAG_ABLE
	.word	PIM_EXTLUNS
	.word	PIM_UNMAPPED
	.word	SIM_IDLEN
	.word	.LC1
	.word	HBA_IDLEN
	.word	.LC2
	.word	DEV_IDLEN
	.word	XPORT_ISCSI
	.word	PROTO_SCSI
	.word	SCSI_REV_SPC3
	.word	MAXPHYS
	.word	CAM_REQ_CMP
	.word	150000
	.word	CTS_SCSI_VALID_TQ
	.word	CTS_SCSI_FLAGS_TAG_ENB
	.word	CAM_FUNC_NOTAVAIL
	.word	.LC0
	.size	iscsi_action, .-iscsi_action
	.comm	fail_on_disconnection,4,4
	.comm	XPORT_ISCSI,4,4
	.comm	SIM_IDLEN,4,4
	.comm	SCSI_REV_SPC3,4,4
	.comm	PROTO_SCSI,4,4
	.comm	PI_TAG_ABLE,4,4
	.comm	PIM_UNMAPPED,4,4
	.comm	PIM_EXTLUNS,4,4
	.comm	MAXPHYS,4,4
	.comm	HBA_IDLEN,4,4
	.comm	DEV_IDLEN,4,4
	.comm	CTS_SCSI_VALID_TQ,4,4
	.comm	CTS_SCSI_FLAGS_TAG_ENB,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_FUNC_NOTAVAIL,4,4
	.comm	CAM_DEV_NOT_THERE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
