	.file	"extr_isp_freebsd.c_isp_gdt_task.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Chan %d GDT timer expired"
.LC1:
	.string	"Gone Device Timeout"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Chan %d Stopping Gone Device Timer @ %lu"
	.text
	.p2align 4
	.type	isp_gdt_task, @function
isp_gdt_task:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r15, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, rdi
	sub	rax, QWORD PTR [r15]
	mov	rdi, r15
	sar	rax, 5
	mov	rbx, rax
	mov	QWORD PTR 8[rsp], rax
	mov	ebp, eax
	call	ISP_LOCK@PLT
	mov	esi, DWORD PTR ISP_LOGDEBUG0[rip]
	mov	ecx, ebx
	mov	rdi, r15
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	isp_prt@PLT
	mov	esi, DWORD PTR MAX_FC_TARG[rip]
	test	esi, esi
	jle	.L2
	mov	DWORD PTR 4[rsp], 0
	xor	ebx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	sub	rax, 1
	add	DWORD PTR 4[rsp], 1
	mov	QWORD PTR 8[r14], rax
.L3:
	add	rbx, 1
	cmp	DWORD PTR MAX_FC_TARG[rip], ebx
	jle	.L21
.L7:
	mov	esi, ebp
	mov	rdi, r15
	mov	r12d, ebx
	call	FCPARAM@PLT
	mov	r8, rax
	lea	rax, [rbx+rbx*4]
	mov	rdx, QWORD PTR [r8]
	lea	r14, [rdx+rax*8]
	mov	rax, QWORD PTR FC_PORTDB_STATE_ZOMBIE[rip]
	cmp	QWORD PTR [r14], rax
	jne	.L3
	mov	rax, QWORD PTR 8[r14]
	test	rax, rax
	jne	.L22
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	lea	rax, .LC1[rip]
	mov	ecx, ebp
	mov	r8d, ebx
	mov	r9d, DWORD PTR 16[r14]
	movsx	rdx, DWORD PTR prom3[rip]
	push	rax
	.cfi_def_cfa_offset 128
	mov	rdi, r15
	mov	esi, DWORD PTR ISP_LOGCONFIG[rip]
	xor	eax, eax
	call	isp_prt@PLT
	cmp	QWORD PTR 32[r14], 0
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	jne	.L23
.L5:
	cmp	QWORD PTR 24[r14], 0
	jne	.L24
.L6:
	mov	rax, QWORD PTR FC_PORTDB_STATE_NIL[rip]
	add	rbx, 1
	cmp	DWORD PTR MAX_FC_TARG[rip], ebx
	mov	QWORD PTR [r14], rax
	jg	.L7
.L21:
	cmp	QWORD PTR 8[r13], 0
	je	.L10
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L12
	mov	edx, DWORD PTR isp_gdt[rip]
	mov	esi, DWORD PTR hz[rip]
	mov	rcx, r13
	mov	rdi, r13
	call	callout_reset@PLT
.L10:
	mov	rdi, r15
	call	ISP_UNLOCK@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edx, DWORD PTR 20[r14]
	mov	esi, DWORD PTR 16[r13]
	mov	QWORD PTR 24[r14], 0
	mov	eax, DWORD PTR AC_CONTRACT_DEV_CHG[rip]
	mov	edi, DWORD PTR AC_CONTRACT[rip]
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR 16[r14]
	mov	DWORD PTR [rax], r12d
	mov	DWORD PTR 16[rax], edx
	lea	rdx, 16[rsp]
	mov	QWORD PTR 8[rax], 0
	call	xpt_async@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	QWORD PTR 32[r14], 0
	mov	ecx, ebx
	mov	edx, ebp
	mov	rsi, r14
	mov	rdi, r15
	call	isp_make_gone@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	QWORD PTR 8[r13], 0
	je	.L10
.L12:
	mov	rdi, r13
	call	callout_deactivate@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	rdi, r15
	xor	eax, eax
	mov	r8, QWORD PTR time_uptime[rip]
	mov	esi, DWORD PTR ISP_LOG_SANCFG[rip]
	lea	rdx, .LC2[rip]
	call	isp_prt@PLT
	jmp	.L10
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	isp_gdt_task, .-isp_gdt_task
	.comm	time_uptime,8,8
	.comm	prom3,4,4
	.comm	isp_gdt,4,4
	.comm	hz,4,4
	.comm	MAX_FC_TARG,4,4
	.comm	ISP_LOG_SANCFG,4,4
	.comm	ISP_LOGDEBUG0,4,4
	.comm	ISP_LOGCONFIG,4,4
	.comm	FC_PORTDB_STATE_ZOMBIE,8,8
	.comm	FC_PORTDB_STATE_NIL,8,8
	.comm	AC_CONTRACT_DEV_CHG,4,4
	.comm	AC_CONTRACT,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_isp_freebsd.c_isp_gdt_task.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Chan %d GDT timer expired\000"
	.align	2
