	.file	"extr_swim3.c_act.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"  act loop, state=%d, req_cyl=%d, cur_cyl=%d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"    locate track 0\n"
.LC2:
	.string	"%s"
.LC3:
	.string	"Whoops, seeking 0\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Wrong cylinder in transfer, want: %d got %d\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Unknown state %d\n"
	.text
	.p2align 4
	.type	act, @function
act:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	rbx, .L5[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ecx, DWORD PTR 8[rdi]
	mov	r8d, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR [rdi]
.L2:
	mov	edx, r8d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	swim3_dbg@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	eax, -128[rsi]
	cmp	eax, 5
	ja	.L3
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L1-.L5
	.long	.L4-.L5
	.text
.L22:
	mov	edx, ecx
	mov	esi, r8d
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	swim3_err@PLT
	mov	esi, DWORD PTR BLK_STS_IOERR[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	swim3_end_request@PLT
	mov	DWORD PTR 0[rbp], 132
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, -5
.L19:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	seek_track@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR TRACK_ZERO[rip]
	mov	rdi, rbp
	call	swim3_readbit@PLT
	test	eax, eax
	je	.L11
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	swim3_dbg@PLT
	mov	r8d, DWORD PTR 4[rbp]
	mov	DWORD PTR 8[rbp], 0
	test	r8d, r8d
	jne	.L12
	mov	DWORD PTR 0[rbp], 133
	xor	ecx, ecx
	mov	esi, 133
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR 8[rbp]
	mov	r8d, DWORD PTR 4[rbp]
	test	ecx, ecx
	js	.L21
	cmp	ecx, r8d
	jne	.L15
	lea	rsi, .LC3[rip]
	lea	rdi, .LC2[rip]
	call	swim3_warn@PLT
	mov	DWORD PTR 0[rbp], 133
	mov	ecx, DWORD PTR 8[rbp]
	mov	esi, 133
	mov	r8d, DWORD PTR 4[rbp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR HZ[rip]
	mov	edx, DWORD PTR settle_timeout[rip]
	mov	rdi, rbp
	add	eax, 32
	movsx	rsi, eax
	sar	eax, 31
	imul	rsi, rsi, 1041204193
	sar	rsi, 35
	sub	esi, eax
	mov	DWORD PTR 16[rbp], esi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_timeout@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[rbp]
	mov	r8d, DWORD PTR 4[rbp]
	cmp	ecx, r8d
	je	.L16
	cmp	DWORD PTR 20[rbp], 5
	jg	.L22
	mov	DWORD PTR 0[rbp], 129
	mov	esi, 129
	jmp	.L2
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC5[rip]
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	swim3_err@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 129
	mov	esi, 129
	xor	ecx, ecx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	mov	DWORD PTR 12[rbp], -1
	mov	esi, 130
	mov	DWORD PTR 0[rbp], 130
	jmp	.L2
.L11:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	scan_track@PLT
.L16:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	setup_transfer@PLT
.L15:
	.cfi_restore_state
	mov	esi, r8d
	sub	esi, ecx
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	act, .-act
	.comm	settle_timeout,4,4
	.comm	TRACK_ZERO,4,4
	.comm	HZ,4,4
	.comm	BLK_STS_IOERR,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_swim3.c_act.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"  act loop, state=%d, req_cyl=%d, cur_cyl=%d\012\000"
	.align	2
.LC1:
	.ascii	"    locate track 0\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"Whoops, seeking 0\012\000"
	.align	2
.LC4:
	.ascii	"Wrong cylinder in transfer, want: %d got %d\012\000"
	.align	2
.LC5:
	.ascii	"Unknown state %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	act, %function
act:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, #129
	ldr	r5, .L22
	ldr	r10, .L22+4
	ldr	r6, .L22+8
	ldr	r8, .L22+12
	ldr	r9, .L22+16
	mov	r4, r0
	ldr	r1, [r0]
	ldmib	r0, {r0, r3}
.L2:
	mov	r2, r0
	mov	r0, r5
	bl	swim3_dbg
	ldr	r1, [r4]
	sub	r3, r1, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L1
	.word	.L4
.L1:
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mvn	r1, #4
	b	seek_track
.L8:
	mov	r0, r4
	ldr	r1, [r8]
	bl	swim3_readbit
	cmp	r0, #0
	beq	.L11
	mov	r1, r9
	mov	r0, r6
	bl	swim3_dbg
	mov	r3, #0
	ldr	r0, [r4, #4]
	str	r3, [r4, #8]
	cmp	r0, r3
	bne	.L17
	mov	r1, #133
	mov	r3, r0
	str	r1, [r4]
	b	.L2
.L9:
	ldmib	r4, {r0, r3}
	cmp	r3, #0
	blt	.L20
	cmp	r3, r0
	bne	.L15
	mov	r1, r10
	mov	r0, r6
	bl	swim3_warn
	mov	r1, #133
	ldr	r0, [r4, #4]
	ldr	r3, [r4, #8]
	str	r1, [r4]
	b	.L2
.L4:
	ldmib	r4, {r0, r3}
	cmp	r3, r0
	beq	.L16
	ldr	r2, [r4, #20]
	cmp	r2, #5
	bgt	.L21
.L17:
	mov	r1, #129
	str	r7, [r4]
	b	.L2
.L10:
	ldr	r3, .L22+20
	ldr	r1, .L22+24
	ldr	r3, [r3]
	ldr	ip, .L22+28
	add	r3, r3, #32
	smull	r0, r2, r1, r3
	asr	r1, r3, #31
	rsb	r1, r1, r2, asr #3
	mov	r0, r4
	str	r1, [r4, #16]
	ldr	r2, [ip]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	set_timeout
.L20:
	mvn	r2, #0
	mov	r1, #130
	str	r2, [r4, #12]
	str	r1, [r4]
	b	.L2
.L11:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	scan_track
.L16:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	setup_transfer
.L21:
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L22+32
	bl	swim3_err
	ldr	r3, .L22+36
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	swim3_end_request
	mov	r3, #132
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	sub	r1, r0, r3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	seek_track
.L3:
	ldr	r0, .L22+40
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	swim3_err
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	TRACK_ZERO
	.word	.LC1
	.word	HZ
	.word	1041204193
	.word	settle_timeout
	.word	.LC4
	.word	BLK_STS_IOERR
	.word	.LC5
	.size	act, .-act
	.comm	settle_timeout,4,4
	.comm	TRACK_ZERO,4,4
	.comm	HZ,4,4
	.comm	BLK_STS_IOERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
