	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	_SDP_LOCAL_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	leaq	LJTI0_0(%rip), %r12
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-99(%rax), %ecx
	cmpl	$18, %ecx
	ja	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12,%rcx,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_9:
	movq	_SDPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	$1, %esi
	callq	_log_open
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_daemon
	testq	%rax, %rax
	js	LBB0_26
LBB0_11:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_sighandler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_23
## %bb.12:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_23
## %bb.13:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_23
## %bb.14:
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_23
## %bb.15:
	leaq	-52(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_server_init
	testq	%rax, %rax
	js	LBB0_25
## %bb.16:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	orq	%rsi, %rax
	je	LBB0_18
## %bb.17:
	callq	_drop_root
	testq	%rax, %rax
	js	LBB0_25
LBB0_18:
	movq	_done@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-52(%rbp), %r14
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	testq	%rcx, %rcx
	jne	LBB0_22
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_server_do
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_19
LBB0_22:
	leaq	-52(%rbp), %rdi
	callq	_server_shutdown
	xorl	%eax, %eax
	callq	_log_close
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strerror
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
LBB0_24:
	movl	%eax, %esi
	callq	_log_crit
LBB0_25:
	movl	$1, %edi
	callq	_exit
LBB0_26:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strerror
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_SDP_LOCAL_PATH,8,3             ## @SDP_LOCAL_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nobody"

L_.str.1:                               ## @.str.1
	.asciz	"c:dg:hu:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_SDPD,4,2                       ## @SDPD
L_.str.2:                               ## @.str.2
	.asciz	"Could not become daemon. %s (%d)"

	.comm	_errno,4,2                      ## @errno
	.comm	_sighandler,4,2                 ## @sighandler
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIGINT,4,2                     ## @SIGINT
L_.str.3:                               ## @.str.3
	.asciz	"Could not install signal handlers. %s (%d)"

	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_done,8,3                       ## @done
.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _SDP_LOCAL_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDP_LOCAL_PATH@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x19, l_.str@PAGE
Lloh4:
	add	x19, x19, l_.str@PAGEOFF
Lloh5:
	adrp	x24, l_.str.1@PAGE
Lloh6:
	add	x24, x24, l_.str.1@PAGEOFF
	mov	w25, #1
Lloh7:
	adrp	x26, lJTI0_0@PAGE
Lloh8:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh9:
	adrp	x27, _optarg@GOTPAGE
Lloh10:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
	mov	x20, x19
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_getopt
	sub	w8, w0, #99
	cmp	w8, #18
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x27]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x27]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x27]
	b	LBB0_3
LBB0_9:
Lloh11:
	adrp	x8, _SDPD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDPD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	eor	w1, w25, #0x1
	bl	_log_open
	cbz	w25, LBB0_11
; %bb.10:
	mov	w0, #0
	mov	w1, #0
	bl	_daemon
	tbnz	x0, #63, LBB0_26
LBB0_11:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh14:
	adrp	x8, _sighandler@GOTPAGE
Lloh15:
	ldr	x8, [x8, _sighandler@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh17:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_23
; %bb.12:
Lloh20:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_23
; %bb.13:
Lloh23:
	adrp	x8, _SIGINT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_23
; %bb.14:
Lloh26:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh29:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
	tbnz	x0, #63, LBB0_23
; %bb.15:
	add	x0, sp, #12
	mov	x1, x21
	bl	_server_init
	tbnz	x0, #63, LBB0_25
; %bb.16:
	orr	x8, x19, x20
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_drop_root
	tbnz	x0, #63, LBB0_25
LBB0_18:
Lloh32:
	adrp	x19, _done@GOTPAGE
Lloh33:
	ldr	x19, [x19, _done@GOTPAGEOFF]
	str	xzr, [x19]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	cbnz	x8, LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_server_do
	ldr	x8, [x19]
	cbz	x0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_19
LBB0_22:
	add	x0, sp, #12
	bl	_server_shutdown
	bl	_log_close
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
Lloh34:
	adrp	x19, _errno@GOTPAGE
Lloh35:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_strerror
	mov	x1, x0
	ldr	w2, [x19]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_24:
	bl	_log_crit
LBB0_25:
	mov	w0, #1
	bl	_exit
LBB0_26:
Lloh38:
	adrp	x19, _errno@GOTPAGE
Lloh39:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_strerror
	mov	x1, x0
	ldr	w2, [x19]
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_24
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_SDP_LOCAL_PATH,8,3             ; @SDP_LOCAL_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nobody"

l_.str.1:                               ; @.str.1
	.asciz	"c:dg:hu:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_SDPD,4,2                       ; @SDPD
l_.str.2:                               ; @.str.2
	.asciz	"Could not become daemon. %s (%d)"

	.comm	_errno,4,2                      ; @errno
	.comm	_sighandler,4,2                 ; @sighandler
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIGINT,4,2                     ; @SIGINT
l_.str.3:                               ; @.str.3
	.asciz	"Could not install signal handlers. %s (%d)"

	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_done,8,3                       ; @done
.subsections_via_symbols
