	.file	"extr_msdosfs_conv.c_mbsadjpos.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mbsadjpos, @function
mbsadjpos:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rcx, ecx
	imul	rcx, rdx
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	.cfi_offset 12, -24
	mov	r12, rdi
	sub	rsp, 40
	mov	QWORD PTR -40[rbp], rsi
	mov	rsi, rdx
	mov	QWORD PTR -48[rbp], rdx
	mov	rdi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, 16[rcx]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	test	DWORD PTR MSDOSFSMNT_KICONV[rip], r8d
	je	.L5
	mov	rax, QWORD PTR msdosfs_iconv[rip]
	test	rax, rax
	je	.L5
	mov	QWORD PTR -48[rbp], rcx
	lea	rdx, -40[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, r12
	mov	QWORD PTR -32[rbp], rsp
	lea	r8, -48[rbp]
	mov	rdi, r9
	call	[QWORD PTR [rax]]
	mov	eax, DWORD PTR -40[rbp]
.L1:
	mov	rdi, QWORD PTR -24[rbp]
	xor	rdi, QWORD PTR fs:40
	jne	.L21
	mov	r12, QWORD PTR -8[rbp]
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR -40[rbp]
	call	min@PLT
	mov	rsi, QWORD PTR -48[rbp]
	cdqe
	add	QWORD PTR [r12], rax
	mov	r12, QWORD PTR -40[rbp]
	mov	rdi, r12
	call	min@PLT
	mov	esi, r12d
	sub	esi, eax
	mov	eax, esi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mbsadjpos, .-mbsadjpos
	.comm	msdosfs_iconv,8,8
	.comm	MSDOSFSMNT_KICONV,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_msdosfs_conv.c_mbsadjpos.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbsadjpos, %function
mbsadjpos:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	mul	r3, r2, r3
	ldr	r4, .L14
	add	lr, r3, #8
	bic	lr, lr, #7
	ldr	r5, [r4]
	sub	sp, sp, lr
	ldr	lr, [fp, #4]
	str	r2, [fp, #-28]
	mov	ip, r2
	ldr	r2, .L14+4
	str	r1, [fp, #-24]
	tst	lr, r5
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [fp, #-16]
	mov	r2,#0
	ldr	r0, [fp, #8]
	beq	.L2
	ldr	r2, .L14+8
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L2
	sub	ip, fp, #28
	add	r1, sp, #8
	str	ip, [sp]
	str	r1, [fp, #-20]
	str	r3, [fp, #-28]
	mov	r1, r4
	sub	r3, fp, #20
	ldr	r4, [r2]
	sub	r2, fp, #24
	blx	r4
	ldr	r0, [fp, #-24]
	b	.L1
.L2:
	mov	r1, ip
	ldr	r0, [fp, #-24]
	bl	min
	ldr	r3, [r4]
	ldr	r5, [fp, #-24]
	add	r3, r3, r0
	ldr	r1, [fp, #-28]
	mov	r0, r5
	str	r3, [r4]
	bl	min
	sub	r0, r5, r0
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	MSDOSFSMNT_KICONV
	.word	.LC0
	.word	msdosfs_iconv
	.size	mbsadjpos, .-mbsadjpos
	.comm	msdosfs_iconv,4,4
	.comm	MSDOSFSMNT_KICONV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
