	.file	"extr_img_convert.c_mp_get_sub_bb_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mp_get_sub_bb_list
	.type	mp_get_sub_bb_list, @function
mp_get_sub_bb_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	ebx, DWORD PTR MERGE_RC_PIXELS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	lea	rbp, 28[rsp]
	mov	DWORD PTR 28[rsp], 0
	test	eax, eax
	jle	.L2
	mov	r12d, edx
	lea	rdx, 48[rsi]
	mov	r15, rdi
	xor	r13d, r13d
	mov	QWORD PTR 8[rsp], rdx
	xor	eax, eax
	lea	rbp, 28[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r13
	pxor	xmm0, xmm0
	sal	rsi, 5
	add	rsi, QWORD PTR 8[r15]
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	rdx, QWORD PTR 8[rsi]
	mov	rcx, QWORD PTR 24[rsi]
	movaps	XMMWORD PTR 64[rsp], xmm0
	mov	r9d, DWORD PTR 16[rsi]
	mov	DWORD PTR 36[rsp], edx
	mov	r10d, edx
	add	edx, DWORD PTR [rsi]
	add	r9d, ecx
	mov	DWORD PTR 32[rsp], ecx
	mov	DWORD PTR 40[rsp], r9d
	mov	DWORD PTR 44[rsp], edx
	test	eax, eax
	jle	.L3
	lea	esi, -1[rax]
	sub	ecx, ebx
	mov	rdi, r14
	add	r10d, ebx
	lea	rsi, [rsi+rsi*2]
	sub	r9d, ebx
	add	edx, ebx
	sal	rsi, 4
	add	rsi, QWORD PTR 8[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	add	rdi, 48
	cmp	rsi, rdi
	je	.L3
.L8:
	cmp	DWORD PTR 4[rdi], ecx
	jl	.L4
	cmp	r10d, DWORD PTR [rdi]
	jl	.L4
	cmp	r9d, DWORD PTR 12[rdi]
	jg	.L4
	cmp	edx, DWORD PTR 8[rdi]
	jge	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	r12d, eax
	jne	.L6
.L5:
	lea	rsi, 32[rsp]
	add	r13, 1
	call	mp_rect_union@PLT
	cmp	DWORD PTR [r15], r13d
	jle	.L2
.L16:
	movsx	rax, DWORD PTR 28[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	lea	edx, 1[rax]
	lea	rax, [rax+rax*2]
	movdqa	xmm1, XMMWORD PTR 32[rsp]
	mov	rsi, rbp
	sal	rax, 4
	mov	rdi, r14
	mov	DWORD PTR 28[rsp], edx
	add	r13, 1
	movdqa	xmm2, XMMWORD PTR 48[rsp]
	movdqa	xmm3, XMMWORD PTR 64[rsp]
	add	rax, r14
	movups	XMMWORD PTR [rax], xmm1
	movups	XMMWORD PTR 16[rax], xmm2
	movups	XMMWORD PTR 32[rax], xmm3
	call	remove_intersecting_rcs@PLT
	cmp	DWORD PTR [r15], r13d
	jg	.L16
.L2:
	mov	rsi, rbp
	mov	rdi, r14
	call	remove_intersecting_rcs@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	rbx, QWORD PTR 88[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mp_get_sub_bb_list, .-mp_get_sub_bb_list
	.comm	MERGE_RC_PIXELS,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_img_convert.c_mp_get_sub_bb_list.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mp_get_sub_bb_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	mp_get_sub_bb_list, %function
mp_get_sub_bb_list:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	ldr	r0, [r0]
	ldr	r3, .L19
	sub	sp, sp, #52
	cmp	r0, ip
	mov	r4, r2
	ldr	r2, .L19+4
	ldr	r7, [r3]
	addle	r3, sp, #8
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	mov	r9, r1
	str	ip, [sp, #8]
	strle	r3, [sp, #4]
	ble	.L2
	mov	r5, ip
	mov	r6, ip
	add	r3, sp, #8
	str	r3, [sp, #4]
.L9:
	ldr	r2, [r8, #4]
	cmp	ip, #0
	add	r3, r2, r5, lsl #4
	ldr	fp, [r2, r5, lsl #4]
	ldr	lr, [r3, #4]
	ldr	r1, [r3, #12]
	ldr	r10, [r3, #8]
	add	fp, lr, fp
	add	r10, r1, r10
	str	r6, [sp, #28]
	str	r6, [sp, #32]
	str	r6, [sp, #36]
	str	r6, [sp, #40]
	str	r1, [sp, #12]
	str	r10, [sp, #20]
	str	fp, [sp, #24]
	str	lr, [sp, #16]
	ble	.L3
	mov	r0, r9
	mov	r3, #0
	sub	r1, r1, r7
	add	lr, lr, r7
	sub	r10, r10, r7
	add	fp, fp, r7
	b	.L8
.L6:
	add	r3, r3, #1
	cmp	r3, ip
	add	r0, r0, #32
	beq	.L3
.L8:
	ldr	r2, [r0, #4]
	cmp	r2, r1
	blt	.L4
	ldr	r2, [r0]
	cmp	lr, r2
	blt	.L4
	ldr	r2, [r0, #12]
	cmp	r10, r2
	bgt	.L4
	ldr	r2, [r0, #8]
	cmp	fp, r2
	bge	.L5
.L4:
	cmp	r4, ip
	bne	.L6
.L5:
	add	r1, sp, #12
	bl	mp_rect_union
	ldr	r3, [r8]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L2
.L17:
	ldr	ip, [sp, #8]
	b	.L9
.L3:
	add	lr, r9, ip, lsl #5
	add	r10, sp, #12
	ldmia	r10!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	r10, {r0, r1, r2, r3}
	add	ip, ip, #1
	stm	lr, {r0, r1, r2, r3}
	mov	r0, r9
	ldr	r1, [sp, #4]
	str	ip, [sp, #8]
	bl	remove_intersecting_rcs
	ldr	r3, [r8]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L17
.L2:
	mov	r0, r9
	ldr	r1, [sp, #4]
	bl	remove_intersecting_rcs
	ldr	r3, .L19+4
	ldr	r0, [sp, #8]
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	MERGE_RC_PIXELS
	.word	.LC0
	.size	mp_get_sub_bb_list, .-mp_get_sub_bb_list
	.comm	MERGE_RC_PIXELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
