	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_daemonize                      ## -- Begin function daemonize
	.p2align	4, 0x90
_daemonize:                             ## @daemonize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	callq	_setsid
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die_errno
LBB0_6:
	xorl	%edi, %edi
	callq	_close
	movl	$1, %edi
	callq	_close
	movl	$2, %edi
	callq	_close
	xorl	%eax, %eax
	callq	_sanitize_stdfds
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die_errno
LBB0_3:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fork failed"

L_.str.1:                               ## @.str.1
	.asciz	"setsid failed"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_daemonize                      ; -- Begin function daemonize
	.p2align	2
_daemonize:                             ; @daemonize
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_fork
	cbnz	w0, LBB0_4
; %bb.1:
	bl	_setsid
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die_errno
LBB0_3:
	mov	w0, #0
	bl	_close
	mov	w0, #1
	bl	_close
	mov	w0, #2
	bl	_close
	bl	_sanitize_stdfds
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die_errno
LBB0_6:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fork failed"

l_.str.1:                               ; @.str.1
	.asciz	"setsid failed"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
