	.file	"extr_window-copy.c_window_copy_cmd_previous_matching_bracket.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"}]) "
	.text
	.p2align 4
	.type	window_copy_cmd_previous_matching_bracket, @function
window_copy_cmd_previous_matching_bracket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r14, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 64[rsp], 2644859
	mov	rax, QWORD PTR [r14]
	mov	rbx, QWORD PTR 8[r14]
	mov	DWORD PTR 68[rsp], 2710909
	mov	QWORD PTR [rsp], rax
	mov	r12, QWORD PTR 32[rbx]
	test	rax, rax
	je	.L2
	lea	rax, 68[rsp]
	lea	r15, 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r12
	mov	rbp, QWORD PTR [rbx]
	call	screen_hsize@PLT
	add	rax, QWORD PTR 8[rbx]
	mov	rdi, r14
	mov	rdx, rax
	sub	rdx, QWORD PTR 16[rbx]
	mov	rsi, rdx
	mov	r13, rdx
	call	window_copy_find_length@PLT
	test	rax, rax
	je	.L2
	mov	BYTE PTR 22[rsp], 0
.L3:
	mov	edi, DWORD PTR [r12]
	mov	rcx, r15
	mov	rdx, r13
	mov	rsi, rbp
	call	grid_get_cell@PLT
	cmp	DWORD PTR 40[rsp], 1
	je	.L4
