	.file	"332015.c"
	.intel_syntax noprefix
	.text
	.globl	tan
	.type	tan, @function
tan:
.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
	movsd	QWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	mov	eax, 1
	call	__HI@PLT
	mov	DWORD PTR -48[rbp], eax
	and	DWORD PTR -48[rbp], 2147483647
	cmp	DWORD PTR -48[rbp], 1072243195
	jg	.L2
	movsd	xmm0, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edi, 1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	eax, 2
	call	__kernel_tan@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	jmp	.L5
.L2:
	cmp	DWORD PTR -48[rbp], 2146435071
	jle	.L4
	movsd	xmm0, QWORD PTR -56[rbp]
	subsd	xmm0, xmm0
	jmp	.L5
.L4:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rdx
	movq	xmm0, rax
	mov	eax, 1
	call	__ieee754_rem_pio2@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, eax
	and	eax, 2
	mov	edx, 1
	sub	edx, eax
	movsd	xmm0, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edi, edx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	eax, 2
	call	__kernel_tan@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
.L5:
	movq	rax, xmm0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tan, .-tan
	.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	"332015.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tan
	.syntax unified
	.arm
	.fpu softvfp
	.type	tan, %function
tan:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__HI
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r2, .L7+4
	cmp	r3, r2
	bgt	.L2
	mov	r3, #1
	str	r3, [sp]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__kernel_tan
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	b	.L5
.L2:
	ldr	r3, [fp, #-44]
	ldr	r2, .L7+8
	cmp	r3, r2
	ble	.L4
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	b	.L5
.L4:
	sub	r3, fp, #28
	mov	r2, r3
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__ieee754_rem_pio2
	str	r0, [fp, #-40]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-40]
	lsl	ip, ip, #1
	and	ip, ip, #2
	rsb	ip, ip, #1
	str	ip, [sp]
	bl	__kernel_tan
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
.L5:
	ldr	r1, .L7
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	1072243195
	.word	2146435071
	.size	tan, .-tan
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
