	.file	"564313.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 4
	.type	ADDED_BORDER, @object
	.size	ADDED_BORDER, 4
ADDED_BORDER:
	.long	32
	.align 4
	.type	L_RED_SHIFT, @object
	.size	L_RED_SHIFT, 4
L_RED_SHIFT:
	.long	24
	.align 4
	.type	L_GREEN_SHIFT, @object
	.size	L_GREEN_SHIFT, 4
L_GREEN_SHIFT:
	.long	16
	.align 4
	.type	L_BLUE_SHIFT, @object
	.size	L_BLUE_SHIFT, 4
L_BLUE_SHIFT:
	.long	8
	.align 4
	.type	L_ALPHA_SHIFT, @object
	.size	L_ALPHA_SHIFT, 4
L_ALPHA_SHIFT:
	.zero	4
	.align 4
	.type	L_RED_WEIGHT, @object
	.size	L_RED_WEIGHT, 4
L_RED_WEIGHT:
	.long	1050253722
	.align 4
	.type	L_GREEN_WEIGHT, @object
	.size	L_GREEN_WEIGHT, 4
L_GREEN_WEIGHT:
	.long	1056964608
	.align 4
	.type	L_BLUE_WEIGHT, @object
	.size	L_BLUE_WEIGHT, 4
L_BLUE_WEIGHT:
	.long	1045220557
.LC0:
	.string	" Syntax:  auto_crop filein"
.LC1:
	.string	"pix not made"
.LC2:
	.string	"r11 + c10.20 + o5.50 + x4"
	.align 8
.LC3:
	.string	"Warning: no components on page %s\n"
.LC4:
	.string	"Found %d components in %s\n"
.LC5:
	.string	"auto_crop-out_%d.png"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 160
	mov	DWORD PTR -8340[rbp], edi
	mov	QWORD PTR -8352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8304[rbp], 40
	cmp	DWORD PTR -8340[rbp], 2
	je	.L2
	mov	eax, DWORD PTR LeptMsgSeverity[rip]
	cmp	eax, 5
	jg	.L3
	mov	edx, 1
	lea	rsi, mainName.0[rip]
	lea	rdi, .LC0[rip]
	call	returnErrorInt@PLT
	jmp	.L1
.L3:
	mov	eax, 1
	jmp	.L1
