	.file	"40562.c"
	.intel_syntax noprefix
	.text
	.globl	g
	.type	g, @function
g:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	movsx	eax, WORD PTR -32[rbp]
	movsx	edx, WORD PTR -30[rbp]
	sub	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	mov	eax, 1
	call	f@PLT
	cvttsd2si	eax, xmm0
	mov	WORD PTR -28[rbp], ax
	movzx	eax, WORD PTR -32[rbp]
	movzx	edx, WORD PTR -30[rbp]
	sub	eax, edx
	mov	edx, eax
	movzx	eax, WORD PTR -26[rbp]
	movzx	ecx, WORD PTR -24[rbp]
	sub	eax, ecx
	cmp	dx, ax
	cmovle	eax, edx
	cwde
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	WORD PTR -22[rbp], ax
	movzx	eax, WORD PTR -20[rbp]
	cmp	WORD PTR -28[rbp], ax
	cmovle	ax, WORD PTR -28[rbp]
	movzx	edx, WORD PTR -22[rbp]
	sub	eax, edx
	mov	WORD PTR -18[rbp], ax
	mov	WORD PTR -36[rbp], 0
	jmp	.L2
.L6:
	movzx	edx, WORD PTR -22[rbp]
	mov	eax, 1
	sub	eax, edx
	mov	WORD PTR -34[rbp], ax
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	movsx	edx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	edx, eax
	movsx	eax, WORD PTR -36[rbp]
	add	eax, edx
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	movsx	rsi, eax
	movsx	edx, WORD PTR -30[rbp]
	movsx	eax, WORD PTR -28[rbp]
	add	edx, eax
	movsx	eax, WORD PTR -34[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, edx
	cdqe
	add	rax, rsi
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	movsx	ecx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	ecx, eax
	movsx	eax, WORD PTR -36[rbp]
	add	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	movsx	edx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	edx, eax
	movsx	eax, WORD PTR -34[rbp]
	add	eax, edx
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	movsx	rsi, eax
	movsx	edx, WORD PTR -30[rbp]
	movsx	eax, WORD PTR -28[rbp]
	add	eax, edx
	movsx	edx, WORD PTR -22[rbp]
	sub	eax, edx
	movsx	edi, WORD PTR -36[rbp]
	sub	eax, edi
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, edx
	cdqe
	add	rax, rsi
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	movsx	ecx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	ecx, eax
	movsx	eax, WORD PTR -34[rbp]
	add	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	movsx	edx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	eax, edx
	movsx	edx, WORD PTR -22[rbp]
	sub	eax, edx
	movsx	edx, WORD PTR -36[rbp]
	sub	eax, edx
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	movsx	rsi, eax
	movsx	edx, WORD PTR -30[rbp]
	movsx	eax, WORD PTR -28[rbp]
	add	eax, edx
	movsx	edx, WORD PTR -22[rbp]
	sub	eax, edx
	movsx	edi, WORD PTR -34[rbp]
	sub	eax, edi
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, edx
	cdqe
	add	rax, rsi
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	movsx	ecx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	eax, ecx
	movsx	ecx, WORD PTR -22[rbp]
	sub	eax, ecx
	movsx	ecx, WORD PTR -36[rbp]
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rax]
	movsx	edx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	eax, edx
	movsx	edx, WORD PTR -22[rbp]
	sub	eax, edx
	movsx	edx, WORD PTR -34[rbp]
	sub	eax, edx
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	movsx	rsi, eax
	movsx	edx, WORD PTR -30[rbp]
	movsx	eax, WORD PTR -28[rbp]
	add	edx, eax
	movsx	eax, WORD PTR -36[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	imul	eax, edx
	cdqe
	add	rax, rsi
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	movsx	ecx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	eax, ecx
	movsx	ecx, WORD PTR -22[rbp]
	sub	eax, ecx
	movsx	ecx, WORD PTR -34[rbp]
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	je	.L4
	movsx	edx, WORD PTR -30[rbp]
	movsx	eax, WORD PTR -28[rbp]
	add	edx, eax
	movsx	eax, WORD PTR -36[rbp]
	add	edx, eax
	movsx	ecx, WORD PTR -24[rbp]
	movsx	eax, WORD PTR -20[rbp]
	add	eax, ecx
	movsx	ecx, WORD PTR -22[rbp]
	sub	eax, ecx
	movsx	esi, WORD PTR -34[rbp]
	sub	eax, esi
	mov	ecx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	ff@PLT
.L4:
	movzx	eax, WORD PTR -34[rbp]
	add	eax, 1
	mov	WORD PTR -34[rbp], ax
.L3:
	movzx	eax, WORD PTR -34[rbp]
	cmp	ax, WORD PTR -18[rbp]
	jle	.L5
	movzx	eax, WORD PTR -36[rbp]
	add	eax, 1
	mov	WORD PTR -36[rbp], ax
.L2:
	movzx	eax, WORD PTR -36[rbp]
	cmp	ax, WORD PTR -18[rbp]
	jle	.L6
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	g, .-g
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"40562.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
	.global	g
	.syntax unified
	.arm
	.fpu softvfp
	.type	g, %function
g:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldrsh	r2, [fp, #-36]
	ldrsh	r3, [fp, #-34]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	f
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	strh	r3, [fp, #-32]	@ movhi
	ldrh	r2, [fp, #-36]
	ldrh	r3, [fp, #-34]
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrh	r1, [fp, #-30]
	ldrh	r3, [fp, #-28]
	sub	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	strh	r3, [fp, #-26]	@ movhi
	ldrsh	r2, [fp, #-32]
	ldrsh	r3, [fp, #-24]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-26]
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-40]	@ movhi
	b	.L2
.L6:
	ldrh	r3, [fp, #-26]
	rsb	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-38]	@ movhi
	b	.L3
.L5:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldrsh	r1, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-40]
	add	r3, r1, r3
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	mov	r0, r3
	ldrsh	r1, [fp, #-34]
	ldrsh	r3, [fp, #-32]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-38]
	add	r3, r1, r3
	ldr	r1, [fp, #-48]
	ldr	r1, [r1]
	ldr	r1, [r1, #4]
	mul	r3, r1, r3
	add	r3, r0, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldrsh	r2, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-40]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	asr	r3, r1, r3
	and	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldrsh	r1, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-38]
	add	r3, r1, r3
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	mov	r0, r3
	ldrsh	r1, [fp, #-34]
	ldrsh	r3, [fp, #-32]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-26]
	sub	r1, r1, r3
	ldrsh	r3, [fp, #-40]
	sub	r3, r1, r3
	ldr	r1, [fp, #-48]
	ldr	r1, [r1]
	ldr	r1, [r1, #4]
	mul	r3, r1, r3
	add	r3, r0, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldrsh	r2, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-38]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	asr	r3, r1, r3
	and	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldrsh	r1, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-26]
	sub	r1, r1, r3
	ldrsh	r3, [fp, #-40]
	sub	r3, r1, r3
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	mov	r0, r3
	ldrsh	r1, [fp, #-34]
	ldrsh	r3, [fp, #-32]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-26]
	sub	r1, r1, r3
	ldrsh	r3, [fp, #-38]
	sub	r3, r1, r3
	ldr	r1, [fp, #-48]
	ldr	r1, [r1]
	ldr	r1, [r1, #4]
	mul	r3, r1, r3
	add	r3, r0, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldrsh	r2, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-26]
	sub	r2, r2, r3
	ldrsh	r3, [fp, #-40]
	sub	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	asr	r3, r1, r3
	and	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldrsh	r1, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-26]
	sub	r1, r1, r3
	ldrsh	r3, [fp, #-38]
	sub	r3, r1, r3
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	mov	r0, r3
	ldrsh	r1, [fp, #-34]
	ldrsh	r3, [fp, #-32]
	add	r1, r1, r3
	ldrsh	r3, [fp, #-40]
	add	r3, r1, r3
	ldr	r1, [fp, #-48]
	ldr	r1, [r1]
	ldr	r1, [r1, #4]
	mul	r3, r1, r3
	add	r3, r0, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldrsh	r2, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-26]
	sub	r2, r2, r3
	ldrsh	r3, [fp, #-38]
	sub	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	asr	r3, r1, r3
	and	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L4
	ldrsh	r2, [fp, #-28]
	ldrsh	r3, [fp, #-24]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-26]
	sub	r2, r2, r3
	ldrsh	r3, [fp, #-38]
	sub	r1, r2, r3
	ldrsh	r2, [fp, #-34]
	ldrsh	r3, [fp, #-32]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	ff
.L4:
	ldrsh	r3, [fp, #-38]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-38]	@ movhi
.L3:
	ldrsh	r2, [fp, #-38]
	ldrsh	r3, [fp, #-22]
	cmp	r2, r3
	ble	.L5
	ldrsh	r3, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-40]	@ movhi
.L2:
	ldrsh	r2, [fp, #-40]
	ldrsh	r3, [fp, #-22]
	cmp	r2, r3
	ble	.L6
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	1071644672
	.size	g, .-g
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
