	.file	"extr_tc-mips.c_relaxed_branch_length.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	relaxed_branch_length, @function
relaxed_branch_length:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	test	rdi, rdi
	je	.L2
	mov	edi, DWORD PTR 24[rdi]
	mov	r12, rsi
	call	S_IS_DEFINED@PLT
	test	rax, rax
	jne	.L25
.L3:
	mov	r12, QWORD PTR FALSE[rip]
.L14:
	test	ebp, ebp
	jne	.L26
.L4:
	test	r12, r12
	jne	.L27
.L16:
	mov	r12d, 4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	RELAX_BRANCH_LIKELY@PLT
	test	eax, eax
	setne	al
.L6:
	cmp	al, 1
	mov	rax, QWORD PTR NO_PIC[rip]
	sbb	r12d, r12d
	and	r12d, -8
	add	r12d, 12
	cmp	QWORD PTR mips_pic[rip], rax
	je	.L8
	mov	rax, QWORD PTR ISA_MIPS1[rip]
	cmp	QWORD PTR mips_opts[rip], rax
	je	.L9
	add	r12d, 8
.L8:
	test	rbx, rbx
	je	.L10
	mov	edi, DWORD PTR 4[rbx]
	call	RELAX_BRANCH_UNCOND@PLT
	test	eax, eax
	sete	dl
.L11:
	lea	eax, 8[r12]
	test	dl, dl
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	cmovne	r12d, eax
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	RELAX_BRANCH_TOOFAR@PLT
	cmp	rax, r12
	je	.L4
	mov	edi, DWORD PTR 4[rbx]
	call	RELAX_BRANCH_LINK@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r14d, eax
	call	RELAX_BRANCH_LIKELY@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r13d, eax
	call	RELAX_BRANCH_UNCOND@PLT
	mov	rcx, r12
	mov	edx, r14d
	mov	esi, r13d
	mov	edi, eax
	call	RELAX_BRANCH_ENCODE@PLT
	mov	DWORD PTR 4[rbx], eax
	test	r12, r12
	je	.L16
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, ebp
	not	edx
	shr	edx, 31
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	QWORD PTR TRUE[rip], 0
	je	.L16
	test	ebp, ebp
	setg	al
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 24[rbx]
	call	S_GET_SEGMENT@PLT
	cmp	r12, rax
	jne	.L3
	mov	edi, DWORD PTR 24[rbx]
	xor	r12d, r12d
	call	S_GET_VALUE@PLT
	mov	rdx, QWORD PTR 8[rbx]
	add	rdx, QWORD PTR 16[rbx]
	mov	r8d, eax
	mov	eax, 131068
	sub	eax, edx
	mov	edx, DWORD PTR [rbx]
	add	edx, r8d
	add	eax, edx
	cmp	eax, 262143
	seta	r12b
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L9:
	add	r12d, 12
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	relaxed_branch_length, .-relaxed_branch_length
	.comm	mips_pic,8,8
	.comm	mips_opts,8,8
	.comm	TRUE,8,8
	.comm	NO_PIC,8,8
	.comm	ISA_MIPS1,8,8
	.comm	FALSE,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_tc-mips.c_relaxed_branch_length.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	relaxed_branch_length, %function
relaxed_branch_length:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	mov	r6, r1
	mov	r5, r2
	beq	.L2
	ldr	r0, [r4, #16]
	bl	S_IS_DEFINED
	cmp	r0, #0
	bne	.L26
.L3:
	ldr	r3, .L29
	ldr	r6, [r3]
.L14:
	cmp	r5, #0
	bne	.L27
.L4:
	cmp	r6, #0
	bne	.L28
.L16:
	mov	r6, #4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	ldr	r0, [r4, #4]
	bl	RELAX_BRANCH_LIKELY
	subs	r0, r0, #0
	movne	r0, #1
.L6:
	ldr	r2, .L29+4
	ldr	r3, .L29+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r0, #0
	moveq	r6, #4
	movne	r6, #12
	cmp	r2, r3
	beq	.L8
	ldr	r2, .L29+12
	ldr	r3, .L29+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	addne	r6, r6, #8
	addeq	r6, r6, #12
.L8:
	cmp	r4, #0
	mvneq	r5, r5
	lsreq	r5, r5, #31
	beq	.L11
	ldr	r0, [r4, #4]
	bl	RELAX_BRANCH_UNCOND
	clz	r5, r0
	lsr	r5, r5, #5
.L11:
	cmp	r5, #0
	addne	r6, r6, #8
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r0, [r4, #4]
	bl	RELAX_BRANCH_TOOFAR
	cmp	r0, r6
	beq	.L4
	ldr	r0, [r4, #4]
	bl	RELAX_BRANCH_UNCOND
	mov	r7, r0
	ldr	r0, [r4, #4]
	bl	RELAX_BRANCH_LIKELY
	mov	r8, r0
	ldr	r0, [r4, #4]
	bl	RELAX_BRANCH_LINK
	mov	r3, r6
	mov	r2, r0
	mov	r1, r8
	mov	r0, r7
	bl	RELAX_BRANCH_ENCODE
	cmp	r6, #0
	str	r0, [r4, #4]
	beq	.L16
	b	.L28
.L2:
	ldr	r3, .L29+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	cmp	r5, #0
	movle	r0, #0
	movgt	r0, #1
	b	.L6
.L26:
	ldr	r0, [r4, #16]
	bl	S_GET_SEGMENT
	cmp	r6, r0
	bne	.L3
	ldr	r0, [r4, #16]
	bl	S_GET_VALUE
	ldr	r6, [r4]
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	add	r6, r0, r6
	add	r3, r3, r2
	sub	r6, r6, r3
	add	r6, r6, #130048
	add	r6, r6, #1020
	cmp	r6, #262144
	movcc	r6, #0
	movcs	r6, #1
	b	.L14
.L30:
	.align	2
.L29:
	.word	FALSE
	.word	mips_pic
	.word	NO_PIC
	.word	mips_opts
	.word	ISA_MIPS1
	.word	TRUE
	.size	relaxed_branch_length, .-relaxed_branch_length
	.comm	mips_pic,4,4
	.comm	mips_opts,4,4
	.comm	TRUE,4,4
	.comm	NO_PIC,4,4
	.comm	ISA_MIPS1,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
