	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function chkprinter
LCPI0_0:
	.quad	0x40c3880000000000              ## double 1.0E+4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_chkprinter:                            ## @chkprinter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_printer
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_getprintcap
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$130, %eax
	je	LBB0_13
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.3:
	movl	$129, %edi
	callq	_pcaperr
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movl	$3, %edi
	callq	_exit
LBB0_4:
	movl	$128, %edi
	callq	_pcaperr
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rdx
	callq	_fatal
LBB0_5:
	movq	-32(%rbp), %rax
	movq	_acctfile@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_7:
	movq	_pflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.8:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_9
	jnp	LBB0_10
LBB0_9:
	divsd	LCPI0_0(%rip), %xmm0
	movq	_price@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
LBB0_10:
	movq	(%r15), %rdi
	callq	_strlen
	leaq	5(%rax), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	callq	_calloc
	movq	_sumfile@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	(%r14), %rax
LBB0_12:
	movq	(%r15), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcat
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pac: getprintcap: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_acctfile,8,3                   ## @acctfile
L_.str.2:                               ## @.str.2
	.asciz	"accounting not enabled for printer %s"

	.comm	_pflag,4,2                      ## @pflag
	.comm	_price,8,3                      ## @price
	.comm	_sumfile,8,3                    ## @sumfile
L_.str.3:                               ## @.str.3
	.asciz	"calloc failed"

L_.str.4:                               ## @.str.4
	.asciz	"_sum"

	.no_dead_strip	_chkprinter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chkprinter
_chkprinter:                            ; @chkprinter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #16
	bl	_init_printer
	add	x1, sp, #16
	mov	x0, x19
	bl	_getprintcap
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #130
	b.eq	LBB0_13
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.3:
	bl	_pcaperr
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #3
	bl	_exit
LBB0_4:
	bl	_pcaperr
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	bl	_fatal
LBB0_5:
	ldr	x8, [sp, #24]
Lloh4:
	adrp	x20, _acctfile@GOTPAGE
Lloh5:
	ldr	x20, [x20, _acctfile@GOTPAGEOFF]
	str	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.6:
	str	x19, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #3
	bl	_errx
LBB0_7:
Lloh8:
	adrp	x8, _pflag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pflag@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.8:
	ldr	d0, [sp, #16]
	fcmp	d0, #0.0
	b.eq	LBB0_10
; %bb.9:
	mov	x8, #149533581377536
	movk	x8, #16579, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
Lloh11:
	adrp	x8, _price@GOTPAGE
Lloh12:
	ldr	x8, [x8, _price@GOTPAGEOFF]
Lloh13:
	str	d0, [x8]
LBB0_10:
	ldr	x0, [x20]
	bl	_strlen
	add	x1, x0, #5
	mov	w0, #1
	bl	_calloc
Lloh14:
	adrp	x19, _sumfile@GOTPAGE
Lloh15:
	ldr	x19, [x19, _sumfile@GOTPAGEOFF]
	str	x0, [x19]
	cbnz	x0, LBB0_12
; %bb.11:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x0, [x19]
LBB0_12:
	ldr	x1, [x20]
	bl	_strcpy
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcat
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pac: getprintcap: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_acctfile,8,3                   ; @acctfile
l_.str.2:                               ; @.str.2
	.asciz	"accounting not enabled for printer %s"

	.comm	_pflag,4,2                      ; @pflag
	.comm	_price,8,3                      ; @price
	.comm	_sumfile,8,3                    ; @sumfile
l_.str.3:                               ; @.str.3
	.asciz	"calloc failed"

l_.str.4:                               ; @.str.4
	.asciz	"_sum"

	.no_dead_strip	_chkprinter
.subsections_via_symbols
