	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lesser_daemon                  ## -- Begin function lesser_daemon
	.p2align	4, 0x90
_lesser_daemon:                         ## @lesser_daemon
	.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
	leaq	L_.str(%rip), %rdi
	callq	_chdir
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_warn
LBB0_2:
	movq	__PATH_DEVNULL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movl	%eax, %ebx
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dup2
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_warn
LBB0_5:
	movl	%ebx, %edi
	callq	_close
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_log_warn                       ## TAILCALL
LBB0_7:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_log_warn                       ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"chdir"

	.comm	__PATH_DEVNULL,4,2              ## @_PATH_DEVNULL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"cannot open %s"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
L_.str.3:                               ## @.str.3
	.asciz	"dup2"

L_.str.4:                               ## @.str.4
	.asciz	"close"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lesser_daemon                  ; -- Begin function lesser_daemon
	.p2align	2
_lesser_daemon:                         ; @lesser_daemon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_chdir
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_warn
LBB0_2:
Lloh4:
	adrp	x20, __PATH_DEVNULL@GOTPAGE
Lloh5:
	ldr	x20, [x20, __PATH_DEVNULL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh9:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_dup2
	cbz	w0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_warn
LBB0_5:
	mov	x0, x19
	bl	_close
	cbz	w0, LBB0_8
; %bb.6:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_log_warn
LBB0_7:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_warn
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"chdir"

	.comm	__PATH_DEVNULL,4,2              ; @_PATH_DEVNULL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"cannot open %s"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
l_.str.3:                               ; @.str.3
	.asciz	"dup2"

l_.str.4:                               ; @.str.4
	.asciz	"close"

.subsections_via_symbols
