	.file	"extr_tty.c_tty_cmd_reverseindex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tty_cmd_reverseindex
	.type	tty_cmd_reverseindex, @function
tty_cmd_reverseindex:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR [rsi], rax
	jne	.L1
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	QWORD PTR 40[rsi], 0
	mov	rbp, rsi
	jne	.L5
	mov	r13, QWORD PTR 32[rsi]
	call	tty_pane_full_width@PLT
	test	eax, eax
	jne	.L7
	mov	rdi, r12
	call	tty_use_margin@PLT
	test	eax, eax
	je	.L5
.L7:
	mov	edx, 8
	mov	rsi, r13
	mov	rdi, r12
	call	tty_fake_bce@PLT
	test	rax, rax
	je	.L27
.L5:
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	tty_redraw_region@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	esi, DWORD PTR TTYC_CSR[rip]
	mov	edi, DWORD PTR [r12]
	call	tty_term_has@PLT
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR TTYC_RI[rip]
	mov	edi, DWORD PTR [r12]
	call	tty_term_has@PLT
	test	rax, rax
	je	.L8
.L10:
	mov	rax, QWORD PTR 32[rbp]
	cmp	DWORD PTR [rax], 1
	je	.L5
	cmp	DWORD PTR 4[rax], 1
	je	.L5
	mov	edx, DWORD PTR 24[rbp]
	mov	rsi, r13
	mov	rdi, r12
	call	tty_default_attributes@PLT
	mov	ecx, DWORD PTR 20[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	rdi, r12
	call	tty_region_pane@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	tty_margin_pane@PLT
	mov	rcx, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	rsi, rbp
	mov	rdi, r12
	call	tty_cursor_pane@PLT
	mov	esi, DWORD PTR TTYC_RI[rip]
	mov	edi, DWORD PTR [r12]
	call	tty_term_has@PLT
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR TTYC_RI[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	tty_putcode@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR TTYC_RIN[rip]
	mov	edi, DWORD PTR [r12]
	call	tty_term_has@PLT
	test	rax, rax
	jne	.L10
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR TTYC_RIN[rip]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	mov	edx, 1
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	tty_putcode1@PLT
	.cfi_endproc
.LFE0:
	.size	tty_cmd_reverseindex, .-tty_cmd_reverseindex
	.comm	TTYC_RIN,4,4
	.comm	TTYC_RI,4,4
	.comm	TTYC_CSR,4,4
	.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_tty.c_tty_cmd_reverseindex.c"
	.text
	.align	2
	.global	tty_cmd_reverseindex
	.syntax unified
	.arm
	.fpu softvfp
	.type	tty_cmd_reverseindex, %function
tty_cmd_reverseindex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldm	r1, {r2, r3}
	cmp	r2, r3
	bxne	lr
	ldr	r3, [r1, #24]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r1
	mov	r5, r0
	bne	.L5
	ldr	r6, [r1, #20]
	bl	tty_pane_full_width
	cmp	r0, #0
	bne	.L7
	mov	r0, r5
	bl	tty_use_margin
	cmp	r0, #0
	beq	.L5
.L7:
	mov	r2, #8
	mov	r1, r6
	mov	r0, r5
	bl	tty_fake_bce
	cmp	r0, #0
	beq	.L33
.L5:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	tty_redraw_region
.L33:
	ldr	r3, .L34
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	tty_term_has
	cmp	r0, #0
	beq	.L5
	ldr	r7, .L34+4
	ldr	r0, [r5]
	ldr	r1, [r7]
	bl	tty_term_has
	cmp	r0, #0
	beq	.L8
.L10:
	ldr	r3, [r4, #20]
	ldr	r2, [r3]
	cmp	r2, #1
	beq	.L5
	ldr	r3, [r3, #4]
	cmp	r3, #1
	beq	.L5
	mov	r1, r6
	ldr	r2, [r4, #16]
	mov	r0, r5
	bl	tty_default_attributes
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #4]
	mov	r1, r4
	mov	r0, r5
	bl	tty_region_pane
	mov	r1, r4
	mov	r0, r5
	bl	tty_margin_pane
	mov	r1, r4
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	mov	r0, r5
	bl	tty_cursor_pane
	ldr	r1, [r7]
	ldr	r0, [r5]
	bl	tty_term_has
	cmp	r0, #0
	beq	.L11
	mov	r0, r5
	ldr	r1, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	tty_putcode
.L8:
	ldr	r3, .L34+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	tty_term_has
	cmp	r0, #0
	bne	.L10
	b	.L5
.L11:
	ldr	r3, .L34+8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #1
	ldr	r1, [r3]
	b	tty_putcode1
.L35:
	.align	2
.L34:
	.word	TTYC_CSR
	.word	TTYC_RI
	.word	TTYC_RIN
	.size	tty_cmd_reverseindex, .-tty_cmd_reverseindex
	.comm	TTYC_RIN,4,4
	.comm	TTYC_RI,4,4
	.comm	TTYC_CSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
