	.file	"extr_panels.c___split_panel_horizontal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__split_panel_horizontal
	.type	__split_panel_horizontal, @function
__split_panel_horizontal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	r13, QWORD PTR [rdi]
	call	__check_panel_num@PLT
	test	eax, eax
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[r13]
	mov	rcx, r12
	mov	rdx, r14
	mov	rdi, rbp
	lea	rsi, 1[rax]
	call	__insert_panel@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	lea	rsi, 1[rax]
	call	__get_panel@PLT
	mov	r9, rax
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR [r9]
	mov	ecx, DWORD PTR [rax]
	mov	r10d, DWORD PTR 4[rax]
	mov	QWORD PTR 24[rax], 0
	mov	esi, DWORD PTR 16[rax]
	mov	edx, ecx
	shr	edx, 31
	add	edx, ecx
	sar	edx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	sub	ecx, edx
	movsx	rdx, edx
	add	rdx, QWORD PTR 8[rax]
	sub	rdx, 1
	lea	r8d, 1[rcx]
	mov	ecx, r10d
	call	__set_geometry@PLT
	mov	rdi, rbp
	call	__fix_layout@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	mov	edx, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	__set_refresh_all@PLT
	.cfi_endproc
.LFE0:
	.size	__split_panel_horizontal, .-__split_panel_horizontal
	.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___split_panel_horizontal.c"
	.text
	.align	2
	.global	__split_panel_horizontal
	.syntax unified
	.arm
	.fpu softvfp
	.type	__split_panel_horizontal, %function
__split_panel_horizontal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	mov	r7, r3
	ldr	r8, [r0]
	bl	__check_panel_num
	cmp	r0, #0
	bne	.L5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r1, [r8]
	mov	r3, r7
	mov	r2, r5
	mov	r0, r4
	add	r1, r1, #1
	bl	__insert_panel
	ldr	r1, [r8]
	mov	r0, r8
	add	r1, r1, #1
	bl	__get_panel
	mov	r5, #0
	ldr	r6, [r6]
	ldr	r0, [r0]
	ldr	r3, [r6]
	ldr	r2, [r6, #8]
	add	lr, r3, r3, lsr #31
	asr	lr, lr, #1
	add	lr, lr, #1
	sub	ip, r3, lr
	add	ip, ip, #1
	add	r2, lr, r2
	ldr	r1, [r6, #12]
	ldr	r3, [r6, #4]
	str	lr, [r6]
	sub	r2, r2, #1
	str	r5, [r6, #16]
	str	ip, [sp]
	bl	__set_geometry
	mov	r0, r4
	bl	__fix_layout
	mov	r1, r5
	mov	r0, r4
	mov	r2, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	__set_refresh_all
	.size	__split_panel_horizontal, .-__split_panel_horizontal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
