	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_geteuid
	movq	_euid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_getuid
	movq	_uid@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_LOG_LPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_openlog
	cmpl	$2, %ebx
	jge	LBB0_1
## %bb.14:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	movl	%eax, %edi
	callq	_isatty
	movq	_fromatty@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cmdscanner
	jmp	LBB0_16
LBB0_1:
	movq	8(%r14), %rdi
	callq	_getcmd
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	cmpq	$-1, %rax
	jne	LBB0_6
## %bb.3:
	leaq	L_str.5(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	leaq	L_str.4(%rip), %rdi
LBB0_4:
	callq	_puts
	movl	$1, %edi
	callq	_exit
LBB0_6:
	movq	_LPC_PRIVCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_getuid
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_LPR_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ingroup
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_4
LBB0_10:
	decl	%ebx
	addq	$8, %r14
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.12:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	*8(%r15)
	xorl	%edi, %edi
	callq	_exit
LBB0_11:
	movl	(%r15), %esi
	movq	8(%r15), %rdx
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_generic
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_euid,4,2                       ## @euid
	.comm	_uid,8,3                        ## @uid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lpd"

	.comm	_LOG_LPR,4,2                    ## @LOG_LPR
	.comm	_LPC_PRIVCMD,4,2                ## @LPC_PRIVCMD
	.comm	_LPR_OPER,4,2                   ## @LPR_OPER
	.comm	_stdin,4,2                      ## @stdin
	.comm	_fromatty,4,2                   ## @fromatty
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_intr,4,2                       ## @intr
L_str:                                  ## @str
	.asciz	"?Privileged command"

L_str.4:                                ## @str.4
	.asciz	"?Invalid command"

L_str.5:                                ## @str.5
	.asciz	"?Ambiguous command"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	bl	_geteuid
Lloh0:
	adrp	x8, _euid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _euid@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
	bl	_getuid
Lloh3:
	adrp	x8, _uid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _uid@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
Lloh6:
	adrp	x8, _LOG_LPR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_LPR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_openlog
	cmp	w20, #2
	b.ge	LBB0_4
; %bb.1:
Lloh11:
	adrp	x8, _stdin@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_fileno
	bl	_isatty
Lloh14:
	adrp	x8, _fromatty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fromatty@GOTPAGEOFF]
Lloh16:
	str	w0, [x8]
	cbnz	w0, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _SIGINT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _intr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_signal
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cmdscanner
	b	LBB0_3
LBB0_4:
	ldr	x0, [x19, #8]!
	bl	_getcmd
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
	cmn	x0, #1
	b.ne	LBB0_9
; %bb.6:
Lloh23:
	adrp	x0, l_str.5@PAGE
Lloh24:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x0, l_str.4@PAGE
Lloh26:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_8:
	bl	_puts
	mov	w0, #1
	bl	_exit
LBB0_9:
	ldr	w8, [x21]
Lloh27:
	adrp	x9, _LPC_PRIVCMD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _LPC_PRIVCMD@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	bl	_getuid
	cbz	x0, LBB0_13
; %bb.11:
Lloh30:
	adrp	x8, _LPR_OPER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LPR_OPER@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_ingroup
	cbnz	x0, LBB0_13
; %bb.12:
Lloh33:
	adrp	x0, l_str@PAGE
Lloh34:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_8
LBB0_13:
	sub	w3, w20, #1
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x21, #8]
	mov	x0, x3
	mov	x1, x19
	blr	x8
	mov	w0, #0
	bl	_exit
LBB0_15:
	ldr	w1, [x21]
	ldr	x2, [x21, #8]
	mov	x4, x19
	bl	_generic
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_euid,4,2                       ; @euid
	.comm	_uid,8,3                        ; @uid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lpd"

	.comm	_LOG_LPR,4,2                    ; @LOG_LPR
	.comm	_LPC_PRIVCMD,4,2                ; @LPC_PRIVCMD
	.comm	_LPR_OPER,4,2                   ; @LPR_OPER
	.comm	_stdin,4,2                      ; @stdin
	.comm	_fromatty,4,2                   ; @fromatty
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_intr,4,2                       ; @intr
l_str:                                  ; @str
	.asciz	"?Privileged command"

l_str.4:                                ; @str.4
	.asciz	"?Invalid command"

l_str.5:                                ; @str.5
	.asciz	"?Ambiguous command"

.subsections_via_symbols
