	.file	"extr_cdrom.c_sanitize_format.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sanitize_format, @function
sanitize_format:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rsi], rdx
	je	.L1
	cmp	QWORD PTR CDROM_LBA[rip], rdx
	mov	ecx, DWORD PTR [rdi]
	je	.L6
	movsx	rax, ecx
	mov	r8d, ecx
	imul	rax, rax, 458129845
	sar	r8d, 31
	sar	rax, 35
	sub	eax, r8d
	imul	r8d, eax, 75
	add	eax, 2
	sub	ecx, r8d
	mov	r8d, eax
	mov	DWORD PTR [rdi], ecx
	movsx	rcx, eax
	sar	r8d, 31
	imul	rcx, rcx, -2004318071
	shr	rcx, 32
	add	ecx, eax
	sar	ecx, 5
	sub	ecx, r8d
	imul	r8d, ecx, 60
	mov	DWORD PTR 8[rdi], ecx
	sub	eax, r8d
	mov	DWORD PTR 4[rdi], eax
.L4:
	mov	QWORD PTR [rsi], rdx
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	imul	eax, DWORD PTR 8[rdi], 60
	mov	r8d, DWORD PTR 4[rdi]
	lea	eax, -2[r8+rax]
	imul	eax, eax, 75
	add	ecx, eax
	mov	DWORD PTR [rdi], ecx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sanitize_format, .-sanitize_format
	.comm	CDROM_LBA,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_cdrom.c_sanitize_format.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sanitize_format, %function
sanitize_format:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	cmp	r3, r2
	bxeq	lr
	ldr	r3, .L11
	push	{r4, r5, lr}
	ldr	r3, [r3]
	ldr	lr, [r0]
	cmp	r3, r2
	beq	.L10
	ldr	r3, .L11+4
	asr	ip, lr, #31
	smull	r4, r3, lr, r3
	ldr	r4, .L11+8
	rsb	r3, ip, r3, asr #3
	add	ip, r3, #2
	smull	r5, r4, ip, r4
	add	r3, r3, r3, lsl #2
	add	r5, r4, ip
	asr	r4, ip, #31
	rsb	r4, r4, r5, asr #5
	rsb	r3, r3, r3, lsl #4
	sub	r3, lr, r3
	rsb	lr, r4, r4, lsl #4
	sub	ip, ip, lr, lsl #2
	str	r3, [r0]
	str	r4, [r0, #8]
	str	ip, [r0, #4]
	str	r2, [r1]
	pop	{r4, r5, pc}
.L10:
	ldr	ip, [r0, #4]
	ldr	r3, [r0, #8]
	sub	ip, ip, #2
	rsb	r3, r3, r3, lsl #4
	add	ip, ip, r3, lsl #2
	add	ip, ip, ip, lsl #2
	rsb	ip, ip, ip, lsl #4
	add	ip, ip, lr
	str	ip, [r0]
	str	r2, [r1]
	pop	{r4, r5, pc}
.L12:
	.align	2
.L11:
	.word	CDROM_LBA
	.word	458129845
	.word	-2004318071
	.size	sanitize_format, .-sanitize_format
	.comm	CDROM_LBA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
