	.file	"extr_rebar.c_REBAR_MoveBandToRowOffset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	REBAR_MoveBandToRowOffset, @function
REBAR_MoveBandToRowOffset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edx
	call	REBAR_GetBand@PLT
	mov	esi, r15d
	mov	rdi, rbx
	mov	QWORD PTR [rsp], rax
	call	REBAR_GetBand@PLT
	mov	eax, DWORD PTR [rax]
	and	eax, DWORD PTR RBBS_BREAK[rip]
	mov	DWORD PTR 8[rsp], eax
	test	ebp, ebp
	jne	.L2
	cmp	r15d, r12d
	jl	.L3
.L10:
	mov	r15d, DWORD PTR 12[rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, r14d
	call	DPA_DeletePtr@PLT
	xor	eax, eax
	cmp	r15d, r14d
	mov	rbp, QWORD PTR [rsp]
	setg	al
	mov	edi, DWORD PTR 4[rbx]
	sub	r15d, eax
	mov	rdx, rbp
	mov	esi, r15d
	call	DPA_InsertPtr@PLT
	mov	eax, DWORD PTR RBBS_BREAK[rip]
	not	eax
	and	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L19
.L7:
	cmp	DWORD PTR [rbx], r14d
	jne	.L11
	mov	DWORD PTR [rbx], r15d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, r15d
	mov	rdi, rbx
	add	ebp, DWORD PTR SEP_WIDTH[rip]
	add	ebp, DWORD PTR 8[rax]
	call	next_visible@PLT
	mov	r15d, eax
	cmp	r12d, eax
	jle	.L4
.L3:
	mov	esi, r15d
	mov	rdi, rbx
	call	REBAR_GetBand@PLT
	mov	ecx, DWORD PTR 4[rax]
	mov	edx, ecx
	shr	edx, 31
	add	edx, ecx
	sar	edx
	add	edx, ebp
	cmp	edx, r13d
	jle	.L20
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r15d, DWORD PTR 12[rsp]
	cmp	r15d, r12d
	jge	.L10
	test	r13d, r13d
	js	.L10
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	r13d, ebp
	jl	.L4
.L5:
	mov	esi, r15d
	mov	rdi, rbx
	call	REBAR_GetBand@PLT
	mov	rdx, QWORD PTR SEP_WIDTH[rip]
	mov	esi, r15d
	mov	rdi, rbx
	add	rdx, QWORD PTR 8[rax]
	add	ebp, edx
	call	next_visible@PLT
	mov	r15d, eax
	cmp	r12d, eax
	jg	.L21
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbx
	call	REBAR_GetBand@PLT
	mov	edx, DWORD PTR RBBS_BREAK[rip]
	or	DWORD PTR [rax], edx
	jmp	.L7
.L11:
	mov	r15d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	REBAR_MoveBandToRowOffset, .-REBAR_MoveBandToRowOffset
	.comm	SEP_WIDTH,8,8
	.comm	RBBS_BREAK,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_MoveBandToRowOffset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	REBAR_MoveBandToRowOffset, %function
REBAR_MoveBandToRowOffset:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r8, r2
	mov	r6, r3
	mov	r4, r0
	ldr	r5, [sp, #52]
	str	r1, [sp]
	ldr	r7, [sp, #48]
	bl	REBAR_GetBand
	mov	r1, r8
	mov	r9, r0
	mov	r0, r4
	bl	REBAR_GetBand
	ldr	r3, .L21
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r5, #0
	and	r3, r2, r3
	str	r3, [sp, #4]
	bne	.L2
	cmp	r8, r6
	mov	r10, r8
	ldrlt	fp, .L21+4
	blt	.L3
.L4:
	ldr	r5, [sp]
	ldr	r0, [r4, #4]
	mov	r1, r5
	bl	DPA_DeletePtr
	cmp	r10, r5
	subgt	r10, r10, #1
	mov	r2, r9
	mov	r1, r10
	ldr	r0, [r4, #4]
	bl	DPA_InsertPtr
	ldr	r3, .L21
	ldr	r2, [r9]
	ldr	r1, [r3]
	ldr	r3, [sp, #4]
	bic	r2, r2, r1
	cmp	r3, #0
	str	r2, [r9]
	bne	.L19
.L7:
	ldr	r2, [r4]
	ldr	r3, [sp]
	cmp	r2, r3
	mvnne	r10, #0
	mov	r0, r10
	streq	r10, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, [r0, #8]
	ldr	r2, [fp]
	mov	r1, r10
	add	r3, r3, r2
	mov	r0, r4
	add	r5, r5, r3
	bl	next_visible
	cmp	r6, r0
	mov	r10, r0
	ble	.L4
.L3:
	mov	r1, r10
	mov	r0, r4
	bl	REBAR_GetBand
	ldr	r3, [r0, #4]
	add	r3, r3, r3, lsr #31
	add	r3, r5, r3, asr #1
	cmp	r3, r7
	ble	.L20
	b	.L4
.L2:
	lsr	r5, r7, #31
	cmp	r8, r6
	orrge	r5, r5, #1
	cmp	r5, #0
	mov	r10, r8
	bne	.L4
	ldr	fp, .L21+4
.L5:
	mov	r1, r10
	mov	r0, r4
	bl	REBAR_GetBand
	ldr	r2, [fp]
	ldr	r3, [r0, #8]
	mov	r1, r10
	add	r3, r3, r2
	mov	r0, r4
	add	r5, r5, r3
	bl	next_visible
	cmp	r7, r5
	cmpge	r6, r0
	mov	r10, r0
	bgt	.L5
	b	.L4
.L19:
	mov	r1, r8
	mov	r0, r4
	bl	REBAR_GetBand
	ldr	r3, .L21
	ldr	r2, [r0]
	ldr	r1, [r3]
	orr	r2, r2, r1
	str	r2, [r0]
	b	.L7
.L22:
	.align	2
.L21:
	.word	RBBS_BREAK
	.word	SEP_WIDTH
	.size	REBAR_MoveBandToRowOffset, .-REBAR_MoveBandToRowOffset
	.comm	SEP_WIDTH,4,4
	.comm	RBBS_BREAK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
