	.file	"extr_pac.c_chkprinter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pac: getprintcap: %s\n"
.LC1:
	.string	"%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"accounting not enabled for printer %s"
	.section	.rodata.str1.1
.LC5:
	.string	"calloc failed"
.LC6:
	.string	"_sum"
	.text
	.p2align 4
	.type	chkprinter, @function
chkprinter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	rdi, rbp
	call	init_printer@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	getprintcap@PLT
	cmp	eax, 129
	je	.L2
	xor	r8d, r8d
	cmp	eax, 130
	je	.L1
	cmp	eax, 128
	je	.L16
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR acctfile[rip], rdi
	test	rdi, rdi
	je	.L17
.L6:
	mov	eax, DWORD PTR pflag[rip]
	test	eax, eax
	jne	.L7
	movsd	xmm0, QWORD PTR [rsp]
	ucomisd	xmm0, QWORD PTR .LC3[rip]
	jp	.L12
	jne	.L12
.L7:
	call	strlen@PLT
	mov	edi, 1
	lea	rsi, 5[rax]
	call	calloc@PLT
	mov	QWORD PTR sumfile[rip], rax
	mov	rdi, rax
	test	rax, rax
	je	.L18
.L9:
	mov	rsi, QWORD PTR acctfile[rip]
	call	strcpy@PLT
	mov	rdi, QWORD PTR sumfile[rip]
	lea	rsi, .LC6[rip]
	call	strcat@PLT
	mov	r8d, 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, 128
	call	pcaperr@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	rdx, rax
	call	fatal@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, 129
	call	pcaperr@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	divsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR price[rip], xmm0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, 1
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	errx@PLT
	mov	rdi, QWORD PTR sumfile[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, 3
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	errx@PLT
	mov	rdi, QWORD PTR acctfile[rip]
	jmp	.L6
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	chkprinter, .-chkprinter
	.comm	sumfile,8,8
	.comm	price,8,8
	.comm	pflag,4,4
	.comm	acctfile,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	0
	.align 8
.LC4:
	.long	0
	.long	1086556160
	.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_pac.c_chkprinter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pac: getprintcap: %s\012\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"accounting not enabled for printer %s\000"
	.global	__aeabi_dcmpeq
	.global	__aeabi_ddiv
	.align	2
.LC3:
	.ascii	"calloc failed\000"
	.align	2
.LC4:
	.ascii	"_sum\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chkprinter, %function
chkprinter:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r8, r9, lr}
	mov	r4, r0
	sub	sp, sp, #24
	ldr	r3, .L19
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	init_printer
	mov	r1, sp
	mov	r0, r4
	bl	getprintcap
	cmp	r0, #129
	beq	.L2
	cmp	r0, #130
	mov	r3, r0
	moveq	r0, #0
	beq	.L1
	cmp	r3, #128
	beq	.L15
.L5:
	ldr	r5, [sp, #8]
	ldr	r6, .L19+4
	cmp	r5, #0
	str	r5, [r6]
	beq	.L16
.L6:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldmia	sp, {r8-r9}
	mov	r2, #0
	mov	r3, #0
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L19+12
	mov	r2, #0
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	ldr	r3, .L19+16
	stm	r3, {r0-r1}
.L7:
	mov	r0, r5
	bl	strlen
	mov	r1, r0
	mov	r0, #1
	add	r1, r1, #5
	bl	calloc
	ldr	r4, .L19+20
	cmp	r0, #0
	str	r0, [r4]
	beq	.L17
.L9:
	mov	r1, r5
	bl	strcpy
	ldr	r4, [r4]
	mov	r0, r4
	bl	strlen
	mov	r2, #5
	ldr	r1, .L19+24
	add	r0, r4, r0
	bl	memcpy
	mov	r0, #1
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r8, r9, pc}
.L15:
	bl	pcaperr
	ldr	r1, .L19+28
	mov	r2, r0
	mov	r0, sp
	bl	fatal
	b	.L5
.L2:
	bl	pcaperr
	mov	r1, r0
	ldr	r0, .L19+32
	bl	printf
	mov	r0, #3
	bl	exit
	mov	r0, #0
	b	.L1
.L16:
	mov	r2, r4
	mov	r0, #3
	ldr	r1, .L19+36
	bl	errx
	ldr	r5, [r6]
	b	.L6
.L17:
	mov	r0, #1
	ldr	r1, .L19+40
	bl	errx
	ldr	r5, [r6]
	ldr	r0, [r4]
	b	.L9
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	acctfile
	.word	pflag
	.word	1086556160
	.word	price
	.word	sumfile
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	chkprinter, .-chkprinter
	.comm	sumfile,4,4
	.comm	price,8,8
	.comm	pflag,4,4
	.comm	acctfile,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
