	.file	"extr_panels.c___check_if_mouse_x_on_edge.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"scr.panelborder"
	.text
	.p2align 4
	.globl	__check_if_mouse_x_on_edge
	.type	__check_if_mouse_x_on_edge, @function
__check_if_mouse_x_on_edge:
.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, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rdi]
	call	r_config_get_i@PLT
	cmp	rax, 1
	mov	eax, DWORD PTR [r14]
	sbb	r13d, r13d
	xor	ebx, ebx
	and	r13d, -2
	add	r13d, 3
	lea	r12d, -1[r13]
	test	eax, eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, ebx
	mov	rdi, r14
	call	__get_panel@PLT
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	sub	edx, r12d
	cmp	edx, ebp
	jge	.L5
	add	eax, r13d
	cmp	eax, ebp
	jge	.L14
.L5:
	add	ebx, 1
	cmp	DWORD PTR [r14], ebx
	jg	.L6
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L14:
	.cfi_restore_state
	mov	DWORD PTR 4[r14], 1
	mov	eax, 1
	mov	DWORD PTR 8[r14], ebp
	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
	.cfi_endproc
.LFE0:
	.size	__check_if_mouse_x_on_edge, .-__check_if_mouse_x_on_edge
	.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_panels.c___check_if_mouse_x_on_edge.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"scr.panelborder\000"
	.text
	.align	2
	.global	__check_if_mouse_x_on_edge
	.syntax unified
	.arm
	.fpu softvfp
	.type	__check_if_mouse_x_on_edge, %function
__check_if_mouse_x_on_edge:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r0]
	mov	r6, r1
	ldr	r1, .L13
	ldr	r5, [r3, #4]
	bl	r_config_get_i
	cmp	r0, #0
	movne	r7, #3
	moveq	r7, #1
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r4, #0
	subgt	r8, r7, #1
	ble	.L7
.L6:
	mov	r1, r4
	mov	r0, r5
	bl	__get_panel
	ldr	r3, [r0]
	add	r4, r4, #1
	ldr	r3, [r3]
	sub	r2, r3, r8
	cmp	r2, r6
	add	r3, r3, r7
	bge	.L5
	cmp	r3, r6
	bge	.L12
.L5:
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L6
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, #1
	stmib	r5, {r0, r6}
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	__check_if_mouse_x_on_edge, .-__check_if_mouse_x_on_edge
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
