	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_printer_status
_get_printer_status:                    ## @get_printer_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_PS_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	movq	(%r13), %r8
	cmpb	$47, (%r8)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r8, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	jmp	LBB0_3
LBB0_2:
	movq	8(%r13), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_snprintf
LBB0_3:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_21
## %bb.4:
	movl	%eax, %r12d
	movq	_LOCK_SH@GOTPCREL(%rip), %rax
	movq	_LOCK_NB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%r12d, %edi
	callq	_flock
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	16(%r13), %r8
	cmpb	$47, (%r8)
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r8, %rsi
	movl	%r14d, %edx
	callq	_strlcpy
	jmp	LBB0_10
LBB0_21:
	movq	_PS_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_5:
	movq	_PS_IDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	8(%r13), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snprintf
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movq	%rax, %r15
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	%r14, %rdi
	movl	$127, %esi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	leaq	-176(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	_PS_PRINTING@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_22:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_syslog
	movq	_PS_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_17
LBB0_12:
	movq	_PS_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	leaq	-176(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	movl	-180(%rbp), %ebx                ## 4-byte Reload
	je	LBB0_16
## %bb.20:
	movq	_PS_OTHER@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%r12d, %edi
	callq	_close
	movq	%r15, %rdi
	callq	_fclose
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.23:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_PS_UNKNOWN,4,2                 ## @PS_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_LOCK_SH,4,2                    ## @LOCK_SH
	.comm	_LOCK_NB,4,2                    ## @LOCK_NB
	.comm	_PS_IDLE,4,2                    ## @PS_IDLE
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"cannot open status file: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"is ready and printing"

	.comm	_PS_PRINTING,4,2                ## @PS_PRINTING
L_.str.4:                               ## @.str.4
	.asciz	"to become ready (offline?)"

	.comm	_PS_OTHER,4,2                   ## @PS_OTHER
	.no_dead_strip	_get_printer_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_printer_status
_get_printer_status:                    ; @get_printer_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #144
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x12, x9, #0x1fffffff0
	sub	x20, x8, x12
	mov	sp, x20
	mov	x9, x21
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x19, x8, x12
	mov	sp, x19
Lloh10:
	adrp	x24, _PS_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x24, [x24, _PS_UNKNOWN@GOTPAGEOFF]
	ldr	w23, [x24]
	ldr	x4, [x0]
	ldrb	w8, [x4]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x4
	mov	x2, x21
	bl	_strlcpy
	b	LBB0_3
LBB0_2:
	ldr	x3, [x22, #8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_snprintf
LBB0_3:
Lloh14:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x19, x0
Lloh17:
	adrp	x8, _LOCK_SH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOCK_SH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _LOCK_NB@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LOCK_NB@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_flock
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x4, [x22, #16]
	ldrb	w8, [x4]
	cmp	w8, #47
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x20
	mov	x1, x4
	mov	x2, x21
	bl	_strlcpy
	b	LBB0_10
LBB0_7:
Lloh23:
	adrp	x8, _PS_IDLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PS_IDLE@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_8:
Lloh26:
	adrp	x8, _PS_IDLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PS_IDLE@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_9:
	ldr	x3, [x22, #8]
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_snprintf
LBB0_10:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_14
; %bb.11:
	mov	x20, x0
	sub	x0, x29, #184
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	sub	x0, x29, #184
	mov	w1, #127
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_16
; %bb.12:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #184
	bl	_strstr
	cbz	x0, LBB0_17
; %bb.13:
Lloh35:
	adrp	x8, _PS_PRINTING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PS_PRINTING@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	b	LBB0_18
LBB0_14:
Lloh38:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh40:
	ldr	w20, [x8]
Lloh41:
	adrp	x8, _errno@GOTPAGE
Lloh42:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_syslog
	ldr	w21, [x24]
LBB0_15:
	mov	x0, x19
	bl	_close
	b	LBB0_19
LBB0_16:
	ldr	w21, [x24]
	b	LBB0_18
LBB0_17:
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x0, x29, #184
	bl	_strstr
Lloh48:
	adrp	x8, _PS_OTHER@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PS_OTHER@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, w23, w8, eq
LBB0_18:
	mov	x0, x19
	bl	_close
	mov	x0, x20
	bl	_fclose
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_PS_UNKNOWN,4,2                 ; @PS_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_LOCK_SH,4,2                    ; @LOCK_SH
	.comm	_LOCK_NB,4,2                    ; @LOCK_NB
	.comm	_PS_IDLE,4,2                    ; @PS_IDLE
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"cannot open status file: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"is ready and printing"

	.comm	_PS_PRINTING,4,2                ; @PS_PRINTING
l_.str.4:                               ; @.str.4
	.asciz	"to become ready (offline?)"

	.comm	_PS_OTHER,4,2                   ; @PS_OTHER
	.no_dead_strip	_get_printer_status
.subsections_via_symbols
