	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_unix_daemonize         ## -- Begin function chassis_unix_daemonize
	.p2align	4, 0x90
_chassis_unix_daemonize:                ## @chassis_unix_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
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_setsid
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	xorl	%eax, %eax
	callq	_fork
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_chdir
	xorl	%edi, %edi
	popq	%rbp
	jmp	_umask                          ## TAILCALL
LBB0_4:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SIGTTIN,4,2                    ## @SIGTTIN
	.comm	_SIGTTOU,4,2                    ## @SIGTTOU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_unix_daemonize         ; -- Begin function chassis_unix_daemonize
	.p2align	2
_chassis_unix_daemonize:                ; @chassis_unix_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	x0, LBB0_4
; %bb.1:
	bl	_setsid
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_signal
	bl	_fork
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_chdir
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_umask
LBB0_4:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SIGTTIN,4,2                    ; @SIGTTIN
	.comm	_SIGTTOU,4,2                    ; @SIGTTOU
.subsections_via_symbols
