	.file	"887971.c"
	.intel_syntax noprefix
	.text
	.globl	smsDecompress
	.type	smsDecompress, @function
smsDecompress:
.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, 48
	mov	eax, edi
	mov	DWORD PTR -40[rbp], esi
	mov	BYTE PTR -36[rbp], al
	cmp	DWORD PTR -40[rbp], 0
	je	.L2
	movzx	eax, BYTE PTR -36[rbp]
	shr	al, 6
	cmp	al, 2
	ja	.L3
	movzx	eax, BYTE PTR -36[rbp]
	and	eax, 15
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, BYTE PTR -36[rbp]
	shr	al, 4
	movzx	eax, al
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L4:
	cmp	QWORD PTR -8[rbp], 0
	jle	.L5
	cmp	QWORD PTR -8[rbp], 11
	jg	.L5
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movsd	QWORD PTR -48[rbp], xmm2
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -48[rbp]
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L3:
	movzx	eax, BYTE PTR -36[rbp]
	and	eax, 7
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, BYTE PTR -36[rbp]
	shr	al, 3
	movzx	eax, al
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, rax
	movsd	QWORD PTR -48[rbp], xmm3
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 12
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -48[rbp]
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L2:
	movzx	eax, BYTE PTR -36[rbp]
	and	eax, 15
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, BYTE PTR -36[rbp]
	shr	al, 4
	movzx	eax, al
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L6:
	cmp	QWORD PTR -8[rbp], 0
	jle	.L5
	cmp	QWORD PTR -8[rbp], 15
	jg	.L5
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, rax
	movsd	QWORD PTR -48[rbp], xmm4
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	mulsd	xmm0, QWORD PTR -48[rbp]
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
.L5:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	smsDecompress, .-smsDecompress
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.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	"887971.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
	.global	smsDecompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsDecompress, %function
smsDecompress:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	mov	r3, r0
	str	r1, [fp, #-36]
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #2
	bhi	.L3
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r3, r3, #15
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	b	.L5
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #11
	bgt	.L5
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L5
.L3:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r3, r3, #7
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	sub	r3, r3, #12
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L5
.L2:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r3, r3, #15
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bgt	.L5
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
.L5:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	smsDecompress, .-smsDecompress
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
