	.file	"extr_vt.c_complement_pos.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	complement_pos
	.type	complement_pos, @function
complement_pos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	WARN_CONSOLE_UNLOCKED@PLT
	mov	esi, DWORD PTR old_offset.1953[rip]
	test	esi, esi
	js	.L3
	cmp	esi, DWORD PTR 0[rbp]
	jl	.L16
.L3:
	mov	DWORD PTR old_offset.1953[rip], ebx
	test	ebx, ebx
	js	.L1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L17
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edx, 1
	mov	esi, ebx
	mov	rdi, rbp
	call	screenpos@PLT
	mov	rdi, rax
	mov	r13, rax
	call	scr_readw@PLT
	mov	rsi, r13
	mov	WORD PTR old.1954[rip], ax
	xor	ax, WORD PTR 4[rbp]
	movzx	r12d, ax
	mov	edi, r12d
	call	scr_writew@PLT
	mov	rdi, rbp
	call	DO_UPDATE@PLT
	test	rax, rax
	je	.L1
	mov	eax, ebx
	mov	esi, r12d
	mov	rdi, rbp
	sar	eax
	cdq
	idiv	DWORD PTR 8[rbp]
	mov	WORD PTR oldx.1955[rip], dx
	movzx	ecx, dx
	movzx	edx, ax
	mov	WORD PTR oldy.1956[rip], ax
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edx, 1
	mov	rdi, rbp
	call	screenpos@PLT
	movzx	edi, WORD PTR old.1954[rip]
	mov	rsi, rax
	call	scr_writew@PLT
	mov	rdi, rbp
	call	DO_UPDATE@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 16[rbp]
	movzx	ecx, WORD PTR oldx.1955[rip]
	mov	rdi, rbp
	movzx	edx, WORD PTR oldy.1956[rip]
	movzx	esi, WORD PTR old.1954[rip]
	call	[QWORD PTR [rax]]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	complement_pos, .-complement_pos
	.local	oldy.1956
	.comm	oldy.1956,2,2
	.local	oldx.1955
	.comm	oldx.1955,2,2
	.local	old.1954
	.comm	old.1954,2,2
	.data
	.align 4
	.type	old_offset.1953, @object
	.size	old_offset.1953, 4
old_offset.1953:
	.long	-1
	.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_vt.c_complement_pos.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	complement_pos
	.syntax unified
	.arm
	.fpu softvfp
	.type	complement_pos, %function
complement_pos:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L17
	mov	r4, r1
	mov	r6, r0
	bl	WARN_CONSOLE_UNLOCKED
	ldr	r1, [r5]
	cmp	r1, #0
	blt	.L3
	ldr	r3, [r6]
	cmp	r1, r3
	blt	.L16
.L3:
	cmp	r4, #0
	str	r4, [r5]
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r6]
	cmp	r3, r4
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r2, #1
	mov	r1, r4
	mov	r0, r6
	bl	screenpos
	mov	r7, r0
	bl	scr_readw
	mov	r3, r0
	ldrh	r5, [r6, #4]
	ldr	r8, .L17+4
	eor	r5, r5, r0
	mov	r1, r7
	mov	r0, r5
	strh	r3, [r8]	@ movhi
	bl	scr_writew
	mov	r0, r6
	bl	DO_UPDATE
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r6, #8]
	asr	r0, r4, #1
	bl	__aeabi_idivmod
	lsl	r2, r0, #16
	ldr	r0, [r6, #12]
	lsl	r3, r1, #16
	ldr	lr, [r0]
	lsr	r2, r2, #16
	lsr	r3, r3, #16
	mov	r1, r5
	mov	r0, r6
	mov	ip, lr
	strh	r2, [r8, #4]	@ movhi
	strh	r3, [r8, #2]	@ movhi
	pop	{r4, r5, r6, r7, r8, lr}
	bx	ip
.L16:
	ldr	r7, .L17+4
	mov	r2, #1
	mov	r0, r6
	ldrh	r8, [r7]
	bl	screenpos
	mov	r1, r0
	mov	r0, r8
	bl	scr_writew
	mov	r0, r6
	bl	DO_UPDATE
	cmp	r0, #0
	beq	.L3
	ldr	r2, [r6, #12]
	mov	r0, r6
	ldr	r8, [r2]
	ldrh	r3, [r7, #2]
	ldrh	r2, [r7, #4]
	ldrh	r1, [r7]
	blx	r8
	b	.L3
.L18:
	.align	2
.L17:
	.word	.LANCHOR0
	.word	.LANCHOR1
	.size	complement_pos, .-complement_pos
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	old_offset.4237, %object
	.size	old_offset.4237, 4
old_offset.4237:
	.word	-1
	.bss
	.align	1
	.set	.LANCHOR1,. + 0
	.type	old.4238, %object
	.size	old.4238, 2
old.4238:
	.space	2
	.type	oldx.4239, %object
	.size	oldx.4239, 2
oldx.4239:
	.space	2
	.type	oldy.4240, %object
	.size	oldy.4240, 2
oldy.4240:
	.space	2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
