	.file	"extr_scsiport.c_DiskSeek.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	DiskSeek, @function
DiskSeek:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	FsGetDeviceSpecific@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR 0[rbp]
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	je	.L3
	mov	edi, DWORD PTR FALSE[rip]
	call	ASSERT@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rcx]
	mov	edx, DWORD PTR [rcx]
	imul	edx, esi
	add	eax, edx
.L5:
	lea	edx, -1[rsi]
	test	edx, eax
	jne	.L8
	cdq
	idiv	esi
	cmp	eax, DWORD PTR 8[rcx]
	jge	.L8
	mov	DWORD PTR [rcx], eax
	mov	eax, DWORD PTR ESUCCESS[rip]
	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
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	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
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rcx]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	DiskSeek, .-DiskSeek
	.comm	FALSE,4,4
	.comm	ESUCCESS,4,4
	.comm	EINVAL,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_scsiport.c_DiskSeek.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DiskSeek, %function
DiskSeek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, r1
	bl	FsGetDeviceSpecific
	cmp	r4, #128
	ldr	r3, [r5]
	mov	r5, r0
	beq	.L2
	cmp	r4, #129
	beq	.L3
	ldr	r3, .L12
	ldr	r0, [r3]
	bl	ASSERT
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r1, [r0, #4]
	ldr	r2, [r0]
	mla	r3, r2, r1, r3
.L5:
	sub	r2, r1, #1
	tst	r2, r3
	bne	.L8
	mov	r0, r3
	bl	__aeabi_idiv
	ldr	r3, [r5, #8]
	cmp	r0, r3
	bge	.L8
	ldr	r3, .L12+8
	str	r0, [r5]
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r1, [r0, #4]
	b	.L5
.L13:
	.align	2
.L12:
	.word	FALSE
	.word	EINVAL
	.word	ESUCCESS
	.size	DiskSeek, .-DiskSeek
	.comm	FALSE,4,4
	.comm	ESUCCESS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