.LC1:
	.ascii	"Gone Device Timeout\000"
	.align	2
.LC2:
	.ascii	"Chan %d Stopping Gone Device Timer @ %lu\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isp_gdt_task, %function
isp_gdt_task:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0, #12]
	sub	sp, sp, #52
	ldr	r2, .L35
	ldr	r8, [r9]
	str	r0, [sp, #28]
	mov	r0, r9
	sub	r8, r3, r8
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	bl	ISP_LOCK
	ldr	r2, .L35+4
	ldr	fp, .L35+8
	asr	r8, r8, #4
	mov	r3, r8
	ldr	r1, [r2]
	mov	r0, r9
	ldr	r2, .L35+12
	bl	isp_prt
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L2
	mov	r3, #0
	ldr	r10, .L35+16
	mov	r4, r3
	str	r3, [sp, #20]
	b	.L7
.L31:
	sub	r3, r3, #1
	str	r3, [r7, #4]
	ldr	r3, [sp, #20]
	add	r3, r3, #1
	str	r3, [sp, #20]
.L3:
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L30
.L7:
	mov	r1, r8
	mov	r0, r9
	bl	FCPARAM
	ldr	r5, [r0]
	add	r6, r4, r4, lsl #1
	ldr	r2, [r5, r6, lsl #3]
	ldr	r3, [r10]
	add	r7, r5, r6, lsl #3
	cmp	r2, r3
	bne	.L3
	ldr	r3, [r7, #4]
	cmp	r3, #0
	str	r3, [sp, #24]
	bne	.L31
	ldr	r3, .L35+20
	ldr	r1, .L35+24
	str	r3, [sp, #8]
	ldr	r2, [r7, #8]
	str	r4, [sp]
	str	r2, [sp, #4]
	ldr	r2, .L35+28
	mov	r3, r8
	mov	r0, r9
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	isp_prt
	ldr	r3, [r7, #20]
	cmp	r3, #0
	bne	.L32
.L5:
	ldr	r3, [r7, #16]
	cmp	r3, #0
	bne	.L33
.L6:
	ldr	r3, .L35+32
	add	r4, r4, #1
	ldr	r3, [r3]
	str	r3, [r5, r6, lsl #3]
	ldr	r3, [fp]
	cmp	r3, r4
	bgt	.L7
.L30:
	ldr	r0, [sp, #28]
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L35+36
	ldr	r2, .L35+40
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, r0
	bl	callout_reset
.L10:
	mov	r0, r9
	bl	ISP_UNLOCK
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r2, #0
	ldr	r3, .L35+44
	ldr	r0, [r7, #12]
	ldr	r1, [r7, #8]
	ldr	ip, [r3]
	ldr	r3, [sp, #36]
	str	r2, [r7, #16]
	str	ip, [sp, #40]
	str	r0, [r3, #12]
	str	r4, [r3]
	str	r2, [r3, #4]
	str	r1, [r3, #8]
	ldr	r3, [sp, #28]
	add	r2, sp, #36
	ldr	r1, [r3, #8]
	ldr	r3, .L35+48
	ldr	r0, [r3]
	bl	xpt_async
	b	.L6
.L32:
	ldr	r3, [sp, #24]
	mov	r2, r8
	str	r3, [r7, #20]
	mov	r1, r7
	mov	r3, r4
	mov	r0, r9
	bl	isp_make_gone
	b	.L5
.L2:
	ldr	r3, [sp, #28]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L10
.L12:
	ldr	r0, [sp, #28]
	bl	callout_deactivate
	ldr	r3, .L35+52
	ldr	r2, .L35+56
	ldr	r1, [r3]
	mov	r0, r9
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r3, r8
	ldr	r2, .L35+60
	bl	isp_prt
	b	.L10
.L34:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC3
	.word	ISP_LOGDEBUG0
	.word	MAX_FC_TARG
	.word	.LC0
	.word	FC_PORTDB_STATE_ZOMBIE
	.word	.LC1
	.word	ISP_LOGCONFIG
	.word	prom3
	.word	FC_PORTDB_STATE_NIL
	.word	hz
	.word	isp_gdt
	.word	AC_CONTRACT_DEV_CHG
	.word	AC_CONTRACT
	.word	time_uptime
	.word	ISP_LOG_SANCFG
	.word	.LC2
	.size	isp_gdt_task, .-isp_gdt_task
	.comm	time_uptime,4,4
	.comm	prom3,4,4
	.comm	isp_gdt,4,4
	.comm	hz,4,4
	.comm	MAX_FC_TARG,4,4
	.comm	ISP_LOG_SANCFG,4,4
	.comm	ISP_LOGDEBUG0,4,4
	.comm	ISP_LOGCONFIG,4,4
	.comm	FC_PORTDB_STATE_ZOMBIE,4,4
	.comm	FC_PORTDB_STATE_NIL,4,4
	.comm	AC_CONTRACT_DEV_CHG,4,4
	.comm	AC_CONTRACT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
