	.file	"extr_wc.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"clmwL"
.LC2:
	.string	"Unable to init casper"
.LC3:
	.string	"Unable to limit stdio"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Unable to enter capability mode"
	.section	.rodata.str1.1
.LC5:
	.string	"wc"
.LC6:
	.string	"file"
.LC7:
	.string	"total"
	.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
	lea	rsi, .LC0[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR LC_CTYPE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	setlocale@PLT
	mov	edi, ebp
	mov	rsi, rbx
	lea	rbp, .LC1[rip]
	call	xo_parse_args@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdx, rbp
	mov	rsi, rbx
	mov	edi, r12d
	call	getopt@PLT
	cmp	eax, -1
	je	.L32
	cmp	al, 108
	je	.L4
	jg	.L5
	cmp	al, 76
	je	.L6
	cmp	al, 99
	jne	.L8
	mov	QWORD PTR dochar[rip], 1
	mov	QWORD PTR domulti[rip], 0
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	al, 109
	je	.L9
	cmp	al, 119
	jne	.L8
	mov	QWORD PTR doword[rip], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR optind[rip]
	mov	esi, DWORD PTR siginfo_handler[rip]
	mov	edi, DWORD PTR SIGINFO[rip]
	lea	rbx, [rbx+rax*8]
	sub	r12d, eax
	call	signal@PLT
	mov	edx, DWORD PTR CAP_FSTAT[rip]
	mov	esi, DWORD PTR CAP_READ[rip]
	lea	rdi, 4[rsp]
	mov	ebp, DWORD PTR FA_OPEN[rip]
	call	cap_rights_init@PLT
	mov	edx, DWORD PTR O_RDONLY[rip]
	xor	ecx, ecx
	mov	rsi, rbx
	mov	r8d, eax
	mov	r9d, ebp
	mov	edi, r12d
	call	fileargs_init@PLT
	mov	QWORD PTR fa[rip], rax
	test	rax, rax
	je	.L33
.L13:
	xor	eax, eax
	call	caph_cache_catpages@PLT
	xor	eax, eax
	call	caph_limit_stdio@PLT
	test	rax, rax
	js	.L34
.L14:
	xor	eax, eax
	call	caph_enter_casper@PLT
	test	rax, rax
	js	.L35
.L15:
	mov	rax, QWORD PTR doword[rip]
	add	rax, QWORD PTR doline[rip]
	add	rax, QWORD PTR dochar[rip]
	add	rax, QWORD PTR domulti[rip]
	add	rax, QWORD PTR dolongline[rip]
	jne	.L16
	mov	QWORD PTR dochar[rip], 1
	mov	QWORD PTR doword[rip], 1
	mov	QWORD PTR doline[rip], 1
.L16:
	mov	esi, DWORD PTR XO_STYLE_TEXT[rip]
	mov	edi, DWORD PTR stderr[rip]
	xor	edx, edx
	xor	ebp, ebp
	xor	r12d, r12d
	lea	r13, .LC6[rip]
	call	xo_create_to_file@PLT
	lea	rdi, .LC5[rip]
	mov	DWORD PTR stderr_handle[rip], eax
	call	xo_open_container@PLT
	lea	rdi, .LC6[rip]
	call	xo_open_list@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L36
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	xo_open_instance@PLT
	mov	rdi, QWORD PTR [rbx]
	call	cnt@PLT
	mov	rdi, r13
	cmp	rax, 1
	sbb	r12d, -1
	add	rbx, 8
	add	ebp, 1
	call	xo_close_instance@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L17
	lea	rdi, .LC6[rip]
	call	xo_close_list@PLT
	sub	ebp, 1
	je	.L18
	lea	rdi, .LC7[rip]
	call	xo_open_container@PLT
	mov	r8d, DWORD PTR tlongline[rip]
	mov	ecx, DWORD PTR tcharct[rip]
	lea	rdi, .LC7[rip]
	mov	edx, DWORD PTR twordct[rip]
	mov	esi, DWORD PTR tlinect[rip]
	call	show_cnt@PLT
	lea	rdi, .LC7[rip]
	call	xo_close_container@PLT
.L18:
	mov	rdi, QWORD PTR fa[rip]
	call	fileargs_free@PLT
	lea	rdi, .LC5[rip]
	call	xo_close_container@PLT
	xor	eax, eax
	call	xo_finish@PLT
	xor	edi, edi
	test	r12d, r12d
	setne	dil
	xor	r12d, r12d
	call	exit@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	QWORD PTR doline[rip], 1
	jmp	.L2
.L8:
	xor	eax, eax
	call	usage@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR dolongline[rip], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR domulti[rip], 1
	mov	QWORD PTR dochar[rip], 0
	jmp	.L2
.L35:
	lea	rdi, .LC4[rip]
	call	xo_warn@PLT
	mov	rdi, QWORD PTR fa[rip]
	call	fileargs_free@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L15
.L34:
	lea	rdi, .LC3[rip]
	call	xo_warn@PLT
	mov	rdi, QWORD PTR fa[rip]
	call	fileargs_free@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L14
.L36:
	mov	rdi, r13
	xor	r12d, r12d
	call	xo_open_instance@PLT
	xor	edi, edi
	call	cnt@PLT
	mov	rdi, r13
	test	rax, rax
	setne	r12b
	call	xo_close_instance@PLT
	mov	rdi, r13
	call	xo_close_list@PLT
	jmp	.L18
.L33:
	lea	rdi, .LC2[rip]
	call	xo_warn@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L13
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	twordct,4,4
	.comm	tlongline,4,4
	.comm	tlinect,4,4
	.comm	tcharct,4,4
	.comm	stderr_handle,4,4
	.comm	stderr,4,4
	.comm	siginfo_handler,4,4
	.comm	optind,8,8
	.comm	fa,8,8
	.comm	doword,8,8
	.comm	domulti,8,8
	.comm	dolongline,8,8
	.comm	doline,8,8
	.comm	dochar,8,8
	.comm	XO_STYLE_TEXT,4,4
	.comm	SIGINFO,4,4
	.comm	O_RDONLY,4,4
	.comm	LC_CTYPE,4,4
	.comm	FA_OPEN,4,4
	.comm	CAP_READ,4,4
	.comm	CAP_FSTAT,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_wc.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"clmwL\000"
	.align	2
.LC2:
	.ascii	"Unable to init casper\000"
	.align	2
.LC3:
	.ascii	"Unable to limit stdio\000"
	.align	2
.LC4:
	.ascii	"Unable to enter capability mode\000"
	.align	2
.LC5:
	.ascii	"wc\000"
	.align	2
.LC6:
	.ascii	"file\000"
	.align	2
.LC7:
	.ascii	"total\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L38
	sub	sp, sp, #28
	ldr	r0, [r3]
	ldr	r3, .L38+4
	ldr	r1, .L38+8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	setlocale
	mov	r0, r4
	mov	r1, r5
	bl	xo_parse_args
	subs	r4, r0, #0
	blt	.L1
	mov	r7, #1
	ldr	r10, .L38+12
	ldr	fp, .L38+16
	ldr	r8, .L38+20
	ldr	r9, .L38+24
	ldr	r6, .L38+28
.L2:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	getopt
	cmn	r0, #1
	beq	.L32
	and	r0, r0, #255
	cmp	r0, #76
	beq	.L4
	sub	r0, r0, #99
	cmp	r0, #20
	bhi	.L5
	cmp	r0, #20
	ldrls	pc, [pc, r0, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L9
	.word	.L8
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L6
.L6:
	str	r7, [fp]
	b	.L2
.L8:
	mov	r3, #0
	str	r7, [r9]
	str	r3, [r8]
	b	.L2
.L9:
	str	r7, [r10]
	b	.L2
.L10:
	mov	r3, #0
	str	r7, [r8]
	str	r3, [r9]
	b	.L2
.L5:
	bl	usage
	b	.L2
.L32:
	ldr	r2, .L38+32
	ldr	r1, .L38+36
	ldr	r3, .L38+40
	ldr	r1, [r1]
	ldr	r0, [r2]
	ldr	r7, [r3]
	bl	signal
	ldr	r3, .L38+44
	ldr	r2, .L38+48
	ldr	r1, .L38+52
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r0, sp, #16
	str	r3, [sp, #12]
	bl	cap_rights_init
	mov	r1, r0
	ldr	r2, .L38+56
	ldr	r3, [sp, #12]
	ldr	ip, [r2]
	add	r6, r5, r7, lsl #2
	mov	r2, r3
	sub	r0, r4, r7
	str	r1, [sp]
	mov	r3, #0
	mov	r1, r6
	str	ip, [sp, #4]
	bl	fileargs_init
	ldr	r4, .L38+60
	cmp	r0, #0
	str	r0, [r4]
	beq	.L33
.L13:
	bl	caph_cache_catpages
	bl	caph_limit_stdio
	cmp	r0, #0
	blt	.L34
.L14:
	bl	caph_enter_casper
	cmp	r0, #0
	blt	.L35
.L15:
	ldr	r2, [fp]
	ldr	r3, [r10]
	ldr	r0, [r8]
	add	r3, r3, r2
	ldr	r2, .L38+64
	ldr	r1, [r9]
	ldr	r2, [r2]
	add	r3, r3, r0
	add	r3, r3, r1
	cmn	r3, r2
	moveq	r3, #1
	ldr	r2, .L38+68
	streq	r3, [r8]
	streq	r3, [fp]
	streq	r3, [r10]
	ldr	r3, .L38+72
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	bl	xo_create_to_file
	mov	r2, r0
	ldr	r3, .L38+76
	ldr	r0, .L38+80
	str	r2, [r3]
	bl	xo_open_container
	ldr	r0, .L38+84
	bl	xo_open_list
	ldr	r5, [r5, r7, lsl #2]
	cmp	r5, #0
	beq	.L36
	mov	r5, #0
	mov	r8, r5
	ldr	r7, .L38+84
.L17:
	mov	r0, r7
	bl	xo_open_instance
	ldr	r0, [r6]
	bl	cnt
	cmp	r0, #0
	mov	r0, r7
	addne	r8, r8, #1
	bl	xo_close_instance
	ldr	r3, [r6, #4]!
	add	r5, r5, #1
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L38+84
	bl	xo_close_list
	cmp	r5, #1
	beq	.L18
	ldr	r0, .L38+88
	bl	xo_open_container
	ldr	r2, .L38+92
	ldr	r3, .L38+96
	ldr	r0, [r2]
	ldr	r1, .L38+100
	ldr	r2, .L38+104
	str	r0, [sp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L38+88
	bl	show_cnt
	ldr	r0, .L38+88
	bl	xo_close_container
.L18:
	ldr	r0, [r4]
	bl	fileargs_free
	ldr	r0, .L38+80
	bl	xo_close_container
	bl	xo_finish
	subs	r0, r8, #0
	movne	r0, #1
	bl	exit
	mov	r4, #0
.L1:
	ldr	r3, .L38+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L38+64
	str	r7, [r3]
	b	.L2
.L35:
	ldr	r0, .L38+108
	bl	xo_warn
	ldr	r0, [r4]
	bl	fileargs_free
	mov	r0, #1
	bl	exit
	b	.L15
.L34:
	ldr	r0, .L38+112
	bl	xo_warn
	ldr	r0, [r4]
	bl	fileargs_free
	mov	r0, #1
	bl	exit
	b	.L14
.L36:
	ldr	r0, .L38+84
	bl	xo_open_instance
	mov	r0, r5
	bl	cnt
	mov	r8, r0
	ldr	r0, .L38+84
	subs	r8, r8, #0
	movne	r8, #1
	bl	xo_close_instance
	ldr	r0, .L38+84
	bl	xo_close_list
	b	.L18
.L33:
	ldr	r0, .L38+116
	bl	xo_warn
	mov	r0, #1
	bl	exit
	b	.L13
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	LC_CTYPE
	.word	.LC8
	.word	.LC0
	.word	doline
	.word	doword
	.word	dochar
	.word	domulti
	.word	.LC1
	.word	SIGINFO
	.word	siginfo_handler
	.word	optind
	.word	O_RDONLY
	.word	CAP_FSTAT
	.word	CAP_READ
	.word	FA_OPEN
	.word	fa
	.word	dolongline
	.word	XO_STYLE_TEXT
	.word	stderr
	.word	stderr_handle
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	tlongline
	.word	tcharct
	.word	tlinect
	.word	twordct
	.word	.LC4
	.word	.LC3
	.word	.LC2
	.size	main, .-main
	.comm	twordct,4,4
	.comm	tlongline,4,4
	.comm	tlinect,4,4
	.comm	tcharct,4,4
	.comm	stderr_handle,4,4
	.comm	stderr,4,4
	.comm	siginfo_handler,4,4
	.comm	optind,4,4
	.comm	fa,4,4
	.comm	doword,4,4
	.comm	domulti,4,4
	.comm	dolongline,4,4
	.comm	doline,4,4
	.comm	dochar,4,4
	.comm	XO_STYLE_TEXT,4,4
	.comm	SIGINFO,4,4
	.comm	O_RDONLY,4,4
	.comm	LC_CTYPE,4,4
	.comm	FA_OPEN,4,4
	.comm	CAP_READ,4,4
	.comm	CAP_FSTAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
