	.file	"extr_if_py_both.h_SetBufferLine.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SetBufferLine, @function
SetBufferLine:
.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
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR Py_None[rip], rdx
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	je	.L23
	mov	rbp, rdx
	test	rdx, rdx
	je	.L23
	mov	rdi, rdx
	call	PyBytes_Check@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, rbp
	call	PyUnicode_Check@PLT
	test	rax, rax
	je	.L37
.L14:
	mov	rdi, rbp
	call	StringToLine@PLT
	mov	r14, rax
	mov	eax, DWORD PTR FAIL[rip]
	test	r14, r14
	je	.L1
	xor	eax, eax
	movsx	rbp, ebx
	call	VimTryStart@PLT
	xor	eax, eax
	call	PyErr_Clear@PLT
	mov	rcx, rsp
	lea	rdx, 16[rsp]
	mov	rdi, r12
	lea	rsi, 8[rsp]
	call	switch_to_win_for_buf@PLT
	mov	rdi, rbp
	call	u_savesub@PLT
	cmp	rax, QWORD PTR FAIL[rip]
	je	.L34
	mov	edx, DWORD PTR FALSE[rip]
	mov	rsi, r14
	mov	rdi, rbp
	call	ml_replace@PLT
	cmp	rax, QWORD PTR FAIL[rip]
	je	.L34
	xor	esi, esi
	mov	rdi, rbp
	call	changed_bytes@PLT
.L17:
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	restore_win_for_buf@PLT
	cmp	QWORD PTR curbuf[rip], r12
	je	.L38
.L19:
	xor	eax, eax
	call	VimTryEnd@PLT
	test	rax, rax
	jne	.L35
	test	r13, r13
	je	.L21
	mov	DWORD PTR 0[r13], 0
.L21:
	mov	eax, DWORD PTR OK[rip]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L39
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	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
.L23:
	.cfi_restore_state
	xor	eax, eax
	movsx	rbp, ebx
	call	PyErr_Clear@PLT
	mov	rcx, rsp
	lea	rdx, 16[rsp]
	mov	rdi, r12
	lea	rsi, 8[rsp]
	call	switch_to_win_for_buf@PLT
	xor	eax, eax
	call	VimTryStart@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	u_savedel@PLT
	cmp	rax, QWORD PTR FAIL[rip]
	jne	.L4
.L33:
	mov	rdx, QWORD PTR [rsp]
.L5:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	restore_win_for_buf@PLT
	xor	eax, eax
	call	VimTryEnd@PLT
	test	rax, rax
	jne	.L35
	test	r13, r13
	je	.L21
	mov	DWORD PTR 0[r13], -1
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rbp
	call	ml_delete@PLT
	cmp	rax, QWORD PTR FAIL[rip]
	je	.L33
	cmp	QWORD PTR curbuf[rip], r12
	je	.L40
.L7:
	mov	rdx, QWORD PTR [rsp]
	test	rdx, rdx
	jne	.L5
	mov	esi, 1
	mov	rdi, rbp
	call	deleted_lines_mark@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L37:
	xor	eax, eax
	call	PyErr_BadArgument@PLT
	.p2align 4,,10
	.p2align 3
.L35:
	mov	eax, DWORD PTR FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, r14
	call	vim_free@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	xor	eax, eax
	call	check_cursor_col@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L40:
	lea	rsi, 1[rbp]
	mov	rdx, -1
	mov	rdi, rbp
	call	py_fix_cursor@PLT
	jmp	.L7
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SetBufferLine, .-SetBufferLine
	.comm	curbuf,8,8
	.comm	RAISE_UNDO_FAIL,4,4
	.comm	RAISE_REPLACE_LINE_FAIL,4,4
	.comm	RAISE_DELETE_LINE_FAIL,4,4
	.comm	Py_None,8,8
	.comm	OK,4,4
	.comm	FALSE,4,4
	.comm	FAIL,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_if_py_both.h_SetBufferLine.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetBufferLine, %function
SetBufferLine:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	ldr	r2, .L40
	mov	r7, r3
	ldr	r2, [r2]
	ldr	r3, .L40+4
	cmp	r4, #0
	cmpne	r2, r4
	mov	r2, #0
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r0
	mov	r5, r1
	str	r2, [sp]
	str	r2, [sp, #4]
	str	r2, [sp, #8]
	bne	.L2
	bl	PyErr_Clear
	mov	r3, sp
	add	r2, sp, #8
	add	r1, sp, #4
	mov	r0, r6
	bl	switch_to_win_for_buf
	bl	VimTryStart
	mov	r1, #1
	mov	r0, r5
	bl	u_savedel
	ldr	r4, .L40+8
	ldr	r3, [r4]
	cmp	r0, r3
	bne	.L3
.L31:
	ldr	r2, [sp]
.L4:
	ldmib	sp, {r0, r1}
	bl	restore_win_for_buf
	bl	VimTryEnd
	cmp	r0, #0
	bne	.L33
	cmp	r7, #0
	mvnne	r3, #0
	strne	r3, [r7]
.L20:
	ldr	r3, .L40+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L40+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	ml_delete
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L31
	ldr	r3, .L40+20
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L37
.L6:
	ldr	r2, [sp]
	cmp	r2, #0
	bne	.L4
	mov	r0, r5
	mov	r1, #1
	bl	deleted_lines_mark
	b	.L31
.L2:
	mov	r0, r4
	bl	PyBytes_Check
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	PyUnicode_Check
	cmp	r0, #0
	beq	.L38
.L13:
	mov	r0, r4
	bl	StringToLine
	subs	r8, r0, #0
	beq	.L34
	bl	VimTryStart
	bl	PyErr_Clear
	mov	r3, sp
	add	r2, sp, #8
	add	r1, sp, #4
	mov	r0, r6
	bl	switch_to_win_for_buf
	mov	r0, r5
	bl	u_savesub
	ldr	r4, .L40+8
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L32
	ldr	r3, .L40+16
	mov	r1, r8
	ldr	r2, [r3]
	mov	r0, r5
	bl	ml_replace
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L32
	mov	r0, r5
	mov	r1, #0
	bl	changed_bytes
.L16:
	ldmib	sp, {r0, r1}
	ldr	r2, [sp]
	bl	restore_win_for_buf
	ldr	r3, .L40+20
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L39
.L18:
	bl	VimTryEnd
	cmp	r0, #0
	bne	.L33
	cmp	r7, #0
	strne	r0, [r7]
	b	.L20
.L33:
	ldr	r0, [r4]
	b	.L1
.L32:
	mov	r0, r8
	bl	vim_free
	b	.L16
.L38:
	bl	PyErr_BadArgument
.L34:
	ldr	r3, .L40+8
	ldr	r0, [r3]
	b	.L1
.L39:
	bl	check_cursor_col
	b	.L18
.L37:
	mvn	r2, #0
	mov	r0, r5
	add	r1, r5, #1
	bl	py_fix_cursor
	b	.L6
.L36:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	Py_None
	.word	.LC0
	.word	FAIL
	.word	OK
	.word	FALSE
	.word	curbuf
	.size	SetBufferLine, .-SetBufferLine
	.comm	curbuf,4,4
	.comm	RAISE_UNDO_FAIL,4,4
	.comm	RAISE_REPLACE_LINE_FAIL,4,4
	.comm	RAISE_DELETE_LINE_FAIL,4,4
	.comm	Py_None,4,4
	.comm	OK,4,4
	.comm	FALSE,4,4
	.comm	FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