.L2:
	mov	rax, QWORD PTR -8352[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8272[rbp], rax
	mov	rax, QWORD PTR -8272[rbp]
	mov	rdi, rax
	call	pixRead@PLT
	mov	QWORD PTR -8264[rbp], rax
	cmp	QWORD PTR -8264[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR LeptMsgSeverity[rip]
	cmp	eax, 5
	jg	.L7
	mov	edx, 1
	lea	rsi, mainName.0[rip]
	lea	rdi, .LC1[rip]
	call	returnErrorInt@PLT
	jmp	.L1
.L7:
	mov	eax, 1
	jmp	.L1
.L6:
	mov	rax, QWORD PTR -8264[rbp]
	mov	esi, 130
	mov	rdi, rax
	call	pixConvertTo1@PLT
	mov	QWORD PTR -8280[rbp], rax
	mov	rax, QWORD PTR -8280[rbp]
	mov	edx, 0
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	pixMorphSequence@PLT
	mov	QWORD PTR -8256[rbp], rax
	mov	rax, QWORD PTR -8256[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	pixConnComp@PLT
	mov	QWORD PTR -8248[rbp], rax
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	boxaGetCount@PLT
	mov	DWORD PTR -8300[rbp], eax
	cmp	DWORD PTR -8300[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8272[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L10
.L9:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -8272[rbp]
	mov	edx, DWORD PTR -8300[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L10:
	mov	DWORD PTR -8308[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -8248[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	esi, 10
	mov	rdi, rax
	call	boxaSort@PLT
	mov	QWORD PTR -8240[rbp], rax
	mov	ecx, DWORD PTR -8308[rbp]
	mov	rax, QWORD PTR -8240[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	boxaGetBox@PLT
	mov	QWORD PTR -8232[rbp], rax
	lea	rdi, -8312[rbp]
	lea	rcx, -8316[rbp]
	lea	rdx, -8320[rbp]
	lea	rsi, -8324[rbp]
	mov	rax, QWORD PTR -8232[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	boxGetGeometry@PLT
	mov	eax, DWORD PTR -8324[rbp]
	sub	eax, DWORD PTR -8304[rbp]
	mov	edx, 0
	test	eax, eax
	cmovs	eax, edx
	mov	DWORD PTR -8296[rbp], eax
	mov	eax, DWORD PTR -8320[rbp]
	sub	eax, DWORD PTR -8304[rbp]
	mov	edx, 0
	test	eax, eax
	cmovs	eax, edx
	mov	DWORD PTR -8292[rbp], eax
	mov	eax, DWORD PTR -8304[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -8316[rbp]
	add	eax, edx
	mov	DWORD PTR -8288[rbp], eax
	mov	eax, DWORD PTR -8304[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -8312[rbp]
	add	eax, edx
	mov	DWORD PTR -8284[rbp], eax
	mov	ecx, DWORD PTR -8284[rbp]
	mov	edx, DWORD PTR -8288[rbp]
	mov	esi, DWORD PTR -8292[rbp]
	mov	eax, DWORD PTR -8296[rbp]
	mov	edi, eax
	call	boxCreate@PLT
	mov	QWORD PTR -8224[rbp], rax
	mov	rcx, QWORD PTR -8224[rbp]
	mov	rax, QWORD PTR -8264[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	pixClipRectangle@PLT
	mov	QWORD PTR -8216[rbp], rax
	mov	edx, DWORD PTR -8308[rbp]
	lea	rax, -8208[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rcx, QWORD PTR -8216[rbp]
	lea	rax, -8208[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	pixWrite@PLT
	add	DWORD PTR -8308[rbp], 1
.L11:
	mov	eax, DWORD PTR -8308[rbp]
	cmp	eax, DWORD PTR -8300[rbp]
	jl	.L12
	lea	rax, -8280[rbp]
	mov	rdi, rax
	call	pixDestroy@PLT
.L1:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.data
	.align 8
	.type	mainName.0, @object
	.size	mainName.0, 10
mainName.0:
	.string	"auto_crop"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"564313.c"
	.text
	.section	.rodata
	.align	2
	.type	ADDED_BORDER, %object
	.size	ADDED_BORDER, 4
ADDED_BORDER:
	.word	32
	.align	2
	.type	L_RED_SHIFT, %object
	.size	L_RED_SHIFT, 4
L_RED_SHIFT:
	.word	24
	.align	2
	.type	L_GREEN_SHIFT, %object
	.size	L_GREEN_SHIFT, 4
L_GREEN_SHIFT:
	.word	16
	.align	2
	.type	L_BLUE_SHIFT, %object
	.size	L_BLUE_SHIFT, 4
L_BLUE_SHIFT:
	.word	8
	.align	2
	.type	L_ALPHA_SHIFT, %object
	.size	L_ALPHA_SHIFT, 4
L_ALPHA_SHIFT:
	.space	4
	.align	2
	.type	L_RED_WEIGHT, %object
	.size	L_RED_WEIGHT, 4
L_RED_WEIGHT:
	.word	1050253722
	.align	2
	.type	L_GREEN_WEIGHT, %object
	.size	L_GREEN_WEIGHT, 4
L_GREEN_WEIGHT:
	.word	1056964608
	.align	2
	.type	L_BLUE_WEIGHT, %object
	.size	L_BLUE_WEIGHT, 4
L_BLUE_WEIGHT:
	.word	1045220557
	.align	2
.LC0:
	.ascii	" Syntax:  auto_crop filein\000"
	.align	2
.LC1:
	.ascii	"pix not made\000"
	.align	2
.LC2:
	.ascii	"r11 + c10.20 + o5.50 + x4\000"
	.align	2
.LC3:
	.ascii	"Warning: no components on page %s\012\000"
	.align	2
.LC4:
	.ascii	"Found %d components in %s\012\000"
	.align	2
.LC5:
	.ascii	"auto_crop-out_%d.png\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-96]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #40
	str	r3, [r2, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-92]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #5
	bgt	.L3
	mov	r2, #1
	ldr	r1, .L16+8
	ldr	r0, .L16+12
	bl	returnErrorInt
	mov	r3, r0
	b	.L1
.L3:
	mov	r3, #1
	b	.L1
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-96]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-56]
	bl	pixRead
	str	r0, [r4, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #5
	bgt	.L7
	mov	r2, #1
	ldr	r1, .L16+8
	ldr	r0, .L16+16
	bl	returnErrorInt
	mov	r3, r0
	b	.L1
.L7:
	mov	r3, #1
	b	.L1
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #130
	ldr	r0, [r3, #-52]
	bl	pixConvertTo1
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #0
	ldr	r1, .L16+20
	mov	r0, r3
	bl	pixMorphSequence
	str	r0, [r4, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #8
	mov	r1, #0
	ldr	r0, [r3, #-48]
	bl	pixConnComp
	str	r0, [r4, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-44]
	bl	boxaGetCount
	str	r0, [r4, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L16+24
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-56]
	ldr	r1, .L16+28
	mov	r0, r3
	bl	fprintf
	b	.L10
.L9:
	ldr	r3, .L16+32
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3, #-56]
	ldr	r2, [r2, #-40]
	ldr	r1, .L16+36
	bl	fprintf
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	b	.L11
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #1
	mov	r1, #10
	ldr	r0, [r0, #-44]
	bl	boxaSort
	str	r0, [r4, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	ldr	r1, [r1, #-64]
	ldr	r0, [r3, #-36]
	bl	boxaGetBox
	str	r0, [r4, #-32]
	sub	r0, fp, #8256
	sub	r0, r0, #12
	sub	r0, r0, #12
	sub	r2, fp, #8256
	sub	r2, r2, #12
	sub	r2, r2, #16
	sub	r1, fp, #8256
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [ip, #-32]
	bl	boxGetGeometry
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-84]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	sub	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	bic	r3, r3, r3, asr #31
	str	r3, [r2, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-80]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	sub	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	bic	r3, r3, r3, asr #31
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	lsl	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r2, r3
	str	r3, [r1, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	lsl	r2, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r2, r3
	str	r3, [r1, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	ldr	r3, [r3, #-16]
	ldr	r2, [r2, #-20]
	ldr	r1, [r1, #-24]
	ldr	r0, [r0, #-28]
	bl	boxCreate
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-12]
	ldr	r0, [r3, #-52]
	bl	pixClipRectangle
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-64]
	ldr	r1, .L16+40
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #3
	ldr	r1, [r1, #-8]
	mov	r0, r3
	bl	pixWrite
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #1
	str	r3, [r2, #-64]
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-64]
	ldr	r3, [r3, #-40]
	cmp	r2, r3
	blt	.L12
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	pixDestroy
.L1:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	LeptMsgSeverity
	.word	mainName.18287
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.data
	.align	2
	.type	mainName.18287, %object
	.size	mainName.18287, 10
mainName.18287:
	.ascii	"auto_crop\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
