	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cron_cwd                   ## -- Begin function set_cron_cwd
	.p2align	4, 0x90
_set_cron_cwd:                          ## @set_cron_cwd
	.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	_CRONDIR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	movq	_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jge	LBB0_5
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movq	(%r15), %r14
	movl	(%rbx), %edi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	cmpq	%rax, %r14
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	jmp	LBB0_5
LBB0_4:
	movq	_ERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_5:
	movq	_S_IFDIR@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, -32(%rbp)
	jne	LBB0_7
## %bb.6:
	movq	_ERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_7:
	movl	(%rbx), %edi
	callq	_chdir
	cmpq	(%r15), %rax
	jge	LBB0_9
## %bb.8:
	movq	_ERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_9:
	movq	_SPOOL_DIR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	cmpq	(%r15), %rax
	jge	LBB0_14
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movq	(%r15), %r15
	movl	(%rbx), %edi
	movl	$448, %esi                      ## imm = 0x1C0
	callq	_mkdir
	cmpq	%rax, %r15
	jne	LBB0_13
## %bb.12:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_stat
	jmp	LBB0_14
LBB0_13:
	movq	_ERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_14:
	movl	(%r14), %eax
	testl	%eax, -32(%rbp)
	jne	LBB0_16
## %bb.15:
	movq	_ERROR_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRONDIR,4,2                    ## @CRONDIR
	.comm	_OK,8,3                         ## @OK
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s: created"

	.comm	_ERROR_EXIT,4,2                 ## @ERROR_EXIT
L_.str.2:                               ## @.str.2
	.asciz	"%s: mkdir"

	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
L_.str.3:                               ## @.str.3
	.asciz	"'%s' is not a directory, bailing out"

L_.str.4:                               ## @.str.4
	.asciz	"cannot chdir(%s), bailing out"

	.comm	_SPOOL_DIR,4,2                  ## @SPOOL_DIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_cron_cwd                   ; -- Begin function set_cron_cwd
	.p2align	2
_set_cron_cwd:                          ; @set_cron_cwd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _CRONDIR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CRONDIR@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_stat
Lloh2:
	adrp	x19, _OK@GOTPAGE
Lloh3:
	ldr	x19, [x19, _OK@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh4:
	adrp	x20, _errno@GOTPAGE
Lloh5:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x21, _ENOENT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENOENT@GOTPAGEOFF]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w1, [x23]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	ldr	x22, [x19]
	ldr	w0, [x23]
	mov	w1, #448
	bl	_mkdir
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x23]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_stat
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ERROR_EXIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR_EXIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_5:
	ldr	w8, [sp, #8]
Lloh17:
	adrp	x22, _S_IFDIR@GOTPAGE
Lloh18:
	ldr	x22, [x22, _S_IFDIR@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _ERROR_EXIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR_EXIT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_7:
	ldr	w0, [x23]
	bl	_chdir
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, _ERROR_EXIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERROR_EXIT@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_9:
Lloh29:
	adrp	x23, _SPOOL_DIR@GOTPAGE
Lloh30:
	ldr	x23, [x23, _SPOOL_DIR@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_stat
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.10:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
	ldr	w1, [x23]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	ldr	x19, [x19]
	ldr	w0, [x23]
	mov	w1, #448
	bl	_mkdir
	cmp	x19, x0
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [x23]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_stat
	b	LBB0_14
LBB0_13:
Lloh35:
	adrp	x8, _ERROR_EXIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERROR_EXIT@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_14:
	ldr	w8, [sp, #8]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.15:
Lloh40:
	adrp	x8, _ERROR_EXIT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ERROR_EXIT@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_CRONDIR,4,2                    ; @CRONDIR
	.comm	_OK,8,3                         ; @OK
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s: created"

	.comm	_ERROR_EXIT,4,2                 ; @ERROR_EXIT
l_.str.2:                               ; @.str.2
	.asciz	"%s: mkdir"

	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
l_.str.3:                               ; @.str.3
	.asciz	"'%s' is not a directory, bailing out"

l_.str.4:                               ; @.str.4
	.asciz	"cannot chdir(%s), bailing out"

	.comm	_SPOOL_DIR,4,2                  ; @SPOOL_DIR
.subsections_via_symbols
