	.file	"extr_rational.c_rational_s_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"oo"
	.text
	.p2align 4
	.type	rational_s_new, @function
rational_s_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	lea	rdx, 8[rsp]
	call	mrb_get_args@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	mrb_fixnum_p@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR 8[rsp]
	call	mrb_fixnum@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rbp, rax
	call	mrb_fixnum_p@PLT
	test	rax, rax
	jne	.L16
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, r12
	call	mrb_to_flo@PLT
	mov	rcx, QWORD PTR MRB_INT_MIN[rip]
	mov	rsi, QWORD PTR MRB_INT_MAX[rip]
	mov	rdx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, rbp
	shr	rax, 63
	add	rbp, rax
	mov	rax, rdx
	shr	rax, 63
	sar	rbp
	add	rax, rdx
	sar	rax
	mov	rdx, rax
.L5:
	cmp	rcx, rdx
	jg	.L6
	cmp	rsi, rdx
	jl	.L6
.L4:
	mov	rdi, r12
	mov	rsi, rbp
	call	rational_new@PLT
	mov	rdi, QWORD PTR 24[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r12
	call	mrb_to_flo@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rbp, rax
	call	mrb_fixnum_p@PLT
	test	rax, rax
	jne	.L18
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, r12
	call	mrb_to_flo@PLT
	mov	rcx, QWORD PTR MRB_INT_MIN[rip]
	mov	rsi, QWORD PTR MRB_INT_MAX[rip]
	mov	rdx, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, rbp
	shr	rax, 63
	add	rbp, rax
	mov	rax, rdx
	shr	rax, 63
	sar	rbp
	add	rax, rdx
	sar	rax
	mov	rdx, rax
.L9:
	cmp	rcx, rdx
	jg	.L10
	cmp	rsi, rdx
	jl	.L10
	cmp	rbp, rcx
	jge	.L19
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, rbp
	shr	rax, 63
	add	rbp, rax
	mov	rax, rdx
	shr	rax, 63
	sar	rbp
	add	rax, rdx
	sar	rax
	mov	rdx, rax
.L8:
	cmp	rbp, rcx
	jl	.L12
.L19:
	cmp	rbp, rsi
	jg	.L12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR 16[rsp]
	call	mrb_fixnum@PLT
	mov	rcx, QWORD PTR MRB_INT_MIN[rip]
	mov	rsi, QWORD PTR MRB_INT_MAX[rip]
	mov	rdx, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 16[rsp]
	call	mrb_fixnum@PLT
	mov	rdx, rax
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rational_s_new, .-rational_s_new
	.comm	MRB_INT_MIN,8,8
	.comm	MRB_INT_MAX,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_rational.c_rational_s_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"oo\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rational_s_new, %function
rational_s_new:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	ip, .L20
	sub	sp, sp, #20
	ldr	r1, .L20+4
	add	r3, sp, #8
	add	r2, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r5, r0
	bl	mrb_get_args
	ldr	r0, [sp, #4]
	bl	mrb_fixnum_p
	cmp	r0, #0
	beq	.L2
	ldr	r0, [sp, #4]
	bl	mrb_fixnum
	mov	r4, r0
	ldr	r0, [sp, #8]
	bl	mrb_fixnum_p
	cmp	r0, #0
	bne	.L16
	ldr	r1, [sp, #8]
	mov	r0, r5
	bl	mrb_to_flo
	ldr	r3, .L20+8
	ldr	r1, .L20+12
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r1]
	b	.L5
.L6:
	add	r4, r4, r4, lsr #31
	add	r2, r2, r2, lsr #31
	asr	r4, r4, #1
	asr	r2, r2, #1
.L5:
	cmp	r3, r2
	bgt	.L6
	cmp	r1, r2
	blt	.L6
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	rational_new
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r1, [sp, #4]
	mov	r0, r5
	bl	mrb_to_flo
	mov	r4, r0
	ldr	r0, [sp, #8]
	bl	mrb_fixnum_p
	cmp	r0, #0
	bne	.L18
	ldr	r1, [sp, #8]
	mov	r0, r5
	bl	mrb_to_flo
	ldr	r3, .L20+8
	ldr	r1, .L20+12
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r1]
	b	.L9
.L10:
	add	r4, r4, r4, lsr #31
	add	r2, r2, r2, lsr #31
	asr	r4, r4, #1
	asr	r2, r2, #1
.L9:
	cmp	r3, r2
	bgt	.L10
	cmp	r1, r2
	blt	.L10
	cmp	r4, r3
	bge	.L19
.L12:
	add	r4, r4, r4, lsr #31
	add	r2, r2, r2, lsr #31
	asr	r4, r4, #1
	asr	r2, r2, #1
.L8:
	cmp	r4, r3
	blt	.L12
.L19:
	cmp	r4, r1
	bgt	.L12
	b	.L4
.L18:
	ldr	r0, [sp, #8]
	bl	mrb_fixnum
	ldr	r3, .L20+8
	ldr	r1, .L20+12
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r1]
	b	.L8
.L16:
	ldr	r0, [sp, #8]
	bl	mrb_fixnum
	mov	r2, r0
	b	.L4
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	.LC0
	.word	MRB_INT_MIN
	.word	MRB_INT_MAX
	.size	rational_s_new, .-rational_s_new
	.comm	MRB_INT_MIN,4,4
	.comm	MRB_INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
