	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function startup
_startup:                               ## @startup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	-24(%rbp), %rdi
	leaq	-12(%rbp), %rsi
	callq	_firstprinter
	movl	%eax, %ebx
	cmpl	$0, -12(%rbp)
	jne	LBB0_10
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.2:
	leaq	-24(%rbp), %rdi
	callq	_ckqueue
	testq	%rax, %rax
	jle	LBB0_9
## %bb.3:
	movq	_lflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
LBB0_5:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_8
LBB0_6:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_syslog
	xorl	%edi, %edi
	callq	_mcleanup
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_lastprinter
	leaq	-24(%rbp), %rdi
	callq	_printjob
	jmp	LBB0_9
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	leaq	-24(%rbp), %rdi
	leaq	-12(%rbp), %rsi
	callq	_nextprinter
	movl	%eax, %ebx
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	je	LBB0_11
LBB0_10:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_syslog
	movl	-12(%rbp), %eax
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_lflag,8,3                      ## @lflag
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lpd startup: work for %s"

	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"lpd startup: cannot fork for %s"

L_.str.2:                               ## @.str.2
	.asciz	"lpd startup: printcap entry for %s has errors, skipping"

L_.str.3:                               ## @.str.3
	.asciz	"<noname?>"

	.no_dead_strip	_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function startup
_startup:                               ; @startup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x0, sp
	add	x1, sp, #12
	bl	_firstprinter
	mov	x19, x0
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x20, _LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LOG_WARNING@GOTPAGEOFF]
	cbnz	w8, LBB0_11
LBB0_1:
	cbz	w19, LBB0_9
; %bb.2:
	mov	x0, sp
	bl	_ckqueue
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.3:
Lloh2:
	adrp	x8, _lflag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lflag@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x2, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_5:
	bl	_fork
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
; %bb.6:
	cbnz	w19, LBB0_10
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
	ldr	x2, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	mov	w0, #0
	bl	_mcleanup
	cbnz	w19, LBB0_10
LBB0_8:
	bl	_lastprinter
	mov	x0, sp
	bl	_printjob
	b	LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	mov	x0, sp
	add	x1, sp, #12
	bl	_nextprinter
	mov	x19, x0
	mov	w8, #0
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_12
LBB0_11:
	ldr	w0, [x20]
	ldr	x8, [sp]
Lloh12:
	adrp	x9, l_.str.3@PAGE
Lloh13:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x2, x9, x8, eq
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
	ldr	w8, [sp, #12]
LBB0_12:
	cbz	w19, LBB0_1
; %bb.13:
	cbnz	w8, LBB0_10
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_lflag,8,3                      ; @lflag
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lpd startup: work for %s"

	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"lpd startup: cannot fork for %s"

l_.str.2:                               ; @.str.2
	.asciz	"lpd startup: printcap entry for %s has errors, skipping"

l_.str.3:                               ; @.str.3
	.asciz	"<noname?>"

	.no_dead_strip	_startup
.subsections_via_symbols
