	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_daemonized                     ## -- Begin function daemonized
	.p2align	4, 0x90
_daemonized:                            ## @daemonized
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	__PATH_TTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_NOCTTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_close
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_getppid
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_getsid
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_getpid
	cmpq	%rax, %r14
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_debug3
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_TTY,4,2                  ## @_PATH_TTY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_NOCTTY,4,2                   ## @O_NOCTTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"already daemonized"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_daemonized                     ; -- Begin function daemonized
	.p2align	2
_daemonized:                            ; @daemonized
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, __PATH_TTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PATH_TTY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _O_NOCTTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_NOCTTY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.1:
	bl	_close
	b	LBB0_5
LBB0_2:
	bl	_getppid
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	bl	_getsid
	mov	x19, x0
	bl	_getpid
	mov	x8, x0
	mov	w0, #0
	cmp	x19, x8
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug3
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_TTY,4,2                  ; @_PATH_TTY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_NOCTTY,4,2                   ; @O_NOCTTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"already daemonized"

.subsections_via_symbols
