	.file	"extr_rebar.c_REBAR_MinimizeBand.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Illegal MinimizeBand, requested=%d, current band count=%d\n"
	.align 8
.LC1:
	.string	"Ignoring minimize request on a hidden band (%d)\n"
	.align 8
.LC2:
	.string	"(%d): Minimizing the first band in row is by maximizing the second\n"
	.align 8
.LC3:
	.string	"(%d): Only one band in row - nothing to do\n"
	.text
	.p2align 4
	.type	REBAR_MinimizeBand, @function
REBAR_MinimizeBand:
.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	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdx, QWORD PTR [rdi]
	cmp	rdx, rsi
	setle	cl
	test	rdx, rdx
	sete	al
	or	cl, al
	jne	.L14
	test	rsi, rsi
	jns	.L2
.L14:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	ERR@PLT
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	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
.L2:
	.cfi_restore_state
	mov	r12, rdi
	call	REBAR_GetBand@PLT
	mov	rsi, rbp
	mov	rbx, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR RBBS_HIDDEN[rip], eax
	jne	.L18
	mov	rdi, r12
	call	prev_visible@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L9
	mov	esi, eax
	mov	rdi, r12
	call	REBAR_GetBand@PLT
	mov	rcx, QWORD PTR 8[rbx]
	cmp	QWORD PTR 8[rax], rcx
	je	.L19
.L9:
	mov	rsi, rbp
	mov	rdi, r12
	call	next_visible@PLT
	mov	r13d, eax
	cdqe
	cmp	rax, QWORD PTR [r12]
	jge	.L8
	mov	esi, r13d
	mov	rdi, r12
	call	REBAR_GetBand@PLT
	mov	rbx, QWORD PTR 8[rbx]
	cmp	QWORD PTR 8[rax], rbx
	je	.L20
.L8:
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	call	TRACE@PLT
.L11:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR TRUE[rip]
	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
.L18:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	WARN@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, r13d
	mov	rdi, r12
	call	REBAR_GetBand@PLT
	mov	esi, r13d
	mov	rdi, r12
	mov	r8, rax
	mov	rax, QWORD PTR 24[rbx]
	sub	rax, QWORD PTR 16[rbx]
	add	QWORD PTR 24[r8], rax
	call	REBAR_GetBand@PLT
	mov	esi, r13d
	mov	rdi, r12
	mov	r14, rax
	call	REBAR_GetBand@PLT
	mov	rdx, QWORD PTR 24[r14]
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 24[rbx], rax
	mov	QWORD PTR 32[rbx], rax
	call	get_row_begin_for_band@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13d, eax
	call	get_row_end_for_band@PLT
	mov	esi, r13d
	mov	rdi, r12
	mov	r14d, eax
	mov	edx, eax
	call	REBAR_SetRowRectsX@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, r12
	test	DWORD PTR CCS_VERT[rip], eax
	je	.L12
	call	REBAR_CalcVertBand@PLT
.L13:
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, r12
	call	REBAR_MoveChildWindows@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	call	REBAR_CalcHorzBand@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	call	TRACE@PLT
	mov	edx, DWORD PTR FALSE[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	REBAR_MaximizeBand@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	REBAR_MinimizeBand, .-REBAR_MinimizeBand
	.comm	TRUE,4,4
	.comm	RBBS_HIDDEN,4,4
	.comm	FALSE,4,4
	.comm	CCS_VERT,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_rebar.c_REBAR_MinimizeBand.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Illegal MinimizeBand, requested=%d, current band co"
	.ascii	"unt=%d\012\000"
	.align	2
.LC1:
	.ascii	"Ignoring minimize request on a hidden band (%d)\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"(%d): Minimizing the first band in row is by maximi"
	.ascii	"zing the second\012\000"
	.align	2
.LC3:
	.ascii	"(%d): Only one band in row - nothing to do\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	REBAR_MinimizeBand, %function
REBAR_MinimizeBand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, #0
	cmpne	r2, r1
	movle	r3, #1
	movgt	r3, #0
	orrs	r3, r3, r1, lsr #31
	beq	.L2
	ldr	r0, .L19
	bl	ERR
	ldr	r3, .L19+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, r1
	mov	r5, r0
	bl	REBAR_GetBand
	ldr	r3, .L19+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r6, r0
	tst	r2, r3
	mov	r1, r4
	bne	.L16
	mov	r0, r5
	bl	prev_visible
	subs	r7, r0, #0
	blt	.L8
	mov	r1, r7
	mov	r0, r5
	bl	REBAR_GetBand
	ldr	r3, [r6, #4]
	ldr	r2, [r0, #4]
	cmp	r2, r3
	beq	.L17
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	next_visible
	ldr	r3, [r5]
	mov	r7, r0
	cmp	r3, r0
	ble	.L7
	mov	r1, r0
	mov	r0, r5
	bl	REBAR_GetBand
	ldr	r3, [r6, #4]
	ldr	r2, [r0, #4]
	cmp	r2, r3
	beq	.L18
.L7:
	mov	r1, r4
	ldr	r0, .L19+12
	bl	TRACE
.L10:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r0, .L19+20
	bl	WARN
	ldr	r3, .L19+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r1, r7
	mov	r0, r5
	bl	REBAR_GetBand
	ldr	r1, [r6, #8]
	ldr	r2, [r6, #12]
	ldr	r3, [r0, #12]
	sub	r2, r2, r1
	add	r3, r3, r2
	str	r3, [r0, #12]
	mov	r1, r7
	mov	r0, r5
	bl	REBAR_GetBand
	mov	r8, r0
	mov	r1, r7
	mov	r0, r5
	bl	REBAR_GetBand
	ldr	r2, [r8, #12]
	ldr	r3, [r6, #8]
	mov	r1, r4
	str	r2, [r0, #16]
	str	r3, [r6, #12]
	str	r3, [r6, #16]
	mov	r0, r5
	bl	get_row_begin_for_band
	mov	r3, r0
	mov	r1, r4
	mov	r0, r5
	mov	r4, r3
	bl	get_row_end_for_band
	mov	r6, r0
	mov	r2, r0
	mov	r1, r4
	mov	r0, r5
	bl	REBAR_SetRowRectsX
	ldr	r3, .L19+24
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	mov	r1, r4
	tst	r2, r3
	mov	r0, r5
	mov	r2, r6
	beq	.L11
	bl	REBAR_CalcVertBand
.L12:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	REBAR_MoveChildWindows
	ldr	r3, .L19+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	REBAR_CalcHorzBand
	b	.L12
.L18:
	mov	r1, r4
	ldr	r0, .L19+28
	bl	TRACE
	ldr	r3, .L19+4
	mov	r1, r7
	mov	r0, r5
	ldr	r2, [r3]
	bl	REBAR_MaximizeBand
	b	.L10
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	FALSE
	.word	RBBS_HIDDEN
	.word	.LC3
	.word	TRUE
	.word	.LC1
	.word	CCS_VERT
	.word	.LC2
	.size	REBAR_MinimizeBand, .-REBAR_MinimizeBand
	.comm	TRUE,4,4
	.comm	RBBS_HIDDEN,4,4
	.comm	FALSE,4,4
	.comm	CCS_VERT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
