	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function daemon_mode
_daemon_mode:                           ## @daemon_mode
	.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	_SIGQUIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_parent_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	xorl	%eax, %eax
	callq	_background
	testl	%eax, %eax
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pause
	jmp	LBB0_1
LBB0_2:
	movl	(%rbx), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_gopt@GOTPCREL(%rip), %rbx
	movq	_CFM_PRINT_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_STREQ
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_am_mypid@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	jmp	LBB0_9
LBB0_5:
	movl	$18, %edi
	callq	_umask
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r15
	movq	_am_mypid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rdi
	callq	_fclose
	jmp	LBB0_8
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movl	%r14d, %edi
	callq	_umask
LBB0_9:
	movq	_foreground@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_amu_release_controlling_tty
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getppid                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_parent_exit,4,2                ## @parent_exit
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_gopt,16,3                      ## @gopt
	.comm	_CFM_PRINT_PID,4,2              ## @CFM_PRINT_PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/stdout"

L_.str.1:                               ## @.str.1
	.asciz	"%ld\n"

	.comm	_am_mypid,8,3                   ## @am_mypid
	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"w"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"cannot open %s (errno=%d)\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_foreground,4,2                 ## @foreground
	.no_dead_strip	_daemon_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function daemon_mode
_daemon_mode:                           ; @daemon_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x19, _SIGQUIT@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SIGQUIT@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _parent_exit@GOTPAGE
Lloh3:
	ldr	x8, [x8, _parent_exit@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_signal
	bl	_background
	cbz	w0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pause
	b	LBB0_1
LBB0_2:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_signal
Lloh8:
	adrp	x21, _gopt@GOTPAGE
Lloh9:
	ldr	x21, [x21, _gopt@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _CFM_PRINT_PID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CFM_PRINT_PID@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	x0, [x21, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_STREQ
	cbz	x0, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _am_mypid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _am_mypid@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh20:
	adrp	x8, _stdout@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_fflush
	b	LBB0_9
LBB0_5:
	mov	w0, #18
	bl	_umask
	mov	x19, x0
	ldr	x0, [x21, #8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh25:
	adrp	x8, _am_mypid@GOTPAGE
Lloh26:
	ldr	x8, [x8, _am_mypid@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	x0, x20
	bl	_fclose
	b	LBB0_8
LBB0_7:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
Lloh33:
	adrp	x9, _errno@GOTPAGE
Lloh34:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_8:
	mov	x0, x19
	bl	_umask
LBB0_9:
Lloh38:
	adrp	x8, _foreground@GOTPAGE
Lloh39:
	ldr	x8, [x8, _foreground@GOTPAGEOFF]
	mov	w9, #1
Lloh40:
	str	w9, [x8]
	bl	_amu_release_controlling_tty
	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
	add	sp, sp, #64
	b	_getppid
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_parent_exit,4,2                ; @parent_exit
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_gopt,16,3                      ; @gopt
	.comm	_CFM_PRINT_PID,4,2              ; @CFM_PRINT_PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/stdout"

l_.str.1:                               ; @.str.1
	.asciz	"%ld\n"

	.comm	_am_mypid,8,3                   ; @am_mypid
	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"w"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"cannot open %s (errno=%d)\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_foreground,4,2                 ; @foreground
	.no_dead_strip	_daemon_mode
.subsections_via_symbols