.L7:
	mov	rax, QWORD PTR MODEKEY_EMACS[rip]
	cmp	QWORD PTR 24[rbx], rax
	jne	.L10
	cmp	BYTE PTR 22[rsp], 0
	jne	.L9
	test	rbp, rbp
	jle	.L9
	mov	BYTE PTR 22[rsp], 1
	sub	rbp, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 32[rsp]
	test	DWORD PTR GRID_FLAG_PADDING[rip], eax
	jne	.L7
	mov	rax, QWORD PTR 48[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	movsx	esi, BYTE PTR [rax]
	mov	BYTE PTR 23[rsp], sil
	call	strchr@PLT
	test	rax, rax
	je	.L7
	mov	QWORD PTR 24[rsp], 1
	sub	rax, QWORD PTR 8[rsp]
	movzx	eax, BYTE PTR 64[rsp+rax]
	mov	BYTE PTR 22[rsp], al
	.p2align 4,,10
	.p2align 3
.L11:
	test	rbp, rbp
	je	.L56
	sub	rbp, 1
.L15:
	mov	edi, DWORD PTR [r12]
	mov	rcx, r15
	mov	rdx, r13
	mov	rsi, rbp
	call	grid_get_cell@PLT
	cmp	DWORD PTR 40[rsp], 1
	jne	.L11
	mov	eax, DWORD PTR 32[rsp]
	not	eax
	test	DWORD PTR GRID_FLAG_PADDING[rip], eax
	je	.L11
	mov	rax, QWORD PTR 48[rsp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, BYTE PTR 23[rsp]
	je	.L57
	cmp	al, BYTE PTR 22[rsp]
	jne	.L11
	sub	QWORD PTR 24[rsp], 1
	jne	.L11
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	window_copy_scroll_to@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	sub	QWORD PTR [rsp], 1
	jne	.L19
.L2:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR WINDOW_COPY_CMD_NOTHING[rip]
	jne	.L58
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	window_copy_cursor_previous_word@PLT
	sub	QWORD PTR [rsp], 1
	jne	.L19
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L56:
	test	r13, r13
	jne	.L13
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L59:
	test	r13, r13
	jle	.L21
.L13:
	sub	r13, 1
	mov	rdi, r14
	mov	rsi, r13
	call	window_copy_find_length@PLT
	test	rax, rax
	je	.L59
.L21:
	mov	rcx, r13
	or	rcx, rax
	je	.L10
	lea	rbp, -1[rax]
	jmp	.L15
.L57:
	add	QWORD PTR 24[rsp], 1
	jmp	.L11
.L58:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	window_copy_cmd_previous_matching_bracket, .-window_copy_cmd_previous_matching_bracket
	.comm	WINDOW_COPY_CMD_NOTHING,4,4
	.comm	MODEKEY_EMACS,8,8
	.comm	GRID_FLAG_PADDING,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_window-copy.c_window_copy_cmd_previous_matching_bracket.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"}]) \000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	window_copy_cmd_previous_matching_bracket, %function
window_copy_cmd_previous_matching_bracket:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0]
	sub	sp, sp, #36
	ldr	r3, [r9]
	ldr	r2, .L50
	mov	r1, r3
	str	r3, [sp]
	ldr	r6, [r9, #4]
	ldr	r3, .L50+4
	cmp	r1, #0
	ldr	r1, .L50+8
	ldr	r8, [r6, #16]
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	str	r2, [sp, #20]
	str	r3, [sp, #24]
	beq	.L2
	ldr	r10, .L50+12
.L18:
	mov	r0, r8
	ldr	r4, [r6]
	bl	screen_hsize
	ldmib	r6, {r2, r3}
	add	r2, r0, r2
	sub	fp, r2, r3
	mov	r1, fp
	mov	r0, r9
	bl	window_copy_find_length
	cmp	r0, #0
	beq	.L2
	mov	r5, #0
.L3:
	mov	r2, fp
	mov	r1, r4
	ldr	r0, [r8]
	add	r3, sp, #8
	bl	grid_get_cell
	ldr	r7, [sp, #12]
	cmp	r7, #1
	beq	.L4
.L7:
	ldr	r2, [r6, #12]
	ldr	r3, [r10]
	cmp	r2, r3
	bne	.L10
	eor	r5, r5, #1
	cmp	r4, #0
	movle	r5, #0
	andgt	r5, r5, #1
	cmp	r5, #0
	beq	.L9
	mov	r5, #1
	sub	r4, r4, #1
	b	.L3
.L4:
	ldr	r3, .L50+16
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L7
	ldr	r3, [sp, #16]
	add	r0, sp, #24
	ldrb	r1, [r3]	@ zero_extendqisi2
	str	r1, [sp, #4]
	bl	strchr
	cmp	r0, #0
	ldr	r1, [sp, #4]
	beq	.L7
	add	r3, sp, #24
	sub	r0, r0, r3
	add	r3, sp, #32
	add	r3, r3, r0
	ldrb	r5, [r3, #-12]	@ zero_extendqisi2
	str	r1, [sp, #4]
.L11:
	cmp	r4, #0
	subne	r4, r4, #1
	beq	.L48
.L14:
	add	r3, sp, #8
	mov	r2, fp
	mov	r1, r4
	ldr	r0, [r8]
	bl	grid_get_cell
	ldr	r3, [sp, #12]
	cmp	r3, #1
	bne	.L11
	ldr	r3, .L50+16
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	bics	r3, r3, r2
	beq	.L11
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r2
	addeq	r7, r7, #1
	beq	.L11
	cmp	r3, r5
	bne	.L11
	subs	r7, r7, #1
	bne	.L11
	mov	r2, fp
	mov	r1, r4
	mov	r0, r9
	bl	window_copy_scroll_to
.L10:
	ldr	r3, [sp]
	subs	r3, r3, #1
	str	r3, [sp]
	bne	.L18
.L2:
	ldr	r3, .L50+20
	ldr	r0, [r3]
	ldr	r3, .L50+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L49
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r2, #1
	mov	r0, r9
	ldr	r1, .L50+24
	bl	window_copy_cursor_previous_word
	ldr	r3, [sp]
	subs	r3, r3, #1
	str	r3, [sp]
	bne	.L18
	b	.L2
.L48:
	cmp	fp, #0
	beq	.L10
.L13:
	sub	fp, fp, #1
	mov	r1, fp
	mov	r0, r9
	bl	window_copy_find_length
	cmp	fp, #0
	movle	r3, #0
	movgt	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L13
	orrs	r3, fp, r0
	beq	.L10
	sub	r4, r0, #1
	b	.L14
.L49:
	bl	__stack_chk_fail
.L51:
	.align	2
.L50:
	.word	2644859
	.word	2710909
	.word	.LC1
	.word	MODEKEY_EMACS
	.word	GRID_FLAG_PADDING
	.word	WINDOW_COPY_CMD_NOTHING
	.word	.LC0
	.size	window_copy_cmd_previous_matching_bracket, .-window_copy_cmd_previous_matching_bracket
	.comm	WINDOW_COPY_CMD_NOTHING,4,4
	.comm	MODEKEY_EMACS,4,4
	.comm	GRID_FLAG_PADDING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
