	.file	"extr_bbffmt.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bin"
.LC1:
	.string	"w"
.LC2:
	.string	"c"
.LC3:
	.string	"json"
.LC4:
	.string	"cbin"
.LC5:
	.string	"\\x%x"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	edi, 2
	setg	dil
	movzx	edi, dil
	call	assert@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	ccv_bbf_read_classifier_cascade@PLT
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	mov	r12, rax
	call	strcmp@PLT
	test	rax, rax
	jne	.L2
	xor	edi, edi
	cmp	ebp, 3
	setg	dil
	call	assert@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	ccv_bbf_classifier_cascade_write_binary@PLT
	mov	edi, eax
	mov	r13d, eax
	call	malloc@PLT
	mov	edx, r13d
	mov	rdi, r12
	mov	rsi, rax
	mov	rbp, rax
	call	ccv_bbf_classifier_cascade_write_binary@PLT
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, .LC1[rip]
	call	fopen@PLT
	mov	edx, r13d
	mov	esi, 1
	mov	rdi, rbp
	mov	r12, rax
	mov	rcx, rax
	call	fwrite@PLT
	mov	rdi, r12
	call	fclose@PLT
	mov	rdi, rbp
	call	free@PLT
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC2[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, r12
	call	write_c@PLT
	jmp	.L3
.L4:
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, r12
	call	write_json@PLT
	jmp	.L3
.L5:
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC4[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L3
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	xor	ebx, ebx
	call	ccv_bbf_classifier_cascade_write_binary@PLT
	mov	edi, eax
	mov	ebp, eax
	call	malloc@PLT
	mov	rdi, r12
	mov	edx, ebp
	lea	r12, .LC5[rip]
	mov	rsi, rax
	mov	r13, rax
	call	ccv_bbf_classifier_cascade_write_binary@PLT
	jmp	.L6
.L7:
	movzx	esi, BYTE PTR 0[r13+rbx]
	mov	rdi, r12
	add	rbx, 1
	call	printf@PLT
.L6:
	cmp	ebp, ebx
	jg	.L7
	xor	edi, edi
	call	fflush@PLT
	mov	rdi, r13
	call	free@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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_bbffmt.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bin\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"json\000"
	.align	2
.LC3:
	.ascii	"cbin\000"
	.align	2
.LC4:
	.ascii	"\\x%x\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	cmp	r0, #2
	mov	r6, r0
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r0, [r4, #4]
	bl	ccv_bbf_read_classifier_cascade
	ldr	r8, [r4, #8]
	mov	r7, r0
	ldr	r1, .L16
	mov	r0, r8
	bl	strcmp
	subs	r5, r0, #0
	beq	.L12
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, #99
	beq	.L13
.L5:
	mov	r0, r8
	ldr	r1, .L16+4
	bl	strcmp
	cmp	r0, #0
	beq	.L14
	mov	r0, r8
	ldr	r1, .L16+8
	bl	strcmp
	subs	r2, r0, #0
	beq	.L15
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	mov	r0, r7
	bl	write_c
	b	.L3
.L12:
	cmp	r6, #3
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	mov	r2, r5
	mov	r1, r5
	mov	r0, r7
	bl	ccv_bbf_classifier_cascade_write_binary
	mov	r6, r0
	bl	malloc
	mov	r5, r0
	mov	r2, r6
	mov	r1, r5
	mov	r0, r7
	bl	ccv_bbf_classifier_cascade_write_binary
	ldr	r0, [r4, #12]
	ldr	r1, .L16+12
	bl	fopen
	mov	r4, r0
	mov	r3, r0
	mov	r2, r6
	mov	r1, #1
	mov	r0, r5
	bl	fwrite
	mov	r0, r4
	bl	fclose
	mov	r0, r5
	bl	free
	b	.L3
.L14:
	mov	r0, r7
	bl	write_json
	b	.L3
.L15:
	mov	r1, r2
	mov	r0, r7
	bl	ccv_bbf_classifier_cascade_write_binary
	mov	r5, r0
	bl	malloc
	mov	r8, r0
	mov	r2, r5
	mov	r0, r7
	mov	r1, r8
	bl	ccv_bbf_classifier_cascade_write_binary
	cmp	r5, #0
	ble	.L7
	add	r5, r8, r5
	ldr	r6, .L16+16
	sub	r5, r5, #1
	sub	r4, r8, #1
.L8:
	ldrb	r1, [r4, #1]!	@ zero_extendqisi2
	mov	r0, r6
	bl	printf
	cmp	r4, r5
	bne	.L8
.L7:
	mov	r0, #0
	bl	fflush
	mov	r0, r8
	bl	free
	b	.L3
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
