	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openpr
_openpr:                                ## @openpr
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_openrem
	movq	_ofd@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	jmp	LBB0_19
LBB0_2:
	movq	24(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.3:
	movl	$64, %esi
	callq	_strchr
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	callq	_opennet
	jmp	LBB0_7
LBB0_6:
	callq	_opentty
LBB0_7:
	movq	(%rbx), %rax
	movq	_LPF_OUTPUT@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_18
## %bb.8:
	movq	_LPF_INPUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_18
## %bb.9:
	movq	_of_pid@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_18
## %bb.10:
	leaq	-48(%rbp), %rdi
	callq	_pipe
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_tfile@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_TFILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movl	(%r12), %edi
	callq	_mkstemp
	movq	_tfd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	movq	_DOABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dofork
	movq	%rax, (%r14)
	movl	-48(%rbp), %edi
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	callq	_close
	movl	-44(%rbp), %eax
	movq	_ofd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_20
LBB0_18:
	movq	_pfd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ofd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_19:
	movq	_of_pid@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	$1, %edi
	callq	_exit
LBB0_13:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	cmpq	$0, 16(%rbx)
	jne	LBB0_14
## %bb.15:
	movq	_pfd@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_tfd@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	xorl	%eax, %eax
	callq	_closelog
	movl	$3, %edi
	callq	_closeallfds
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rsi
	testq	%rax, %rax
	cmoveq	%r14, %rsi
	movq	_width@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_length@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_execl
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ofd,4,2                        ## @ofd
	.comm	_of_pid,8,3                     ## @of_pid
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no line printer device or host name"

	.comm	_LPF_OUTPUT,8,3                 ## @LPF_OUTPUT
	.comm	_LPF_INPUT,8,3                  ## @LPF_INPUT
	.comm	_tfile,4,2                      ## @tfile
	.comm	_TFILENAME,4,2                  ## @TFILENAME
	.comm	_tfd,4,2                        ## @tfd
	.comm	_DOABORT,4,2                    ## @DOABORT
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_pfd,4,2                        ## @pfd
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_width,4,2                      ## @width
	.comm	_length,4,2                     ## @length
L_.str.1:                               ## @.str.1
	.asciz	"%s: execl(%s): %m"

	.no_dead_strip	_openpr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openpr
_openpr:                                ; @openpr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_openrem
Lloh3:
	adrp	x8, _ofd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ofd@GOTPAGEOFF]
	mov	w9, #-1
Lloh5:
	str	w9, [x8]
	b	LBB0_9
LBB0_2:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
	cbz	x8, LBB0_17
; %bb.3:
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_opennet
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_opentty
LBB0_6:
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _LPF_OUTPUT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _LPF_OUTPUT@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_8
; %bb.7:
Lloh8:
	adrp	x9, _LPF_INPUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LPF_INPUT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh11:
	adrp	x21, _of_pid@GOTPAGE
Lloh12:
	ldr	x21, [x21, _of_pid@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_12
LBB0_8:
Lloh13:
	adrp	x8, _pfd@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pfd@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ofd@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ofd@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
LBB0_9:
Lloh19:
	adrp	x8, _of_pid@GOTPAGE
Lloh20:
	ldr	x8, [x8, _of_pid@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
LBB0_10:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	add	x0, sp, #16
	bl	_pipe
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
Lloh25:
	adrp	x22, _tfile@GOTPAGE
Lloh26:
	ldr	x22, [x22, _tfile@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh27:
	adrp	x8, _TFILENAME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TFILENAME@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_strcpy
	ldr	w0, [x22]
	bl	_mkstemp
Lloh30:
	adrp	x8, _tfd@GOTPAGE
Lloh31:
	ldr	x8, [x8, _tfd@GOTPAGEOFF]
Lloh32:
	str	w0, [x8]
LBB0_14:
Lloh33:
	adrp	x8, _DOABORT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DOABORT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dofork
	mov	x8, x0
	str	x0, [x21]
	ldr	w0, [sp, #16]
	cbz	x8, LBB0_18
; %bb.15:
	bl	_close
	ldr	w8, [sp, #20]
Lloh36:
	adrp	x9, _ofd@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ofd@GOTPAGEOFF]
Lloh38:
	str	w8, [x9]
	b	LBB0_10
LBB0_16:
	bl	___stack_chk_fail
LBB0_17:
Lloh39:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh44:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	bl	_dup2
	ldr	x8, [x19, #16]
Lloh47:
	adrp	x9, _tfd@GOTPAGE
Lloh48:
	ldr	x9, [x9, _tfd@GOTPAGEOFF]
Lloh49:
	adrp	x10, _pfd@GOTPAGE
Lloh50:
	ldr	x10, [x10, _pfd@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
Lloh51:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh52:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_dup2
	bl	_closelog
	mov	w0, #3
	bl	_closeallfds
	ldr	x8, [x19]
	ldr	x9, [x20]
	mov	x21, x20
	ldr	x20, [x8, x9, lsl #3]
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x1, x20, x0, eq
Lloh54:
	adrp	x8, _width@GOTPAGE
Lloh55:
	ldr	x8, [x8, _width@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
Lloh57:
	adrp	x8, _length@GOTPAGE
Lloh58:
	ldr	x8, [x8, _length@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, #0
	bl	_execl
Lloh60:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh63:
	adrp	x1, l_.str.1@PAGE
Lloh64:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_19:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ofd,4,2                        ; @ofd
	.comm	_of_pid,8,3                     ; @of_pid
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no line printer device or host name"

	.comm	_LPF_OUTPUT,8,3                 ; @LPF_OUTPUT
	.comm	_LPF_INPUT,8,3                  ; @LPF_INPUT
	.comm	_tfile,4,2                      ; @tfile
	.comm	_TFILENAME,4,2                  ; @TFILENAME
	.comm	_tfd,4,2                        ; @tfd
	.comm	_DOABORT,4,2                    ; @DOABORT
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_pfd,4,2                        ; @pfd
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_width,4,2                      ; @width
	.comm	_length,4,2                     ; @length
l_.str.1:                               ; @.str.1
	.asciz	"%s: execl(%s): %m"

	.no_dead_strip	_openpr
.subsections_via_symbols
